Repository navigation
fix(action-center): name a task its check completed once in History, by its title when it has one - #1685
Merged
Conversation
…by its title when it has one Follow-up C (round 36's item 10) from ansvisor#1565's round 37. The History line "Checked automatically and done: {task}{title}" ran both names together for a library task someone renamed ("Refresh outdated contentRefresh the pricing page"). - The API's task_checked event sends `task` only when there's no title. - The web names it by its title when the line has one, so lines written before carry one name too. The round's other two parts of item 10 (www kept, the docs) were done in ansvisor#1565. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk
approved these changes
Oct 28, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good.
What I checked:
- Own change. c8ae14a, based on 3f6a4d4. It merges cleanly on main (b591947), and also on #1683 and #1684. With main merged in, the server's
task-checksandfrom-shopping-checktests (49) and the web'sdisplaytests (197) pass. They also pass on this head. - Server.
task_checkedsendstaskonly when there's no title. #1616's shopping check already writestask: nullwith its title, so all three writers now agree. - Web.
actionEventTextdrops{task}fortask_checkedwhen the event has a title. That fixes lines written before this change too. Other events still name the task by its key as before. The tests cover the key-only case and the case where the event has both. - Order. Web-first is safe: old events that carry both names show only the title, and new events read the same way.
The optional follow-up in the description (keeping the library key next to the title in the event) is fine to leave for later. taskId is already in the event, which links it back to the task.
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
Follow-up C from #1565's round 37 (round 36's item 10): History names a task that a check completed once, by its title when it has one.
The History line "Checked automatically and done: {task}{title}" ran both names together for a library task someone had renamed, e.g. "Refresh outdated contentRefresh the pricing page".
task_checkedevent sendstaskonly when there's no title.The other two parts of item 10 (keeping www, and the docs) were done in #1565.
Follow-up (optional): the server could keep sending the library key alongside the title, so the event log doesn't lose it.
Where people see it: Action Center › History.
Related issue
Follow-up from #1565 (round 37, item C).
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 server && npx vitest run src/lib/action-center/task-checks.test.jsandcd web && npx vitest run src/lib/action-center/display.test.tsChecklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Full checks were run in one tree with this batch's eight follow-up branches merged (after the review fixes):
npm test(noSUPABASE_*env, as in CI): 249 files, 3,365 tests passed;vitest(445 files, 4,353 tests) and build: all pass.Browser check (local, 1024 px): Prompts › Topics › Add Topic stops at 100 characters; the Action Center drawer opens without errors, and Check now doesn't show on tasks the API doesn't check.
A pre-push review was run on all eight branches of this batch, and its before-merge findings are fixed.
🤖 Generated with Claude Code