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:
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user