[claude] Phase 2: move portal health probe to data/loaders (#411) #462
Reference in New Issue
Block a user
Delete Branch "claude/issue-411"
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?
Fixes #411
What
Extracts the last remaining
fetch()call outsidemodules/data/— the portal health probe inmodules/weather.js— intomodules/data/loaders.checkPortalHealth().modules/weather.jsnow delegates the URL probe to the data module and retains only visual update logic (opacity changes, rune ring rebuild).With this change, all
fetch()calls are isolated tomodules/data/, completing the Phase 2 data-layer rule.Data Integrity Audit
checkPortalHealth()indata/loaders.jsTest Plan
node --check app.jspasses.grep -r 'fetch(' modules/ --include='*.js' | grep -v 'modules/data/'returns only the comment incore/state.js(no live calls).Syntax Check
node --check app.js✅ passes