Skip to content

feat: replace CompendiumBrowserView sheet with CompendiumSelectorSheet (#113)#154

Merged
gwillish merged 3 commits into
mainfrom
claude/mystifying-merkle-77b17a
May 10, 2026
Merged

feat: replace CompendiumBrowserView sheet with CompendiumSelectorSheet (#113)#154
gwillish merged 3 commits into
mainfrom
claude/mystifying-merkle-77b17a

Conversation

@gwillish
Copy link
Copy Markdown
Owner

Summary

  • Replaces the CompendiumBrowserView modal in EncounterBuilderView with CompendiumSelectorSheet, per the M3a redesign plan
  • Threads ContentStore through ContentView and EncounterAndPartyRootView into EncounterBuilderView so the sheet's Import DHPack button works
  • Deletes CompendiumBrowserView.swift — nothing in code references it after this change

What changed

EncounterBuilderView — added contentStore: ContentStore parameter; replaced the NavigationStack { CompendiumBrowserView(...) } sheet with CompendiumSelectorSheet. The selector sheet owns its own NavigationStack and calls dismiss() on selection, so onSelect is a direct pass-through to addAdversary.

ContentView / EncounterAndPartyRootView — pass contentStore down to EncounterBuilderView at both call sites.

CompendiumBrowserView.swift — deleted.

Reviewer notes

  • BrowserTab.swift is now dead code (its only consumer was CompendiumBrowserView). Flagged for a separate follow-up.
  • Environment selection via the compendium sheet is not carried forward here — CompendiumSelectorSheet is adversary-only. Environment browsing from the editor will be addressed in a future issue.

Closes #113

#113)

Wire CompendiumSelectorSheet into EncounterBuilderView as the adversary
selection sheet, replacing the tab-based CompendiumBrowserView modal.
CompendiumSelectorSheet owns its own NavigationStack and dismisses itself
on selection, so the onSelect callback is a direct pass-through to
addAdversary. ContentStore is threaded through from ContentView and
EncounterAndPartyRootView to support the sheet's import flow.

CompendiumBrowserView is deleted; nothing in code referenced it after
this change.

Closes #113
gwillish added 2 commits May 10, 2026 10:30
- Delete BrowserTab.swift (only consumer was CompendiumBrowserView)
- Remove setEnvironment(_:) from EncounterBuilderView (no sheet path calls it now)
- Drop stale CompendiumBrowserView references from AdversaryListView and
  EnvironmentListView header comments

Tracks environment browsing follow-up in #155.
…erView

CompendiumBrowserView was deleted in this branch and modified on main.
Keeping the deletion; the view is fully replaced by CompendiumSelectorSheet.
@gwillish gwillish merged commit 70769a7 into main May 10, 2026
@gwillish gwillish deleted the claude/mystifying-merkle-77b17a branch May 10, 2026 17:33
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.

EncounterEditorView: replace CompendiumBrowserView sheet with CompendiumSelectorSheet

1 participant