Repository navigation
feat(action-center): open a card on the right for each Getting started step - #1236
Conversation
… steps from the brand's data New Ansvisor (AC-ALT2 spec, §4), PR 2 of 7: the data behind Getting started, the 17 setup steps that will sit in the Actions page. - Migration 00196: getting_started (one row per brand that runs it; a trigger starts it for every new brand, existing brands have none) and getting_started_steps (what a person did that the data can't show: a page opened, an optional step skipped, KPIs saved), member RLS. - getting_started_facts reads everything the steps need in one call; getting_started_page_opened records an explore page once the brand's first answers are in. - lib/getting-started/steps.ts turns the facts into the 17 steps (New, Done, Waiting for data, Skipped, with progress); unlocks follow the data, not days. - Saving from the KPI screen marks the KPI step (the ready-made set appears on a visit, so it doesn't count). - The dashboard layout records the explore pages however they're opened. Nothing is shown yet; the Actions page list follows in the next PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
New Ansvisor (AC-ALT2 spec, §4), PR 3 of 7, on top of the Getting started data. While a brand runs Getting started: - the first summary card shows "x / 17 · steps done · at your own pace" with a bar, in Highest Priority's place; before the first actions, Top Actions, At Risk and Opportunities show "—" and "Start with your first signals"; - a "Getting started 17" chip opens first (unless the URL names a category) and lists the steps: Action · Stage · Status · Assignee · Ready · Updated, with the live status colours (New, Done, Skipped) and progress under the status; - a step opens its page in a new tab; one still waiting for data says when it opens; the steps are read again when the tab is back in front. A brand that doesn't run it, or skipped it, sees the page exactly as before. The right-side card for each step follows in the next PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d step
New Ansvisor (AC-ALT2 spec, §6), PR 4 of 7, on top of the Getting started
list. A step opens a card beside the list instead of its page:
- status and stage chips, "Optional · recommended" where it applies,
title and summary, "Everyone in the workspace" and when it's ready;
- Why it's important (1–3 reasons) and How to do this: a 16:9 place
saying "Videos coming soon" until the videos are recorded, then the
numbered steps;
- Done when, with progress (e.g. 2/3);
- the button opens the step's page in a new tab; Search Console and
Analytics can be skipped after a last-chance question ("Skip anyway"
/ "Connect now"); a skipped step says it can still be connected.
The card isn't modal: the list stays usable and makes room for it from
1300px; Escape or X closes it. The high-value prompts step opens Prompt
Suggestions on a new "From your data" filter (?source=data: Search
Console or Analytics suggestions, fromYourData()).
Standard actions keep today's drawer.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gkhngyk New Ansvisor PR 4/7, stacked on #1235 → #1234 (merge after them). Each Getting started step opens a non-modal card on the right (why / how with a "Videos coming soon" slot / done when, Skip with a last-chance dialog for Search Console and Analytics); the list makes room from 1300px. It also adds a "From your data" filter to Prompt Suggestions (?source=data) for the high-value prompts step. Standard actions keep today's drawer until the spec's Alternative 1 question is settled. |
gkhngyk
left a comment
There was a problem hiding this comment.
The card works, and every step's link exists on main. One change, which follows from my #1234 note: hide Skip when !canManage (step-card.tsx).
Nits:
panel.nextStepinen.jsonis unused.- The steps table shows the stage twice, as a badge under the title and in its own column.
- The card's window-level Escape handler also fires while the "Skip getting started" dialog is open, so one press closes both.
…rted-data # Conflicts: # supabase/schema.sql
…to feature/getting-started-list
…to feature/getting-started-card
…ting started step gkhngyk's review: the step policies let any member write any state, so an analyst could skip Search Console and Analytics, or mark a step done through PostgREST. Recording an opened page stays open to every member; skipped and done now need an admin or a manager, as the other Getting started and KPI writes do (insert check, and the update's with check). updated_by is dropped: nothing set it after the first write, so it only ever named whoever opened the page first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…steps once on return gkhngyk's review: - About 15 places link to /dashboard/action-center/actions?action=<id> (Create action, a signal, content, the history drawer, the task-send and export links). On a brand running Getting started, the drawer opened over the steps. A link to an action or to a filtered list (priority, status, assignee, q, sort) now counts as a chosen view, as a category does. - focus and visibilitychange both fire when the tab is back in front: the steps are read once. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ted-card # Conflicts: # web/src/app/[locale]/(dashboard)/dashboard/action-center/actions/page.test.tsx # web/src/app/[locale]/(dashboard)/dashboard/action-center/actions/page.tsx
…and leave Escape to an open dialog gkhngyk's review: - Skip on the step card shows only for admins and managers, who are the only ones the step policies let skip (00196). - The card's Escape handler no longer closes it while a dialog is open over the page (its Skip question, or "Skip getting started"), so one press closes only that dialog. - The steps table showed each step's stage twice: the badge under the title goes, the Stage column stays. - panel.nextStep, unused, is gone from en.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gkhngyk Done in
|
Takes main after the ansvisor#1234 and ansvisor#1235 squashes; only this PR's own changes are applied on top. Claude-Session: https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A
gkhngyk
left a comment
There was a problem hiding this comment.
Thanks, all fixed:
- Skip shows only to admins and managers.
- Escape leaves an open dialog alone.
- The steps table shows the stage once.
panel.nextStepis gone.
Takes main after the ansvisor#1234, ansvisor#1235 and ansvisor#1236 squashes; only this PR's own changes are applied on top, and schema.sql is rebuilt with build-schema.sh. Claude-Session: https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A
Summary
New Ansvisor: Action Center + Getting started, PR 4 of 7 (AC-ALT2 spec, §6). Stacked on #1235 → #1234; merge after them. This PR's own change is the last commit (
29e14ba1).A Getting started step now opens a card on the right instead of jumping straight to its page. The card shows:
The card is not modal:
Also:
fromYourData()inlib/prompt-suggestion-source.ts.?source=data. The "Track high-value prompt suggestions" step links there.Unchanged: standard (signal) actions keep today's drawer. Their redesign waits on the spec's open question (Alternative 1).
Related issue
New Ansvisor (AC-ALT2). Depends on #1234 and #1235.
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
With
00196applied (#1234), on a brand running Getting started:/dashboard/prompts/suggestions?source=data. The filter reads "From your data" and lists only Search Console / Analytics suggestions.Checked in light and dark, at 1440 and 1024px. Tests:
step-card.test.tsx(8): open, done/waiting footers, skip only after the dialog, no Skip on required or skipped steps, the last step, Escape, no message lookups a step doesn't have.page.test.tsx: a row opens its card; a waiting row says when it opens.prompt-suggestion-source.test.ts:fromYourData.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)yarn test(1814) andyarn buildalso pass.🤖 Generated with Claude Code