Skip to content

Standardize the in-app update dialog across Studio apps #36

Open

Description

@ElbertePlinio

Goal

Give every shipping Pickforge Studio desktop app one branded, accessible update prompt that appears after the visible main window opens, then downloads, installs, and relaunches through Tauri.

Current state

  • PickForge has a custom updater store, titlebar badge, and Settings action, but no startup dialog.
  • PickScribe and PickGauge call window.confirm(...); wording, release-note handling, and behavior differ.
  • All three already use Tauri updater/process plugins and @pickforge/brand.
  • PickScribe and PickGauge already defer checks until the main window is visible; this must remain true for hidden login-start and floating/tray windows.
  • None of the three updater flows has focused behavior or visual coverage.

Scope means the currently shipping GUI auto-updating apps: PickForge, PickScribe, and PickGauge. PickLab is CLI/MCP-only; PickArena and web-only products do not self-update through a desktop dialog. Future Tauri apps should adopt the shared package.

Decision

Build @pickforge/tauri-updater in pickforge-platform as one framework-neutral Web Component plus a headless, injected update controller. SolidJS and Svelte apps mount the same element; no parallel framework-specific implementations.

The package will:

  • expose a testable state machine: idle → checking → available → downloading → installing → restarting, plus dismissed and recoverable error;
  • provide the Tauri adapter over check(), downloadAndInstall(event => …), and relaunch();
  • enforce one check per app process, packaged-build-only execution, main-window eligibility, and visible/focused-window deferral;
  • render update version, optional release notes, download progress, retryable errors, Update & restart, and Later;
  • treat startup network/update-feed failures as silent and non-blocking;
  • dismiss Later only for the current process so a still-available release is offered again on the next app launch;
  • retain PickForge’s manual Settings check and optional titlebar availability badge through the same controller;
  • accept injected adapters/metadata for deterministic tests and VRT, never production mocks or fallback behavior.

Design contract

Status: locked
Design lead: GPT-5.6 Sol — issue-planning session
Mode: targeted / preserve

Outcome

  • User and job: a desktop user opening an outdated app who needs to understand, trust, and apply the update without leaving the app.
  • Desired result: the same unmistakably Pickforge prompt in all three products, with one clear primary action and no browser-native confirm UI.
  • Success evidence: matched rendered captures in all three apps, keyboard/screen-reader checks, and signed packaged updater smoke tests.

Direction

  • Concept: a compact release card lifted above the app canvas.
  • Hierarchy: product mark + mono UPDATE AVAILABLE eyebrow → current/new version rail → concise release notes → one ember primary action.
  • Composition: centered native <dialog>, max-width: 560px, restrained glass-strong surface, 14px radius, hairline border, overlay shadow, generous but desktop-efficient spacing.
  • Type/color/shape: existing Geist/Geist Mono and --pf-* tokens; off-white text; muted metadata; one ember focal point on the primary action/progress; no app-specific recoloring.
  • Motion: 140–180ms opacity + 8px lift for orientation only; progress transitions without layout jumps; no motion under prefers-reduced-motion.
  • Take: existing Pickforge titlebar language, mono eyebrow/tick motif, glass-strong modal treatment, ember one-primary rule.
  • Reject: window.confirm, OS-native mismatched chrome, giant gradients, celebratory confetti, full release-page density, multiple competing CTAs.

Required states

  1. Available — version and optional release notes; Update & restart + Later.
  2. Downloading/installing — determinate progress when content length exists, otherwise honest indeterminate status; dismissal disabled once installation starts.
  3. Error — short inline error, Retry primary, Later secondary; app remains usable.
  4. Restarting — completion confirmation and protected terminal state.
  5. No update/check failure — no startup dialog.

Accessibility and interaction

  • Native <dialog> semantics with labelled title/description, initial focus on Update & restart, trapped focus, focus restoration, visible focus rings, and polite live progress.
  • Escape equals Later only before download begins; backdrop click does not dismiss.
  • Release notes are plain text, bounded/scrollable, and must not execute markup.
  • Works at each app’s configured minimum window: PickForge 880×600, PickScribe 780×560, PickGauge 820×580.
  • Respects light/dark/system themes and reduced motion.

