Repository navigation
fix(ui): clear the outstanding UI-review P0s and follow-ups - #463
Merged
Merged
Conversation
Closes out every remaining item from the 2026-07-03 three-way code review instead of leaving them as suggestions: - Search modal focus yank (P0): selecting a result navigated to the chat turn but useModalA11y unconditionally restored focus to the sidebar search trigger on unmount, defeating the call site's restoreFocus:false intent. The hook now takes an optional suppressFocusRestoreRef; SearchModal sets it when navigation owns focus. Lifecycle contract updated to the new signature/structure (StrictMode still-mounted guard unchanged, one line later). - Skills view switcher ARIA (P0): role=tablist/tab promised the ARIA tabs keyboard contract (roving tabindex, arrow keys, linked panels) that plain buttons never implemented. Now honest aria-pressed segmented buttons. - Bot platform nav freeze (P0, amended per existing contract): the contract intentionally locks platform switching while a provider action runs, but all seven rows froze with NO explanation. Kept the lock, added the missing title (当前操作进行中,完成后可切换平台). - Dead filter pills (P2): 全部 / 排序:热门 were disabled buttons visually promising interactivity; now static spans (CSS gains explicit inline-flex so the span keeps the 28px pill geometry). - Motion contract TSX scanner (#431 review P2): strip //-line and /*-block comments before scanning so prose "ease"/"linear" in doc comments cannot false-positive — closes the CSS/TSX asymmetry. Desktop suite 1696/1696.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
把 2026-07-03 三路 code review 在案未修的项全部清掉(不留给别人):
P0 × 3
useModalA11y卸载时无条件恢复焦点,无视调用方restoreFocus:false的意图。hook 新增可选suppressFocusRestoreRef;SearchModal 在导航接管焦点时置位。lifecycle 契约同步(StrictMode still-mounted 保护原样,只是后移一行)。role=tablist/tab承诺了从未实现的 tabs 键盘契约(roving tabindex/方向键/panel 关联)→ 改为诚实的aria-pressed分段按钮。title(「当前操作进行中,完成后可切换平台」),修的是"无解释"这半个缺陷。跟进 × 2
验证
npm --workspace @maka/desktop test: 1696/1696