feat: Spotlight command palette, sidebar settings gear, and UI improvements#57
Merged
feat: Spotlight command palette, sidebar settings gear, and UI improvements#57
Conversation
- Fix compilation error in css_selector_test.go (html package shadowing) - Fix test expectations: change literal \n to actual newlines - Fix CSS descendant selector to respect ancestor relationships - Fix XML attribute matching to handle any attribute order - Fix nested XML extraction test to properly count elements - Add support for element.class selectors (e.g., div.header) - Add support for double quotes in XPath expressions All tests now passing.
- Add golang-design/hotkey library for true system-wide shortcuts - Change hotkey to Cmd+Shift+Space (macOS) / Ctrl+Shift+Space (Win/Linux) - Update window height to 480px (80px search + 400px results) - Redesign results panel as unified glassmorphism component - Add smooth transitions for panel appearance - Update tray menu label to reflect new hotkey
- Use Carbon TextInput component instead of raw input - Apply Carbon Design System CSS tokens and variables - Match CommandPalette layout with header/body sections - Add keyboard shortcut hints (kbd elements) - Use consistent border-radius, padding, and spacing - Update selected/hover states to match Carbon patterns
…ibility - Add settings gear icon to bottom-right of sidebar with click handler - Sidebar now collapses to mini-width (48px) instead of hiding completely - Settings icon remains visible in collapsed mode for easy access - Fix main window title bar to be visible (was hidden with MacTitleBarHiddenInset) - Main window now shows proper title bar with DevToolbox title
Resolved conflicts: - .entire/.gitignore: deleted (matches main) - frontend/bindings/.../eventdata.d.ts: kept spotlight events - frontend/bun.lock: accepted main version - frontend/package.json: merged devDependencies (kept both esbuild and vitest packages) Incorporated changes from main: - CI workflow improvements - New test files and vitest config - Prettier ignore updates - Wails bindings updates
- Fix spotlight.html: add proper DOCTYPE, head/body structure - Run Prettier on all modified files - Fix CI formatting check failures
Minimum allowed line rate is |
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
This PR introduces several UI and UX improvements to DevToolbox:
🎯 Major Features
1. Spotlight Command Palette (Global Hotkey)
Cmd+Shift+Space(macOS) orCtrl+Shift+Space(Windows/Linux)2. Settings Icon in Sidebar
3. System Tray Improvements
4. Window Title Bar Fix
MacTitleBarHiddenInsetto visible title bar withAppearsTransparent: false🔧 Technical Changes
Backend (main.go):
github.com/wailsapp/wails/v3/pkg/iconsimport for tray iconsspotlight:closed,spotlight:close,spotlight:command-selected)Frameless: true,Hidden: true, and macOS collection behaviorsFrontend:
Sidebar.jsx: Added settings gear icon with click handlerApp.jsx: Moved SettingsModal from TitleBar to App level, addedisSettingsOpenstateApp.css: Updated sidebar styles for mini mode and footer positioningTitleBar.jsx: Removed SettingsModal (now in App)🎨 UI/UX Changes
📁 Files Modified
main.go- Tray icons, spotlight window, title bar fixfrontend/src/App.jsx- Settings modal managementfrontend/src/App.css- Sidebar mini mode stylesfrontend/src/components/Sidebar.jsx- Settings gear iconfrontend/src/components/TitleBar.jsx- Removed SettingsModal🧪 Testing