Commit Graph
105 Commits
Author SHA1 Message Date
CJ Pais 69420ed754 release v0.10.0 2026-11-02 19:51:16 +08:00
CJ Pais b99b9af2c4 error notices framework (#2372)
* feat: add error notices framework

* feat: show notices on the overlay

* feat: show notices in the tray

* feat: list notices in the footer

* feat: warn when post-processing fails

* feat: report file job failures as notices

* fix: shorten notice titles that overflow the overlay

* fix: match notices to the session's overlay

* refactor: warn on skipped post-processing, reuse tray badges, trim comments and tests

* bindings

* feat: let the user dismiss notices from the footer

A notice only ended when its source next succeeded, so a failed file
transcription could badge the tray for the rest of the session. "Show"
now dismisses the notice, and each row has a close button. Dismissing
matches the code as well as the source, so a click on a row drawn before
a newer notice replaced it leaves the new one alone.

* refactor: show all toasts and notices in one panel and drop sonner

* fix: give file transcription failures their own notice title, and tidy notice clearing

The tray showed a full sentence for a failed file job because it reused
settings.history.transcribeFailed, which needed a special case in build.rs.
It now has errors.fileTranscriptionFailedTitle like every other notice.

Model loads clear their notice through notices::clear_matching rather than
the dismiss_notice Tauri command, and the load error no longer repeats
"Failed to load model" ahead of the worker's own message.
2026-11-02 14:42:02 +08:00
CJ Pais 4c811d7e0e chore: bump Playwright to 1.64.1 so CI can install Chromium on Ubuntu 26.04 runners 2026-11-01 22:06:18 -08:00
CJ Pais 126bed73cb add language detection (#2331)
* feat: detect the spoken language for models without native detection

* feat: download the language detector with the models that need it

* feat: add language detection settings and show the real language status

* feat: record each transcription's language in history

* minor review notes

* tooltip fix, better auto info

* tweak some ui for the model

* move to experimental and download

* review nits

* log change
2026-10-27 15:16:19 +08:00
CJ Pais 0e5e9ca936 new onboarding (#2303)
* feat: new onboarding

* chore: remove new styling

* refactor: drop practice note insert workaround

* clean up welcome and perms

* lots of minor changes

* fix languages onboarding, and dropdown in app

* clean up table

* simplify lang

* better speed text

* fix dl speed + minor tweaks

* wip

* wip again

* transitions from demo to try

* simplify demo and beautify

* timing

* better demo/try it

* new all set page on try it

* pref languages, and demo shortcut tweaks

* wire traditional all the way through

* tweak search height

* clean up and fix obvious slop

* more code cleanup

* new models table, use on models page too

* shared model table for now

* better lang detection and fill for pref languages

* copy pass

* animation tweaks

* add translations for onboarding

* review fixes

* linux machine test fixes

* fix: consistent CJK font for language names on Windows/Linux

* fix: steady demo pointer and Tux taskbar mark on Linux

* fix: steady demo pointer and Tux taskbar mark on Linux

* fix stale nix

* center windows desktop

* trim comments

* review

* fix: custom app language menu, drop scrollbar arrows on Windows

* chore: trim AppLanguageMenu comments

* refactor: share model catalog, language picker and capture keys; drop unreachable a11y banner
2026-10-25 14:57:37 +08:00
CJ Pais 93c9ee05ef catalog from @handy-computer/models package (#2299)
* feat: use shared model catalog

* fix: preserve other model quants on deletion

* fix: offer retired model replacements

* fix: preserve unreadable model caches

* fix: report model deletion failures

* refactor: simplify model availability and cache reuse

* fix: match cached repos to the catalog by exact name

HF repo ids are case-insensitive, so another tool can cache a catalog repo
under other casing. Matching it case-insensitively relabelled the file with
the catalog's casing, which on a case-sensitive filesystem points at a
folder that doesn't exist, so the model vanished. Exact matching (as on
main) keeps such a file listed under the casing it was found at.

* fix: harden model deletion and catalog check on Windows
2026-10-20 13:23:01 +08:00
CJ Pais 14f6f0d31c release v0.9.8 2026-10-03 10:11:25 +08:00
Brian McBrayerandCJ Pais 141f981d4d fix: emit parseable names for compound shortcut keys (#1862)
* fix: emit parseable names for compound shortcut keys

global-hotkey rejects spaced tokens like "scroll lock", so Scroll Lock
and similar keys failed to register from the Tauri shortcut recorder.
Store compact names both backends accept, keep friendly UI labels, and
add a standalone regression test for the mapping.

* test: assert compound shortcut keys parse on both backends

Locks the #1848 compact-name invariant against both global-hotkey and
handy-keys so the Tauri recorder fix cannot silently break HandyKeys.

* test: only assert compound keys parse successfully on both backends

Drop the spaced-form failure checks; the useful guarantee is that the
compact names work with both Tauri and HandyKeys parsers.

* refactor: drop unused legacy spaced-key normalize path

getKeyName already emits compact compound names in the same binary, and
normalizeKey is only used during live recording — so the spaced→compact
fallback never ran in practice and only preserved the old bug shape.

* test: streamline shortcut key coverage

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-09-19 15:13:46 +08:00
CJ Pais 05e0aedd29 release 0.9.7 2026-09-18 20:22:01 +08:00
CJ Pais 6fa850612e fix 'no' not showing up + add ci so shouldnt happen again (#2001) 2026-08-30 09:28:54 +08:00
CJ Pais af48dd68a6 release v0.9.6 2026-08-24 15:01:27 +08:00
CJ Pais f6fac42e2e update to tauri-plugin-updater 2.10.1 2026-08-23 18:00:37 +08:00
CJ Pais 3388983e9a release v0.9.5 2026-08-08 07:53:45 +08:00
CJ Pais 6d3239e0fa fix: prevent What's New from blanking settings (#1822) 2026-08-07 13:37:32 +08:00
CJ Pais 17d6c76341 release v0.9.4 2026-07-21 12:47:15 +08:00
CJ Pais 59ec6959b8 bump tauri global shortcut package.json 2026-07-20 20:49:39 +08:00
CJ Pais b9925d0197 release v0.9.3 2026-07-15 20:48:04 +08:00
CJ Pais 5a7c0eac1a bump tauri version and Mac dock fixes (#1675)
* bump tauri version and dock fixes

* nix

* remove some comments

* tao w/fix

* fix nix
2026-07-15 15:14:58 +08:00
CJ Pais ea10f7454e release v0.9.2 2026-07-12 20:20:46 +08:00
CJ Pais 1c4f21acd2 release v0.9.1 2026-07-10 20:24:05 +08:00
CJ Pais 31d8fc2442 introduce transcribe.cpp (#1529) 2026-07-01 20:38:20 +08:00
CJ Pais 085cd530a3 release v0.8.3 2026-04-27 22:52:35 +08:00
CJ Pais 39e855deb8 release v0.8.2 2026-04-02 08:21:41 +08:00
CJ Pais 233db14d72 release v0.8.1 2026-03-26 09:16:55 +08:00
CJ Pais 557d274db6 release v0.8.0 2026-03-23 08:43:26 +08:00
CJ Pais d33535cfd3 release v0.7.12 2026-03-19 08:33:28 +08:00
CJ Pais 789a4393e8 release v0.7.11 2026-03-17 12:24:32 +08:00
Evgeny Khudoba 7056edce28 fix(nix): replace manual hash management with bun2nix (#1021)
* fix(nix): replace manual hash management with bun2nix

Eliminate the recurring problem of Nix build hashes breaking whenever
bun dependencies change or the bun version in nixpkgs updates.

Changes:
- Add bun2nix flake input (pinned to v2.0.1) for per-package fetchurl
  expressions from bun.lock, replacing the single FOD hash approach
- Use allowBuiltinFetchGit for cargo git dependencies, removing manual
  outputHashes that required updates on every git dep change
- Add scripts/check-nix-deps.ts (cross-platform, runs via bun) that
  auto-regenerates .nix/bun.nix when bun.lock changes, triggered by
  the postinstall hook in package.json
- Update CI workflow to verify bun.nix is in sync and evaluate flake
- Remove scripts/update-nix-hashes.sh (no longer needed)

* style: format check-nix-deps.ts with prettier

* ci(nix): make nix-check job a required check

* fix(nix): address review feedback

- Fix bun2nix input pinning: use path syntax (github:owner/repo/tag)
  instead of ?tag= query parameter so flake.lock records the ref
  and `nix flake update` respects the pin
- Make check-nix-deps.ts exit with 0 on bun2nix failure so that
  `bun install` is not blocked for non-Nix developers (CI validates
  bun.nix independently)
- Fix stale reference to check-nix-deps.sh in flake.nix comment

* ci(nix): add full nix build step to CI workflow

Add `nix build .#handy -L --show-trace` after flake evaluation to
catch runtime build errors (broken dependencies, sandbox issues,
compilation failures) that flake eval alone cannot detect.

* fix(nix): update bun2nix pin from 2.0.1 to 2.0.8

bun2nix 2.0.1 has a bug in cache-entry-creator that causes
"ln: failed to create symbolic link '/p': Permission denied"
during the build. Version 2.0.8 fixes this.
2026-03-13 18:45:46 +08:00
CJ Pais 426031a8d7 Release v0.7.10 2026-03-10 13:17:20 +08:00
CJ Pais e354c0afc8 update dialog package.json 2026-03-06 20:59:14 +08:00
CJ Pais 998449d2ad release v0.7.9 2026-03-01 22:05:33 +07:00
17d34a910f fix: upgrade tauri-plugin-updater to v2.10.0 to fix duplicate registry entries (#873) (#876)
* fix: upgrade tauri-plugin-updater to v2.10.0 to fix duplicate registry entries (#873)

Upgrade tauri and tauri-plugin-updater to get bundle-specific target
resolution, which prevents NSIS-installed users from receiving MSI
updates via OTA and creating duplicate registry entries.

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

* move to my branch

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-03-01 20:41:55 +07:00
CJ Pais 52047ae06e release v0.7.8 2026-02-24 23:05:11 +08:00
CJ Pais 74951cfca4 release v0.7.7 2026-02-20 13:25:25 +08:00
CJ Pais 58b95c5c95 release v0.7.6 2026-02-17 13:02:48 +08:00
CJ Pais 36c29b6628 release v0.7.5 2026-02-11 20:29:33 +08:00
CJ Pais d70d076bdc release v0.7.4 2026-02-11 11:38:14 +08:00
CJ Pais 6a099fb873 release v0.7.3 2026-02-10 12:05:37 +08:00
CJ Pais 9d48605fd7 release v0.7.2 2026-02-08 12:21:21 +08:00
Viren MohindraandCJ Pais 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
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
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