mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-02 18:19:07 +01:00
Align History zoom, custom window, and upgrade banner Help with runtime (#5405)
Document two recently merged runtime capabilities in shipped Help and API reference guides: - Document drawer History click-and-drag brush zoom, Escape cancellation, double-click and Reset zoom controls, paused 30-second live polling while zoomed, and the keyboard-accessible Select time window editor (including DST offset disambiguation) in docs/METRICS_HISTORY.md. - Document GET /api/metrics-store/history exact custom window start and end Unix-millisecond query parameters, mutual exclusivity with range, bounds validation (1s to 365d, non-future end, HTTP 400 on invalid inputs), and custom response fields in docs/METRICS_HISTORY.md and docs/API.md. - Document upgrade readiness checks (Update blocked, Review checks, upgrade warnings, Upgrade checks panel, and Install blocked) in the global update banner and Confirm Update dialog in docs/AUTO_UPDATE.md. - Sync mirrors under frontend-modern/public/docs/ and add runtime-backed regression tests in scripts/tests/test_navigation_help_docs.py. Contract-Neutral: Documentation, shipped Help mirror, and doc regression test updates describing already-landed runtime behaviour (#5335 and #5393) with no runtime, API, or subsystem contract changes. --- Fleet candidate `20261128T140410Z-product-intelligence` from the `product-intelligence` lane. Reviewed tip `7fcfbee5b856ea80c005f6f6c4270d803d98d9b8` on `main`. [How Pulse handles triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
This commit is contained in:
@@ -2243,10 +2243,12 @@ Query params:
|
||||
- `resourceType` (required): `node`, `storage`, `agent`, `disk`, `k8s` (or the Kubernetes kinds `pod`, `k8s-cluster`, `k8s-node`, `k8s-deployment`, which read the same history), `vm`, `system-container`, `oci-container`, `app-container`, `docker-host`
|
||||
- `resourceId` (required)
|
||||
- `metric` (optional): `cpu`, `memory`, `disk`, etc. Omit for all metrics
|
||||
- `range` (optional): Positive whole days (for example `7d`, `90d`) or a duration like `30m` or `24h`. Omitted or blank defaults to `24h`. Maximum `365d` (`8760h`) per request; invalid or longer ranges return `400`.
|
||||
- `range` (optional): Positive whole days (for example `7d`, `90d`) or a duration like `30m` or `24h`. Omitted or blank defaults to `24h`. Maximum `365d` (`8760h`) per request. Invalid or longer ranges return `400`.
|
||||
- `start`, `end` (optional, mutually exclusive with `range`): Positive integer Unix-millisecond timestamps for an exact custom window. Both must be provided once when either is supplied, `end` must be greater than `start`, the span must be between `1s` and `365d`, and `end` cannot be in the future. Conflicting or invalid values return `400`.
|
||||
- `maxPoints` (optional): Downsample to a target number of points
|
||||
|
||||
> **Plans**: The same request limit applies on every plan. The answer includes only observations that storage retention still keeps.
|
||||
Responses include resolved `start` and `end` Unix-millisecond bounds and set `range` to `"custom"` when queried with `start` and `end`.
|
||||
An explicit `metric` returns a `points` array; omitting it returns a `metrics`
|
||||
object keyed by metric name. Use the source ID and type from the affected
|
||||
chart's request, not its display name or an internal store type. Older
|
||||
|
||||
@@ -28,22 +28,23 @@ installer in **Settings → Infrastructure → Install on a host**. See
|
||||
|
||||
### When an Update is Available
|
||||
|
||||
1. Navigate to **Settings → System → Updates**
|
||||
2. If an update is available, you'll see an **"Install Update"** button
|
||||
3. Click the button to open the confirmation dialog
|
||||
1. Navigate to **Settings → System → Updates** (or use the global update banner at the top of the page)
|
||||
2. If an update is available and no readiness check is blocked, you'll see an **"Install Update"** button in Settings (or **"Apply Update"** in the banner)
|
||||
3. Click the button to open the **Confirm Update** dialog
|
||||
4. Review the update details:
|
||||
- Current version → New version
|
||||
- Major-version or pre-release warning, when the update carries one
|
||||
- **Upgrade checks** (`Blocked`, `Warning`, and `Pass`), when readiness data is loaded
|
||||
- Estimated time and prerequisites, when listed
|
||||
- Root-access notice, when the update requires root
|
||||
- Automatic backup notice, when rollback is supported
|
||||
5. Click **"Start Update"** in the confirmation dialog to begin
|
||||
5. Acknowledge the temporary unavailability notice and click **"Start Update"** to begin. When any readiness check is blocked, acknowledgement is disabled and the button shows **"Install blocked"** until the blocked check is resolved.
|
||||
|
||||
### Upgrade checks
|
||||
|
||||
When an update is available, **Settings → System → Updates** loads upgrade
|
||||
readiness checks from `GET /api/updates/plan` (`ready`, `attention`, or
|
||||
`blocked`):
|
||||
When an update is available, **Settings → System → Updates**, the global update
|
||||
banner, and the **Confirm Update** dialog load upgrade readiness checks from
|
||||
`GET /api/updates/plan` (`ready`, `attention`, or `blocked`):
|
||||
|
||||
- **Server update path** (`server-update-path`): whether automatic install and
|
||||
rollback support are available or manual steps are required.
|
||||
@@ -60,6 +61,17 @@ readiness checks from `GET /api/updates/plan` (`ready`, `attention`, or
|
||||
`PULSE_DATA_DIR`) is on the container's ephemeral root filesystem instead of
|
||||
a mounted volume.
|
||||
|
||||
In the collapsed update banner, a blocked readiness check replaces **Apply
|
||||
Update** with an **Update blocked** badge and a **Review checks** button.
|
||||
Non-blocking warnings show an upgrade-warning button (`1 upgrade warning`,
|
||||
`N upgrade warnings`, or `Upgrade checks need review`) that expands the banner.
|
||||
Both the expanded banner and the **Confirm Update** dialog show the **Upgrade
|
||||
checks** panel ordered **Blocked**, **Warning**, then **Pass** with each
|
||||
check's summary and remediation details. When any check is blocked, the
|
||||
expanded banner disables **Apply Update Automatically** as **Install blocked**,
|
||||
and **Confirm Update** disables the acknowledgement checkbox and **Start
|
||||
Update** as **Install blocked**.
|
||||
|
||||
Resolve any **blocked** checks before installing an update. Review **warning**
|
||||
checks before proceeding, even though they do not disable installation.
|
||||
|
||||
|
||||
@@ -103,6 +103,27 @@ inspection. When reporting a display disagreement, keep the panel, time,
|
||||
range, labels and relevant values with consistent private aliases; do not
|
||||
share raw responses, credentials or a full network export.
|
||||
|
||||
### Zoom and custom time windows
|
||||
|
||||
On desktop, click and drag horizontally across a drawer chart to highlight a
|
||||
synchronized time selection across every panel in the drawer. Releasing the
|
||||
pointer zooms all panels to that exact window, down to a minimum span of 1
|
||||
minute. Press **Escape** while dragging to cancel without closing the drawer.
|
||||
|
||||
For keyboard use or exact timestamps, click **Select time window** to open the
|
||||
**Start** and **End** editor and choose **Apply** (or **Cancel** / **Escape**).
|
||||
When a local time falls in a daylight-saving fallback overlap, Pulse offers a
|
||||
timezone-offset selector for that endpoint. **Select time window** stays
|
||||
available even when the current preset has no stored readings, so you can jump
|
||||
directly to an older period. Custom drawer windows must be between 1 minute and
|
||||
365 days and cannot end in the future.
|
||||
|
||||
While zoomed, the toolbar shows the active window summary and **Reset zoom**.
|
||||
Live 30-second background polling and live fallback readings pause so the pinned
|
||||
window stays stable while you inspect it. Double-click a chart, click **Reset
|
||||
zoom**, or choose a preset in **History range** to return to live preset
|
||||
polling.
|
||||
|
||||
### Proxmox live migration and VMID reuse
|
||||
|
||||
When a Proxmox VE guest migrates to another node in the same cluster, Pulse
|
||||
@@ -255,8 +276,9 @@ These endpoints require authentication with the `monitoring:read` scope.
|
||||
- `resourceId` (required): the source identifier used by that chart, not its
|
||||
display name (for Proxmox guests this is normally `instance:node:vmid`)
|
||||
- `metric` (optional): `cpu`, `memory`, `disk`, etc. Omit to return all metrics for the resource.
|
||||
- `range` (optional): Positive whole days (for example `7d`, `90d`) or a duration like `30m` or `24h`. Omitted or blank defaults to `24h`. Maximum `365d` (`8760h`) per request on every plan; invalid or longer ranges return `400`. This is a read limit, not a retention setting.
|
||||
- `maxPoints` (optional): Downsample to a target number of points
|
||||
- `range` (optional): Positive whole days (for example `7d`, `90d`) or a duration like `30m` or `24h`. Omitted or blank defaults to `24h`. Maximum `365d` (`8760h`) per request on every plan. Invalid or longer ranges return `400`. This is a read limit, not a retention setting.
|
||||
- `start` and `end` (optional, mutually exclusive with `range`): Positive integer Unix-millisecond timestamps defining an exact custom window. Both must be provided once when either is supplied, `end` must be greater than `start`, the span must be between `1s` and `365d`, and `end` cannot be in the future. Combining `start`/`end` with `range` or violating these bounds returns `400`.
|
||||
- `maxPoints` (optional): Downsample to a target number of points within the requested range or custom window.
|
||||
|
||||
For a one-off check, open the affected resource's History panel in your signed-in
|
||||
Pulse browser. If an API read is needed, use the path and query from that
|
||||
@@ -287,7 +309,9 @@ share only the relevant manually redacted error and bounded observations.
|
||||
|
||||
With `metric=cpu` (or another explicit metric), the response has a `points`
|
||||
array. Omitting `metric` instead returns a `metrics` object keyed by metric
|
||||
name, not the same single-series shape. Inspect timestamps and `source` too:
|
||||
name, not the same single-series shape. Responses include resolved `start` and
|
||||
`end` Unix-millisecond bounds, with `range` set to `"custom"` when queried with
|
||||
`start` and `end`. Inspect timestamps and `source` too:
|
||||
`store` is persisted history; `memory` or `live` fallback does not establish
|
||||
durable historical coverage. An HTTP 200 with no points proves neither zero
|
||||
usage nor successful collection, and a non-zero current value does not prove
|
||||
|
||||
@@ -2243,10 +2243,12 @@ Query params:
|
||||
- `resourceType` (required): `node`, `storage`, `agent`, `disk`, `k8s` (or the Kubernetes kinds `pod`, `k8s-cluster`, `k8s-node`, `k8s-deployment`, which read the same history), `vm`, `system-container`, `oci-container`, `app-container`, `docker-host`
|
||||
- `resourceId` (required)
|
||||
- `metric` (optional): `cpu`, `memory`, `disk`, etc. Omit for all metrics
|
||||
- `range` (optional): Positive whole days (for example `7d`, `90d`) or a duration like `30m` or `24h`. Omitted or blank defaults to `24h`. Maximum `365d` (`8760h`) per request; invalid or longer ranges return `400`.
|
||||
- `range` (optional): Positive whole days (for example `7d`, `90d`) or a duration like `30m` or `24h`. Omitted or blank defaults to `24h`. Maximum `365d` (`8760h`) per request. Invalid or longer ranges return `400`.
|
||||
- `start`, `end` (optional, mutually exclusive with `range`): Positive integer Unix-millisecond timestamps for an exact custom window. Both must be provided once when either is supplied, `end` must be greater than `start`, the span must be between `1s` and `365d`, and `end` cannot be in the future. Conflicting or invalid values return `400`.
|
||||
- `maxPoints` (optional): Downsample to a target number of points
|
||||
|
||||
> **Plans**: The same request limit applies on every plan. The answer includes only observations that storage retention still keeps.
|
||||
Responses include resolved `start` and `end` Unix-millisecond bounds and set `range` to `"custom"` when queried with `start` and `end`.
|
||||
An explicit `metric` returns a `points` array; omitting it returns a `metrics`
|
||||
object keyed by metric name. Use the source ID and type from the affected
|
||||
chart's request, not its display name or an internal store type. Older
|
||||
|
||||
@@ -28,22 +28,23 @@ installer in **Settings → Infrastructure → Install on a host**. See
|
||||
|
||||
### When an Update is Available
|
||||
|
||||
1. Navigate to **Settings → System → Updates**
|
||||
2. If an update is available, you'll see an **"Install Update"** button
|
||||
3. Click the button to open the confirmation dialog
|
||||
1. Navigate to **Settings → System → Updates** (or use the global update banner at the top of the page)
|
||||
2. If an update is available and no readiness check is blocked, you'll see an **"Install Update"** button in Settings (or **"Apply Update"** in the banner)
|
||||
3. Click the button to open the **Confirm Update** dialog
|
||||
4. Review the update details:
|
||||
- Current version → New version
|
||||
- Major-version or pre-release warning, when the update carries one
|
||||
- **Upgrade checks** (`Blocked`, `Warning`, and `Pass`), when readiness data is loaded
|
||||
- Estimated time and prerequisites, when listed
|
||||
- Root-access notice, when the update requires root
|
||||
- Automatic backup notice, when rollback is supported
|
||||
5. Click **"Start Update"** in the confirmation dialog to begin
|
||||
5. Acknowledge the temporary unavailability notice and click **"Start Update"** to begin. When any readiness check is blocked, acknowledgement is disabled and the button shows **"Install blocked"** until the blocked check is resolved.
|
||||
|
||||
### Upgrade checks
|
||||
|
||||
When an update is available, **Settings → System → Updates** loads upgrade
|
||||
readiness checks from `GET /api/updates/plan` (`ready`, `attention`, or
|
||||
`blocked`):
|
||||
When an update is available, **Settings → System → Updates**, the global update
|
||||
banner, and the **Confirm Update** dialog load upgrade readiness checks from
|
||||
`GET /api/updates/plan` (`ready`, `attention`, or `blocked`):
|
||||
|
||||
- **Server update path** (`server-update-path`): whether automatic install and
|
||||
rollback support are available or manual steps are required.
|
||||
@@ -60,6 +61,17 @@ readiness checks from `GET /api/updates/plan` (`ready`, `attention`, or
|
||||
`PULSE_DATA_DIR`) is on the container's ephemeral root filesystem instead of
|
||||
a mounted volume.
|
||||
|
||||
In the collapsed update banner, a blocked readiness check replaces **Apply
|
||||
Update** with an **Update blocked** badge and a **Review checks** button.
|
||||
Non-blocking warnings show an upgrade-warning button (`1 upgrade warning`,
|
||||
`N upgrade warnings`, or `Upgrade checks need review`) that expands the banner.
|
||||
Both the expanded banner and the **Confirm Update** dialog show the **Upgrade
|
||||
checks** panel ordered **Blocked**, **Warning**, then **Pass** with each
|
||||
check's summary and remediation details. When any check is blocked, the
|
||||
expanded banner disables **Apply Update Automatically** as **Install blocked**,
|
||||
and **Confirm Update** disables the acknowledgement checkbox and **Start
|
||||
Update** as **Install blocked**.
|
||||
|
||||
Resolve any **blocked** checks before installing an update. Review **warning**
|
||||
checks before proceeding, even though they do not disable installation.
|
||||
|
||||
|
||||
@@ -103,6 +103,27 @@ inspection. When reporting a display disagreement, keep the panel, time,
|
||||
range, labels and relevant values with consistent private aliases; do not
|
||||
share raw responses, credentials or a full network export.
|
||||
|
||||
### Zoom and custom time windows
|
||||
|
||||
On desktop, click and drag horizontally across a drawer chart to highlight a
|
||||
synchronized time selection across every panel in the drawer. Releasing the
|
||||
pointer zooms all panels to that exact window, down to a minimum span of 1
|
||||
minute. Press **Escape** while dragging to cancel without closing the drawer.
|
||||
|
||||
For keyboard use or exact timestamps, click **Select time window** to open the
|
||||
**Start** and **End** editor and choose **Apply** (or **Cancel** / **Escape**).
|
||||
When a local time falls in a daylight-saving fallback overlap, Pulse offers a
|
||||
timezone-offset selector for that endpoint. **Select time window** stays
|
||||
available even when the current preset has no stored readings, so you can jump
|
||||
directly to an older period. Custom drawer windows must be between 1 minute and
|
||||
365 days and cannot end in the future.
|
||||
|
||||
While zoomed, the toolbar shows the active window summary and **Reset zoom**.
|
||||
Live 30-second background polling and live fallback readings pause so the pinned
|
||||
window stays stable while you inspect it. Double-click a chart, click **Reset
|
||||
zoom**, or choose a preset in **History range** to return to live preset
|
||||
polling.
|
||||
|
||||
### Proxmox live migration and VMID reuse
|
||||
|
||||
When a Proxmox VE guest migrates to another node in the same cluster, Pulse
|
||||
@@ -255,8 +276,9 @@ These endpoints require authentication with the `monitoring:read` scope.
|
||||
- `resourceId` (required): the source identifier used by that chart, not its
|
||||
display name (for Proxmox guests this is normally `instance:node:vmid`)
|
||||
- `metric` (optional): `cpu`, `memory`, `disk`, etc. Omit to return all metrics for the resource.
|
||||
- `range` (optional): Positive whole days (for example `7d`, `90d`) or a duration like `30m` or `24h`. Omitted or blank defaults to `24h`. Maximum `365d` (`8760h`) per request on every plan; invalid or longer ranges return `400`. This is a read limit, not a retention setting.
|
||||
- `maxPoints` (optional): Downsample to a target number of points
|
||||
- `range` (optional): Positive whole days (for example `7d`, `90d`) or a duration like `30m` or `24h`. Omitted or blank defaults to `24h`. Maximum `365d` (`8760h`) per request on every plan. Invalid or longer ranges return `400`. This is a read limit, not a retention setting.
|
||||
- `start` and `end` (optional, mutually exclusive with `range`): Positive integer Unix-millisecond timestamps defining an exact custom window. Both must be provided once when either is supplied, `end` must be greater than `start`, the span must be between `1s` and `365d`, and `end` cannot be in the future. Combining `start`/`end` with `range` or violating these bounds returns `400`.
|
||||
- `maxPoints` (optional): Downsample to a target number of points within the requested range or custom window.
|
||||
|
||||
For a one-off check, open the affected resource's History panel in your signed-in
|
||||
Pulse browser. If an API read is needed, use the path and query from that
|
||||
@@ -287,7 +309,9 @@ share only the relevant manually redacted error and bounded observations.
|
||||
|
||||
With `metric=cpu` (or another explicit metric), the response has a `points`
|
||||
array. Omitting `metric` instead returns a `metrics` object keyed by metric
|
||||
name, not the same single-series shape. Inspect timestamps and `source` too:
|
||||
name, not the same single-series shape. Responses include resolved `start` and
|
||||
`end` Unix-millisecond bounds, with `range` set to `"custom"` when queried with
|
||||
`start` and `end`. Inspect timestamps and `source` too:
|
||||
`store` is persisted history; `memory` or `live` fallback does not establish
|
||||
durable historical coverage. An HTTP 200 with no points proves neither zero
|
||||
usage nor successful collection, and a non-zero current value does not prove
|
||||
|
||||
@@ -379,6 +379,144 @@ class NavigationHelpDocsTest(unittest.TestCase):
|
||||
with self.subTest(source="resources.go", marker=marker):
|
||||
self.assertIn(marker, resources_go)
|
||||
|
||||
def test_drawer_history_zoom_and_custom_window_help_match_runtime(self):
|
||||
history = doc_text("METRICS_HISTORY.md")
|
||||
api_doc = doc_text("API.md")
|
||||
self.assertEqual(
|
||||
history,
|
||||
(ROOT / "frontend-modern/public/docs/METRICS_HISTORY.md").read_text(encoding="utf-8"),
|
||||
)
|
||||
self.assertEqual(
|
||||
api_doc,
|
||||
(ROOT / "frontend-modern/public/docs/API.md").read_text(encoding="utf-8"),
|
||||
)
|
||||
|
||||
zoom_section = " ".join(
|
||||
history.split("### Zoom and custom time windows\n", 1)[1]
|
||||
.split("\n### ", 1)[0]
|
||||
.replace("**", "")
|
||||
.replace("`", "")
|
||||
.split()
|
||||
)
|
||||
for phrase in (
|
||||
"click and drag horizontally across a drawer chart",
|
||||
"synchronized time selection across every panel",
|
||||
"minimum span of 1 minute",
|
||||
"Press Escape while dragging to cancel without closing the drawer",
|
||||
"Select time window",
|
||||
"Start and End editor",
|
||||
"timezone-offset selector",
|
||||
"even when the current preset has no stored readings",
|
||||
"between 1 minute and 365 days and cannot end in the future",
|
||||
"Reset zoom",
|
||||
"Live 30-second background polling and live fallback readings pause",
|
||||
"Double-click a chart, click Reset zoom, or choose a preset in History range",
|
||||
):
|
||||
with self.subTest(zoom_phrase=phrase):
|
||||
self.assertIn(phrase, zoom_section)
|
||||
|
||||
history_prose = " ".join(history.replace("**", "").replace("`", "").split())
|
||||
api_prose = " ".join(api_doc.replace("**", "").replace("`", "").split())
|
||||
for label, text in (("METRICS_HISTORY.md", history_prose), ("API.md", api_prose)):
|
||||
for phrase in (
|
||||
"mutually exclusive with range",
|
||||
"Positive integer Unix-millisecond timestamps",
|
||||
"Both must be provided once when either is supplied",
|
||||
"end must be greater than start",
|
||||
"span must be between 1s and 365d",
|
||||
"end cannot be in the future",
|
||||
'range set to "custom"' if label == "METRICS_HISTORY.md" else 'set range to "custom"',
|
||||
):
|
||||
with self.subTest(doc=label, phrase=phrase):
|
||||
self.assertIn(phrase, text)
|
||||
|
||||
drawer_tsx = source("components/Workloads/GuestDrawerHistory.tsx")
|
||||
query_ts = source("components/Workloads/guestDrawerHistoryQuery.ts")
|
||||
router_go = (ROOT / "internal/api/router.go").read_text(encoding="utf-8")
|
||||
|
||||
for marker in (
|
||||
"const HISTORY_MIN_ZOOM_SPAN_MS = 60_000;",
|
||||
"Select time window",
|
||||
"Reset zoom",
|
||||
"Select a window of at least 1 minute.",
|
||||
"Window cannot exceed 365 days.",
|
||||
"End time cannot be in the future.",
|
||||
'label="Start timezone offset"',
|
||||
'label="End timezone offset"',
|
||||
"if (props.isZoomed) props.onResetZoom();",
|
||||
):
|
||||
with self.subTest(source="GuestDrawerHistory.tsx", marker=marker):
|
||||
self.assertIn(marker, drawer_tsx)
|
||||
self.assertIn("source()?.customWindow == null", query_ts)
|
||||
for marker in (
|
||||
"func parseMetricsHistoryCustomWindow(",
|
||||
'"start and end cannot be combined with range"',
|
||||
'"start and end must both be provided once"',
|
||||
'"end must be greater than start"',
|
||||
'"custom window must be between 1s and 365d"',
|
||||
'"end cannot be in the future"',
|
||||
'timeRange = "custom"',
|
||||
):
|
||||
with self.subTest(source="router.go", marker=marker):
|
||||
self.assertIn(marker, router_go)
|
||||
|
||||
def test_upgrade_readiness_banner_and_modal_help_match_runtime(self):
|
||||
auto_update = doc_text("AUTO_UPDATE.md")
|
||||
self.assertEqual(
|
||||
auto_update,
|
||||
(ROOT / "frontend-modern/public/docs/AUTO_UPDATE.md").read_text(encoding="utf-8"),
|
||||
)
|
||||
section = " ".join(
|
||||
auto_update.split("## Using One-Click Updates\n", 1)[1]
|
||||
.split("\n### Update Process\n", 1)[0]
|
||||
.replace("**", "")
|
||||
.replace("`", "")
|
||||
.split()
|
||||
)
|
||||
for phrase in (
|
||||
"global update banner",
|
||||
"Confirm Update dialog",
|
||||
"Update blocked badge and a Review checks button",
|
||||
"1 upgrade warning",
|
||||
"N upgrade warnings",
|
||||
"Upgrade checks need review",
|
||||
"Upgrade checks panel ordered Blocked, Warning, then Pass",
|
||||
"Apply Update Automatically as Install blocked",
|
||||
"disables the acknowledgement checkbox and Start Update as Install blocked",
|
||||
):
|
||||
with self.subTest(auto_update_phrase=phrase):
|
||||
self.assertIn(phrase, section)
|
||||
|
||||
banner_tsx = source("components/UpdateBanner.tsx")
|
||||
modal_tsx = source("components/UpdateConfirmationModal.tsx")
|
||||
panel_tsx = source("components/UpdateReadinessChecksPanel.tsx")
|
||||
|
||||
for marker in (
|
||||
"Update blocked",
|
||||
"Review checks",
|
||||
"Upgrade checks need review",
|
||||
"Install blocked",
|
||||
"Apply Update Automatically",
|
||||
):
|
||||
with self.subTest(source="UpdateBanner.tsx", marker=marker):
|
||||
self.assertIn(marker, banner_tsx)
|
||||
for marker in (
|
||||
"Confirm Update",
|
||||
"Install blocked",
|
||||
"Start Update",
|
||||
"Resolve blocked upgrade checks before starting this update.",
|
||||
):
|
||||
with self.subTest(source="UpdateConfirmationModal.tsx", marker=marker):
|
||||
self.assertIn(marker, modal_tsx)
|
||||
for marker in (
|
||||
"Upgrade checks",
|
||||
"label: 'Blocked'",
|
||||
"label: 'Warning'",
|
||||
"label: 'Pass'",
|
||||
):
|
||||
with self.subTest(source="UpdateReadinessChecksPanel.tsx", marker=marker):
|
||||
self.assertIn(marker, panel_tsx)
|
||||
|
||||
def test_all_changed_guides_match_their_shipped_copies(self):
|
||||
for name in (
|
||||
"README.md",
|
||||
@@ -393,6 +531,8 @@ class NavigationHelpDocsTest(unittest.TestCase):
|
||||
"VM_DISK_MONITORING.md",
|
||||
"MIGRATION_UNIFIED_NAV.md",
|
||||
"RELAY.md",
|
||||
"API.md",
|
||||
"AUTO_UPDATE.md",
|
||||
):
|
||||
with self.subTest(guide=name):
|
||||
self.assertEqual(doc_text(name),
|
||||
|
||||
Reference in New Issue
Block a user