Commit Graph
298 Commits
Author SHA1 Message Date
iamdoubz 871b11d75e refactor(calendar): split import_pst into a reusable core fn
import_pst_core takes &AppHandle/&dyn Store directly instead of the
State<AppState> extractor, so the startup auto-sync pass (lib.rs) can
run the same import logic without going through a Tauri command.
2026-07-06 14:55:34 -05:00
iamdoubz 75ec24ddf6 feat(calendar): add pst_last_path/pst_auto_sync to Settings
Backing fields for remembering the imported .pst path across sessions
and an opt-in startup auto-resync (T6.2). #[serde(default)] so an
existing settings.json without these keys still deserializes.
2026-07-06 14:55:33 -05:00
iamdoubz 4637ce8aac chore(deps): promote chrono to a direct dependency
Needed for DST-aware recurrence expansion (calendar/mod.rs); already
resolved transitively via sqlx, so this adds no new compiled crate.
2026-07-06 14:55:31 -05:00
iamdoubz 6f07f28cef fix(calendar): preserve local wall-clock time across DST in recurrence
expand_rrule reused dtstart's raw UTC time-of-day for every occurrence,
so a weekly meeting spanning a DST transition (e.g. created in winter
CST, recurring into summer CDT) drifted an hour once displayed in the
machine's local timezone.

