Skip to content

feat(software): Update Settings and Auto-update on the Update Software form CU-17tkuw6329p - #2864

Merged
pavlo-flamingo merged 4 commits into
mainfrom
feat/software-update-settings
Nov 2, 2026
Merged

pavlo-flamingo merged 4 commits into
mainfrom
feat/software-update-settings

Conversation

@pavlo-flamingo

@pavlo-flamingo pavlo-flamingo commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes https://app.clickup.com/t/17tkuw6329p (moved from https://app.clickup.com/t/17tkuw61fh7) (the Update Settings part)

Problem. The Update Software API now takes updateSettings and autoUpdate (openframe-oss-lib#2849), but the form has no place to set them.

Fix. SoftwareActionForm shows the design's "Update Settings" block for UPDATE (Figma 988:21462, separate auto-update rules 1034:8173):

  • If the app is running: Wait & notify (with "Countdown after the deadline", deadline 1–30 days, countdown 1–30 min) or Force Update (countdown only).
  • Auto-update: Keep it auto-updated, Same settings for auto-update, or a "For auto-updates" block of its own.
  • The values come back on SoftwareActionFormValues.updateSettings, in seconds; undefined for INSTALL.
  • showUpdateSettings={false} hides the block. The product demo passes it, so its picture still reaches the devices.

Built from lib primitives only (RadioGroupBlock, CheckboxBlock, Select, Alert). Defaults follow the design and the server: Wait & notify, 7 days, 5 minutes, auto-update on with the same settings.

Also fixes the SoftwareActionForm stories: they imported SOFTWARE_UPDATE_FIXTURE, which no longer exists, so every story failed to load.

Checked: vitest, eslint (fast + type-aware), prettier, tsc; Storybook against Figma at 1280 and 390 px.

Change-Set: package-update-settings

Change set flamingo-stack/fix-route-styles-full-sheet: these pull requests are one change, reviewed together.

Linked work

Linked by the Depends-On / Change-Set lines in these descriptions; this block is maintained by the hub.

…e form CU-17tkuw61fh7

The form's UPDATE action gets the design's "Update Settings" block (988:21462,
separate auto-update rules 1034:8173): Wait & notify or Force Update, the
deadline and countdown, Keep it auto-updated and Same settings for auto-update.
The values ride on SoftwareActionFormValues.updateSettings, undefined for
INSTALL. showUpdateSettings={false} hides the block; the product demo uses it
so the picture still reaches the devices.

Also fixes the SoftwareActionForm stories, which imported a fixture export
that no longer exists.
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦩 Flamingo Code Review

1 finding: 🔴 1 action required · 🟠 0 recommended · 🔵 0 informational

Advisory: findings do not block the merge.

1 defect outside any rule

Files Lines 🔴 Action required 🟠 Recommended 🔵 Informational
8 +444 / -6 1 0 0

🔴 Action required (1)

# Where Finding Flagged by
1 software-action-form.tsx:106 New showUpdateSettings default (true) silently changes SoftwareActionForm behavior for the existing frontend consumer Review

✅ What this change does well

  • update-settings-fields.test.tsx covers each conditional branch of the new UI (WAIT vs FORCE, deadline toggle, auto-update same/separate settings) with focused assertions.
  • software-action-form.tsx cleanly gates the new feature behind both action==='UPDATE' and the showUpdateSettings prop, keeping INSTALL and prior screens (software-update.tsx demo) unaffected by passing showUpdateSettings={false}.
  • index.ts re-exports the new module's full public surface (types, constants, component) consistently with the existing barrel-file convention in this directory.

Inline comments: 1 new

1 possible problem checked and ruled out
  • openframe-frontend-core/src/components/features/software/index.ts:38 13 new or changed definitions have no test referencing them: These are mostly re-exported types/constants and pre-existing simple components (newSoftwareRow, SoftwareRowFields, etc.) with no added logic risk; generic missing-test noise on boilerplate re-exports.

Change set

  • Land together with flamingo-stack/openframe-oss-frontend#743: its branch uses what this pull request removes or changes.
🤖 Prompt for AI agents: fix every finding
Address these code-review findings on pull request #2864 of flamingo-stack/openframe-oss-lib, most important first.
For each one, make the minimal change that resolves it and do not refactor unrelated code.
If you can show a finding is wrong, skip it and say why.

1. [Action required] openframe-frontend-core/src/components/features/software/software-action-form.tsx:106 New showUpdateSettings default (true) silently changes SoftwareActionForm behavior for the existing frontend consumer
   SoftwareActionForm now renders an entire new 'Update Settings' block whenever action === 'UPDATE', unless the host explicitly passes showUpdateSettings={false}. The only known consumer, openframe-oss-frontend's software-action-view.tsx, is pinned to the current package version and does not pass this new prop (per the cross-repo facts, it is flagged as a breaking signature change with that file as a consumer). Until that frontend PR (openframe-oss-frontend#743) lands and passes showUpdateSettings explicitly, upgrading this library's version in the frontend will cause the Update Software flow to suddenly show a large new settings section and start submitting an extra updateSettings field that the API may not expect yet (openframe-oss-lib#2849/#2871 presumably add server support, but merge order across repos must be respected).

Next: commit a suggestion, or hand a comment's prompt to your coding agent. React 👍 on a finding that helped and 👎 on one that is wrong: the reviewer learns from both.

Review again. New commits are not reviewed until you ask:

  • Review the new commits: only what was pushed since this review
  • Review the whole diff again: everything, including what was already reviewed

Or comment @flamingo-review (new commits) or @flamingo-review full (everything). Add the flamingo-review-always label to review every push.

Updated 2026-11-02 14:42 UTC · reviewed from Pavlo Shylo's machine

showUpdateSettings defaults to false, so a host on a newer lib that does not
send the settings yet never shows choices that go nowhere. The product demo
drops its explicit false; the story and the settings tests turn the block on.
@pavlo-flamingo
pavlo-flamingo added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 787d553 Nov 2, 2026
20 checks passed
@pavlo-flamingo
pavlo-flamingo deleted the feat/software-update-settings branch November 2, 2026 16:06
@pavlo-flamingo pavlo-flamingo changed the title feat(software): Update Settings and Auto-update on the Update Software form CU-17tkuw61fh7 feat(software): Update Settings and Auto-update on the Update Software form CU-17tkuw6329p Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Run the PR builds and publish snapshots (Java, npm preview); stays on until removed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants