fix(db_ui): hoist rpc() definition above component scripts #26
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_db!26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_db_rpc_scope"
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?
Summary
Component scripts in hero_db_ui templates (e.g. stats_card.html, database_manager.html) call
rpc(...)andrefreshStats()at the end of their inline script blocks, but therpc()function was defined later in base.html — after the content block. Result:ReferenceError: rpc is not definedon every page load. Also drops the broken<link href="/hero-bootstrap-bridge.css">from base.html and login.html.Related Issue
Bootstrap-bridge link removal is part of hero_archipelagos#197 (cross-repo sweep).
Changes
rpc()andgetSelectedDb()to an early<script>block in base.html./hero-bootstrap-bridge.csslink from base.html and login.html.Test Results
cargo build, smoke test in browser — refreshStats/loadDatabases now run without ReferenceError. Playwright
qa_fix_verificationspec passes.4ffbba64bb7e4b62482d