Repository navigation
fix(action-center): show added, renamed and deleted tasks in an action's history - #1078
Merged
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]>
8 of 12 tasks
gkhngyk
approved these changes
Oct 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Thanks, approving. task_added, task_renamed and task_deleted are already logged by action-center.ts; this gives them their text.
gkhngyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 17, 2026
…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 server actions inweb/src/lib/actions/action-center.tslogtask_added(addTask),task_renamed(updateTaskTitle) andtask_deleted(deleteTask), but none of the three had a message, so adding, renaming or deleting a task left a History line with next-intl's missing-message text.en.json: adds the three messages. Added and renamed tasks are named as they were typed, with the same curly quotes the Action Center uses for a prompt:task_added→ Task added: “{title}”task_renamed→ Task renamed to “{title}”task_deleted→ Task deleted (this event logs only the task id, so there is no name to show)action-drawer.tsx: passes the event'stitleto the message, next to the values it already passes.display.test.ts: a test reads the events the server actions log fromaction-center.tsand formats each one withcreateTranslator(namespaceactionCenter.actionsPage, throwing on any error). An event added there without copy now fails the test instead of showing up broken in the drawer. I checked that it fails whentask_deletedis removed fromen.json.Note: #1070 moves this
t()call intoactionEventTextindisplay.ts. Whichever of the two merges second needstitle: String(event.data.title ?? '')added there. It's a one-line conflict.Related issue
None. Found while reviewing the History tab.
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
cd web && yarn test src/lib/action-center/display.test.tsI checked this in the browser at 1024px, in light and dark themes.
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(666 tests) andyarn buildalso pass.npm run version:checkfails onmainalready (docker-compose images 0.2.0 vs 0.3.0); this PR doesn't change it.🤖 Generated with Claude Code