Shelf: carry-forward pins + session navigation (Workbench access, session switcher) #254
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The manual carry-forward spine for the Session Reference Shelf (#235) — the mechanism #247/#248 build on. Agreed design from a detailed discussion.
Pin / carry-forward model
A pinned card is an interval over the campaign's session timeline (ordered by scheduled date; proposed sessions count as future, undated ones sort to the end):
[A, ∞)→ the card appears on A and every later session automatically, including sessions created later. Forward only.[A, D](inclusive). Sessions after D lose the card even if already materialized; the removed future cards' tonight-notes are appended to the wiki entry's GM notes (tagged as from an unpinned card). Generated-card notes on removed future sessions are dropped.Rules
Navigation
Storage sketch
shelf_pinstable (campaign-scoped): content ref + start session + optional end session; "covers session S" computed live by scheduled-date order.shelf_cardsgainspin_id(carried instance vs one-off) +notes_harvested_at.shelf_cards (session_id, lore_entry_id).Phasing
Relates to #235; underpins the carry-forward parts of #247 and #248.
PR 1 (core) merged — #255. Live on
main+ dev:ShelfPininterval model + migrationb7c8d9e0f1a2, lazy carry-forward materialization (by scheduled-date order, canceled sessions skipped), pin/unpin with unpin note-migration, live-wiki rendering, one-wiki-card-per-session uniqueness.Remaining — PR 2 (lifecycle): completion note-harvest (wiki cards' tonight-notes → GM notes when a session completes, hooking both
complete_sessionand the auto-complete task), cancel handling (preserve session-specific cards, exclude from carry-forward), and the "Copy cards from another session…" action. Closing #254 with PR 2.