feat: add multiple productivity features and UI enhancements #68

Merged
naomi merged 21 commits from feat/stuffy-stuff into main 2026-01-25 22:19:01 -08:00
Owner

Summary

This PR adds a collection of productivity features and UI enhancements to improve the Hikari Desktop experience:

New Features

  • Clipboard History (#25) - Track and manage copied code snippets with language detection, search, filtering, and pinning
  • Quick Actions Panel (#15) - Buttons for common quick actions like "Review PR", "Run tests", "Explain file", with customizable actions
  • Git Integration Panel (#24) - View current branch, changed/staged files, quick git actions (commit, push, pull), and branch management
  • Session Import/Export (#8) - Export conversations to JSON and import previously saved sessions
  • Snippet Library (#22) - Save and reuse common prompts with categories and quick insert
  • Session History (#14) - Auto-save conversations with browsable history and search
  • High Contrast Mode (#20) - Accessibility theme with improved visibility
  • Minimize to System Tray (#11) - System tray support with right-click menu

UI Enhancements

  • Trans-pride gradient theme applied across UI elements
  • Copy button added to code blocks
  • Linter formatting and eslint-disable comments for cleaner code

Closes

Closes #8
Closes #11
Closes #14
Closes #15
Closes #20
Closes #22
Closes #24
Closes #25
Closes #34
Closes #35
Closes #36
Closes #37
Closes #69
Closes #70

Test Plan

  • Verify clipboard history captures code from code block copy buttons
  • Verify clipboard history captures manually selected text from terminal
  • Test snippet library CRUD operations and insertion
  • Test quick actions panel with default and custom actions
  • Test git panel shows correct status, branch, and performs git operations
  • Test session history auto-save and restore
  • Test session import/export roundtrip
  • Verify high contrast mode provides adequate contrast
  • Test minimize to tray functionality and tray menu
  • Verify trans-pride gradient theme displays correctly in all themes

This PR was created with help from Hikari~ 🌸

## Summary This PR adds a collection of productivity features and UI enhancements to improve the Hikari Desktop experience: ### New Features - **Clipboard History** (#25) - Track and manage copied code snippets with language detection, search, filtering, and pinning - **Quick Actions Panel** (#15) - Buttons for common quick actions like "Review PR", "Run tests", "Explain file", with customizable actions - **Git Integration Panel** (#24) - View current branch, changed/staged files, quick git actions (commit, push, pull), and branch management - **Session Import/Export** (#8) - Export conversations to JSON and import previously saved sessions - **Snippet Library** (#22) - Save and reuse common prompts with categories and quick insert - **Session History** (#14) - Auto-save conversations with browsable history and search - **High Contrast Mode** (#20) - Accessibility theme with improved visibility - **Minimize to System Tray** (#11) - System tray support with right-click menu ### UI Enhancements - Trans-pride gradient theme applied across UI elements - Copy button added to code blocks - Linter formatting and eslint-disable comments for cleaner code ## Closes Closes #8 Closes #11 Closes #14 Closes #15 Closes #20 Closes #22 Closes #24 Closes #25 Closes #34 Closes #35 Closes #36 Closes #37 Closes #69 Closes #70 ## Test Plan - [ ] Verify clipboard history captures code from code block copy buttons - [ ] Verify clipboard history captures manually selected text from terminal - [ ] Test snippet library CRUD operations and insertion - [ ] Test quick actions panel with default and custom actions - [ ] Test git panel shows correct status, branch, and performs git operations - [ ] Test session history auto-save and restore - [ ] Test session import/export roundtrip - [ ] Verify high contrast mode provides adequate contrast - [ ] Test minimize to tray functionality and tray menu - [ ] Verify trans-pride gradient theme displays correctly in all themes --- *✨ This PR was created with help from Hikari~ 🌸*
hikari added 12 commits 2026-01-25 17:46:53 -08:00
Add ability to minimize Hikari to the system tray when closing the window
instead of fully exiting. When enabled, clicking the close button hides
the window and shows a tray icon with "Show Hikari" and "Quit" options.

- Add tray module with system tray setup and menu handling
- Add minimize_to_tray config option in settings
- Handle window close event to hide instead of close when enabled
- Add tray icon click handler to restore window
- Add HighContrast variant to Theme enum in Rust backend
- Add high-contrast CSS theme with pure black/white for max contrast
- Use bright saturated colors for syntax highlighting
- Add High Contrast button to theme selector with accessibility tooltip
- Follows WCAG guidelines for contrast ratios

Closes #20
- Add Rust backend for session persistence using tauri-plugin-store
- Create SessionHistoryPanel component for browsing saved sessions
- Implement debounced auto-save (2s delay) when messages are added
- Add session search, resume, and delete functionality
- Add clock icon button in StatusBar to access session history

Closes #14
Adds a convenient copy-to-clipboard button on all code snippets in
markdown output. Each code block now displays:
- Language label in the header
- Copy button with visual feedback ("Copied!" for 2 seconds)

Refs #68
- Add JSON export with full session metadata for backup/restore
- Add Markdown export with formatted conversation history
- Add import capability for previously exported sessions
- Add tauri-plugin-fs for file system operations
- Add export dropdown menu and import button to session history panel
- Add Rust backend with persistent storage for snippets
- Include 8 default snippets across categories (Code Review, Debugging, Testing, etc.)
- Create SnippetLibraryPanel component with category filtering
- Support create/edit/delete operations for custom snippets
- Default snippets can be edited but not deleted
- Add snippet button to InputBar for quick access

Closes #22
- Add HTML export with dark/light theme support and styled message types
- Add PDF export via print-optimized HTML opened in browser
- Include metadata toggle option for all export formats
- Add export buttons to SessionHistoryPanel dropdown

Closes #34
- Add Rust backend for git operations (status, diff, branches, commit, push, pull, fetch, stage, unstage, discard, create branch)
- Add GitPanel.svelte component with three tabs: Changes, Branches, History
- Integrate git button into StatusBar with link icon
- Use consistent accent color theming for buttons
- Add Rust backend for managing quick actions with persistent storage
- Create QuickActionsPanel component with edit/delete functionality
- Add quickActions store for frontend state management
- Move Actions and Snippets buttons to input controls row
- Include 6 default quick actions: Review PR, Run Tests, Explain File,
  Fix Error, Write Tests, and Refactor
- Support custom quick action creation and management

Closes #15
- Add global CSS classes for trans gradient styling (btn-trans-gradient,
  input-trans-focus, icon-trans-hover)
- Update all primary action buttons to use trans gradient
- Add trans-pride glow effect to character panel based on state
- Update StatusBar icon buttons with trans gradient hover
- Update chat input focus border with trans gradient glow
- Update stop button to use trans gradient
Implements issue #25 - Clipboard History feature that tracks copied
code snippets with language detection, search, and filtering.

Backend (Rust):
- New clipboard.rs module with persistent storage via tauri-plugin-store
- Commands: capture, list, delete, toggle pin, clear, search, update language
- Auto-deduplication and max history size (100 entries)
- Pinned entries stay at top and persist through clear

Frontend (Svelte/TypeScript):
- Clipboard store with filtering, search, and language detection
- ClipboardHistoryPanel component with search, language filter, pin/delete
- Clipboard button added to InputBar next to Snippets/Actions
- Auto-capture from code block copy buttons
- Auto-capture from manual text selection in terminal
- Insert snippets directly into input field

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
style: apply linter formatting and eslint-disable comments
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 55s
CI / Lint & Test (pull_request) Successful in 14m40s
CI / Build Linux (pull_request) Successful in 19m9s
CI / Build Windows (cross-compile) (pull_request) Successful in 28m34s
0ac52c8c8d
- Format multiline CSS gradients for readability
- Clean up whitespace in Svelte components
- Add eslint-disable comments for controlled @html directives
- Format function signatures consistently

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
naomi added 1 commit 2026-01-25 18:15:56 -08:00
feat: add streamer mode for privacy during streaming
CI / Lint & Test (pull_request) Failing after 5m40s
CI / Build Linux (pull_request) Has been skipped
CI / Build Windows (cross-compile) (pull_request) Has been skipped
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 49s
ff50b28641
- Add quick toggle button in InputBar for easy access
- Mask API keys in settings when streamer mode active
- Optional path masking to hide usernames in file paths
- Visual LIVE indicator in both InputBar and StatusBar
- Keyboard shortcut Ctrl+Shift+S for quick toggle
- Privacy section in settings for additional options

Closes #35
naomi added 1 commit 2026-01-25 18:51:48 -08:00
feat: add compact mode for minimal widget interface (#36)
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 54s
CI / Lint & Test (pull_request) Failing after 5m38s
CI / Build Linux (pull_request) Has been skipped
CI / Build Windows (cross-compile) (pull_request) Has been skipped
c5e0d5302c
Add a compact mode that shrinks the window to a small widget showing
just the character sprite, recent messages, and a quick input box.
Perfect for quick questions while working without the full UI.

- Add CompactMode.svelte component with minimal widget interface
- Add compact mode toggle in StatusBar (Ctrl+Shift+M shortcut)
- Save/restore window size when toggling compact mode
- Handle display scaling by converting physical to logical pixels
- Add compact_mode to config (Rust + TypeScript)
- Add required Tauri window permissions for resize operations
naomi added 1 commit 2026-01-25 19:09:12 -08:00
style: fix lint errors and format issues
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 52s
CI / Lint & Test (pull_request) Successful in 14m33s
CI / Build Linux (pull_request) Successful in 18m56s
CI / Build Windows (cross-compile) (pull_request) Successful in 28m46s
43f92f227c
- Remove unused configStore import from CompactMode.svelte
- Add key to each block in CompactMode.svelte
- Fix useless escape characters in config.ts path masking
- Apply Prettier formatting to StatusBar, Terminal, and +page.svelte
naomi added 4 commits 2026-01-25 20:30:59 -08:00
Add extensive new achievement system covering:
- Extended token/code/file/message milestones
- Tool mastery achievements (Edit, Write, Glob, Task, WebFetch, MCP)
- Daily streaks (week, two-week, month, quarter)
- Time-based achievements (morning, night, lunch, coffee break)
- Day-specific achievements (Monday, Wednesday, Friday, weekend)
- Special day achievements (New Year, Valentine's, Halloween, Christmas, Leap Day)
- Message content achievements (long messages, markdown, code blocks)
- Emotional achievements (frustrated, excited, confused, curious, impressed)
- Programming language achievements (Rust, Python, JS, TS, Go, C++, Java, etc.)
- Project type achievements (frontend, backend, config, docs)
- Refactoring/testing/documentation achievements
- Completion percentage achievements (50%, 75%, 100%)

Also adds streak tracking infrastructure to stats:
- Session counting
- Consecutive day tracking
- Morning/night session tracking
- Total days used tracking
- Add profile fields to HikariConfig (name, avatar path, bio)
- Create ProfilePanel component with trans-pride themed styling
- Add profile button to StatusBar for easy access
- Display lifetime stats (messages, tokens, code blocks, files, cost)
- Show achievement completion progress bar
- Support file picker for avatar image selection
- Remove global stats from StatsDisplay (now in Profile)

Co-Authored-By: Hikari <hikari@nhcarrigan.com>
- Add lifetime stats persistence to Rust backend
- Sync achievement state between frontend and backend on startup
- Add commands for loading/saving stats to disk
- Expand achievement definitions with 150+ new achievements
- Fix stats store to properly track total vs session metrics
feat: add shareable profile image generation
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 54s
CI / Lint & Test (pull_request) Failing after 5m46s
CI / Build Linux (pull_request) Has been skipped
CI / Build Windows (cross-compile) (pull_request) Has been skipped
73d66e9ae4
- Add 1920x1080 HD canvas with trans-pride themed design
- Include profile avatar, name, bio, and lifetime stats
- Show achievement progress with visual progress bar
- Use Tauri fs plugin for cross-platform file reading
- Add scoped file permissions for read/write access
naomi added 1 commit 2026-01-25 21:06:27 -08:00
feat: add custom theme support with color picker UI
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 55s
CI / Lint & Test (pull_request) Failing after 5m43s
CI / Build Linux (pull_request) Has been skipped
CI / Build Windows (cross-compile) (pull_request) Has been skipped
c45414b0aa
- Add Custom variant to Theme enum and CustomThemeColors struct in Rust config
- Add custom_theme_colors field to HikariConfig for storing user-defined colors
- Create color picker UI in ConfigSidebar with 8 customizable color variables
- Implement live preview when editing custom theme colors
- Apply custom colors on app startup when custom theme is selected
- Use dark theme as base, override with user's custom CSS variables
naomi added 1 commit 2026-01-25 21:34:36 -08:00
style: fix lint warnings and a11y issues
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 52s
CI / Lint & Test (pull_request) Successful in 14m40s
CI / Build Linux (pull_request) Successful in 19m17s
CI / Build Windows (cross-compile) (pull_request) Successful in 28m51s
edcca9179a
- Add proper for/id associations for color picker labels (ConfigSidebar)
- Add tabindex and svelte-ignore for dialog overlays (GitPanel)
- Add standard mask/line-clamp CSS properties for compatibility
- Remove unused .stat-highlight CSS selector (StatsDisplay)
- Fix SvelteSet reactivity by using .clear() instead of reassignment
- Make updateNotification properly reactive with $state
naomi merged commit 4c46d4c8fd into main 2026-01-25 22:19:01 -08:00
naomi deleted branch feat/stuffy-stuff 2026-01-25 22:19:02 -08:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#68