Skip to content

feat(database): surface the DuckDB conversion as an explicit user flow #2136

Closed

Description

@shm11C3

Outcome

The conversion is something the user starts knowingly, can watch, can cancel, and can act on when it fails.

Child of #2090. Depends on the state vocabulary defined by the conversion lifecycle child.

Scope and verification

  • Conversion starts from explicit user intent, not silently at startup. Archive preferences and the independent retention settings survive it.
  • Progress and cancellation reach the UI from the App lifecycle owner's state vocabulary rather than from a second source of truth.
  • Failures are actionable without exposing implementation detail in normal flows; diagnostics are retained for the cases that need them.
  • All new strings go through i18n.
  • Follow .agents/skills/hardwarevisualizer-design-review/SKILL.md and .agents/rules/frontend.md: inspect the rendered result and failure states at the relevant viewports rather than reasoning about them.

Activity

  1. added
    area:frontend
    area:backend
    on Sep 14, 2026
  2. shm11C3 commented on Sep 21, 2026

    @shm11C3
    OwnerAuthor

    Added scope: retention default and a one-time notice (decided 2026-09-22)

    The native database makes a longer Retention Period affordable, so two small things ship with this flow. Anything beyond them is deliberately out of scope (YAGNI).

    1. Backend-aware default for the Hardware Archive Retention Period.

    • Today HardwareArchiveSettings::default() is 30 days with scheduled deletion on (core/src/settings/hardware_archive.rs), and the Settings input accepts 1 to 100,000 days.
    • New default: 30 days while SQLite is authoritative, 365 days while the native database is authoritative.
    • It applies only when no value has been saved. A value already in settings.json is never rewritten: a stored 30 cannot be told apart from a user who chose 30, and changing it would override explicit intent (DP-06). SQLite keeps 30 because long retention on SQLite is the cost this migration exists to remove.
    • Storage Health retention and the Cooling daily rollup retention are unaffected.

    2. One notice on the conversion-complete screen.

    • Shown once, at the end of a successful conversion: the archive can now keep more history in the same space, the current Retention Period is N days, and two choices: set it to one year, or keep it.
    • Nothing changes unless the user chooses. The choice is saved through the existing typed settings IPC. Choosing to keep it means the notice is not shown again; whether it was shown is UI-local state.
    • Strings go through i18n.

    Not doing: an estimated on-disk size for the chosen period (no long-history measurement exists yet, and a wrong number is worse than none), a permanent explainer in Settings, prompting users who have not converted, or migrating stored values.

  3. moved this from Proposal to In progress in Feature releaseon Sep 23, 2026
  4. moved this from In progress to Done in Feature releaseon Sep 23, 2026
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

    area:backendarea:frontend

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions