UI improvements tracker #32
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#32
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?
Purpose
This issue tracks incremental UI improvements to the hero_proc dashboard. Each improvement is documented as a comment below, and can be addressed independently.
Current Issues
1. Actions tab: duplicate entries and missing metadata
The Actions table currently shows confusing duplicate entries. For each service, there are two rows — one for the service itself and one for a
_actionsuffix variant:Problems:
*_action(e.g.,hero_os_server_action) while others show both the service and its_action(e.g.,hero_aibroker_server+hero_aibroker_server_action)hero_inspector_serverandhero_inspector_uishow a type column value (process) — all others are blankhero_aibroker_serverandhero_aibroker_server_actionis supposed to beExpected: Each action should have a clear identity. The
typecolumn should always be populated. If_actionvariants are generated automatically from service registrations, this should be explained or they should be hidden/merged.2. Runs tab: missing action name column
The Runs tab shows:
But there is no column showing which action was run. The run ID alone gives no indication of what script or action produced the run. Users must click into each run to find out what it was.
Expected: Add an "Action" column showing the action name (e.g.,
startup.hero_runner.install_and_run) so users can see at a glance what each run corresponds to.3. Runs tab: all runs stuck at "starting" status
Runs that are actively executing (or have completed) show status
startinginstead ofrunningorcompleted. The status never transitions beyondstarting.Expected: Run status should progress through:
starting→running→completed(orfailed). The status should reflect the actual state of the underlying process.How to Use This Issue
New UI improvements will be added as comments below. Each comment should include:
Addressed all three issues in commit
7b5386a:1. Actions tab: duplicate entries and missing metadata
_actionsuffix entries (auto-generated byquick_service) from the Actions table2. Runs tab: missing action name column
Actioncolumn to the Runs tablelist_runs_with_job_counts()SQL to JOIN throughrun_jobs → jobsand collectGROUP_CONCAT(DISTINCT j.action)run.listRPC response now includesaction_namesarray per run3. Runs tab: runs stuck at "starting"
Runningvariant toRunStatusenumcheck_run_completions()now transitions runs fromStarting → Runningwhen any job is actively executingRunningstate are also checked for completion (not justStarting)finished_attimestamp is only set when reaching a terminal stateFiles changed:
crates/hero_proc_lib/src/db/runs/model.rs— RunStatus enum + SQL querycrates/hero_proc_lib/src/db/factory.rs— return type updatecrates/hero_proc_server/src/rpc/run.rs— RPC response + status parsingcrates/hero_proc_server/src/supervisor/mod.rs— status transition logiccrates/hero_proc_ui/static/js/dashboard.js— UI renderingcrates/hero_proc_ui/templates/index.html— table headerResolved
All 3 sub-issues addressed:
_actionsuffix duplicates, shows "one-shot" badge — commit7b5386aGROUP_CONCAT(DISTINCT j.action)— commit7b5386aRunningvariant toRunStatusenum with supervisor transition logic — commit7b5386aClosing.