Skip to content

🎨 Palette: [UX improvement] HTML 리포트 접근성 및 사용성 개선 - #526

Merged
seonghobae merged 12 commits into
mainfrom
palette/html-report-ux-a11y-13005393850638333940
Aug 4, 2026
Merged

🎨 Palette: [UX improvement] HTML 리포트 접근성 및 사용성 개선#526
seonghobae merged 12 commits into
mainfrom
palette/html-report-ux-a11y-13005393850638333940

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What

  • Render conditionally empty essay-report sections as explicit role="status" regions.
  • Apply font-variant-numeric: tabular-nums to report table cells for more stable numeric comparison.
  • Preserve skip-link reveal on every received :focus, while using :focus-visible for a strong author-supplied focus indicator on the skip link and main landmark.
  • Add a subtle row-hover background without dimming unrelated rows or their text, borders, controls, or focus indicators.
  • Honor prefers-reduced-motion by reducing transitions and animations.
  • Add deterministic regression assertions for the focus, motion, numeric-typography, empty-state, and no-opacity-dimming contracts.
  • Update the authoritative Unreleased changelog fragment and evidence-conservative accessibility guidance.

Boundaries

This is a narrowly scoped standalone-report accessibility refinement. It does not claim full WCAG conformance, scoring validity, fairness, reliability, interchangeability, security certification, or authorization for consequential deployment.

Validation required before merge

  • Exact-head CI, including Python, Rust, fuzz, GPU parity, packaging, release acceptance, and enterprise-readiness jobs
  • Security Scan
  • SAST Semgrep
  • Automated review and repository approval requirements

Created from the Palette task initiated by @seonghobae.

Summary by CodeRabbit

  • Accessibility Improvements

    • Improved empty-state messaging with clearer status semantics.
    • Enhanced skip-link focus visibility and keyboard focus indicators.
    • Added reduced-motion support while keeping report rows readable.
  • Presentation

    • Improved numeric alignment in report tables.
    • Added clearer hover behavior for report rows.
  • Documentation

    • Updated release documentation with the new accessibility and presentation details.
  • Tests

    • Expanded coverage for empty states, focus styling, numeric alignment, and reduced-motion behavior.

- `role="status"`를 사용하여 비어있는 상태(empty-state)가 스크린 리더에서 올바르게 읽히도록 개선
- 숫자 데이터 가독성 향상을 위해 테이블 셀에 `font-variant-numeric: tabular-nums;` 적용
- 테이블 행(row)에 대한 hover 격리(isolation) 및 트랜지션 적용으로 시각적 피드백 제공
- 사용자의 OS 애니메이션 줄이기 설정(prefers-reduced-motion)을 지원하는 미디어 쿼리 추가
- 키보드 내비게이션 사용자를 위한 `main` 태그의 focus outline 처리 및 skip-link의 `focus-visible` 개선
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e1241f4e-205d-4107-a50e-39a409e81e38

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The essay score report renderer now uses status semantics for empty states and adds focus, numeric alignment, hover, and reduced-motion styling. Tests and changelogs document the updated HTML and CSS behavior.

Changes

Essay report accessibility

Layer / File(s) Summary
Empty-state semantics and validation
python/fast_mlsirm/scoring/essay/report_html.py, tests/test_scoring_essay_report_html.py
Empty table and trigger states now use status-role <div> elements. Tests verify the updated markup.
Focus, table, and motion styling
python/fast_mlsirm/scoring/essay/report_html.py, tests/test_scoring_essay_report_html.py, .Jules/palette.md, CHANGELOG.md, docs/changelog.d/essay-score-report-html.md
The report adds focus outlines, tabular numerals, cell wrapping, row transitions, and reduced-motion overrides. Tests and documentation record these behaviors.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes to HTML report accessibility and usability.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch palette/html-report-ux-a11y-13005393850638333940

Comment @coderabbitai help to get the list of available commands.

