Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `useClipboardMonitoring` React hook with server-confirmed state updates
- Vitest test infrastructure: jsdom environment, setup file, Tauri API mocks
- Frontend tests for ClipboardIndicator (4 tests) and useClipboardMonitoring (4 tests)
- Settings View (Task 23)
- Expanded `AppConfig` domain model from 9 to 32 fields across 6 categories
- `ConfigPatch` with `apply_patch()` utility for partial config updates
- `TomlConfigStore` adapter: read/write `~/.config/vortex/config.toml` with atomic writes and auto-defaults
- `UpdateConfigCommand` handler with input validation (proxy_type, theme, port bounds, limits)
- `SettingsUpdated` domain event with Tauri bridge forwarding
- Settings IPC: `settings_get` query + `settings_update` command with camelCase DTO serialization
- SettingsView with 6-tab sidebar layout (General, Downloads, Network, Remote Access, Browser, Appearance)
- Shared `SettingToggle` and `SettingNumberInput` field components
- GeneralSection: download directory, 7 toggle settings
- DownloadsSection: 5 numeric settings with MB/s speed limit conversion, 2 toggles
- NetworkSection: proxy type selector with conditional URL, user-agent, DoH, timeout
- RemoteAccessSection: security warning, web interface/REST API/WebSocket toggles, API key display with show/hide/copy/regenerate
- BrowserSection: min file size, excluded domains/extensions via comma-separated textarea
- AppearanceSection: theme selector, 6 accent color presets, compact mode, language selector
- Event-based cache invalidation for settings changes from external sources
- 35 frontend tests (SettingsView + 6 sections + settingsStore)
16 changes: 16 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ tauri-plugin-clipboard-manager = "2"
tauri-plugin-notification = "2"
regex = "1"

[target.'cfg(unix)'.dependencies]
tauri-plugin-pilot = { git = "https://github.com/mpiton/tauri-pilot", version = "0.3.0" }

[dev-dependencies]
tempfile = "3.27.0"
wiremock = "0.6.5"
10 changes: 10 additions & 0 deletions src-tauri/capabilities/dev-pilot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://schema.tauri.app/config/2",
"identifier": "dev-pilot",
"description": "tauri-pilot testing plugin (Unix debug builds only)",
"windows": ["main"],
"platforms": ["linux", "macOS"],
"permissions": [
"pilot:default"
]
}
2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"default":{"identifier":"default","description":"Default capabilities for Vortex","local":true,"windows":["main"],"permissions":["core:default","core:tray:default","notification:allow-notify","notification:allow-request-permission","notification:allow-is-permission-granted"]}}
{"default":{"identifier":"default","description":"Default capabilities for Vortex","local":true,"windows":["main"],"permissions":["core:default","core:tray:default","notification:allow-notify","notification:allow-request-permission","notification:allow-is-permission-granted"]},"dev-pilot":{"identifier":"dev-pilot","description":"tauri-pilot testing plugin (Unix debug builds only)","local":true,"windows":["main"],"permissions":["pilot:default"],"platforms":["linux","macOS"]}}
24 changes: 24 additions & 0 deletions src-tauri/gen/schemas/desktop-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2419,6 +2419,30 @@
"type": "string",
"const": "notification:deny-show",
"markdownDescription": "Denies the show command without any pre-configured scope."
},
{
"description": "Default permissions for tauri-plugin-pilot (allows eval callback)\n#### This default permission set includes:\n\n- `allow-callback`",
"type": "string",
"const": "pilot:default",
"markdownDescription": "Default permissions for tauri-plugin-pilot (allows eval callback)\n#### This default permission set includes:\n\n- `allow-callback`"
},
{
"description": "Enables the __callback command without any pre-configured scope.",
"type": "string",
"const": "pilot:allow---callback",
"markdownDescription": "Enables the __callback command without any pre-configured scope."
},
{
"description": "Allow the internal __callback IPC command used by the eval engine",
"type": "string",
"const": "pilot:allow-callback",
"markdownDescription": "Allow the internal __callback IPC command used by the eval engine"
},
{
"description": "Denies the __callback command without any pre-configured scope.",
"type": "string",
"const": "pilot:deny---callback",
"markdownDescription": "Denies the __callback command without any pre-configured scope."
}
]
},
Expand Down
24 changes: 24 additions & 0 deletions src-tauri/gen/schemas/linux-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2419,6 +2419,30 @@
"type": "string",
"const": "notification:deny-show",
"markdownDescription": "Denies the show command without any pre-configured scope."
},
{
"description": "Default permissions for tauri-plugin-pilot (allows eval callback)\n#### This default permission set includes:\n\n- `allow-callback`",
"type": "string",
"const": "pilot:default",
"markdownDescription": "Default permissions for tauri-plugin-pilot (allows eval callback)\n#### This default permission set includes:\n\n- `allow-callback`"
},
{
"description": "Enables the __callback command without any pre-configured scope.",
"type": "string",
"const": "pilot:allow---callback",
"markdownDescription": "Enables the __callback command without any pre-configured scope."
},
{
"description": "Allow the internal __callback IPC command used by the eval engine",
"type": "string",
"const": "pilot:allow-callback",
"markdownDescription": "Allow the internal __callback IPC command used by the eval engine"
},
{
"description": "Denies the __callback command without any pre-configured scope.",
"type": "string",
"const": "pilot:deny---callback",
"markdownDescription": "Denies the __callback command without any pre-configured scope."
}
]
},
Expand Down
3 changes: 3 additions & 0 deletions src-tauri/src/adapters/driven/config/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod toml_config_store;

pub use toml_config_store::TomlConfigStore;
Loading
Loading