Commit 0ef6c3d
authored
feat: Redesigned identity switcher (#3652)
Redesigned identity switcher
# Changes
- Added "xs" size to `Avatar` component.
- Remove padding from `Dialog` if rendered by `Popover`.
- Update `Popover` component to remove default padding
- Update `Dialog` touch scroll logic to support scrolling inner
scrollable elements.
- Rewrite `IdentitySwitcher` component to match updated design.
- Remove `!` syntax from `Select` padding styling since it's no longer
needed.
- Add `namespaceIds` method to name space all IDS inside SVG string to
fix the Google logo when rendered multiple times on the page.
- Add `color-scheme` to root css to make sure scrollbars are colored
correctly according to the system color scheme.
- Update authorization layout to automatically authorize with a dapp
when selecting another identity from the identity switcher.
- Render avatar together with identity name on the top right on all
pages the identity switcher is used.
- Replace `ButtonCard` on mobile to match updated design (button used to
open the identity switcher on the mobile manage pages).
- Remove 3 identities limit, render all past used identities instead.
# Tests
Various e2e tests have been updated to match the redesigned identity
switcher labels and behavior.1 parent 9546cf5 commit 0ef6c3d
File tree
15 files changed
+448
-173
lines changed- src/frontend
- src
- lib
- components/ui
- utils
- routes/(new-styling)
- (channel)/authorize
- manage/(authenticated)
- tests/e2e-playwright
- fixtures
- routes
- authorize
- manage
15 files changed
+448
-173
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
73 | 88 | | |
74 | 89 | | |
| 90 | + | |
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
78 | | - | |
79 | | - | |
| 94 | + | |
| 95 | + | |
80 | 96 | | |
81 | 97 | | |
82 | 98 | | |
| |||
151 | 167 | | |
152 | 168 | | |
153 | 169 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
158 | 176 | | |
159 | 177 | | |
160 | 178 | | |
161 | 179 | | |
162 | 180 | | |
163 | 181 | | |
164 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
165 | 186 | | |
166 | 187 | | |
167 | 188 | | |
| |||
0 commit comments