Skip to content

fix(tasks): seed text view with T{displayNumber} instead of P#T##277

Merged
psdjungpulzze merged 2 commits into
mainfrom
fix/task-id-migration-p-t-t
May 25, 2026
Merged

fix(tasks): seed text view with T{displayNumber} instead of P#T##277
psdjungpulzze merged 2 commits into
mainfrom
fix/task-id-migration-p-t-t

Conversation

@psdjungpulzze
Copy link
Copy Markdown
Contributor

Summary

  • seedTextFromProject was generating phase-relative [P1T1] IDs in the text view — PR chore(tasks): migrate task identifiers from P#T# to T# #254 fixed the guide text but left this function unchanged
  • Tasks now render as [T{displayNumber}] using the stable server-assigned display number (e.g. [T22]), consistent with the guide text and .tasks/my-tasks.md sync format
  • Deliverables and checkpoints use a globally sequential D{n}/C{n} counter instead of per-phase P#D#/P#C#
  • Existing users with old P#T# content in localStorage are auto-migrated: the legacy format detector now also matches [P\d+[TDC]\d+] and triggers a fresh reseed on next load

Test plan

  • Open Tasks text view — tasks show [T22] not [P1T1]
  • Open text view with old P#T# content in localStorage — auto-reseeds to T# format
  • Create a new item via [ trigger — nextShortId assigns the correct next T#
  • Save a checkbox toggle — UUID resolves correctly via idMap
  • npm run typecheck passes

Closes #275

seedTextFromProject was generating phase-relative IDs like [P1T1].
Now uses the stable server-assigned displayNumber so IDs are
permanent, cross-phase, and consistent with the guide text and
.tasks/my-tasks.md sync format.

Deliverables and checkpoints use a globally sequential D{n}/C{n}
counter instead of per-phase P#D#/P#C# to match the guide text.

Closes #275
…torage

Existing users with old P#T# content persisted in localStorage would
not benefit from the seedTextFromProject fix. Adding P#T# to the
legacy-format detection clears stale storage and triggers a fresh
reseed with T{displayNumber} IDs on next load.
@psdjungpulzze psdjungpulzze merged commit 491b379 into main May 25, 2026
7 checks passed
@psdjungpulzze psdjungpulzze deleted the fix/task-id-migration-p-t-t branch May 25, 2026 11:35
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.

fix(tasks): text view seeds P#T# IDs instead of T{displayNumber}

1 participant