Commit 502d494
refactor(ui): merge identity screens into the identity module (#972)
* chore(ui): remove the superseded standalone identities screen
The Identity Hub covers everything the standalone identities list did, and
the nav has not offered a way to reach that list for some time. Four live
controls still routed to it, though, and `set_main_screen` persists the
choice — so finishing a wallet import and choosing "Create Identity" parked
the user on a screen with nothing highlighted in the nav, there and on every
later launch. Those controls now point at the hub, and the screen is gone.
Rerouted to `RootScreenIdentityHub`: "Create Platform Identity" after wallet
creation, "Create Identity" / "Load Existing Identity" on the import success
screen, "Register DPNS Name" on the add-identity success screen, and the
Register-DPNS breadcrumb. The seven `add_left_panel` arguments that named the
retired route highlighted nothing; they now name the hub, matching what
`keys_screen` already did.
Encoding 0 is retired and decodes to `None`, so a returning user's persisted
value falls through to the settings default. That default was DashPay, which
is itself absent from the nav — it becomes the hub, matching
`app::FALLBACK_ROOT_SCREEN`, under a regression test.
`OnboardingAction::ImportIdentity` is dropped: it is absent from
`ONBOARDING_CARDS` and constructed nowhere.
The `nav_button_specs` doc claimed the retired routes stayed reachable via
deep links and MCP tools. Neither exists: there is no URI handler anywhere,
and `src/mcp/` and `src/bin/` reference no UI screen type.
The deleted kittest file's three app-shell tests move to `startup.rs`; a
fourth duplicated `startup::test_app_startup`. Its two Keys-popup regressions
are already covered on the live path by `keys_screen.rs` and at model level
in `encrypted_key_storage.rs`.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* refactor(ui): merge identity screens into the identity module
`src/ui/identities/` and `src/ui/identity/` differed by one letter and split
one domain across two module trees. Everything from the plural tree now sits
flat in `src/ui/identity/`, matching the one-directory-per-UI-domain layout
used by `ui/tokens/` and `ui/wallets/`; each screen keeps its own internal
multi-file grouping.
The plural `mod.rs` contributed no names the singular one already had, so its
constants, `removed_identities_banner`, `get_selected_wallet`, and test module
merge in byte-identical — only module declarations and the header doc changed.
Paths and imports only; no behavior change.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Lukasz Klimek <842586+lklimek@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 71096fd commit 502d494
57 files changed
Lines changed: 464 additions & 454 deletions
File tree
- src
- backend_task/identity
- context
- ui
- contracts_documents
- dashpay
- dpns
- identities
- identity
- add_new_identity_screen
- keys
- top_up_identity_screen
- masternodes
- tokens
- tokens_screen
- wallets
- wallets_screen
- tests/kittest
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
1333 | | - | |
| 1333 | + | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments