Skip to content

fix(desktop): readable dropdown chevrons and a sensible export folder - #260

Merged
easyhooon merged 2 commits into
mainfrom
fix/desktop-dropdown-and-export-folder
Oct 29, 2026
Merged

easyhooon merged 2 commits into
mainfrom
fix/desktop-dropdown-and-export-folder

Conversation

@easyhooon

Copy link
Copy Markdown
Owner

Summary

Two small desktop UI fixes found while checking iOS support.

  • Dropdown chevron: pickers (device, app, direction, status, tag) and the detail pane's Export button showed a text ▾ at caption size in the tertiary color. It was too small to read as a dropdown. They now draw a 9×5 dp chevron (DropdownChevron) in the secondary color; the Export button uses the button's own color. QuietButton gains a dropdown flag for buttons that open a menu.
  • Export folder: the save dialog set no directory, so it opened in the app's working directory. For an installed macOS app that is /Applications, and exports landed there. It now opens in the last folder exported to. The first time, or when that folder is gone, it opens ~/Downloads, falling back to the home folder. The last folder is stored in DesktopSettings as lastExportDirectory.

Verification

  • ExportStartDirectoryTest covers three cases: the first export, a later export, and a removed folder falling back to Downloads and then home.
  • ./gradlew :dari-desktop-app:test passes.
  • Launched the built app on macOS: the chevrons in the title bar and filter bar are clearly visible.
  • Not verified by hand: the save dialog opening in Downloads and then in the last folder.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 69cc72e and 6955a6d.

Files selected for processing: 7
  • dari-desktop-app/src/main/kotlin/com/easyhooon/dari/desktop/app/DesktopSettings.kt
  • dari-desktop-app/src/main/kotlin/com/easyhooon/dari/desktop/app/Main.kt
  • dari-desktop-app/src/main/kotlin/com/easyhooon/dari/desktop/app/ui/App.kt
  • dari-desktop-app/src/main/kotlin/com/easyhooon/dari/desktop/app/ui/Components.kt
  • dari-desktop-app/src/main/kotlin/com/easyhooon/dari/desktop/app/ui/DetailPane.kt
  • dari-desktop-app/src/main/kotlin/com/easyhooon/dari/desktop/app/ui/ExportDialog.kt
  • dari-desktop-app/src/test/kotlin/com/easyhooon/dari/desktop/app/ui/ExportStartDirectoryTest.kt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@easyhooon
easyhooon marked this pull request as ready for review October 29, 2026 12:51
@easyhooon
easyhooon merged commit 75fd23c into main Oct 29, 2026
6 checks passed
@easyhooon
easyhooon deleted the fix/desktop-dropdown-and-export-folder branch October 29, 2026 12:52
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.

1 participant