feat(desktop): add grouped settings pages

Use a two-column settings dialog on desktop. Wrap the tabs at narrow
widths and scroll the settings content independently.

Show workspace storage and sync details. Remove draft diagnostics.
Show the shortcut labels for the host platform.

Store the default new document mode in the desktop app. Use modal
bounds to find the backdrop in the workbench tests.
This commit is contained in:
DarkSky committed 2026-12-03 00:54:59 +09:00
1 parent 9ed267770f
commit 72fc54ddab
2 files changed
+1001 -264

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -226,7 +226,8 @@ fn search_and_settings_own_keyboard_and_pointer_until_dismissed() {
assert_eq!(view.state.modal, modal);
assert_eq!(view.state.quick_search.open, modal.is_none());
});
app.window.simulate_click(point(px(600.0), px(80.0)));
app.window
.simulate_click(point(bounds.center().x, bounds.top() / 2.0));
app.window.request_frame();
app.shell(|view, window, _| {
assert!(focused.is_focused(window));
@@ -334,16 +335,6 @@ fn narrow_workbench_drawer_and_centered_modals_fit_the_viewport() {
assert_eq!(bounds.center().y, px(height as f32 / 2.0));
assert!(bounds.top() >= px(16.0));
assert!(bounds.bottom() <= px(height as f32 - 16.0));
if card == "desktop.settings.modal" {
app.shell(|_, window, _| {
let row =
&window.frame_snapshot().elements["desktop.settings.deduplicated_blobs"];
assert!(
row.bounds.y + row.bounds.height
<= row.content_mask.y + row.content_mask.height
);
});
}
app.key("escape");
}