Skip to content

feat(ui): Enhance UI components with theme toggle and refined dialogs - #814

Merged
haiphucnguyen merged 2 commits into
mainfrom
feature/improvements
Nov 12, 2026
Merged

haiphucnguyen merged 2 commits into
mainfrom
feature/improvements

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

⚠️ First-time contributor? This PR cannot be merged until you sign the CLA.
The CLA Assistant bot will post a comment below — reply to it with exactly:
I have read the CLA Document and I hereby sign the CLA
(Separate from this: all commits must also be signed off with git commit -s — see the Checklist.)

Summary

  • Implement a developer shortcut to easily toggle between light and dark themes for visual auditing.
  • Refine dialog containers (e.g., New Version, Error) to use RAISED elevation for consistent UI depth.

Related Issue(s)

Type of Change

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

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • I signed the CLA (first-time contributors — reply to the CLA Assistant bot comment)
  • 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

- Implement a developer shortcut to easily toggle between light and dark themes for visual auditing.
- Refine dialog containers (e.g., New Version, Error) to use `RAISED` elevation for consistent UI depth.
- Update the MCP server catalog to display the template source (e.g., "From Popular") for better context.
- Added necessary resource keys and translations across multiple locales for source labeling.
Copilot AI lite review requested due to automatic review settings November 12, 2026 00:40

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.

🟡 Changes recommended

Active findings remain: the developer shortcut breaks Cmd/Ctrl+A in text fields, and built-in catalog categories are incorrectly displayed as source metadata.

2 open issues
What changed in this PR

This PR enhances desktop UI auditing and MCP server discovery by adding a developer-only theme toggle, making the MCP catalog caller-configurable, and standardizing dialog card styling.

Changes:

  • Adds a global developer shortcut for toggling between light and dark themes.
  • Refactors the MCP catalog dialog to accept grouped template sections and optional source metadata.
  • Changes update and error dialog cards to use raised elevation.
  • Adds localized MCP source labels across supported languages.
File Description
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​settings/​McpServerManagementSection.kt Supplies built-in MCP template categories to the catalog dialog.
desktop/​src/​main/​kotlin/​io/​askimo/​desktop/​Main.kt Installs the developer theme-toggle shortcut during application startup.
desktop-shared/​src/​main/​resources/​i18n/​messages.properties Adds the English MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_zh_TW.properties Adds the Traditional Chinese MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_zh_CN.properties Adds the Simplified Chinese MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_vi_VN.properties Adds the Vietnamese MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_pt_BR.properties Adds the Brazilian Portuguese MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_ko_KR.properties Adds the Korean MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_ja_JP.properties Adds the Japanese MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_fr.properties Adds the French MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_es.properties Adds the Spanish MCP source label translation.
desktop-shared/​src/​main/​resources/​i18n/​messages_de.properties Adds the German MCP source label translation.
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​mcp/​McpServerCatalogDialog.kt Refactors catalog rendering around caller-provided sections and optional source metadata.
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​common/​theme/​ThemePreferences.kt Adds light and dark theme toggling behavior.
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​common/​keymap/​DevThemeToggleShortcut.kt Implements the global developer keyboard shortcut for theme toggling.
desktop-shared/​src/​main/​kotlin/​io/​askimo/​ui/​common/​dialog/​UpdateDialog.kt Uses raised elevation for update and error dialog cards.

Review effort: Lite

@haiphucnguyen
haiphucnguyen merged commit b5b2708 into main Nov 12, 2026
13 of 14 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improvements branch November 12, 2026 01:30
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