Skip to content

fix: Lifetime period end to end in the desktop app, compact menubar labels#781

Merged
iamtoruk merged 1 commit into
mainfrom
fix/lifetime-period-surfaces
Jul 20, 2026
Merged

fix: Lifetime period end to end in the desktop app, compact menubar labels#781
iamtoruk merged 1 commit into
mainfrom
fix/lifetime-period-surfaces

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

From live 0.9.19 screenshots: the desktop Life tab errored with invalid period because the electron IPC allowlist (app/electron/main.ts PERIODS) never learned lifetime even though the renderer and CLI both did; and the menubar period row wrapped once Lifetime joined (6 Months broke onto two lines). The allowlist gains lifetime; menubar labels compact to Today / 7D / 30D / Month / 6M / Life, matching the desktop strip. Selection is not persisted by raw value. Swift 113 tests and app 413 tests green. Suggested follow-up in the commit: derive the allowlist from the renderer's period module so three layers cannot drift again.

The desktop app's Life tab failed with 'invalid period': the renderer
and CLI both learned lifetime, but the electron IPC allowlist between
them did not. The menubar's period row also overflowed once Lifetime
joined it; labels compact to the desktop strip's forms (7D, 30D, 6M,
Life). Period selection is not persisted by raw value, so the label
change is safe. Follow-up worth doing: derive the IPC allowlist from
the renderer's period module so a new period cannot miss one layer of
three again.
@iamtoruk
iamtoruk merged commit 739d0b7 into main Jul 20, 2026
3 checks passed
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