Skip to content

refactor(navigation-sidebar): update padding and imports in NavigationSidebar - #736

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

Make navigation sidebar more narrow

Related Issue(s)

Type of Change

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

What Changed & Why

  • Replace Spacing.micro with Spacing.extraSmall for visual consistency.
  • Remove unused Surface import and add required CompositionLocalProvider.
  • Adjust modifier chain in navigationItemLabelWithMenu to include padding.

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

…nSidebar

- Replace Spacing.micro with Spacing.extraSmall for visual consistency.
- Remove unused Surface import and add required CompositionLocalProvider.
- Adjust modifier chain in navigationItemLabelWithMenu to include padding.
Copilot AI lite review requested due to automatic review settings September 27, 2026 18:11
@haiphucnguyen
haiphucnguyen merged commit a6cd931 into main Sep 27, 2026
10 of 11 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improvements branch September 27, 2026 18:12

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

Preserve actionable-role and selected-state semantics for navigation items.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

This PR narrows the navigation sidebar by refining spacing and replacing the navigation item surface implementation.

Changes:

  • Adjusts sidebar and session-item padding.
  • Replaces Surface with a clipped, clickable Box.
  • Updates imports and layout composition.
File Review findings
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​shell/​NavigationSidebar.kt Two unresolved moderate issues: clickable items lose button semantics (1 vote) and selected-state semantics (3 votes).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

verticalAlignment = Alignment.CenterVertically,
.clip(shape)
.background(color = containerColor, shape = shape)
.clickable(onClick = onClick)
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