Skip to content

feat(library): cross-campaign character library - #330

Merged
deepiq2022 merged 9 commits into
mainfrom
feat/character-library
Aug 13, 2026
Merged

deepiq2022 merged 9 commits into
mainfrom
feat/character-library

Conversation

@deepiq2022

Copy link
Copy Markdown
Contributor

Summary

  • App-global character library (library of COPIES, loreseer.charlibrary.v1 — bestiary posture: not session-scoped, not exported); pure copy helpers libraryCopy/campaignCopy mint fresh ids, drop the Practical-Magic polarityId, and (on campaign import) reset role→pc + clear star, so no journal mention, spine pointer, or magic record dangles across campaigns.
  • Launcher Character library screen: rename, delete-with-undo, two-step "Copy from campaign" picker (tolerant cross-session roster read via sessionCharactersFromPrefs), sheet + role badges on every row.
  • Roster hooks: From library in the new-character dialog (reachable even with zero sheet systems enabled) and Save to library on both row menus; compact-card delete gained the standard undo snackbar.
  • Spec Part 1 of docs/superpowers/specs/2026-08-12-streamline-library-exclusive-capabilities-design.md (PR 1 of 3 in the streamline epic).

Test plan

  • flutter analyze clean
  • flutter test passes (2381 tests)
  • Manual: save a hero to the library in one campaign, import it into another; verify fresh id + pc role
  • Manual: launcher → Character library → rename/delete/undo

🤖 Generated with Claude Code

jttaylor63 and others added 9 commits August 12, 2026 22:10
…ities

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…adges; picker polish

Final-review fixes: hoist the library read above _onAdd's sheet-system
guard so a non-empty library always opens the picker (was unreachable
in a ruleset-none campaign); add a sheetLabel/sheetRoleBadge helper and
show it on library rows + both pickers; capture the library notifier
before the delete-undo snackbar outlives the route; await the library
save before showing its confirmation snackbar; fix two test fixtures
that were hitting the corrupt-decode path instead of a true empty
list; add Cancel to the three SimpleDialog pickers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@deepiq2022
deepiq2022 merged commit 10e8a93 into main Aug 13, 2026
1 check failed
@deepiq2022
deepiq2022 deleted the feat/character-library branch August 13, 2026 03:17
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