Repository navigation
Commit e229629
feat(dashboard): Make the new UI the only dashboard UI (#4205)
The new dashboard UI replaces the classic one. Keeping both doubled the
code for every dashboard change, and readers had to opt in to get the
current UI. This makes the shell that the "New dashboard" opt-in
selected the only UI.
- **Shell:** `ClassicShell`, `src/classic.ts`, the shell switch and
`UiShellContext`/`useInboxUi` are removed. Each `useInboxUi()` branch
keeps its new-UI behavior. Modules and e2e specs that only the classic
shell used are deleted.
- **Setting and API:** Settings › Interface loses the "New dashboard"
row. The user settings API drops `experimentalUi` with a hard cutover: a
PATCH that still sends it gets a 400. The `junior_users.preferences`
column stays for future per-user choices, with no migration.
- **Telemetry:** the `app.dashboard.ui` span tag is removed. Sentry
queries that filter on it stop matching new data. The feedback topic
keeps its `new_ui` value, so old queries still match, and its label now
reads "The dashboard".
- **Nav request-budget guard:** it reads the primary nav from
`shell/primaryNav.ts` and `navPages.ts`. Before, it read only the
classic nav, so it never guarded the new UI's page loads.
- **Bundle size:** the baseline is now one `dashboard` entry of 630,990
B gzip. `main` has `classic` at 637,922 B and `inbox` at 641,159 B, so
the new UI's entry shrinks by 10,169 B.
- **Screenshots:** the Frameshift baselines on `main` show the classic
shell. Shots that both shells took now show the new shell, so they all
change. Shots that only classic specs took are removed.
Settings › Interface without the "New dashboard" row:
| | Desktop | Mobile |
| --- | --- | --- |
| Dark |

|

|
| Light |

|

|
The feedback dialog, with the topic "The dashboard":
| | Desktop | Mobile |
| --- | --- | --- |
| Dark |

|

|
| Light |

|

|
<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Aca62a707b137d54c6cf93912d51f0c4a -->
--
[View
Session](https://junior-prod.sentry.dev/conversations/agent%3Aca62a707b137d54c6cf93912d51f0c4a)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aca62a707b137d54c6cf93912d51f0c4a/?project=4510944073809921)
<!-- junior-session-footer:end -->
---------
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>1 parent 8d9444f commit e229629
213 files changed
Lines changed: 1097 additions & 25595 deletions
File tree
- .github/workflows
- design
- packages
- junior-dashboard
- e2e
- inbox
- oxlint
- src
- api
- client
- classic
- components
- filters
- layout
- ui
- conversations
- display-text
- inbox
- lead
- pages
- automations
- code
- locations
- memory
- people
- settings
- user
- shell
- components
- pages/settings
- tests
- junior
- src/api
- inbox-items
- tests/integration/api
- scripts
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 | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
| 451 | + | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | 455 | | |
457 | 456 | | |
458 | 457 | | |
| |||
490 | 489 | | |
491 | 490 | | |
492 | 491 | | |
493 | | - | |
494 | 492 | | |
495 | | - | |
| 493 | + | |
496 | 494 | | |
497 | 495 | | |
498 | 496 | | |
499 | | - | |
| 497 | + | |
500 | 498 | | |
501 | 499 | | |
502 | 500 | | |
| |||
506 | 504 | | |
507 | 505 | | |
508 | 506 | | |
509 | | - | |
| 507 | + | |
510 | 508 | | |
511 | 509 | | |
512 | 510 | | |
| |||
532 | 530 | | |
533 | 531 | | |
534 | 532 | | |
535 | | - | |
536 | | - | |
537 | | - | |
| 533 | + | |
538 | 534 | | |
539 | 535 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
| 536 | + | |
547 | 537 | | |
548 | 538 | | |
549 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 148 | | |
152 | 149 | | |
153 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 184 | + | |
194 | 185 | | |
195 | 186 | | |
196 | 187 | | |
| |||
215 | 206 | | |
216 | 207 | | |
217 | 208 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 209 | + | |
222 | 210 | | |
223 | 211 | | |
224 | 212 | | |
| |||
0 commit comments