feat(sidebar): differentiate sidebar background and add DnD group reordering#659
Merged
feat(sidebar): differentiate sidebar background and add DnD group reordering#659
Conversation
…rdering - Change sidebar nav bg from gray-900 to gray-800 for contrast vs main content - Darken branch item hover/selected states (gray-700→600) to match new base - Darken search input and sort dropdown backgrounds (gray-800→700) - Add drag-and-drop reordering of repository groups in grouped view - @dnd-kit/core + sortable + utilities for accessible DnD - PointerSensor with 8px activationConstraint (click vs drag distinction) - GripVertical drag handle on each group header - Disabled during search (order irrelevant while filtering) - Persist group order to DB via new app_settings table (migration v27) - GET/PUT /api/sidebar/group-order API route - Optimistic update with server revert on error - Order applies across browsers and devices - Update unit tests for new color values and schema version 27 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
bg-gray-900→bg-gray-800に変更し、メイン領域との視覚的コントラストを確保。ホバー/選択状態・検索入力・ソートドロップダウンも一段階暗く調整。@dnd-kitでアクセシブルなDnD実装(PointerSensor、8px activationConstraint)app_settingsテーブル(キー/バリューストア)を新規作成し、グループ順を保存。GET/PUT /api/sidebar/group-orderAPI経由でスマホや他ブラウザからも同じ順序が適用される。Test plan
npm run test:unit)🤖 Generated with Claude Code