Skip to content

Add SOP activity bar chart to workflow dashboard#74

Merged
vepretski merged 1 commit into
mainfrom
codex/run-and-test-the-application
Apr 21, 2026
Merged

Add SOP activity bar chart to workflow dashboard#74
vepretski merged 1 commit into
mainfrom
codex/run-and-test-the-application

Conversation

@vepretski
Copy link
Copy Markdown
Owner

Motivation

  • Provide a quick visual summary of SOP activity on the dashboard so operators can see which SOPs have been executed most often and surface that at the top of the page.

Description

  • Modified src/workflow_product_module.py to add get_sop_run_totals() which aggregates run counts by SOP id.
  • Updated dashboard_html() to render a new "SOP Activity (Bar Chart)" card at the top of the dashboard and compute relative bar widths from the run totals.
  • Added lightweight inline CSS for the bar chart, a per-SOP row layout, and an empty-state message when no runs exist.

Testing

  • Ran pytest -q tests/test_workflow_product_module.py and all tests passed (5 passed).
  • Launched the module with python -m src.workflow_product_module and verified a smoke GET of /dashboard via curl -sSf http://localhost:8080/dashboard returned the updated HTML including the new chart card.

Codex Task

@vepretski vepretski enabled auto-merge (squash) April 21, 2026 16:09
@vepretski vepretski disabled auto-merge April 21, 2026 16:09
@vepretski vepretski enabled auto-merge (rebase) April 21, 2026 16:09
@vepretski vepretski merged commit 0552c9f into main Apr 21, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant