Repository navigation
Check the error table against Chronicle; send bare icon names; refresh docs - #130
Merged
Merged
Conversation
…h docs - CI fetches Chronicle's error-catalog.json and fails when API-CONTRACT.md's error table or update-info.mjs's category set drift from it (also weekly). - The import wizard sends category icons as the bare name Chronicle stores. - TESTING.md: the dashboard's 11 tabs and the journal map viewer replace the removed tab list and Scene-notes map steps, with a player-visibility check. - Docs drift: GET /sync/mappings shape, resolved field-discrepancy rows, worldstate and calendar WS claims, adapters, CONSTANTS.md references. Fixes #91 Fixes #105 Fixes #89 Fixes #88 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WURTwLzEdwXRLKXnnQtFCS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Key Maker · project thread
Fixes #91
Fixes #105
Fixes #89
Fixes #88
Security implication: none. CI check and docs; the icon change only normalises a value Chronicle already normalises.
Consumer-verified: Chronicle
internal/plugins/foundry_vtt/error-catalog.json(the check reads it live); Chronicleinternal/sanitize/icon.goNormalizeIcon(style tokensfa-solid/fas/fa-regular/far/fa).Foundry compatibility: n/a for runtime behaviour (the wizard sends a different string; nothing renders differently).
node --check scripts/import-wizard.mjspasses.Mockup: n/a. Nothing on screen changes.
What this changes
check-error-catalog.yml, fetches Chronicle'serror-catalog.jsonfrommainon every PR, push to main and weekly. It fails when API-CONTRACT.md's error table (codes, categories, HTTP status) orupdate-info.mjs'sCHRONICLE_CATEGORIESdrift from it, or whenschemaVersionchanges. The comparison is pure (tools/_error-catalog-check.mjs) and unit-tested offline. A test also proves the real table and category set still parse, so the live check can't pass by reading nothing. The "implicit schema v1, no schema_version field" line was already wrong: the catalog carries"schemaVersion": 1.fa-circle, notfa-solid fa-circle, and strips a leading style token before sending (scripts/_icon-name.mjs). The issue's third bullet (show Chronicle's 400 on the form) is moot: the new-category form has no icon field, so the icon is always the default and an icon 400 can't happen.dm_onlymarker, user-restricted items, hidden tokens and fog never reach a player, checked in the viewer and in the page flags. It also replaces the hand-written-adapter checks with generic-adapter ones.GET /sync/mappingsshows the realSyncMappingshape plus paging (checked against Chronicle's sync handler).calendar.*WS messages" claim are corrected (Chronicle'sroutes.gomaps them;calendar-sync.mjsroutes them).generic-adapter.mjsexists).file:linerefs become identifier names, and its scene wording is fixed.Why
These are housekeeping issues from the September inventory. TESTING.md has to be current before the live Foundry v14 session in #94.
Found while doing this and filed rather than fixed: #129. The import wizard still has a scene-to-map linking step, which the journal map viewer no longer uses. Changing it is visible, so it needs a mockup.
Test plan
node --test tools/test-*.mjs: 1008 tests, 1008 pass (addstest-error-catalog.mjs, 9 tests, andtest-icon-name.mjs, 5 tests)node tools/check-error-catalog.mjspasses against the live catalog and against a local Chronicle checkoutnode tools/check-package-descriptor.mjspassesTenet self-check
Generated by Claude Code