Commit graph

66 commits

Author SHA1 Message Date
Viren Mohindra
ef24cfefda
feat: add models settings page with filtering and management (#478)
* feat: add models settings page with filtering and management

- add dedicated models settings page in sidebar
- reuse ModelCard component from onboarding for consistent UI
- add filter buttons for all/multi-language/translation models
- add model deletion with native confirmation dialog (tauri-plugin-dialog)
- consolidate model event listeners into useModels hook (Zustand store)
- remove duplicate event listeners from ModelSelector, LanguageSelector, TranslateToEnglish
- gate AccessibilityPermissions to macOS only
- add is_recommended field to model registry for featured models
- remove unused get_recommended_first_model command
- add translations for all 9 supported languages

* feat: add language filter to models settings page

adds a searchable language dropdown filter to the models page that lets users filter models by language support. when a non-english language is selected, models that don't support multiple languages (like parakeet) are hidden.

- add searchable language dropdown (right-aligned in filter row)
- filter models using supports_language_selection capability
- add allLanguages translation key to all 10 locales

* feat: add translation consistency checker script

- add scripts/check-translations.cjs to validate all language files
- script dynamically discovers languages from directory structure
- checks that all languages have same keys as english reference
- detects missing and extra keys in each language
- add check:translations npm script
- integrate into github actions lint workflow
- validates translations on every pull request

* fix: update imports and add missing translations after rebase

- replace useModels hook with useModelStore in components
- add permission error keys to all languages
- add model settings keys to cs and tr (new languages from main)

* fix: translate english placeholders in cs and tr locale files

* refactor: simplify model dropdown and migrate store to immer

- model dropdown now only shows downloaded models (no download/delete)
- convert store to immer with record types for immutability
- remove unused translation keys (welcome, downloadPrompt, etc.)
- add missing moonshine-base model fields
- sync translations after rebase

* fix: add download cancellation support and ui improvements

- add full download cancellation with Arc<AtomicBool> flags in rust backend
- add progress event throttling (100ms) to prevent ui freeze
- add cancel button to model card in settings page
- add model-deleted event listener to refresh dropdown after deletion
- remove pink background from recommended models in settings (keep badge only)
- add cancel/cancelDownload translation keys to all 14 languages

* fix: remove duplicate language/translate settings from general and advanced

settings are now only in ModelSettingsCard, not duplicated in their old locations

* fix: prevent model dropdown from being clipped by window edge

* add languages explicitly, clean up some ui

* fix: clear bottom progress bar when download is cancelled

The ModelSelector component maintains its own local state for download
progress. When a download was cancelled, the Rust backend would update
its state but never emitted an event to notify the frontend. This caused
the bottom progress bar to remain stuck showing "Downloading X%".

Added model-download-cancelled event emission in Rust and corresponding
listener in ModelSelector to clear progress state on cancellation.

* fix: align model card content to top to prevent floating elements

Changed ModelCard flex alignment from items-center to items-start so
the accuracy/speed bars stay at the top when the card expands (e.g.,
during download with progress bar visible).

* fix: prevent model deletion from interrupting active extractions

Added extracting_models HashSet to track models currently being
extracted. The update_download_status() function now skips cleanup
of .extracting directories for models that are actively extracting,
preventing a race condition where deleting one model would interrupt
another model's extraction process.

* refactor: migrate ModelCard buttons to Button component

Added two new Button variants for common patterns:
- primary-soft: soft/tinted primary buttons (used for download)
- danger-ghost: subtle destructive actions (used for delete/cancel)

Migrated all hardcoded buttons in ModelCard to use the shared Button
component for consistency and maintainability.

* feat: separate downloaded and available models into sections

Split the models list into "Your Models" and "Available to Download"
sections for clearer visual distinction between downloaded and
downloadable models.

Also adds missing translation keys to all locales:
- modelSelector.capabilities.singleLanguage
- modelSelector.capabilities.languageOnly
- settings.models.yourModels
- settings.models.availableModels

* fix: add missing translations after rebase onto main

add post-processing hotkey translations to all 15 locales and
backfill 29 missing keys for korean locale added in main.

* fix: add label to model delete button for clearer destructive state

* check translations as typescript

* format

* better text for dropdown

* wip ui tweaks

* rounded + ui tweaks

* fix download not 0% immediately, ui tweaks

* tweak name

* block for model downloading in onboarding

* small fixes

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-02-08 12:18:22 +08:00
Josh Ribakoff
9ef71046ba
chore: add Playwright E2E testing infrastructure (#673)
* feat: add Playwright testing infrastructure

- Add @playwright/test dependency
- Add playwright.config.ts with Chromium setup
- Add test scripts (test, test:ui, test:headed)
- Add hello world test to verify setup works

This is the foundation for adding comprehensive E2E tests.
Tests run against the Vite dev server on port 1420.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* ci: add E2E test workflow

Runs Playwright tests on pull requests using Chromium.
Uploads test artifacts on failure.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: rename e2e to playwright, fix CI test

- Rename workflow from "E2E Tests" to "Playwright"
- Rename scripts from test:e2e to test:playwright
- Fix test to not require Tauri APIs (just check server responds)
- Run prettier

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-02-06 17:15:19 +08:00
CJ Pais
e2028a4b82 release v0.7.1 2026-02-01 20:58:44 +08:00
CJ Pais
f38b52e123 v0.7.0 2026-01-20 08:31:38 +08:00
Josh Ribakoff
f9d2aa68c3
refactor: use Immer for immutable state updates (#527)
* refactor: use Immer for immutable state updates

Replace Set/Map with Record types and use Immer's produce() for
immutable state updates. This fixes mutation bugs where .add()/.set()
were mutating state before copying (e.g., `new Set(prev.add(id))`).

Changes:
- Add immer dependency
- Convert Set<string> to Record<string, true> (sparse hash set pattern)
- Convert Map<K,V> to Record<K,V>
- Use produce() for all state mutations
- Update prop types in child components

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* move deps back to where they started

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-01-19 08:47:43 +08:00
CJ Pais
738c5a82d8 release v0.6.11 2026-01-14 09:54:55 +08:00
CJ Pais
c606bf631b release v0.6.10 2026-01-04 07:52:38 +08:00
CJ Pais
d06d318a66 Release v0.6.9 2025-12-23 17:44:01 +07:00
CJ Pais
add9544d86 release v0.6.8 2025-12-12 22:15:00 +07:00
CJ Pais
8ac98b33bb release v0.6.7 2025-12-12 16:54:44 +07:00
CJ Pais
f87051f464
Add Internationalization Support (#437)
* basic i18n

* tweak

* translate app

* add linting to make sure we have translations

* run linter on pr

* format
2025-12-12 11:16:54 +07:00
CJ Pais
700eb71abb Release v0.6.6 2025-12-11 17:29:35 +07:00
CJ Pais
933c1b14c2 release v0.6.5 2025-12-08 09:23:56 +07:00
CJ Pais
45e7d01e8a release v0.6.4 2025-11-29 16:45:33 +07:00
CJ Pais
6d6d7fb279 release v0.6.3 2025-11-28 10:18:18 +07:00
CJ Pais
0c5989d824 Release v0.6.2 2025-11-19 11:03:33 +07:00
CJ Pais
c359e3ff17 Release v0.6.1 2025-11-17 13:02:35 +07:00
CJ Pais
70ec82285a
format everything (#323) 2025-11-10 11:39:14 +08:00
CJ Pais
3f9d93aa9b release v0.6.0 2025-11-05 18:31:34 -08:00
Luis Eduardo
f7380fa69a
feat: LLM based post-processing (#222)
* Add LLM post-processing feature with settings management and UI integration

* Refactor LLM post-processing settings and prompt selection logic

* Rename CLAUDE.md to more standard AGENTS.md

* Replace Open Router with OpenAI Compatible endpoints for post-processing

* Fix post processing settings api styles

* refactor or something

* simplify

* cleanup a bit?

* remove useless code

* minor improvements

* fix laggy textarea

* Store post-processing results in db

* fix text color

* new default prompt

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2025-11-05 18:29:03 -08:00
CJ Pais
907a6f0f77 release 0.5.5 2025-11-03 11:17:18 -08:00
CJ Pais
ae406aebe2 fix build 2025-10-27 11:52:23 -07:00
CJ Pais
dd40d8eb27 update deps 2025-10-27 11:05:55 -07:00
CJ Pais
0aa86a8cbd Release v0.5.4 2025-10-17 16:58:58 -07:00
CJ Pais
c291b8470f Release v0.5.3 2025-10-13 14:46:23 -07:00
CJ Pais
ee6c60642f release v0.5.2 2025-10-09 19:31:12 -07:00
CJ Pais
3bf4ac819e 0.5.1 2025-09-28 07:44:37 -07:00
CJ Pais
ea375d942b Release v0.5.0 2025-09-09 18:59:50 -07:00
CJ Pais
7be3fac4b1 Release v0.4.2 2025-09-06 14:08:31 -07:00
CJ Pais
76785d5b47 release 0.4.1 2025-09-05 22:19:25 -07:00
CJ Pais
40cd7ae71b release v0.4.0 2025-09-05 16:29:16 -07:00
CJ Pais
7638f6b827
basic working history (#104) 2025-09-05 16:25:38 -07:00
CJ Pais
d6684ccb21
UI v2 (#103)
* wip ui

* pretty much fully new settings page

* proper dark/light mode

* slight style tweak for sidebar

* add about
2025-09-05 12:56:55 -07:00
CJ Pais
f52a43fdbf release v0.3.9 2025-09-03 19:01:22 -07:00
CJ Pais
7c2ee4123b release v0.3.8 2025-08-19 18:54:32 -07:00
CJ Pais
0000072518 release 0.3.7 2025-08-11 15:46:34 -07:00
CJ Pais
e8976c2047 Release v0.3.6 2025-08-07 18:01:34 -07:00
CJ Pais
0e73afb609 Release v0.3.5 2025-08-02 19:33:33 -07:00
CJ Pais
3bd65da75a toast stuff? 2025-08-02 19:26:30 -07:00
CJ Pais
945acfed07 Release v0.3.4 2025-08-02 12:13:31 -07:00
CJ Pais
949be1b785 release v0.3.3 2025-08-01 21:15:19 -07:00
CJ Pais
51105dde15 more wip but roughly is there 2025-08-01 14:15:02 -07:00
CJ Pais
9b3ac57ed6 Release v0.3.2 2025-07-28 12:31:43 -07:00
CJ Pais
d1755242be Release 0.3.1 2025-07-26 11:42:45 -07:00
CJ Pais
5746477f7f release v0.3.0 2025-07-11 18:24:31 -07:00
CJ Pais
7f8a908cf9 Merge branch 'main' of github.com:cjpais/Handy 2025-07-03 14:44:34 -07:00
CJ Pais
d1f5d21c4d Release v0.2.3 2025-07-03 14:44:09 -07:00
CJ Pais
c99fe1d450 Fix the keycode bug. 2025-07-03 14:26:02 -07:00
CJ Pais
589f7634d5 Release v0.2.2 2025-07-02 14:06:02 -07:00
CJ Pais
a77be914f8 Release v0.2.1 2025-07-01 16:06:22 -07:00