Skip to content

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

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

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

Conversation

@pavlo-flamingo

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

Copy link
Copy Markdown
Contributor

Part of https://app.clickup.com/t/17tkuw6329p (moved from https://app.clickup.com/t/17tkuw61fh7) — the new contract only. Restoring the list fields, filters and sorts is a separate PR.

Problem. The Update Software API takes updateSettings and autoUpdate now (openframe-oss-lib#2849, on tenant-4240-19), and the form cannot set them.

Fix.

  • The form gets the lib's "Update Settings" block (openframe-oss-lib#2864, Figma 988:21462).

  • submitSoftwareBundle sends updateSettings and autoUpdate for UPDATE (update-settings-input.ts, with tests). Force sends no deadline; "Same settings for auto-update" sends settings: null.

  • schema.graphql: only the update-settings types and fields, copied verbatim from tenant-4240-19's live schema.

  • Core 0.0.841 (#2864, plus openframe-oss-lib#2937). The lib's block is opt-in (showUpdateSettings), and this page turns it on.

  • 0.0.841 also fixes the per-route CSS build: since feat(styles): each page carries only the CSS it renders CU-17tkuw61z4z #776 the complete sheet (next-styles/full-*.css) had no Tailwind utilities, so every signed-in page rendered unstyled (CU-17tkuw62qwh).

Rollout. Promote this frontend only where the backend already has #2849 (saas-tenant main does): an older backend rejects the unknown input fields and Update Software stops working.

Depends-On: flamingo-stack/openframe-oss-lib#2864
Depends-On: flamingo-stack/openframe-oss-lib#2937
Change-Set: package-update-settings

Change set flamingo-stack/openframe-oss-frontend#743: this pull request is the only one in it so far. Another pull request joins by naming this one in a Depends-On line, or by carrying the same Change-Set line.

Linked work

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

…-17tkuw61fh7

The Update Software form sends the new updateSettings and autoUpdate inputs
(openframe-oss-lib#2849) from the lib's Update Settings block
(openframe-oss-lib#2864): Wait & notify or Force Update with its deadline and
countdown, and whether later releases follow, with the same or their own
settings.

schema.graphql: only the update-settings types and fields, copied verbatim
from tenant-4240-19's live schema.

The lib is pinned to the #2864 preview build; swap it for a release before
merge.
@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
7 +216 / -6 1 0 0

🔴 Action required (1)

# Where Finding Flagged by
1 software-action-view.tsx:121 showUpdateSettings is always on, including for the INSTALL action which the schema rejects it for Review

✅ What this change does well

  • update-settings-input.ts cleanly isolates the WAIT/FORCE mapping logic (deadline only applies to WAIT, never to FORCE) into a single toPolicyInput helper reused for both updateSettings and autoUpdate.settings, avoiding duplicated branching.
  • update-settings-input.test.ts covers the meaningful edge cases (defaults, deadline disabled, FORCE ignoring deadline, separate vs. same auto-update settings) rather than just a happy path.
  • use-software-action-submit.ts spreads the new updateSettings/autoUpdate fields conditionally so existing INSTALL-action callers that never set form.updateSettings are unaffected.

Inline comments: 0 new

Outside the lines this diff changes (no inline comment possible)

  • 🔴 Action required · error · apps/web/src/app/(app)/software/components/action-form/software-action-view.tsx:121: showUpdateSettings is always on, including for the INSTALL action which the schema rejects it for
    SoftwareActionView is rendered for both SoftwareAction.INSTALL (apps/web/src/app/(app)/software/install/page.tsx) and SoftwareAction.UPDATE (apps/web/src/app/(app)/software/update/page.tsx), but the new showUpdateSettings prop passed to SoftwareActionForm is a hard-coded boolean with no dependency on action. The schema comments added in this diff explicitly say updateSettings/autoUpdate are 'UPDATE only, rejected for INSTALL'. If SoftwareActionForm's showUpdateSettings causes the form to populate form.updateSettings regardless of action, use-software-action-submit will spread toUpdateSettingsInputs(form.updateSettings) into the INSTALL mutation input too, and the server will reject the submission.
          action={action}
          onBack={handleBack}
          onSubmit={values => submit({ ...values, bundleId, deviceCount })}
          submitDisabled={loading || deviceCount === 0}
          submitting={isSubmitting}
          timing={SCHEDULE_TIMING}
          initialValues={INITIAL_VALUES}
          renderPackageSearch={renderPackageSearch}
    
1 possible problem checked and ruled out, 1 after reading more of the repository
  • apps/web/src/app/(app)/software/components/action-form/software-action-view.tsx:90 5 new or changed definitions have no test referencing them: Generic missing-test note on new container component and simple type/mapper files; no specific logic risk called out beyond boilerplate.
🤖 Prompt for AI agents: fix every finding
Address these code-review findings on pull request #743 of flamingo-stack/openframe-oss-frontend, 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] apps/web/src/app/(app)/software/components/action-form/software-action-view.tsx:121 showUpdateSettings is always on, including for the INSTALL action which the schema rejects it for
   SoftwareActionView is rendered for both SoftwareAction.INSTALL (apps/web/src/app/(app)/software/install/page.tsx) and SoftwareAction.UPDATE (apps/web/src/app/(app)/software/update/page.tsx), but the new `showUpdateSettings` prop passed to SoftwareActionForm is a hard-coded boolean with no dependency on `action`. The schema comments added in this diff explicitly say `updateSettings`/`autoUpdate` are 'UPDATE only, rejected for INSTALL'. If SoftwareActionForm's showUpdateSettings causes the form to populate form.updateSettings regardless of action, use-software-action-submit will spread toUpdateSettingsInputs(form.updateSettings) into the INSTALL mutation input too, and the server will reject the submission.

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 16:31 UTC · reviewed from Pavlo Shylo's machine

…settings

# Conflicts:
#	apps/web/package-lock.json
#	apps/web/package.json
The lib's Update Settings block is opt-in since openframe-oss-lib#2864's review fix;
this page passes showUpdateSettings because its submit sends updateSettings and autoUpdate.
Replaces the pkg.pr.new preview pin with the release.
@pavlo-flamingo

Copy link
Copy Markdown
Contributor Author

Re the Flamingo Code Review finding on software-action-view.tsx:121 ("showUpdateSettings is always on, including for INSTALL"): not a defect. In core 0.0.839 the form gates the block on the action itself, withUpdateSettings = action === 'UPDATE' && showUpdateSettings (software-action-form.tsx:120), so INSTALL renders no block and submits updateSettings: undefined (:137, covered by the lib test "INSTALL has none"). useSoftwareActionSubmit adds updateSettings/autoUpdate only when form.updateSettings is set (use-software-action-submit.ts:158). Checked live as well: Install runs from this form sent no settings and the backend accepted them.

…et carries its utilities again CU-17tkuw62qwh
@pavlo-flamingo
pavlo-flamingo added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 2, 2026
…settings

# Conflicts:
#	apps/web/package-lock.json
#	apps/web/package.json
@pavlo-flamingo
pavlo-flamingo added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 99642d4 Nov 2, 2026
20 checks passed
@pavlo-flamingo
pavlo-flamingo deleted the feat/software-update-settings branch November 2, 2026 17:42
@pavlo-flamingo pavlo-flamingo changed the title feat(software): Update Settings and Auto-update on Update Software CU-17tkuw61fh7 feat(software): Update Settings and Auto-update on Update Software CU-17tkuw6329p 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.

2 participants