Repository navigation
refactor(ui): adjust spacing and icon usage in navigation sidebar - #737
Merged
Merged
Conversation
- reduce vertical spacing in chat message list to improve message density. - replace folder icon with Workspaces icon to better represent project navigation. - add currentProjectId parameter to navigationSidebar to highlight the active project. - update pinned project selection logic to use isSelected flag for accurate UI state. - adjust session list start spacing for consistent layout. - clear active session on navigation changes to avoid stale state.
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Address stale project highlighting and clear the active session when navigating from the new-project dialog.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Refactors navigation UX by improving spacing, icons, project highlighting, and session cleanup.
Changes:
- Reduces chat and sidebar spacing.
- Uses the Workspaces icon for pinned projects.
- Propagates project selection state and clears sessions during project navigation.
| File | Summary |
|---|---|
desktop/src/main/kotlin/io/askimo/desktop/shell/NavigationSidebar.kt |
Forwards active project state; selection should be limited to project-detail views. |
desktop/src/main/kotlin/io/askimo/desktop/Main.kt |
Updates project navigation and session state; new-project navigation also needs to clear the active session. |
desktop-shared/src/main/kotlin/io/askimo/ui/shell/NavigationSidebar.kt |
Adds project highlighting, icon, and spacing updates; stale project selection can persist outside project detail. |
desktop-shared/src/main/kotlin/io/askimo/ui/chat/ChatMessageList.kt |
Reduces message-list spacing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| showNewProjectDialog = true | ||
| }, | ||
| onSelectProject = { projectId -> | ||
| sessionManager.clearActiveSession() |
| pinnedState = sessionsViewModel, | ||
| sessionsViewModel = sessionsViewModel, | ||
| currentSessionId = currentSessionId, | ||
| currentProjectId = currentProjectId, |
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
UX improvements
Related Issue(s)
Type of Change
What Changed & Why
How to Test
./gradlew testScreenshots / Recordings (if applicable)
Checklist
main./gradlew spotlessApplyand./gradlew detektlocally./gradlew testand all tests passgit commit -sAdditional Notes