Repository navigation
fix(action-center): show the measured result in an action's history - #1079
Merged
gkhngyk merged 3 commits intoOct 17, 2026
Merged
Conversation
…n's history The task_added, task_renamed and task_deleted events had no message under drawer.events, so the History tab showed next-intl's missing-message text for them. Added and renamed tasks are named as they were typed. A test reads the events the server actions log and checks each one formats. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Node server's validation sweep logs outcome_measured with its verdict, but drawer.events had no message for it, so the History tab showed next-intl's missing-message text. Each verdict now reads in words, measured "after this action closed" as the validation module puts it, and an unknown or missing one reads as "Result measured". The History events test also reads the events the Node server's Action Center engine writes, so one added there without copy fails the test too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tcome-event main now carries ansvisor#1078 as a squash; this branch keeps only its own outcome_measured change on top.
gkhngyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 17, 2026
The History line now comes from actionEventText, so the title (ansvisor#1078) and outcome (ansvisor#1079) values that main added inline move into it, with a test.
7 of 12 tasks
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
The Action Center drawer's History tab renders each event from
actionCenter.actionsPage.drawer.events.<event>. The Node server's validation sweep (server/src/lib/action-center/validate.js,write()) logsoutcome_measuredwithdata: { outcome }, whereoutcomeis one ofderiveOutcome's verdicts. There was no message for it, so every measured action got a History line with next-intl's missing-message text.en.json: addsoutcome_measured, an ICUselecton{outcome}. It followsposition_outcome_recorded's "…result: …" tone and keeps the validation module's wording: measured after this action closed, not because of it.improved→ Result: metrics improved after this action closeddeclined→ Result: metrics declined after this action closedno_meaningful_change→ Result: no meaningful change in metrics after this action closednot_measurable→ Result: could not be measured (no success metrics, or no data in either window)other→ Result measured (an unknown or missing verdict)action-drawer.tsx: passesoutcome: String(event.data.outcome ?? '')to the message, next to the values it already passes.display.test.ts: the "History events" test from fix(action-center): show added, renamed and deleted tasks in an action's history #1078 now also reads the events the Node server's Action Center engine writes. It scans the non-test.jsfiles underserver/src/lib/action-center/forlogEvent(id, '…')andevent: '…'. That findscreated,signals_linked,task_ran,task_run_failed,task_awaiting_approval,position_outcome_recordedandoutcome_measured, and each one must format. New tests check the text for each verdict and theotherfallback. Without the newen.jsonkey, 6 tests fail. (server/src/lib/action-center/tasks/plan.test.jsalready readsweb/messages/en.jsonacross the package boundary, so this follows that pattern the other way round.)Stacked on #1078. This branch is based on
fix/action-history-task-eventsbecause both change the same test and the samet()call. Until #1078 merges, this PR also shows its commit (df175d0). Only 78646f4 belongs to this PR. I'll rebase ontomainonce #1078 is in.Note: #1070 moves the drawer's inline
t()call intoactionEventTextinweb/src/lib/action-center/display.ts. Whichever merges second needsoutcome: String(event.data.outcome ?? '')added there. It's a one-line conflict, the same as #1078'stitle.Related issue
None. Found while working on #1078.
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
outcome_measuredevents, either by letting the validation sweep measure a completed action or by inserting rows intoaction_eventson a dev database (event = 'outcome_measured',data = {"outcome": "improved"}, and so on, plus one with{}).cd web && yarn test src/lib/action-center/display.test.tsI checked this in the browser at 1024px, in light and dark themes, with one event per verdict plus an empty one. I removed the test rows afterwards.
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/) (0 errors; the 7 warnings are in files this PR doesn't touch)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)yarn test(679 tests) andyarn buildalso pass.npm run version:checkalready fails onmain(docker-compose images 0.2.0 vs 0.3.0), and this PR doesn't change that.🤖 Generated with Claude Code