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
@@ -84,7 +84,7 @@ test('compendium CR filter narrows the bestiary', async ({ page }) => {
const countText = async () => (await page.getByText(/results/).textContent()) ?? '';
const before = parseInt((await countText()).replace(/\D/g, ''), 10);
await page.getByLabel('Minimum CR').selectOption({ label: 'CR ≥ 10' });
await page.getByLabel('Min CR').selectOption({ label: 'CR ≥ 10' });
// wait for the count to update
await expect.poll(async () => parseInt((await countText()).replace(/\D/g, ''), 10)).toBeLessThan(before);
});