Phase 2: full compendium across all categories + PF2e data

- Scraped PF2e reference from Archives of Nethys ES into public/data/pf2e/
  (spells, creatures, feats, equipment, weapons, armor, ancestries, heritages,
  backgrounds, archetypes, actions, conditions, deities) via scripts/fetch_pf2e.ts
- Registry-driven compendium: system toggle + per-category nav + generic filters
- 5e expanded: weapons, armor, feats, conditions added alongside spells/monsters/items
- PF2e data served as static assets (fetched, not bundled) for fast native parse
- Cross-links: add spell->spellbook / item->inventory to a campaign character;
  add monster/creature -> open encounter
- Condition tooltips in combat sourced from the conditions glossary
- Tests: registry filter unit tests, compendium e2e (browse + cross-link)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-08 01:00:40 +02:00
parent 0b356adf82
commit 379b79e6c4
28 changed files with 997 additions and 267 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ test('full core flow: campaign → character → dice → combat → compendium'
// --- Compendium ---
await page.getByRole('link', { name: 'Compendium' }).click();
await expect(page.getByText(/results/)).toBeVisible();
await page.getByPlaceholder('Search monsters…').fill('goblin');
await page.getByPlaceholder('Search bestiary…').fill('goblin');
await page.getByRole('button', { name: /^Goblin/ }).first().click();
await expect(page.getByRole('heading', { name: 'Goblin', exact: true })).toBeVisible();
});