mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 13:32:23 +00:00
* refactor(onboarding): remove MnemonicStep and Open Accessibility button, add Recovery Phrase settings panel
- Remove "Open Accessibility" button from ScreenPermissionsStep (step 2)
- Remove MnemonicStep (step 5) from onboarding, reducing total steps from 6 to 5
- Move onboarding completion logic (setOnboardedForUser + setOnboardingCompleted) into handleSkillsNext
- Add RecoveryPhrasePanel in Settings with the same BIP39 generate/import functionality
- Wire recovery-phrase route into Settings.tsx, SettingsHome menu, and useSettingsNavigation
* fix(recovery-phrase): add aria-labels to import inputs and word-count selector
Address CodeRabbit review feedback:
- Add aria-label to each recovery phrase word input for screen readers
- Add word-count selector (12/15/18/21/24) so longer phrases can be
entered manually, not just via paste
* fix(recovery-phrase): remove auto-advance on single char and guard clipboard fallback
Address CodeRabbit round 2:
- Remove auto-focus-advance after single character input (was breaking
manual word entry — typing 'abandon' would split across slots)
- Guard execCommand('copy') fallback with return value check
* fix(tauri): resolve "Command restart_core_process not found" by fixing stale ACL builds
Add cargo:rerun-if-changed directives for permissions/ and capabilities/
directories in build.rs so Tauri regenerates ACL tables on incremental
builds. Also add missing permission entries for dictation hotkey commands.
Closes #270
41 lines
1.3 KiB
Rust
41 lines
1.3 KiB
Rust
use std::env;
|
|
|
|
fn main() {
|
|
// Ensure Tauri ACL is regenerated when permissions or capabilities change.
|
|
// Without this, cargo incremental builds may skip tauri-build and embed
|
|
// stale ACL tables that miss newly added permission entries.
|
|
println!("cargo:rerun-if-changed=permissions");
|
|
println!("cargo:rerun-if-changed=capabilities");
|
|
|
|
maybe_override_tauri_config_for_local_builds();
|
|
tauri_build::build();
|
|
}
|
|
|
|
fn maybe_override_tauri_config_for_local_builds() {
|
|
let profile = env::var("PROFILE").unwrap_or_default();
|
|
let skip_resources = env::var("TAURI_SKIP_RESOURCES").is_ok() || profile != "release";
|
|
|
|
if !skip_resources {
|
|
return;
|
|
}
|
|
|
|
let mut merge_config = serde_json::json!({});
|
|
if skip_resources {
|
|
merge_config["bundle"]["resources"] = serde_json::json!([]);
|
|
// Keep sidecars enabled for local/debug builds so the desktop host can
|
|
// exercise the same core process launch path as packaged builds.
|
|
}
|
|
|
|
match serde_json::to_string(&merge_config) {
|
|
Ok(json) => {
|
|
env::set_var("TAURI_CONFIG", json);
|
|
if skip_resources {
|
|
println!("cargo:warning=TAURI resources disabled for local build");
|
|
}
|
|
}
|
|
Err(err) => {
|
|
println!("cargo:warning=Failed to serialize TAURI_CONFIG override: {err}");
|
|
}
|
|
}
|
|
}
|