Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Make release candidate banner rc-version agnostic

rcourtman596bcfb5e823
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 808f7d4ee1..aa810f489a 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -650,7 +650,10 @@ canonical low-key release-candidate callout for authenticated chrome, and
`frontend-modern/src/AppLayout.tsx` may mount it only from resolved release
metadata. Feature pages, settings panels, and route-local shells must not add
duplicate RC modals, hardcoded GitHub release or feedback links, or page-local
-prerelease banners once that shared primitive exists.
+prerelease banners once that shared primitive exists. The shared banner copy
+must stay version-aware but RC-order-agnostic: later builds like `rc.2` and
+beyond may identify the current version, but they must not keep claiming to be
+the first public v6 RC once the release line has moved on.
The subsystem registry now also requires explicit proof-policy coverage for all
shared runtime files, and shared-component guardrails fail if raw table
diff --git a/frontend-modern/src/components/shared/ReleaseCandidateBanner.tsx b/frontend-modern/src/components/shared/ReleaseCandidateBanner.tsx
index b8ab41088e..8f7661cccf 100644
--- a/frontend-modern/src/components/shared/ReleaseCandidateBanner.tsx
+++ b/frontend-modern/src/components/shared/ReleaseCandidateBanner.tsx
@@ -13,7 +13,7 @@ export const ReleaseCandidateBanner: Component<ReleaseCandidateBannerProps> = (p
const versionLabel = () => normalizeReleaseVersion(props.version);
const title = () =>
versionLabel()
- ? `Pulse ${versionLabel()} is the first public v6 RC.`
+ ? `Pulse ${versionLabel()} is a public v6 release candidate.`
: 'You’re running a Pulse v6 release candidate build.';
return (
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index a8be052f62..ff1d8549ed 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -723,6 +723,8 @@ describe('shared primitive guardrails', () => {
expect(releaseCandidateBannerSource).toContain('buildReleaseNotesUrl');
expect(releaseCandidateBannerSource).toContain('buildV6RcFeedbackUrl');
expect(releaseCandidateBannerSource).toContain('normalizeReleaseVersion');
+ expect(releaseCandidateBannerSource).toContain('public v6 release candidate');
+ expect(releaseCandidateBannerSource).not.toContain('first public v6 RC');
expect(releaseCandidateBannerSource).not.toContain('useNavigate');
expect(releaseCandidateBannerSource).not.toContain('createSignal');
expect(releaseCandidateBannerSource).not.toContain('loadCommercialPosture');
diff --git a/frontend-modern/src/components/shared/__tests__/ReleaseCandidateBanner.test.tsx b/frontend-modern/src/components/shared/__tests__/ReleaseCandidateBanner.test.tsx
index 82e363e34e..105e61d2bc 100644
--- a/frontend-modern/src/components/shared/__tests__/ReleaseCandidateBanner.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/ReleaseCandidateBanner.test.tsx
@@ -8,9 +8,11 @@ afterEach(() => {
describe('ReleaseCandidateBanner', () => {
it('renders RC guidance with release-note and feedback links', () => {
- render(() => <ReleaseCandidateBanner version="6.0.0-rc.1" />);
+ render(() => <ReleaseCandidateBanner version="6.0.0-rc.2" />);
- expect(screen.getByText('Pulse 6.0.0-rc.1 is the first public v6 RC.')).toBeInTheDocument();
+ expect(
+ screen.getByText('Pulse 6.0.0-rc.2 is a public v6 release candidate.'),
+ ).toBeInTheDocument();
expect(
screen.getByText(
/Start in a staging or non-critical environment first, then send feedback/i,
@@ -18,7 +20,7 @@ describe('ReleaseCandidateBanner', () => {
).toBeInTheDocument();
expect(screen.getByRole('link', { name: 'View release notes' })).toHaveAttribute(
'href',
- 'https://github.com/rcourtman/Pulse/releases/tag/v6.0.0-rc.1',
+ 'https://github.com/rcourtman/Pulse/releases/tag/v6.0.0-rc.2',
);
expect(screen.getByRole('link', { name: 'Send feedback' })).toHaveAttribute(
'href',
diff --git a/tests/integration/tests/57-release-candidate-banner.spec.ts b/tests/integration/tests/57-release-candidate-banner.spec.ts
new file mode 100644
index 0000000000..6c90e93e4c
--- /dev/null
+++ b/tests/integration/tests/57-release-candidate-banner.spec.ts
@@ -0,0 +1,43 @@
+import { expect, test } from '@playwright/test';
+import { ensureAuthenticated } from './helpers';
+
+const RC_VERSION_INFO = {
+ version: '6.0.0-rc.2',
+ build: '',
+ runtime: 'unknown',
+ channel: 'rc',
+ isDocker: false,
+ isSourceBuild: true,
+ isDevelopment: false,
+ deploymentType: 'source',
+};
+
+test.describe('Release candidate banner', () => {
+ test('renders generic RC copy with version-specific release links', async ({ page }, testInfo) => {
+ test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop runtime proof');
+
+ await page.route('**/api/version', (route) =>
+ route.fulfill({
+ status: 200,
+ contentType: 'application/json',
+ body: JSON.stringify(RC_VERSION_INFO),
+ }),
+ );
+
+ await ensureAuthenticated(page);
+ await page.goto('/dashboard', { waitUntil: 'domcontentloaded' });
+
+ const banner = page.getByRole('status').filter({
+ hasText: 'Pulse 6.0.0-rc.2 is a public v6 release candidate.',
+ });
+ await expect(banner).toContainText('Pulse 6.0.0-rc.2 is a public v6 release candidate.');
+ await expect(page.getByRole('link', { name: 'View release notes' })).toHaveAttribute(
+ 'href',
+ 'https://github.com/rcourtman/Pulse/releases/tag/v6.0.0-rc.2',
+ );
+ await expect(page.getByRole('link', { name: 'Send feedback' })).toHaveAttribute(
+ 'href',
+ 'https://github.com/rcourtman/Pulse/issues/new?template=v6_rc_feedback.yml',
+ );
+ });
+});