Skip to content

feat(action-center): History — what was done, and what has been measured - #815

Merged
gkhngyk merged 1 commit into
mainfrom
feature/action-center-history
Sep 15, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
feature/action-center-history

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

The Action Center's fourth tab. History reads the same actions the Actions tab triages, but from the far end: an action appears here once it is underway or closed.

Columns, five filters, search, sorting, pagination, a detail drawer, and the four states a table needs — loading, empty, no-match, error. The tab returns to the nav, and ComingSoonPage goes with it; History was its last caller.

What it shows, and what it does not

Everything on the page is read from a recorded row:

Action, type, impact the action's own columns
Affected counts from the payload, generic per kind — prompts for one, pages for another
Sources the source arrays of the signals that consolidated into it
Goal, what happened the kind's goal template and the action's own description
Tasks real rows, with the titles and statuses from #814
Date, time to close created_at and completed_at, both recorded

Except the result. An action's baseline captures its triggering signals at the moment it was raised, so the "before" half is recorded — but nothing re-reads those metrics afterwards, so there is no "after". Visibility change, citations change, prompts improved: no source.

So results comes back empty, validation reports pending, and the Result column and the drawer's metric cards say so instead of printing a number nobody measured. A dash, not a zero — zero is a measurement.

That is the point of the tab rather than a gap in it. History exists to show whether what the product recommended actually worked; filling it with invented improvements would refute the claim it is there to make, and a reader looking at their own brand would have no way to tell. The types are the full shape a validation pass would populate — ValidationStatus (kept separate from ActionStatus, because an action can be completed while its validation is pending), ActionResultMetric with before/after/delta/direction, AffectedEntity, per-task execution state — so adding that pass means filling these in, not reshaping them.

What this does not include

Export (CSV/PDF), a "How it works" link, mobile card layout, and filter state in the URL. Export is left out rather than stubbed: a download button that produces nothing reads as broken, not as forthcoming. The others are scope for their own change.

Related issue

None — built from the History brief.

Type of change

  • feat — New feature

Database

None. Reads existing tables only.

How to test

Action Center → History.

  1. The tab is back in the nav, between Signals and nothing.
  2. Rows show for actions that are underway or closed; actions still new are not history and stay out.
  3. Filters: status, type, impact, source, plus search over the rendered title and AC-number. Clear filters restores the list; narrowing returns to page 1 rather than stranding you on an empty page 4.
  4. Sort by newest, oldest, impact.
  5. Click a row: the drawer shows goal, what happened, the signals it consolidated, affected entities, and tasks with their real statuses.
  6. In the drawer's Result section, the four cards read — and the section explains that nothing has measured this action yet.
  7. Empty state: a brand with no such actions says so without looking like an error.

Note on what you will see today: across the whole database exactly one action qualifies, so the table is nearly empty and most brands show the empty state. That is the data, not the page — nothing has reached a terminal status yet.

Run from web/:

yarn test        # 216 passing
yarn lint
yarn typecheck
yarn format:check
yarn build

Checklist

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01SQ2H6mSd9JDpmqonk2VWBj

History reads the same actions the Actions tab triages, but from the far end:
an action appears once it is underway or closed. Columns, filters, sorting,
pagination, a detail drawer, and the four states a table needs — loading,
empty, no-match, error.

Everything it shows is read from a recorded row: which action ran, its kind
and impact, what it touched, which signals consolidated into it, its goal,
which tasks were carried out and in what state, who it was assigned to, when
it closed, and how many days that took.

Except the result. An action's `baseline` captures its triggering signals at
the moment it was raised, so the "before" half is recorded — but nothing
re-reads those metrics afterwards, so there is no "after". Visibility change,
citations change, prompts improved: no source. So `results` comes back empty,
validation reports `pending`, and the Result column and the drawer's metric
cards say that instead of printing a number nobody measured. A dash, not a
zero — zero is a measurement.

That is the whole point of the tab. History exists to show whether what the
product recommended actually worked; filling it with invented improvements
would refute the claim it is there to make, and the reader would have no way
to tell. The types are the full shape a validation pass would populate
(ValidationStatus, ActionResultMetric with before/after, AffectedEntity,
per-task execution state), so adding that pass is a matter of filling these
in rather than reshaping them.

The tab returns to the Action Center nav, and ComingSoonPage goes with it —
History was its last caller.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01SQ2H6mSd9JDpmqonk2VWBj
@gkhngyk
gkhngyk merged commit 4b8b792 into main Sep 15, 2026
6 checks passed
@gkhngyk
gkhngyk deleted the feature/action-center-history branch September 15, 2026 15:07
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.

1 participant