Skip to content

fix: clarify policy sync status indicators - #97

Merged
AlexanderLanin merged 3 commits into
eclipse-score:mainfrom
etas-contrib:fix/policy-sync-status-colors
Sep 2, 2026
Merged

fix: clarify policy sync status indicators#97
AlexanderLanin merged 3 commits into
eclipse-score:mainfrom
etas-contrib:fix/policy-sync-status-colors

Conversation

@AlexanderLanin

@AlexanderLanin AlexanderLanin commented Sep 2, 2026

Copy link
Copy Markdown
Member

What and why

Clarifies policy-sync dashboard status indicators so repositories with an open policy PR are shown as an actionable state between noncompliant and compliant. Replacing exclamation marks with red X markers also makes violations and errors unambiguous.

Changes

  • Render open policy PR matrix cells as only an orange Open badge.
  • Use red X markers for changes needed and evaluation or sync errors.
  • Update the policy-sync regression coverage.
Old New
image image

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The open-PR “badge-only” rendering currently falls back to showing an X when the PR URL is missing/invalid, which can contradict the intended status presentation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR refines the policy-sync dashboard’s visual status indicators so “open policy PR” becomes a distinct actionable state, and violations/errors use clearer red X markers instead of !.

Changes:

  • Updated status markers in the policy-sync summary and matrix cells from ! to X for “Changes Needed” and error states.
  • Adjusted matrix rendering to show repositories with an open policy PR as an “Open” badge-only state.
  • Updated CSS to style open PR badges in orange and error statuses in red.
File summaries
File Description
tests/test_policy_sync.py Updates regression assertions for new marker/badge rendering and CSS expectations.
src/generate_repo_overview/templates/styles.css Tweaks policy-sync status and PR badge colors (open → orange; error → red).
src/generate_repo_overview/_policy_sync_html.py Changes rendered markers to X and adds logic to render open policy PR cells as badge-only.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/generate_repo_overview/_policy_sync_html.py Outdated
Comment thread tests/test_policy_sync.py Outdated

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ì like the new way quiet a bit more. Good change.

@AlexanderLanin
AlexanderLanin merged commit 71afbe1 into eclipse-score:main Sep 2, 2026
2 checks passed
@AlexanderLanin
AlexanderLanin deleted the fix/policy-sync-status-colors branch September 2, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants