trackslash
VAULT-121 P1 For an agent

Mac app: Settings can't be scrolled, and its rows sit under the window's header

0
All issues

Description

Found by Bradley on the Mac app (2026-10-10). The Settings window (⌘,) can't be scrolled, and its rows are stuck underneath the window's header (the toolbar with the General and Security tabs). It's hard to even make out what's on the page, and the settings below the fold can't be reached. Security, with the App Lock Password's rows and Delete All Data, is the worst, as it's the longest.

Where to look

  • VaultMacScene shows Settings as VaultMacLockedWindowGate { VaultMacSettingsView(...) } with .frame(minWidth: 480, minHeight: 320).
  • VaultMacSettingsView is a TabView (General, Security) pinned to .frame(width: 540, height: 520). Each tab is a Form with .formStyle(.grouped).
  • Likely causes, to check: the fixed frame and the gate's frame fighting over the window's size; the form not getting the window's safe area under the toolbar, so it starts under the tab bar; or something in VaultMacWindowPrivacy (VAULT-109), which changes every window as it opens and updates.
  • Check the Help window (VaultMacHelpView) and About too, as they're built the same way.

Change

  • Settings opens at a size that suits it. Each tab scrolls when its content is taller than the window, and starts below the tab bar, like System Settings and other Mac apps' settings.
  • Every row in General and Security can be seen and reached, at the default text size and the largest.
  • Switching tabs may resize the window to fit, as Mac settings windows do, but nothing is ever hidden under the header.

Tests

  • Snapshot tests of each tab in a Settings-sized window, light and dark, showing the first row clear of the header.
  • A Mac UI test that opens Settings, goes to Security and scrolls to Delete All Data.

Done when

Both tabs scroll, nothing sits under the header, and the snapshots and UI test pin it.

GitHub

0

No branches or pull requests linked.

Comments

2
Bradley

Follow-up: #730. #728's Mac UI test, test_settings_showsEveryRowBelowItsTabs, was merged while the Mac UI tests were skipped, and failed on main: the Settings window opens at the tab it showed last, which the app's defaults keep between launches. The test now chooses the General tab first. It passes, and its run shows the window right: the toolbar ends at the top of the form, every row is below it, and Delete All Data is within the window.

Bradley

Fixed in https://github.com/badbundle/vault-app/pull/728 (merged as 337661a1).

  • Cause: Settings' TabView wasn't the Settings window's root. VaultMacLockedWindowGate wrapped it, with a frame of its own. So the window didn't get the Mac's settings style, with the tabs in its toolbar, and the tab view's fixed 540 by 520 fought the gate's minimum size.
  • Fix: the tab view is now the window's root, so General and Security are toolbar tabs. The lock gate is inside each tab, so Settings still shows only that Vault is locked while it is.
  • Sizes: each tab is sized for its rows, General 540 by 520 and Security 540 by 600, and the forms scroll at larger text sizes.
  • Tests: the Settings snapshots use those sizes and show every row. A new Mac UI test, MacSettingsTests, checks the tabs are in the toolbar, each tab's first row starts below it, and Delete All Data can be reached.
  • Still to do: the Mac was locked, so this was validated with the Mac UI tests skipped. The new UI test compiles but hasn't run yet, and the real window hasn't been checked by eye. Both are for when the Mac is next unlocked.