Skip to content

feat: simplify dashboard score and repair sections #255

Closed

Description

@Jammy2211

Heart Score and Resusitate sections

Type: feature
Target: @PyAutoHeart

Original request

its good! The Stale: score 65 box seems uncessary now. I think we have a new header with the same size and font as Observed checks, called "Score", Which gives the score and then has the Why this score: 65/100
Start at 100; subtract these capped penalties, with a floor of 0. The verdict is determined by the reasons, not the score.
Missing workspace test report: −10 (1 × 10, cap 10)
Missing install verification: −10 (1 × 10, cap 10)
Missing release validation: −15 (1 × 15, cap 15)
0 release blockers · 0 warnings · 3 evidence gaps stuff. I think we then have a header called "Resusitate" Which has the Fix Heart systematically and Refresh all missing evidence boxes, then we have Evidence gaps as it is. I think the clickable prompt button for "Fix Heart Systematically" and "Refresh all missing evidence" can be to the right as an icon of these, like it is for the main dashboard

Approved plan

  • Keep the Observed checks grid first.
  • Replace the large verdict/score box with an h2 Score section containing the score, small readiness verdict, existing expandable penalty explanation and reason counts.
  • Add an h2 Resusitate section with labeled repair rows and accessible right-aligned clipboard icons; preserve view/select prompt disclosures and clipboard failure feedback.
  • Keep Evidence gaps and the existing warning/blocker content below the repair section.

Detailed implementation

  • Edit heart/dashboard.py: _render_html section structure and metadata placement; _html_actions repair rows with _copy_btn(icon=True); responsive CSS. Retain _html_score data and computation, snapshot provenance and freshness notice.
  • Update existing dashboard HTML tests for hierarchy, icon semantics, copy payloads and fallback disclosures. Use synthetic fixture data. Validate targeted tests, full Heart suite, and tenant-firewall check; browser-check if available.
  • No readiness, CLI, Markdown or JSON contract change. One organ repo; no downstream scientific smoke required.
  • Branch: feature/heart-score-resusitate. Heart canonical checkout clean on main; no conflicting claim. Implementation through start_library / ship_library.

Approval

User replied "I approve" on 2026-10-01 to the above layout and the development-only override for Heart RED release validation FAILED (stage integrate). Scope: this task's implementation and development shipping; no merge or release.

Activity

  1. Jammy2211 commented on Oct 1, 2026

    @Jammy2211
    ContributorAuthor

    Summary

    Replace the large verdict/score box with a Score section matching the Observed checks heading. It contains the numeric score, small readiness text, existing expandable penalty breakdown and reason counts.

    Add Resusitate beneath it. The two repair actions use labeled rows with right-aligned clipboard icons; clicking a label reveals the complete prompt for viewing or manual copying. Evidence gaps stays below these actions.

    API Changes

    None. Readiness calculation, prompt payloads, and CLI/Markdown/JSON contracts remain unchanged.

    Test Plan

    • Full Heart suite: 1,105 passed in 67.31s.
    • Tenant-firewall gate: passed. In-session diff review and git diff --check passed. No downstream scientific smoke applies to this HTML-only change.
    • HTML coverage checks section order, penalty values, readiness text, icon labels, unchanged copy payloads and view/select fallback.
    • Local preview generated. Browser verification unavailable: Chromium startup fails with sandbox setsockopt: Operation not permitted; Playwright installation also blocked by network access.

    Human development override

    The user replied "I approve" on 2026-10-01 to this task's layout plan and the development-only Heart RED override. The sole RED reason remains release validation FAILED (stage integrate) in the cached authoritative verdict dated 2026-10-01T08:11:41.393196+00:00.

    Authorization covers this task's development commit, push and pending-release PR. No merge or release is authorized. This presentation change does not repair the release-validation failure.

    Closes #255

  2. Jammy2211 commented on Oct 1, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    PR #256 merged as 6463c80 after both Python CI jobs passed pytest and tenant firewall on 4e87903 (Actions run 36837833217). Local suite: 1105 tests passed.

    Score and Resusitate sections and right-aligned repair copy icons are complete. Readiness and non-HTML contracts are unchanged. No downstream migration required.

    Human $prm also rebuild it authorized merge and the web rebuild. Heart Health was manually dispatched on the merged commit: https://github.com/PyAutoLabs/PyAutoHeart/actions/runs/36838075304 (in progress). No package release performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions