mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-26 11:49:16 +00:00
feat: acknowledge Compose Doctor preflight findings per stack (#1560)
* feat: acknowledge Compose Doctor preflight findings per stack Add node-scoped preflight acknowledgements with read-time filtering. Supports four expiry modes and activeStatus for banner, tab dot, and readiness. * fix: align preflight acknowledge UI with design system Use Combobox, modal chrome, mono fields, and non-destructive clear confirm. * fix: update test mocks to match new preflight field names The preflight-acknowledgements feature renamed status-\>activeStatus and highestSeverity-\>activeHighestSeverity in the preflight report shape. The corresponding test mocks in three files still used the old field names, causing 6 test failures across backend and frontend. - backend: update-guard-service mock now passes activeStatus - frontend PreflightPanel: Report interface and report() helper now include activeStatus, activeHighestSeverity, activeCount, acknowledgedCount - frontend StackAnatomyPanel doctor: mock API response now includes activeHighestSeverity and activeStatus
This commit is contained in:
@@ -204,6 +204,23 @@ Running preflight before updating gives the readiness check the most accurate si
|
||||
|
||||
Preflight runs against the **active node**, so selecting a remote node checks the stack against that machine's live Docker state. On mobile, the same report appears under the **Compose** section of the stack detail view.
|
||||
|
||||
## Acknowledging findings
|
||||
|
||||
When a finding is valid in general but intentional for your stack, you can acknowledge it so it no longer counts toward the active warning total, the Doctor tab badge, or the update readiness check.
|
||||
|
||||
1. Open the **Doctor** tab and run preflight if you have not already.
|
||||
2. On any active finding row, click **acknowledge**.
|
||||
3. Optionally add a note explaining why the finding is acceptable.
|
||||
4. Choose when Sencho should show the finding again:
|
||||
- **Forever** until you clear the acknowledgement manually.
|
||||
- **Until Compose changes** when the stack's compose fingerprint changes (for example after you edit `compose.yaml`).
|
||||
- **30 days** on a rolling timer.
|
||||
- **Until image changes** for a specific service when that service's image reference in the effective model changes. This tracks tag or reference changes, not silent digest re-pulls of the same tag.
|
||||
|
||||
Acknowledged findings move to a collapsible **Acknowledged** section at the bottom of the report. You can clear an acknowledgement there to restore the finding to the active list immediately.
|
||||
|
||||
Acknowledgements are stored per node, stack, rule, and service. They do not sync across nodes in a fleet. Clearing an acknowledgement or letting an expiry mode lapse restores the finding on the next preflight read without re-running checks.
|
||||
|
||||
<Frame>
|
||||
<img
|
||||
src="/images/compose-doctor/compose-doctor-findings.png"
|
||||
|
||||
Reference in New Issue
Block a user