fix(events): the public phase label finds the phase by key (runicnpc D314) #211
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/event-public-phase-label"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
The open question from docs#323, decided as D314 (docs#324): an event's public page never showed its phase label.
eventPublic.phaseLabelmatched a run'scurrent_phaseagainstp.id, butspec.jsvalidates and the engine writes the phase'skey(idis not even a valid phase field). So every live run read "Under way" since Events Phase 14a, UO's events included.phaseLabelfinds the phase bykeyfirst and still acceptsidsecond, for a spec stored in the older shape.key, as real specs are. A unit test covers a UO-shaped spec, theidfallback, key-before-id, and an unknown or missing phase.Generic, and nothing module-specific: UO and Rust events both get their label back.
How it was tested
node --test test/eventPublic.test.js: 29/29.npm test: 2079 pass, 2 fail. The two areroutes.manifest.json/routes.guards.json"in sync with the live Express stack", and they fail identically on a cleanmainin this checkout, because it hasmodules/rustandmodules/uoinstalled and their routes join the live stack. CI has no modules installed, so they are not this change.Checklist
AI-assisted contributions (required)
Claude Code (Claude Opus 5.5). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY