Skip to content

fix(action-center): name a task its check completed once in History, by its title when it has one - #1685

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/task-checked-history-name
Oct 28, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/task-checked-history-name

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

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".

  • The API's task_checked event sends task only when there's no title.
  • The web uses the title when the line has one, so lines written before also show one name.

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 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

cd server && npx vitest run src/lib/action-center/task-checks.test.js and cd web && npx vitest run src/lib/action-center/display.test.ts

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

Full checks were run in one tree with this batch's eight follow-up branches merged (after the review fixes):

  • server format, lint and npm test (no SUPABASE_* env, as in CI): 249 files, 3,365 tests passed;
  • web format, lint (0 errors; 7 warnings already on main), typecheck, 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

…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 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.

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-checks and from-shopping-check tests (49) and the web's display tests (197) pass. They also pass on this head.
  • Server. task_checked sends task only when there's no title. #1616's shopping check already writes task: null with its title, so all three writers now agree.
  • Web. actionEventText drops {task} for task_checked when 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.

@gkhngyk
gkhngyk merged commit c572456 into ansvisor:main Oct 28, 2026
6 checks passed
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