Migrate hero_proc_admin API tab to <hero-api-docs> framework component #107
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_proc#107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Context
hero_admin_libnow ships a reusable<hero-api-docs>web component (commit 630f702 in hero_website_framework).hero_proc_adminstill ships a hand-rolled API tab — the goal here is to delete the duplicate and consume the framework component.Parent: hero_website_framework#4 — that issue's audit identified this migration as a follow-up.
Current state (audited 2026-05-19)
crates/hero_proc_admin/templates/index.html(line 667+) defines atab-apipane with a hand-rolledapi-accordion+api-detail-panelsplit.crates/hero_proc_admin/static/js/dashboard.jscontains the loader logic that fetches the OpenRPC spec, builds the accordion, and renders method details.crates/hero_proc_admin/templates/base.html:168already consumes the framework's<hero-connection-status>via/static/shared/js/connection-status.js, so the shared-asset wiring is in place — only the API tab needs swapping.Migration
<div class="tab-pane" id="tab-api">intemplates/index.htmlwith the web component:templates/base.htmlnext to the existingconnection-status.jsinclude:static/js/dashboard.js(search forapi-accordion,api-detail-panel,loadApiDocs).static/js/api-docs.*if one exists (current audit shows none).openrpc.jsonis reachable at the expected path under the admin router.Acceptance
hero_proc_adminrenders via<hero-api-docs>only — no local accordion code remains.#api/method/<name>,#api/type/<Name>) still work via the component'shash-prefixattribute.Out of scope
hero_proc_admin's richer source-tree + splitter UIs stay local for now; the framework's<hero-logs-viewer>/<hero-jobs-viewer>(commits f6af8ab and 9d80616) are the baseline for new admin UIs.hero_website_lib#4hero_proc_adminto<hero-api-docs>web component #108Duplicate of #108. Same task; work landed there (commit 32af77c). Closing this one.