Design deviations require an issue update and design-lead approval. Final visual acceptance returns to GPT-5.6 Sol after representative rendered captures exist.

Rollout flag

This spans multiple PRs/releases, so gate integrations with studioUpdateDialog from @pickforge/flags, default off. Keep the legacy updater UI active while the flag is off; remove the legacy path only after the new dialog ships enabled.

  • merged behind flag studioUpdateDialog
  • tested on main with the flag on in all three apps
  • enabled in the next PickForge, PickScribe, and PickGauge releases
  • flag and legacy updater paths removed from all three apps

PR plan

  • PR 1 — Canonical dialog visual spec (branding-visual)
    • Depends on: none
    • Touches: component guidance/tokens only where the locked contract exposes a real missing canonical rule
    • Validation: token/reference audit and rendered reference at minimum desktop size
    • Link: pickforge/branding-visual#10 (merged)
  • PR 2 — Shared updater package (pickforge-platform)
  • PR 3 — PickForge integration (pickforge)
  • PR 4 — PickScribe integration (pickscribe)
    • Depends on: published PR 2 package
    • Replaces: window.confirm updater while preserving visible-main-window deferral and hidden autostart behavior
    • Validation: focused unit tests, Svelte check/build, VRT at 1020×720 and 780×560, hidden-start smoke, packaged signed-update smoke
    • Link: feat(updater): integrate shared update dialog pickscribe#62 (merged)
  • PR 5 — PickGauge integration (pickgauge)
  • PR 6+ — Enable, release, then remove the flag (one narrow PR per app as release timing requires)
    • Depends on: app integration accepted with flag on
    • Validation: release artifact/latest.json checks, one real open → prompt → download → install → relaunch flow per app, then clean-cutover tests after flag removal
    • Link: pending

PRs 3–5 are independent after PR 2 publishes and may run in parallel in separate repos/worktrees. Use Refs pickforge/pickforge-platform#36 for partial PRs; only the final flag-removal PR closes this issue.

Acceptance criteria

  • PickForge, PickScribe, and PickGauge mount the same shared dialog implementation and CSS; no duplicated app-local modal markup.
  • Opening an outdated packaged app shows the prompt once, only after the visible main window is ready.
  • Hidden login-start, tray, and floating windows never surface or duplicate the prompt.
  • Later, Escape, progress, retry, install, and relaunch behavior match the contract.
  • Release notes remain safe plain text and long notes do not overflow minimum-size windows.
  • Startup check failure never blocks launch or opens an error dialog.
  • Keyboard, focus restoration/trap, screen-reader naming/live progress, contrast, light/dark/system theme, and reduced-motion checks pass.
  • Deterministic controller and DOM tests cover no-update, available, dismissal, single-flight, progress with/without content length, install failure/retry, and relaunch.
  • Each app has representative normal/minimum-size screenshots accepted by the named design lead.
  • Each app passes a signed packaged update smoke from old build to staged newer build.
  • Legacy window.confirm and obsolete app-local updater implementations are removed after rollout.

Validation references

Tauri v2 supports check(), update.downloadAndInstall(event => …) with Started/Progress/Finished events, and relaunch() through the process plugin. Existing signed endpoint/public-key configuration remains app-owned and unchanged.

Current status: Integrated behind flag in all three apps (PRs 1–5 merged)
Next: PR 6+ — enable per app release, run the owner-gated packaged signed-update smoke and final design-lead acceptance, then remove the flag and legacy paths.

