19d841e644
Introduces `oneliner_poll_interval_seconds` and `oneliner_window_hours` to the client configuration. These fields allow users to customize how frequently the client polls for new oneliners and the time window for the data fetched from the server. Default values are provided for these fields to ensure backward compatibility and a sensible out-of-the-box experience. The `Config` struct now also includes helper methods `poll_interval()` and `window_hours()` for easier access to these settings, including the application of defaults. Additionally, new functions `cases_dir()` and `snapshot_cache_path()` are added to `client-desktop/src/paths.rs` to manage directories for case data and the oneliner snapshot cache, respectively. These paths follow OS-standard conventions for local application data.
32 lines
829 B
TOML
32 lines
829 B
TOML
[package]
|
|
name = "doctate-desktop"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description = "Desktop dictation client for the doctate medical dictation system"
|
|
|
|
[dependencies]
|
|
doctate-common = { path = "../doctate-common" }
|
|
doctate-client-core = { path = "../doctate-client-core" }
|
|
eframe = "0.28"
|
|
reqwest = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
toml = { workspace = true }
|
|
tokio = { workspace = true }
|
|
time = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
uuid = { workspace = true }
|
|
directories = "5"
|
|
thiserror = "1"
|
|
webbrowser = "1"
|
|
which = "6"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
tokio = { workspace = true, features = ["test-util"] }
|
|
wiremock = "0.6"
|