Improve local filetree view state and sidebar performance

This commit is contained in:
lix-2026
2026-05-27 11:31:12 +08:00
parent 58e2fdb5d8
commit 3ae33cc21d
56 changed files with 8614 additions and 461 deletions
@@ -14,6 +14,18 @@ const MIGRATIONS: &[(&str, &str)] = &[
"v2-ai-runtime-store",
include_str!("../migrations/002-ai-runtime-store.sql"),
),
(
"v3-sidebar-shortcuts",
include_str!("../migrations/003-sidebar-shortcuts.sql"),
),
(
"v4-user-ui-preferences",
include_str!("../migrations/004-user-ui-preferences.sql"),
),
(
"v5-sidebar-shortcut-root-uri",
include_str!("../migrations/005-sidebar-shortcut-root-uri.sql"),
),
];
/// Create the `_migrations` meta-table if it does not exist.
@@ -94,6 +106,8 @@ mod tests {
"legacy_id_map",
"ai_runtime_runs",
"ai_runtime_events",
"sidebar_shortcuts",
"user_ui_preferences",
] {
assert!(table_exists(&conn, table), "table {table} should exist");
}