Skip to content

feat(track): unified threads — tracking merge (consolidation epic 1/7) - #333

Merged
deepiq2022 merged 15 commits into
mainfrom
feat/tracking-merge
Aug 22, 2026
Merged

deepiq2022 merged 15 commits into
mainfrom
feat/tracking-merge

Conversation

@deepiq2022

Copy link
Copy Markdown
Contributor

Summary

Merges the three tracking entities — Threads, Tracks, and Rumors — into one Thread entity with a lifecycle stage, rendered by one unified pane. First sub-project of the tool-consolidation epic.

  • Thread gains ThreadStage {rumor, active, done} (JSON stage, omitted at active; legacy open:false reads as done). open is now a derived getter, so all existing readers kept working unchanged.
  • Unified ThreadsPane: stage filter chips (All / Rumors / Active / Done), a "New rumor" button, per-row Confirm that promotes a rumor to active, and the clock-fill journal entry ("Clock filled: …") carried over from the old Tracks pane.
  • Rumor and Track models, rumorsProvider/tracksProvider, RumorsPane/TracksPane, and the loreseer.rumors.v1/loreseer.tracks.v1 keys are deleted. Fresh start per the design decision — no data migration; old campaign files still import, the dead keys are ignored (covered by a new test).
  • All consumers re-pointed: Run threads panel, campaign search, develop-rumor suggestion, Track home + help card, lonelog import/export ([Track:name n/m] now maps to clock threads; import merges by title), campaign IO.
  • Legacy rumors/tracks subtab routes alias to Threads.

Spec: docs/superpowers/specs/2026-08-22-tracking-merge-design.md. Plan: docs/superpowers/plans/2026-08-22-tracking-merge.md.

Accepted deviations (noted by the final review)

  • Rumor flesh-out uses the thread pane's editable review dialog rather than showFleshOutReview; same review-then-append outcome.
  • Lonelog round-trip loses the rumor stage (the external notation has no slot for it).
  • "Open" counts now include rumor-stage threads.
  • Reopening a finished ex-rumor yields active, not rumor (one-way confirmation ratchet).
  • The + clock stepper is not disabled at max; a crossing guard keeps the fill entry from duplicating.

Testing

  • Full suite: 2411 tests pass; flutter analyze clean.
  • New coverage: stage JSON round-trip + legacy fallback, notifier stage ops, unified pane (filter / confirm / rumor create / clock-fill), legacy-route aliases, staged search results, Run panel sections, lonelog export/import mapping incl. title-merge, legacy-key import tolerance.
  • macOS device smoke run still pending (create rumor → confirm → clock → done → search → Run panel → export/import).

🤖 Generated with Claude Code

jttaylor63 and others added 15 commits August 22, 2026 07:27
…1 of consolidation epic)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…eads

RumorsPane/TracksPane deleted; the threads subtab now aliases
tasks/rumors/tracks. Also fixed two test files (delete_undo_test.dart,
world_flesh_out_test.dart) that imported the deleted panes directly —
not caught by the brief's lib-only grep. The Track-delete-undo widget
case had no surviving UI to test and was dropped; the Rumor flesh-out
case was migrated onto ThreadsPane's rumor-stage thread flesh-out
button (already shipped in Task 3).
… heading case

- Progress clock + button on ThreadsPane now logs "Clock filled: <title>"
  and shows a matching SnackBar the first time a tap crosses into max,
  porting the fill closure the retired standalone TracksPane had. A
  further tap while already at max does not requalify.
- Add a campaign_io test proving legacy loreseer.rumors.v1/tracks.v1 keys
  parse without throwing and are dropped from the import.
- Sentence-case the New thread / Edit thread dialog headings.
@deepiq2022
deepiq2022 merged commit 0e6d0d4 into main Aug 22, 2026
1 check failed
@deepiq2022
deepiq2022 deleted the feat/tracking-merge branch September 16, 2026 09:53
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