Activity

  1. added
    enhancement
    flagged
    on Jul 13, 2026
  2. ElbertePlinio commented on Jul 23, 2026

    @ElbertePlinio
    MemberAuthor

    PR 2 progress: @pickforge/tauri-updater implemented on branch feat/36-tauri-updater (not yet pushed) — headless controller state machine, pickforge-update-dialog Web Component (native <dialog>, --pf-* tokens, a11y per contract), injected Tauri adapter, process-gate + eligibility seams. Orchestrator review caught a contract gap: manual Settings re-check was impossible after Later/cached no-update; fixed with check({ manual: true }) semantics + 5 regression tests (282 passing, 91% controller coverage). PR 1 canonical-spec audit in branding-visual is running now; local review panel + fixture visual captures follow, then the PR opens. PR 3–5 app integrations remain flag-gated behind studioUpdateDialog.

  3. ElbertePlinio commented on Jul 23, 2026

    @ElbertePlinio
    MemberAuthor

    PR 1 merged: pickforge/branding-visual#10 — canonical in-app dialog spec (COMPONENTS.md §13, overlay shadow token, dialog-entrance motion row). Audit verdict: only 3 real canon gaps; everything else the locked contract relies on was already documented. Two element-side deviations (backdrop scrim, glass-strong recipe) are being fixed on the PR 2 branch to match the now-documented canon.

  4. ElbertePlinio commented on Jul 23, 2026

    @ElbertePlinio
    MemberAuthor

    PR 2 merged: #56 — @pickforge/tauri-updater on main. Serious-class panel (Grok 4.5 correctness, Opus 4.8 tests/operational, Sonnet 5 conformance/a11y) + targeted fix-verification: 10 adjudicated findings fixed and verified (stable dialog DOM, single notes rendering, manual-retry freshness, check generation guard, dismissed-preserving catch, -webkit-backdrop-filter, relaunch-failure + progress-cap tests, install re-entrancy, full fixture state coverage). 291 tests, 94% package statements. Next: PR 3–5 app integrations behind studioUpdateDialog — they depend on the published package, so they queue behind the owner-gated platform tag/publish; design-lead visual acceptance runs there with real rendered captures.

  5. ElbertePlinio commented on Jul 23, 2026

    @ElbertePlinio
    MemberAuthor

    PRs 3–5 built, panel-reviewed, and fix-verified — merges are staged behind the in-flight CI gate-baseline rollout (pickforge#266 / pickscribe#64 / pickgauge#71), which added required checks ahead of these branches.

    Review round (serious user-facing: Grok 4.5 correctness / Opus 4.8 tests+ops / Sonnet 5 conformance+boundaries, KISS gate in all lanes; no vision lane — visual canon locked in PRs 1–2): 1 P2 accepted and fixed (pickgauge eligibility required visible and focused with a register-gap re-check — was visible-only), 5 P3s fixed (pickforge unhandled rejections in the eligibility wait; pickscribe focus-listener leak + dep-spec alignment; pickgauge untested no-double-prompt routing, now extracted+tested), 1 dismissed (pickforge 2-line startup branch — both endpoints fully tested; extraction would be ceremony). Fix-verification reviewer confirmed all fixes with tests that fail on the old code; no regressions. Lesson promoted to pickgauge AGENTS.md (listener register-gap rule).

    Recorded design deviation + resolution: PickScribe/PickGauge have no VRT harness, so the PR-plan's per-app VRT lines could not be met without committing a browser-test stack (ruled out, KISS). Design lead (GPT-5.6 Sol) reviewed and required one-off fixture captures instead: 8 screenshots (2 states × 2 sizes per app) committed as docs/release-evidence/ on each branch — both apps ACCEPTED by the design lead. Final packaged-app visual acceptance still returns at enablement (PR 6+) per the contract.

    Deferred with signal: Grok's KISS suggestion to move PickScribe's deferral from scheduleStartupUpdate into controller-side eligibility — revisit if PickScribe gains a manual settings check. Also noted: pickforge still pins @pickforge/flags@^0.4.0 (pre-existing) while the two new consumers use ^0.12.0 — align in a housekeeping change.

    Owner-gated next: packaged signed-update smokes and flag enablement (PR 6+ checklist).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementflagged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions