Repository navigation
feat(action-center): land on the Action Center's Actions, its first tab - #1238
Conversation
New Ansvisor (AC-ALT2 spec, §3), PR 6 of 7: everything starts at the Action Center. One home path (config/home.ts, DASHBOARD_HOME) for: - /dashboard and /dashboard/action-center (was Visibility and KPIs); - the end of onboarding and the Stripe success route after payment; - a new brand from the brands page; - the onboarding preview's highlighted sidebar item. The Action Center's tabs read Actions · Signals · KPIs · History (lib/action-center/tabs.ts). The Stripe success route still passes the first tracking run's ?jobId=; TrackingJobHandoff, in the dashboard layout, keeps it for Visibility's progress bar (which used to read it from its own address) and takes it out of the address. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gkhngyk New Ansvisor PR 6/7 — please merge it only after #1234 → #1235 → #1236, so new users land on Getting started rather than an empty Actions page. /dashboard, /dashboard/action-center, onboarding's end, the Stripe success route and a new brand now land on Action Center › Actions (one DASHBOARD_HOME), and the tabs read Actions · Signals · KPIs · History. The success route's ?jobId= is handed to the tracking-job store by a small layout component, so Visibility still shows the first run's progress. |
gkhngyk
left a comment
There was a problem hiding this comment.
Looks right: every tab route still exists, only the bare /dashboard/action-center and /dashboard now land on Actions, and the ?jobId= hand-off keeps the other params. I'll merge it after the Getting started PRs (#1234 → #1235 → #1236), since it makes that page the home page.
For a follow-up: after payment, a new brand or onboarding, people now land on Actions while the first run is still going, and nothing there shows it; the progress bar appears only on Visibility. A "First analysis running" note on Actions would cover it.
Takes main after ansvisor#1238's squash; only this PR's own change is applied on top. Claude-Session: https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A
…alysis is running (#1248) * feat(action-center): land on the Action Center's Actions, its first tab New Ansvisor (AC-ALT2 spec, §3), PR 6 of 7: everything starts at the Action Center. One home path (config/home.ts, DASHBOARD_HOME) for: - /dashboard and /dashboard/action-center (was Visibility and KPIs); - the end of onboarding and the Stripe success route after payment; - a new brand from the brands page; - the onboarding preview's highlighted sidebar item. The Action Center's tabs read Actions · Signals · KPIs · History (lib/action-center/tabs.ts). The Stripe success route still passes the first tracking run's ?jobId=; TrackingJobHandoff, in the dashboard layout, keeps it for Visibility's progress bar (which used to read it from its own address) and takes it out of the address. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(action-center): say on the Action Center when a brand's first analysis is running After the payment, a new brand or onboarding, people now land on the Action Center's Actions (#1238) while the first tracking run is still going, and only Visibility showed it. A note under the Action Center's tabs now says the first analysis is running (or queued), with the progress when this browser started it and a link to follow it on Visibility. It shows while the brand has no completed run and one is under way: from the tracking_runs ledger, so any browser's run counts, or, while the job still waits for the worker, from the job this browser saved. It reads every 30 s and stops once the brand has a completed run. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Gökhan Geyik <[email protected]>
Summary
New Ansvisor: Action Center + Getting started, PR 6 of 7 (AC-ALT2 spec, §3: "First login lands on Action Center. Everything starts here").
One home path,
config/home.ts(DASHBOARD_HOME = /dashboard/action-center/actions):/dashboardredirects there (was Visibility)./dashboard/action-centerredirects there (was KPIs). This includes the sidebar's Action Center item.isDashboardHomeItem).Tabs:
lib/action-center/tabs.ts.First tracking run's progress:
?jobId=. Visibility used to read it from its own address to show the progress bar.TrackingJobHandoff, mounted once in the dashboard layout, saves the id to the tracking-job store for the active brand and removes it from the address.Unchanged:
Related issue
New Ansvisor (AC-ALT2). Depends on #1236 (and #1234, #1235) for what users land on.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
/dashboard. You land on Action Center › Actions./dashboard/action-center. You land on Actions; the tabs read Actions · Signals · KPIs · History.curl -I localhost:3000/api/stripe/success(no session). It answers 307 to/dashboard/action-center/actions. Locally it needs aSTRIPE_SECRET_KEY; the CI placeholder works./dashboard/action-center/actions?jobId=test. The param leaves the address andlocalStorage['aeo:tracking-job']holds{ jobId: 'test', brandId: <active brand> }. Remove it afterwards.Tests (8):
home.test.ts: the home path, the preview item and the tab order.tracking-job-handoff.test.tsx: saves and strips the id; waits for the brand; leaves Visibility alone; does nothing without an id.Checked in light and dark, at 1440 and 1024px.
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)yarn test(1783) andyarn buildalso pass.🤖 Generated with Claude Code