Skip to content

feat(action-center): list Getting started's steps in the Actions page - #1235

Merged
gkhngyk merged 8 commits into
ansvisor:mainfrom
cihan-gyk:feature/getting-started-list
Oct 20, 2026
Merged

gkhngyk merged 8 commits into
ansvisor:mainfrom
cihan-gyk:feature/getting-started-list

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

New Ansvisor: Action Center + Getting started, PR 3 of 7 (AC-ALT2 spec, §4). Stacked on #1234 (merge after it); this PR's own change is the second commit (069871b8).

The Actions page lists Getting started's steps while a brand runs it:

  • Summary cards (still 5):
    • The first card becomes Getting started: "x / 17 · steps done · at your own pace" with a progress bar. It takes Highest Priority's place.
    • Before the first actions, Top Actions, At Risk and Opportunities show "—" and "Start with your first signals", faded.
  • Category chip: "Getting started 17" comes first and opens by default, unless the URL names a category. It is kept in the URL like the other categories.
  • Steps table: Action · Stage · Status · Assignee · Ready · Updated.
    • Each row has a Getting started chip, the stage and "Optional" where it applies.
    • Status uses the live action colours: New blue, Done green, Skipped amber, Waiting for data muted. Progress shows under it (e.g. 2/3).
    • Assignee shows the workspace's members (the whole workspace).
    • Ready says when the step opens: "Now", "First answers · ~3h", "24h after Search Console or Analytics", "Suggestions · ~24h", "After the steps above".
  • Behaviour:
    • A step opens its page in a new tab.
    • A step waiting for data says when it opens.
    • The steps are read again when the tab comes back to the front.
    • A note under the table says AI actions start here with the first signals.
  • Not shown in this view: the filters, sort and Export CSV work on actions, so they are hidden for the steps. The other chips and cards return to the actions list as today.

Guardrail (spec §2):

  • A brand that doesn't run Getting started, or skipped it, sees the page exactly as before (tested).
  • If the steps can't be read, the page also falls back to today's.

The right-side card for each step ("Why it's important", "How to do this", "Done when", Skip) is the next PR; until then a step opens its page directly.

Related issue

New Ansvisor (AC-ALT2). Depends on #1234.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

With 00196 applied (#1234):

  1. New brand. Add a brand (or insert a getting_started row for one) and open /dashboard/action-center/actions.
    • The Getting started card reads 0 / 17.
    • The ranking cards show "—".
    • The chip "Getting started 17" is selected.
    • Explore and Act steps show "Waiting for data"; clicking one shows when it opens.
    • The note is under the table.
  2. A brand with data that started it. Done steps are green with a check; partial ones show progress.
    • Click "Check what AI says about you". Mentions opens in a new tab.
    • Come back. The step is Done ("just now").
  3. Back to actions. Click All or a ranking card. The usual list returns, with filters, sort and Export CSV.
  4. Guardrail. Set dismissed_at on the row, or use a brand without one. The page is today's: Highest Priority card, no chip.

Checked in light and dark, at 1440 and 1024px. page.test.tsx covers:

  • the unchanged page for a brand without Getting started;
  • the new-brand view;
  • a URL category kept;
  • the read failing.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

yarn test (1803) and yarn build also pass.

🤖 Generated with Claude Code

cihan-gyk and others added 2 commits October 20, 2026 03:48
… 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]>
@github-actions github-actions Bot added the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 20, 2026
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk New Ansvisor PR 3/7, stacked on #1234 (merge after it). The Actions page lists the 17 steps while a brand runs Getting started: the first card becomes Getting started x/17, a "Getting started 17" chip opens first, and the steps table uses the live status colours. A brand without Getting started (or that skipped it) sees today's page exactly — covered in page.test.tsx. The right-side step card comes next.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change:

Action deep links open on top of the steps table (actions/page.tsx, categoryChosen). Getting started opens whenever the URL has no category. But about 15 places link to /dashboard/action-center/actions?action=<id>:

  • Create action on Insights, Mentions and Traffic;
  • signal detail;
  • content opportunity and basket;
  • the history drawer;
  • the task-send and export links.

On a new brand, which is exactly the one running Getting started, the drawer opens over the steps, and closing it leaves the user on the steps instead of the actions. Treat ?action= and the filter params (priority, status, assignee, q, sort) as a choice already made, e.g. categoryChosen.current = readUrlParam('category') !== '' || readUrlParam('action') !== ''.

A product question too: Getting started never ends on its own. active doesn't look at the ready step. So a brand at 17/17, or one stuck at 14/17 waiting on the snippet, opens on the steps every visit, and with #1238 that is the home page. Picking All doesn't stick either, since the default stays out of the URL. My suggestion is to stop opening the steps by default once ready is done. I'll confirm and come back to you.

Nit: focus and visibilitychange both fire on return to the tab, so the facts read runs twice. A short debounce fixes it.

cihan-gyk and others added 5 commits October 20, 2026 10:26
…rted-data

# Conflicts:
#	supabase/schema.sql
…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]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk Done in 4224d55a:

  • Deep links: ?action= and the filter params (priority, status, assignee, q, sort) now count as a chosen view, like category. A Create action or signal link opens the list (All) with its drawer, also on a brand running Getting started. A test covers it.
  • Return to the tab: focus and visibilitychange read the steps once, within a second.
  • Ending by default once ready is done: waiting for your call.

@github-actions github-actions Bot removed the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 20, 2026

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, both are fixed. A link to an action or to a filtered list now opens the actions, and coming back to the tab reads the steps once.

The product question is still open on our side: Getting started doesn't stop opening by default once ready is done. That can be a follow-up and doesn't hold this PR.

@gkhngyk
gkhngyk merged commit 7a73500 into ansvisor:main Oct 20, 2026
5 checks passed
gkhngyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 20, 2026
gkhngyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 20, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants