Skip to content

refactor(ui): adjust spacing and icon usage in navigation sidebar - #737

Merged
haiphucnguyen merged 1 commit into
mainfrom
feature/improvements
Sep 27, 2026
Merged

haiphucnguyen merged 1 commit into
mainfrom
feature/improvements

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Summary

UX improvements

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

  • 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.

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

- 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.
Copilot AI lite review requested due to automatic review settings September 27, 2026 19:11
@haiphucnguyen
haiphucnguyen merged commit 6b87b36 into main Sep 27, 2026
9 of 11 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improvements branch September 27, 2026 19:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 Medium severity

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,
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.

2 participants