Repository navigation
feat(nav): analytics before execution; everyone lands on Prompts › Tracked Prompts - #2475
Merged
Merged
Conversation
The main menu now runs Chat, then ANALYTICS (Prompts, Visibility, Competitors, AI Referral Traffic, Ads when on), then EXECUTION, which replaces MORE (Action Center first, then Content, Audit, Reports). Same items, routes, icons, dots, badges and permissions; the sidebar (open and icons only), the mobile menu, Settings › Menu access, work areas and the onboarding preview all follow dashboardNav. The home (config/home.ts, DASHBOARD_HOME) is Prompts › Tracked Prompts for everyone: /dashboard, sign-in, the Stripe return page, setup after purchase (trial and demo then purchase) and the demo land there. The Action Center keeps its own address: /dashboard/action-center opens its Today tab directly. Tracked Prompts already shows the first run's progress, so nothing is added to the prompts route. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Competitors sits after Visibility in Analytics, Site Audit under Execution, groups fold as Analytics and Execution, and Ansvisor opens on Prompts › Tracked Prompts (Chat, Action Center, Today, first results, brand setup, Visibility). approved-articles.json regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Nobody lands on a page their menu doesn't show. homeFor(hidden) in config/home.ts (plain module) picks Tracked Prompts, or Action Center › Today (always on) when Prompts is off the person's menu; DASHBOARD_HOME stays the default. readMyHome (lib/my-home.ts) reads the menu as the sidebar does, through getMyMenu: the role's sections in the person's organization, their own exceptions and work areas. /dashboard (index) and the Stripe return page use it. Setup after purchase now lands on /dashboard with the run's job, which the index carries to the person's home, so new brand, demo, sign-in and setup all resolve in one place. Help says where someone without Prompts lands. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
gkhngyk
approved these changes
Nov 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good: every role/plan lands on a valid page (Action Center › Today when Prompts is hidden) and the onboarding redirect still wins.
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two changes from the owner's mockup:
/dashboard, the Stripe return page, setup after purchase (trial, and demo → purchase → setup), the demo and a new brand all open on Tracked Prompts. Menu access is respected: someone whose menu leaves Prompts off lands on Action Center › Today, which is on every menu. The Action Center keeps its own address.Changes
config/dashboard.ts: new order and group names. Items, routes, icons, dots, badges and permissions are unchanged, and Ads stays hidden unless its flag is on. The desktop sidebar (open and icons-only), the mobile menu, Settings › Menu access, work areas and the onboarding preview all render from this list. There is no command palette or shortcut list that repeats the menu order.nav.moreis replaced bynav.execution("Execution") inen.json. A fold remembered under "More" resets to open once, because the stored key is now…group.executionOpen.config/home.ts(plain module):DASHBOARD_HOMEis nowPROMPTS_TRACKED, a new constant inlib/prompts-routes.ts, and stays the default home.homeFor(hiddenSections)returns Tracked Prompts, orACTION_CENTER_TODAYwhen the Prompts section is off the person's menu.isDashboardHomeItem(href, home?)marks the right menu item for either home.lib/my-home.ts:readMyHome()reads the person's menu through the existinggetMyMenu(the same rules as the sidebar: the role's menu in their organization, their own exceptions and work areas) and applieshomeFor. If there is no menu to read, it returns the default home. No new server action and no migration./dashboard(index): redirects toreadMyHome()and carries?jobId=. Sign-in, the sidebar logo, new brand, demo entry, accepted invitations and the onboarding redirects for people who already finished all go through it.readMyHome()directly. Checkout is admin-only, but an admin's own work areas can still leave Prompts off.setupLanding(jobId)now lands on/dashboard?jobId=…, so the index picks the person's home. The person finishing setup can be a manager whose role hides Prompts, and the page doing the redirect runs in the browser and can't read the menu itself./dashboard/action-centernow redirects straight toACTION_CENTER_TODAY, so the menu's Action Center still opens Today and never bounces to Prompts.useFirstRun()read as the Action Center and is already covered byprompts/page.test.tsx, so nothing is added to the prompts route (no layout). Someone sent to Today instead sees the Action Center's own first-run line.approved-articles.jsonwas regenerated with the script, not edited by hand.needsSetupAfterPurchase,finishSetupAfterPurchase, theansvisor_setup_deferredcookie, the lapsed read-only dashboard) are untouched. Only the destination changed.How to test
/dashboard: it lands on Prompts › Tracked Prompts. Click Action Center in the menu: it opens Today./dashboardopens Action Center › Today.Checks
npx tsc --noEmit -p .: clean.redirect-loop.test.tsxtoo), Stripe success, prompts, Action Center Today,src/lib/help,src/i18n,use-server-exportsandsubscription-guard(-coverage).homeFor,readMyHomeandwithJobId./dashboard→ Tracked Prompts, and/dashboard/action-center→ Today.git merge-treewith feat(prompts): show a tracked Improve action under the Work chip #2471, feat(prompts): simplify the Prompts page header #2472, feat(prompts): manage prompts in one place, on the Prompts page #2473, feat(brands): the brand's Prompts tab opens the Prompts page #2474, fix(chat): read the page's view: tab, sort, search and the rows on screen #2463 and feat(chat): give Chat the page context on every page, the pages of one item included #2470: no conflicts. Help tests also pass on each merged tree.Generated by Claude Code