Skip to content

feat(viewer): ErrorState non-color cues (C09 L81.15) - #283

Merged
KooshaPari merged 4 commits into
mainfrom
feat/sl-w34-aesthetic
Jul 14, 2026
Merged

feat(viewer): ErrorState non-color cues (C09 L81.15)#283
KooshaPari merged 4 commits into
mainfrom
feat/sl-w34-aesthetic

Conversation

@KooshaPari

Copy link
Copy Markdown
Owner

Summary

  • ErrorState adds warning glyph + aria-invalid non-color cues (C09 L81.15).
  • VISUAL_SPEC documents the L81.15 non-color rule.

Test plan

  • viewer compiles
  • VISUAL_SPEC updated

Pair danger color with glyph, alert role, and aria-invalid.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@KooshaPari, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 95f6081d-adfb-4485-a181-a86b5bbf02ce

📥 Commits

Reviewing files that changed from the base of the PR and between 0552178 and 5ed5e64.

📒 Files selected for processing (3)
  • CHANGELOG.md
  • crates/sl-viewer/src/async_states.rs
  • docs/VISUAL_SPEC.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/sl-w34-aesthetic
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch feat/sl-w34-aesthetic

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@KooshaPari
KooshaPari merged commit 50bd71a into main Jul 14, 2026
51 of 53 checks passed
class: "sl-error-state",
role: "alert",
"aria-live": "assertive",
"aria-invalid": "true",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: aria-invalid="true" on a div with role="alert" is invalid ARIA

aria-invalid is only valid on form controls. The role="alert" already provides the necessary accessibility announcement for error messages. This attribute should be removed or applied to an actual form input element.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

Comment thread docs/VISUAL_SPEC.md

Do **not** use `--lc-orange` as the sole error signal (orange = live). Do **not** use cobalt for failure text.

**Non-color cues (L81.15):** every recoverable error panel (`ErrorState`) must pair color with at least one of: a warning glyph (`aria-hidden`), a distinct left border, `role="alert"`, and/or `aria-invalid="true"`. Color alone is never sufficient.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SUGGESTION: Clarify that aria-invalid must be on a form control

The spec lists aria-invalid="true" as an acceptable non-color cue without specifying it must be on a form control element. This could lead to future implementations that place it on non-form elements (as seen in this PR's ErrorState div), which is invalid ARIA.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
WARNING 1
SUGGESTION 1
Issue Details (click to expand)

WARNING

File Line Issue
crates/sl-viewer/src/async_states.rs 222 aria-invalid="true" on div with role="alert" is invalid ARIA

SUGGESTION

File Line Issue
docs/VISUAL_SPEC.md 171 Lists aria-invalid="true" as acceptable without specifying form-control context
Files Reviewed (3 files)
  • CHANGELOG.md - No issues
  • crates/sl-viewer/src/async_states.rs - 1 issue
  • docs/VISUAL_SPEC.md - 1 issue

Fix these issues in Kilo Cloud


Reviewed by step-3.7-flash · Input: 133.3K · Output: 10.9K · Cached: 244.9K

@KooshaPari
KooshaPari deleted the feat/sl-w34-aesthetic branch August 12, 2026 08:59
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