Skip to content

fix(ui): notification rows answer Space; cap desktop theme menu to viewport - #305

Merged
kahme247 merged 1 commit into
mainfrom
bug-hunt/uiux-round2
Nov 5, 2026
Merged

kahme247 merged 1 commit into
mainfrom
bug-hunt/uiux-round2

Conversation

@kahme247

Copy link
Copy Markdown
Collaborator

Round-2 bug-hunt findings (Area 1, UI/UX), verified in a fresh clone at 0.6.0 (7d0ce59).

Bugs (both LOW)

  1. Notification rows ignore Space: components/NotificationList.tsx rows are focusable (tabIndex={open ? 0 : undefined}) and clickable, but onKeyDown handled only Enter — a scratch jsdom test dispatching Space on the focused row opened nothing, while the Enter control opened the session. Every sibling keyboard surface (TabBar, FileExplorer, GitChangesPanel) handles Space. The row also carried no role, so assistive tech did not announce it as actionable.
  2. Desktop theme menu clips on short viewports: components/ThemeSwitcher.tsx set maxHeight: 380 / overflowY: auto only on mobile; desktop had no cap. The fixed-position grid (~289px tall, opening ~40px from the top) clips its bottom themes on viewports shorter than ~330px (landscape phones in desktop mode, split-screen/small windows), with no scrollable ancestor — and keyboard focus moving to a clipped item does not bring it into view.

Fix

  • Notification rows: Space activates the row like Enter (with preventDefault so the page does not scroll) and focusable rows carry role="button".
  • Theme menu: desktop grid capped at calc(100vh - 56px) with overflowY: auto (mobile unchanged at 380px).

Regression test: Space-on-row opens the session in components/NotificationList.test.mjs.

Verification

  • components/NotificationList.test.mjs: 10 pass, 0 fail. tsc --noEmit clean, eslint clean on changed files. next build not run per house rules.

Not covered by open PRs #295–#300 (round-1 UI PR #298 covers MCP workspace leak, settings toggle race, toast/notification keyboard, toast dismiss i18n — not these). No GitHub issue closed, so no Fixes trailer.

…ewport

Notification rows were focusable and clickable but their key handler
answered only Enter, so a keyboard user pressing Space on a focused
row scrolled the page instead of opening the session, and the row
carried no role announcing it as actionable. Space now activates the
row (preventing the scroll) and focusable rows carry role=button.

Separately, the desktop theme menu set a scroll cap only on mobile,
so on short viewports its fixed-position grid clipped the bottom
themes with no way to reach them by mouse or keyboard. Desktop now
caps at calc(100vh - 56px) with overflow auto.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f9313650-8001-4004-95d1-5ac1daf76db6
Commits

Reviewing files that changed from the base of the PR and between 7d0ce59 and abfb92d.

Files selected for processing: 3
  • components/NotificationList.test.mjs
  • components/NotificationList.tsx
  • components/ThemeSwitcher.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@kilo-code-bot

kilo-code-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Code Review Roast 🔥

Verdict: No Issues Found | Recommendation: Merge

Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything.

📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are.

Files Reviewed (3 files)
  • components/NotificationList.tsx - Clean keyboard handling + a11y
  • components/NotificationList.test.mjs - Good regression test for Space
  • components/ThemeSwitcher.tsx - Sensible viewport constraint

Fix these issues in Kilo Cloud


Reviewed by free · Input: 43.6K · Output: 1.9K · Cached: 168.7K

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