Rewrites occurrence generation on chrono's Local/NaiveDate (already a
transitive dependency via sqlx, now promoted to direct) instead of
hand-rolled epoch-day arithmetic: each occurrence keeps dtstart's local
wall-clock hour/minute, re-resolving the UTC offset per occurrence date
so DST is applied correctly for that specific day. civil_from_days/
weekday_from_epoch_day/is_leap_year/days_in_month are no longer needed
(chrono's NaiveDate replaces them) and are removed.
2026-07-06 14:55:30 -05:00
iamdoubz fa8a7f2552 feat(calendar): expand recurring PST events into per-occurrence rows
RRULE was previously ignored entirely, so a recurring meeting only ever
stored its first occurrence — invisible to any later date filter/lookup.
Adds RRULE parsing + occurrence expansion (DAILY/WEEKLY/MONTHLY/YEARLY,
INTERVAL/COUNT/UNTIL/BYDAY/BYMONTHDAY/BYMONTH) covering every pattern
found in a real 7.2GB mailbox (ADR-0008), each occurrence stored as its
own row keyed by "{uid}@{ymd}" so re-import dedup still applies.

Also fixes a real parser bug found via that mailbox: this libpst build
joins multi-value BYDAY with `;` instead of RFC 5545's `,`
(BYDAY=MO;TU;WE;TH;FR), which previously made RRULE parsing bail out
silently for any event with more than one weekday.

Indefinite rules (no COUNT/UNTIL — only YEARLY holidays in practice) are
capped at 10 years/500 occurrences; ponytail-flagged as the ceiling to
raise if a real series needs more.
2026-07-06 14:34:21 -05:00
iamdoubz 8f98332cdd feat(calendar): filter imported events by title and date
Client-side filter over the already-loaded events list (T6.3, FR-CAL-2)
— 1700+ events from a real mailbox is unwieldy to browse unfiltered.
2026-07-06 14:19:14 -05:00
iamdoubz 2ca4151444 fix(calendar): fall back to stdout when readpst's stderr is empty
readpst writes some failure messages to stdout rather than stderr, so a
failing run with empty stderr surfaced as a blank "parse failed: " error
with no diagnostic content.
2026-07-06 13:56:44 -05:00
iamdoubz 66aae232c5 fix(calendar): use shared errorMessage() for PST import errors
Tauri commands reject with a {kind, message} object, not a native Error,
so `e instanceof Error ? e.message : String(e)` always fell through to
String(e) -> "[object Object]", hiding the actual readpst failure reason.
2026-07-06 13:43:23 -05:00
iamdoubz 43497ca8cd Merge pull request 'Feature chore bug 001' (#15) from feature_chore_bug_001 into main
Reviewed-on: #15
v0.1.6
2026-07-06 13:18:01 -05:00
iamdoubz 6a4b832628 chore(release): bump version to 0.1.6 2026-07-06 13:08:41 -05:00
iamdoubz 33c0397de8 fix(sync): enable keyring windows-native backend — creds were a silent no-op
keyring 3.x feature-gates its OS backends OFF by default, so with no feature the
credential store fell back to a mock where set/get don't share state: every
password write appeared to succeed but read back empty, so no Basic auth was
sent and WebDAV/Nextcloud auth always 401'd. windows-native pulls the real
Windows Credential Manager. Also affected MCP/hosted-AI keys + OAuth tokens.
2026-07-06 13:08:39 -05:00
iamdoubz 9c670f9b6b feat(settings): Nextcloud server-URL hint + edit-mode test uses stored password
Provider-aware Server URL placeholder/hint (Nextcloud/ownCloud: enter just the
server URL); Test in edit mode passes the target id so the backend reuses the
stored credential.
2026-07-06 11:10:46 -05:00
iamdoubz 8f6e8041d6 feat(sync): auto-build Nextcloud/ownCloud DAV path from the server URL
For nextcloud/owncloud, WebDavTarget now derives the canonical
…/remote.php/dav/files/<user>/ path from the entered server URL (origin only, so
a pasted full path normalizes too); other providers use the URL verbatim.
test_sync_target also reuses the stored password when editing an existing
webdav target (unless a new one is typed), so Test works after a URL fix without
re-entering the password. Fixes the confusing 'bare host connects, full URL
fails' behavior (the former was a 404 false-positive, the latter a blank-secret
401).
2026-07-06 11:10:44 -05:00
iamdoubz fb790091fd feat(settings): edit a saved sync target (fix URL/username/options)
Each webdav target gets an Edit button that loads it into the form; save routes
to update_sync_target. Password left blank keeps the stored one; kind is locked
during edit. Fixes not being able to correct a mistyped Server URL.
2026-07-06 10:41:02 -05:00
iamdoubz 496a3372c4 feat(sync): store.updateTarget() to edit a saved target 2026-07-06 10:41:01 -05:00
iamdoubz 45b2acbbc6 feat(api): add upload flags to SyncTargetInfo type 2026-07-06 10:40:59 -05:00
iamdoubz 149f2c995d feat(sync): expose upload flags in SyncTargetInfo for the edit form
row_to_info now returns upload_transcript/notes/summary/recording,
trigger_on_finalize, allow_plaintext_lan, encrypt_before_upload so the UI can
pre-fill an edit form accurately (still never the secret, FR-SYNC-6).
2026-07-06 10:40:57 -05:00
iamdoubz 724ce4ba3b Merge pull request 'Chore debug' (#14) from chore_debug into main
Reviewed-on: #14
v0.1.5
2026-07-06 09:46:49 -05:00
iamdoubz 224aaf9994 fix(runtime): use gitea /media/ URLs so Git LFS bundles resolve (not the pointer) 2026-07-06 09:45:01 -05:00
iamdoubz fa1c5ccc44 chore(runtime): add NPU/DirectML 7z bundles via Git LFS 2026-07-06 09:41:37 -05:00
iamdoubz d34409a6ed docs(readme): bump version references to 0.1.5 2026-07-06 09:36:35 -05:00
iamdoubz 0ffe608e03 docs(readme): add Quick start (install from MSI) 2026-07-06 08:38:06 -05:00
iamdoubz e6f19168f8 feat(runtime): download NPU/DirectML runtimes as 7z from the repo raw URLs
extract_7z_flat replaces extract_zip_flat; NPU + DirectML now default to
git.dou.bet raw/branch/main/runtime/{openvino,directml}.7z with pinned SHA-256s
(DirectML no longer requires WA_DIRECTML_RUNTIME_URL). Adds an extraction test
against the real bundle (proves LZMA2+BCJ decode + flatten).
2026-07-06 08:23:49 -05:00
iamdoubz 27ba4f9b03 build(deps): swap zip for sevenz-rust2 (npu-gated) to unpack 7z runtime bundles
The NPU/DirectML runtime bundles are now LZMA2+BCJ 7z archives; zip was only used
for the old .zip bundle. sevenz-rust2 pinned to 0.7.0 (newer needs rustc>MSRV).
2026-07-06 08:23:49 -05:00
iamdoubz 8038918e1d fix(theme): style textarea like inputs so the AI system prompt matches dark mode 2026-07-06 08:01:36 -05:00
iamdoubz 4442f809d1 fix(theme): dark-mode native controls (Templates dropdown)
Set color-scheme on the theme roots so native controls render in the active
theme, and give the header template <select> an explicit elevated background +
themed <option> colors — an author-styled select's popup otherwise defaults to
white in dark mode.
2026-07-06 08:01:36 -05:00
iamdoubz 0d62416127 chore(release): bump version to 0.1.5 2026-07-06 07:46:29 -05:00
iamdoubz 31b3cfd5a7 fix(settings): wrap nav tabs so the close button isn't cut off; add About page
The fixed-width settings panel overflowed horizontally because the tab nav
didn't wrap, pushing the X close button off the edge and adding a horizontal
scrollbar. nav now flex-wraps. Adds an About section: version, build commit,
and a link to the source repo (opened via open_url).
2026-07-06 07:46:19 -05:00
iamdoubz a51d7a777b feat(api): AppInfo type + appInfo/openUrl bindings 2026-07-06 07:46:19 -05:00
iamdoubz 42c2aedfd4 feat(commands): register app_info + open_url 2026-07-06 07:46:18 -05:00
iamdoubz 0317649b48 feat(commands): app_info (version+commit) and open_url for the About page 2026-07-06 07:46:18 -05:00
iamdoubz 035abb93ea build: bake short git commit hash into WA_GIT_HASH for the About page 2026-07-06 07:46:17 -05:00
iamdoubz 1b74e0b320 feat(settings): DirectML GPU acceleration package card (P2)
Mirrors the NPU package card, shown only when hardware_status marks DirectML
applicable; downloads model+runtime via download_directml_package and reloads
hardware to flip to Ready.
2026-07-06 07:21:51 -05:00
iamdoubz 1b743dad67 feat(api): DirectML package status + downloadDirectmlPackage binding (P2) 2026-07-06 07:21:51 -05:00
iamdoubz ceb7e59164 feat(commands): expose directml.applicable in hardware_status (P2) 2026-07-06 07:21:50 -05:00
iamdoubz 281ccf0b18 feat(hardware): directml_would_help() gate for the Settings package card (P2)
True only when staging DirectML would light up a present GPU this build can't
otherwise accelerate: npu compiled, no Vulkan baked in, and an AMD/Intel GPU
present (or NVIDIA without CUDA).
2026-07-06 07:21:50 -05:00
iamdoubz ab5aa4e986 feat(commands): register download_directml_package command (P2) 2026-07-05 19:40:28 -05:00
iamdoubz b69c91a598 feat(commands): route AMD/Intel to DirectML ONNX engine + download_directml_package (P2)
load_transcriber dispatches OnnxOpenVino/OnnxDirectML through one OnnxTranscriber
block. download_and_extract_runtime is parameterized (sha + readiness) so the new
stage_directml_runtime reuses it; hardware_status reports a directml package field.
2026-07-05 19:40:27 -05:00
iamdoubz 0f2940e52b feat(hardware): make directml_ready() real (npu feature + staged runtime) (P2) 2026-07-05 19:40:27 -05:00
iamdoubz 9ae02cabfe docs(transcription): update OnnxTranscriber name in doc comments (P2) 2026-07-05 19:40:17 -05:00
iamdoubz eb87bf4edb refactor(transcription): re-export OnnxTranscriber; note ONNX tier covers NPU+DirectML (P2) 2026-07-05 19:40:17 -05:00
iamdoubz 0f93f5947e feat(transcription): generalize OnnxNpuTranscriber -> OnnxTranscriber with DirectML EP (P2)
load() now selects OpenVINO (NPU) or DirectML (AMD/Intel GPU) by BackendId over
the same ONNX artifacts; ensure_runtime_env takes the target runtime DLL. Adds
an opt-in directml_transcribes_speech spike for on-GPU validation.
2026-07-05 19:40:16 -05:00
iamdoubz 2e8bb730a3 feat(paths): DirectML runtime dir/dll/ready helpers (P2) 2026-07-05 19:40:16 -05:00
iamdoubz c4658efe28 build(deps): enable ort DirectML EP for the non-Vulkan GPU path (P2) 2026-07-05 19:40:15 -05:00
iamdoubz 7fe0d87e55 feat(transcription): drive engine choice from AccelPath resolver (P0)
load_transcriber now resolves the accel path instead of assuming a GPU
BackendId has a working offload. Only requests whisper GPU offload for
WhisperCuda/WhisperVulkan; NPU goes to the ONNX engine; everything else decodes
on CPU and reports the backend actually used.
2026-07-05 19:27:28 -05:00
iamdoubz e9567b823a feat(hardware): AccelPath resolver + honest GPU availability (P0)
whisper.cpp bakes in one GPU backend at compile time, so a BackendId alone
can't say how a vendor is served. Add AccelPath + resolve_accel(_with) as the
single source of truth over (compiled features x runtime readiness), and derive
BackendInfo.available from it in the DXGI + NPU paths. Closes the gap where a
present-but-unsupported GPU was marked available and best() routed to a no-op
GPU. Pure resolve_accel_with is unit-tested across all vendor/feature combos.
2026-07-05 19:27:23 -05:00
iamdoubz a239d10a01 Merge pull request 'Feature again here' (#13) from feature_again_here into main
Reviewed-on: #13
2026-07-05 18:20:16 -05:00
iamdoubz 95b2635607 Add npu 2026-07-05 18:19:22 -05:00
iamdoubz c24feeb542 docs(readme): reflect working v0.1.4 (CPU/NPU/Vulkan, vault, sync) + refresh Granola/Meetily comparison 2026-07-05 17:58:26 -05:00
iamdoubz fa96a16be4 chore: normalize Cargo.toml line endings after BOM-strip pass 2026-07-05 00:42:39 -05:00