@seonghobae seonghobae left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jules Please revise this exact head before merge:

  1. Preserve reliable skip-link exposure. Keep .skip-link:focus { top: 8px; } so any actual focus—including assistive-technology or programmatic focus—reveals the link. Use :focus-visible only to refine the visible outline. Do not suppress the main landmark indicator with main:focus { outline: none; }; remove that rule and retain a positive main:focus-visible style.
  2. Remove tbody:hover tr:not(:hover) { opacity: 0.5; }. Applying opacity to entire non-hovered rows dims text, borders, controls, and focus indicators and can reduce effective contrast. The subtle hovered-row background is sufficient; keep its reduced-motion handling.
  3. Add deterministic regression assertions for the CSS contract: the skip link is revealed on :focus, reduced-motion override is present, tabular numerals are present, and row opacity dimming is absent.
  4. Update docs/changelog.d/essay-score-report-html.md so the authoritative Unreleased changelog records the accessibility refinement. Also revise the new .Jules/palette.md learning to avoid unsupported claims such as “extreme eye strain” or layout shifting from proportional numerals.

The role="status" empty-state change and tabular-numeral styling are otherwise acceptable. Keep the PR narrowly scoped and rerun the exact-head CI, SAST, Security Scan, and CodeRabbit review.

Copy link
Copy Markdown
Contributor Author

@jules Exact-head CI on 44d96bd6b16d9595d826f58f2bdc17aeafb44bd3 found one deterministic repository-contract failure after 2,640 tests passed: tests/test_changelog_fragment_contract.py::test_repository_changelog_is_rendered_from_current_fragments. Please run python scripts/render_changelog_fragments.py --update CHANGELOG.md, commit only the generated CHANGELOG.md synchronization, and leave the substantive accessibility changes unchanged. Then allow exact-head CI, Security Scan, SAST, and review gates to rerun.

@google-labs-jules

Copy link
Copy Markdown

@jules Exact-head CI on 44d96bd6b16d9595d826f58f2bdc17aeafb44bd3 found one deterministic repository-contract failure after 2,640 tests passed: tests/test_changelog_fragment_contract.py::test_repository_changelog_is_rendered_from_current_fragments. Please run python scripts/render_changelog_fragments.py --update CHANGELOG.md, commit only the generated CHANGELOG.md synchronization, and leave the substantive accessibility changes unchanged. Then allow exact-head CI, Security Scan, SAST, and review gates to rerun.

요청하신 대로 scripts/render_changelog_fragments.py --update CHANGELOG.md 명령어를 실행하여 CHANGELOG.md를 동기화하고 변경사항을 추가했습니다. 확인 부탁드립니다.

@seonghobae
seonghobae force-pushed the palette/html-report-ux-a11y-13005393850638333940 branch from 1c84ce2 to 079afa7 Compare August 4, 2026 19:15

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.Jules/palette.md:
- Around line 23-25: Correct the dated learning entry in the “Status Semantics
and Numeric Alignment for Reports” section so it is not dated later than the
August 4, 2026 review date; use the actual authoring date, or move the entry to
after August 5, 2026 while preserving its content.

In `@CHANGELOG.md`:
- Line 19: Regenerate CHANGELOG.md from the current fragments using
scripts/render_changelog_fragments.py with the --update option, and commit only
the resulting changelog synchronization. Then rerun the exact-head CI, Security
Scan, SAST, and review gates.

In `@tests/test_scoring_essay_report_html.py`:
- Around line 97-102: Update the assertions in the scoring essay report HTML
test to verify the rendered `.skip-link:focus-visible` rule includes its
keyboard-focus outline indicator, alongside the existing skip-link focus and
accessibility checks.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f34a629d-ad6a-437e-83c7-a4399c7e4881

📥 Commits

Reviewing files that changed from the base of the PR and between 1792eea and 079afa7.

📒 Files selected for processing (5)
  • .Jules/palette.md
  • CHANGELOG.md
  • docs/changelog.d/essay-score-report-html.md
  • python/fast_mlsirm/scoring/essay/report_html.py
  • tests/test_scoring_essay_report_html.py

Comment thread .Jules/palette.md Outdated
Comment thread CHANGELOG.md
Comment thread tests/test_scoring_essay_report_html.py
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.

1 participant