Skip to content

Commit e229629

Browse files
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 | ![](https://junior-prod.sentry.dev/public/artifacts/f022daa8-36d1-4f76-b808-ec8f3b47c530.png) | ![](https://junior-prod.sentry.dev/public/artifacts/5d64da4a-99af-48e1-b3bb-bf49d87913bf.png) | | Light | ![](https://junior-prod.sentry.dev/public/artifacts/5c4244c4-72f4-4b51-a28e-2931400bc4b5.png) | ![](https://junior-prod.sentry.dev/public/artifacts/ab1cb6ea-08d1-4c47-9682-26a2e8123485.png) | The feedback dialog, with the topic "The dashboard": | | Desktop | Mobile | | --- | --- | --- | | Dark | ![](https://junior-prod.sentry.dev/public/artifacts/3ee9744f-fce4-42a1-94b9-fa0285cfdf1c.png) | ![](https://junior-prod.sentry.dev/public/artifacts/4784ca64-57d9-4705-bd6a-8c331f542320.png) | | Light | ![](https://junior-prod.sentry.dev/public/artifacts/2845ef21-fca5-495e-9c40-0c1a881813a9.png) | ![](https://junior-prod.sentry.dev/public/artifacts/d7c1d1c0-a5c7-4aaa-b641-56d4ca5ca9b3.png) | <!-- 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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -443,16 +443,15 @@ jobs:
443443
informational-patch: true
444444

445445
dashboard-e2e:
446-
name: test / dashboard e2e (${{ matrix.project }} ${{ matrix.shard }}/2)
446+
name: test / dashboard e2e (${{ matrix.shard }}/2)
447447
runs-on: blacksmith-4vcpu-ubuntu-2404
448448
needs: changes
449449
permissions:
450450
contents: read
451-
# Two shards per Playwright project, so each job stays under the cap.
451+
# Two shards, so each job stays under the cap.
452452
strategy:
453453
fail-fast: false
454454
matrix:
455-
project: [classic, inbox]
456455
shard: [1, 2]
457456
# Keep a hard cap so install/test hangs fail fast.
458457
timeout-minutes: 15
@@ -490,13 +489,12 @@ jobs:
490489
- uses: ./.github/actions/setup-node-pnpm
491490
- name: Run dashboard e2e
492491
env:
493-
PLAYWRIGHT_PROJECT: ${{ matrix.project }}
494492
PLAYWRIGHT_SHARD: ${{ matrix.shard }}
495-
run: pnpm test:e2e:dashboard --project="$PLAYWRIGHT_PROJECT" --shard="$PLAYWRIGHT_SHARD/2"
493+
run: pnpm test:e2e:dashboard --shard="$PLAYWRIGHT_SHARD/2"
496494
- name: Upload dashboard screenshots
497495
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
498496
with:
499-
name: dashboard-screenshots-${{ matrix.project }}-${{ matrix.shard }}
497+
name: dashboard-screenshots-${{ matrix.shard }}
500498
path: .playwright/junior-dashboard/screenshots
501499
if-no-files-found: error
502500
retention-days: 7
@@ -506,7 +504,7 @@ jobs:
506504
if: ${{ !cancelled() }}
507505
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
508506
with:
509-
name: dashboard-e2e-traces-${{ matrix.project }}-${{ matrix.shard }}
507+
name: dashboard-e2e-traces-${{ matrix.shard }}
510508
path: .playwright/junior-dashboard/*/trace.zip
511509
if-no-files-found: ignore
512510
retention-days: 7
@@ -532,18 +530,10 @@ jobs:
532530
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 # zizmor: ignore[cache-poisoning]
533531
with:
534532
node-version: "24.22.1"
535-
# Both projects can save a shot with the same name. Classic downloads
536-
# last, so the current UI's shot is the one that is compared.
537-
- name: Download inbox screenshots
533+
- name: Download dashboard screenshots
538534
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
539535
with:
540-
pattern: dashboard-screenshots-inbox-*
541-
merge-multiple: true
542-
path: .playwright/junior-dashboard/screenshots
543-
- name: Download classic screenshots
544-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
545-
with:
546-
pattern: dashboard-screenshots-classic-*
536+
pattern: dashboard-screenshots-*
547537
merge-multiple: true
548538
path: .playwright/junior-dashboard/screenshots
549539
- name: Save dashboard screenshots

‎TELEMETRY.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ attributes. Nested logs and spans inherit them.
104104
| Dashboard page or API slow | `pageload`, `navigation`, `ui.render`, `deserialize`, `serialize`, `function` spans | `packages/junior-dashboard/src/client/sentry.ts`, `api/http.ts` |
105105
| Dashboard report stale or slow | spans `cache.get` (`cache.hit`, `cache.key`, `cache.item_size`, `app.cache.stale`, `app.cache.age_ms`), `cache.refresh` | `api/cached-report.ts` |
106106
| Dashboard feed response too big | `app.api.response.field_chars.*`, `app.conversation_feed.{rows,threads,waiting_rows}` on `serialize`; `conversation_feed.*` metrics | `api/conversations/feed-response.ts` |
107-
| Dashboard feedback by UI shell | `app.dashboard.ui` (`classic`, `inbox`) on browser spans and feedback; `app.feedback.topic` | `packages/junior-dashboard/src/client/sentry.ts` |
107+
| Dashboard feedback by topic | `app.feedback.topic` (`agent`, `new_ui`) | `packages/junior-dashboard/src/client/sentry.ts` |
108108
| Catch-up offered but not asked | browser span `Catch-up offered` (`ui.render`) vs. `http.server` `POST /api/conversations/:conversationId/catch-up` (`user.id`) | `packages/junior-dashboard/src/client/sentry.ts`, `api/conversations/routes.ts` |
109109

110110
## Trace Shape

‎design/inbox.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ how the dashboard groups and acts on its rows.
145145
who can see the Conversation only after that gets no item until the
146146
To-do changes again. This breaks "a task for a person is a To-do
147147
assigned to them. They see it with their other asks".
148-
- The "Needs you" group of the classic Inbox also shows open actions for
149-
Everyone and actions with no assignees. This breaks "'Needs you' means
150-
one thing".
151148
- An agent or a plugin can add a notice that names no next step, and the
152149
Inbox shows it in FYI. This breaks "a notice … says what to do".
153150
- An Automation alert shows only in the dashboard Inbox. Slack shows no

‎packages/junior-dashboard/.oxlintrc.json‎

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
},
134134
{
135135
"group": ["**/conversationSections"],
136-
"importNames": ["buildConversationSections"],
136+
"importNames": ["buildTimeSections"],
137137
"message": "Render a conversation list through ConversationSectionList, so every list groups, sorts, and holds its rows the same way."
138138
},
139139
{
@@ -181,16 +181,7 @@
181181
}
182182
},
183183
{
184-
"files": [
185-
"src/client/navPages.ts",
186-
"src/client/classic/**",
187-
"src/client/components/ProfileMenu.tsx",
188-
"src/client/components/layout/DashboardHeader.tsx",
189-
"src/client/components/layout/NavRail.tsx",
190-
"src/client/pages/automations/AutomationsPageLayout.tsx",
191-
"src/client/pages/code/RepositoryPage.tsx",
192-
"src/client/primaryNav.ts"
193-
],
184+
"files": ["src/client/navPages.ts"],
194185
"rules": {
195186
"nav-pages/listed-page-path": "off"
196187
}
@@ -215,10 +206,7 @@
215206
}
216207
},
217208
{
218-
"files": [
219-
"src/client/conversations/ConversationSectionList.tsx",
220-
"src/client/shell/conversations/ConversationSectionList.tsx"
221-
],
209+
"files": ["src/client/shell/conversations/ConversationSectionList.tsx"],
222210
"rules": {
223211
"no-restricted-imports": "off"
224212
}

0 commit comments

Comments
 (0)