Repository navigation
feat(shell): give analysts their own sidebar and command palette - #2550
Conversation
An observer follows the product without operating it, so the shell shows them the pages that answer whether it works and how it is doing: incidents with uptime and SLOs, errors, status pages, web analytics, users, replays, dashboards, releases and cost. The explorers, infrastructure, alert setup, review, security, Sources, Settings and the Connect button are left out. The command palette lists the same pages plus dashboards and the app actions. Other pages still open from a link: nothing is redirected, and the API refuses any change. The shell lab gains a viewer toggle to draw the sidebar for an observer.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 17 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This comment has been minimized.
This comment has been minimized.
An observer's sidebar calls the alerts inbox Incidents, but the palette built its rows from the full nav, so it listed that page as Alerts and a search for incidents found nothing. Their entries now carry the observer nav's titles; the ids are unchanged, so a pick resolves the same way.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
# Conflicts: # packages/domain/src/policy/roles.ts
Maple review🟢 Confidence 10/10 · safe to merge. Audience is read from the shared Gives analysts their own sidebar, palette and top bar:
Findings🔵 Note · F3 · The lab's
|
Fifth layer of the Analyst role, on top of #2549. Analysts get a sidebar and command palette built around what they come for.
What changed
/lab/shellhas a Viewer toggle that draws the shell for an analyst.Self-hosted has no analysts, so its shell is unchanged.
Screenshots
Incidents opens to its three pages:
Verified
apps/web: the shell tests, 128 passed. Cases: the analyst nav links to exactly its pages and to no setup or explorer page, rollout flags add Status pages, Releases and Cost, an uptime page marks only Incidents, the palette finds an analyst's pages and dashboards but not Traces, services, Connect entries or Settings, and Enter opens the page they see highlighted.@maple/webtypecheck, the CI lint config on the changed files, and the UI class pattern check./lab/shelldriven in a headless browser for the screenshots.Next
The pages an analyst reaches still draw write controls the API refuses. The next layer hides those, and the one after gives analysts their own Overview.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.