Skip to content

feat(native): add sidebar provider and server update pills - #102

Merged
rynfar merged 2 commits into
nativefrom
nw/100-update-pills
Nov 3, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/100-update-pills

Conversation

@rynfar

@rynfar rynfar commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Native had no sidebar update notices or bulk update confirmation. This ports the first SB-UPDATES slice for the connected environment: provider available/updating/failed/unchanged/success notices, dismissal and Providers navigation, plus the server/provider update pill and Update everything dialog.

The planner, provider selectors, restart selection, running-thread counts/warnings and lifecycle outcome validation live in crates/core. crates/client runs provider updates before server updates, checks permissions at execution, commits remote desktop-host updates when required, and waits for matching lifecycle readiness before reporting success. The views use semantic tokens, static indicators and a one-shot success dismissal. The sidebar remains .cached(); the update entity only notifies when its derived presentation changes. Managed update restrictions are applied from the existing server-config summary.

Refs #100, M2, SB-UPDATES remains partial.

Validation:

  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo build -p t3-native --features snapshot
  • node scripts/gen-theme.ts --check
  • node --test parity/sync.test.ts
  • From client-runtime: node ../../apps/native/conformance/generate.ts --check
  • Read-only update_probe against smoke server 14658: config 0.1.6, ten providers, lifecycle welcome and ready; zero mutating requests. Transcript: /tmp/native100-evidence/wire.txt.
  • Root check:changed was interrupted when its default base selected fork/main and included all 691 files from the existing native branch. Its format/lint/knip steps passed; the native checks above are the validation for this change.

No update or restart was executed: smoke reports no self-update capability, and provider updates replace installed binaries. Destructive states were tested as pure logic and offscreen fixtures. Fixture confirmation cannot dispatch mutations. Offscreen clicks verified dismissal, Providers navigation and skipped-row expansion; dialog also checked at font size 20.

Local PNG evidence (intentionally not uploaded, per worker brief):

  • Before: /tmp/native100-before-dark.png, /tmp/native100-before-light.png.
  • Available: /tmp/native100-evidence/idle-dark.png, /tmp/native100-evidence/idle-light.png.
  • Updating provider: /tmp/native100-evidence/running-dark.png, /tmp/native100-evidence/running-light.png.
  • Failed: /tmp/native100-evidence/failed-dark.png, /tmp/native100-evidence/failed-light.png.
  • Unchanged: /tmp/native100-evidence/unchanged-dark.png, /tmp/native100-evidence/unchanged-light.png.
  • Success: /tmp/native100-evidence/succeeded-dark.png, /tmp/native100-evidence/succeeded-light.png.
  • Cleared: /tmp/native100-evidence/cleared-dark.png, /tmp/native100-evidence/cleared-light.png.
  • Updating run: /tmp/native100-evidence/updating-dark.png, /tmp/native100-evidence/updating-light.png.
  • Dialog: /tmp/native100-evidence/dialog-dark.png, /tmp/native100-evidence/dialog-light.png.
  • Interactions: /tmp/native100-evidence/dismiss-dark.png, /tmp/native100-evidence/settings-dark.png, /tmp/native100-evidence/skipped-dark.png.
  • Scaling: /tmp/native100-evidence/dialog-font20-light.png.

Remaining gaps:

  • Fleet-wide execution: native connects to one saved environment at a time. The pure planner accepts multiple environments and the dialog fixture demonstrates combined rows/counts.
  • The web's durable run capsule/popover, per-machine stage/elapsed/slow status, retry/dismiss results and channel-switch planner are not ported. This slice shows static in-flight state and result toasts. Progress-stream updates remain unported.
  • Electron useDesktopUpdateState, the local download toast and its release-note feed do not apply to the native bundle. No native self-updater was built. Remote desktop-host preparation/commit uses the server RPC, not an Electron bridge.
  • General managed-policy UI remains AP-POLICY's responsibility; update denial checks use the policy data already present in native.

Review fixes:

  • Lost service acknowledgements and graceful RPC interrupts now wait for reconnection and verify resumed readiness, rather than reporting a completed restart as a failure.
  • Lost desktop commits wait for a new WebSocket generation, retry the same prepared token on old-version readiness, and fail after the web's bounded retry limit. Regression tests failed before the state-machine fix and pass after it; no sleeps or polling in those tests.
  • Update dialog buttons and sidebar controls have Tab stops, Enter/Space activation and visible focus rings. Tab/Shift+Tab stay in the dialog; Escape and cancellation restore the opener's focus. Keyboard dismissal moves focus to the next control.

Review keyboard evidence (local offscreen PNGs):

  • /tmp/native100-review-evidence/dialog-update-tab.png — Tab from Cancel reaches Update.
  • /tmp/native100-review-evidence/dialog-update-enter.png — Enter confirms the safe fixture and closes the dialog.
  • /tmp/native100-review-evidence/dialog-skipped-space.png — Shift+Tab reaches skipped rows; Space expands them.
  • /tmp/native100-review-evidence/sidebar-trigger-space.png — Escape restores the trigger; Space reopens the dialog.
  • /tmp/native100-review-evidence/sidebar-provider-enter.png — keyboard navigation and Enter open Providers settings.
  • /tmp/native100-review-evidence/sidebar-dismiss-space.png — keyboard navigation and Space dismiss the notice.
  • /tmp/native100-review-evidence/dialog-update-tab-light.png — light-theme keyboard focus.
    Regression transcript: /tmp/native100-review-failing.log (four failing cases before the fix). All 1,035 workspace tests pass after the fix.

Built with GPT-6.1 Sol in Codex

@rynfar
rynfar force-pushed the nw/100-update-pills branch from 7747da3 to 9023f14 Compare November 3, 2026 05:12
@rynfar
rynfar merged commit dcb9a4d into native Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant