mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
feat(release): move Cloud Companion to Stage 4 preview (#5609)
Promotes `cloudCompanion` from `build` to `preview` in `frontend-modern/src/utils/featureReleases.json` with Richard approval dated `2026-12-02` (`"you decide"`), matching precedent `500723dd70`. ### Readiness verified before promotion - `rcourtman/Pulse#5599` merged to `main` (45/45 CI checks) - `rcourtman/pulse-pro#1170` deployed live to `relay.pulserelay.pro` (Deploy Relay Server run `46790849514`, `/healthz` 200 and `/remote/invalid/` 403) - Stage 3 completeness review recorded in `rcourtman/pulse-pro#1172` (`FEATURE_REQUESTS.md`) ### Verification - Full frontend lint suite (`eslint`, `theme`, `copy`, `canonical-platforms`, `form-labels`, `table-rows`, `external-domains`, `planning-docs`, `feature-releases`, `shipped-docs-links`, `test-source-reads`), Prettier check, TypeScript check, and 4 Vitest suites (31/31) passed on `pulse-dev`
This commit is contained in:
@@ -34,6 +34,8 @@ describe('a feature in preview', () => {
|
||||
expect(isFeatureInPreview('infrastructureMap')).toBe(true);
|
||||
expect(getFeatureStage('standaloneVms')).toBe('preview');
|
||||
expect(isFeatureInPreview('standaloneVms')).toBe(true);
|
||||
expect(getFeatureStage('cloudCompanion')).toBe('preview');
|
||||
expect(isFeatureInPreview('cloudCompanion')).toBe(true);
|
||||
});
|
||||
|
||||
it('is on in a beta or release candidate', () => {
|
||||
@@ -41,6 +43,7 @@ describe('a feature in preview', () => {
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('on');
|
||||
expect(isFeatureGuideAvailable('MAP')).toBe(true);
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('on');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('on');
|
||||
});
|
||||
|
||||
it('is off in a stable build and in a source build', () => {
|
||||
@@ -49,6 +52,7 @@ describe('a feature in preview', () => {
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('off');
|
||||
expect(isFeatureGuideAvailable('MAP')).toBe(false);
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('off');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('off');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -56,30 +60,37 @@ describe('a feature in preview', () => {
|
||||
setVersion({ channel: 'stable', isDevelopment: true });
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('off');
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('off');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('off');
|
||||
setVersion({ isDevelopment: true });
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('off');
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('off');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('off');
|
||||
setVersion({ channel: 'rc', isDevelopment: true });
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('on');
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('on');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('on');
|
||||
});
|
||||
|
||||
it('is on in a page the end-to-end suite has marked, whatever the channel', () => {
|
||||
setVersion({ channel: 'stable', featureReleaseTestBuild: true });
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('on');
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('on');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('on');
|
||||
});
|
||||
|
||||
it('waits while the version is unknown and stays off if it cannot be read', () => {
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('pending');
|
||||
expect(getFeatureGuideAvailability('MAP')).toBe('pending');
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('pending');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('pending');
|
||||
expect(isFeatureAvailable('infrastructureMap')).toBe(false);
|
||||
expect(isFeatureAvailable('standaloneVms')).toBe(false);
|
||||
expect(isFeatureAvailable('cloudCompanion')).toBe(false);
|
||||
setLastError('Failed to check for updates');
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('off');
|
||||
expect(getFeatureGuideAvailability('MAP')).toBe('off');
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('off');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('off');
|
||||
});
|
||||
|
||||
it('turns on for anything already on the page when the version arrives', () => {
|
||||
@@ -87,11 +98,14 @@ describe('a feature in preview', () => {
|
||||
// A memo is recomputed only if it tracked what changed.
|
||||
const mapAvailable = createMemo(() => isFeatureAvailable('infrastructureMap'));
|
||||
const vmsAvailable = createMemo(() => isFeatureAvailable('standaloneVms'));
|
||||
const companionAvailable = createMemo(() => isFeatureAvailable('cloudCompanion'));
|
||||
expect(mapAvailable()).toBe(false);
|
||||
expect(vmsAvailable()).toBe(false);
|
||||
expect(companionAvailable()).toBe(false);
|
||||
setVersion({ channel: 'rc' });
|
||||
expect(mapAvailable()).toBe(true);
|
||||
expect(vmsAvailable()).toBe(true);
|
||||
expect(companionAvailable()).toBe(true);
|
||||
dispose();
|
||||
});
|
||||
});
|
||||
@@ -101,5 +115,6 @@ describe('a feature in preview', () => {
|
||||
setVersion({ channel: 'stable' });
|
||||
expect(getFeatureAvailability('infrastructureMap')).toBe('on');
|
||||
expect(getFeatureAvailability('standaloneVms')).toBe('on');
|
||||
expect(getFeatureAvailability('cloudCompanion')).toBe('on');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -67,11 +67,13 @@ describe('feature release stages', () => {
|
||||
|
||||
// Moving a feature past build is Richard's call after its review. This fails
|
||||
// on purpose when a stage changes, so the change is never a side effect.
|
||||
it('holds the map and standalone VMs in preview', () => {
|
||||
it('holds the map, standalone VMs, and Cloud Companion in preview', () => {
|
||||
expect(getFeatureStage('infrastructureMap')).toBe('preview');
|
||||
expect(isFeatureInPreview('infrastructureMap')).toBe(true);
|
||||
expect(getFeatureStage('standaloneVms')).toBe('preview');
|
||||
expect(isFeatureInPreview('standaloneVms')).toBe(true);
|
||||
expect(getFeatureStage('cloudCompanion')).toBe('preview');
|
||||
expect(isFeatureInPreview('cloudCompanion')).toBe(true);
|
||||
});
|
||||
|
||||
it('shows the map in this development build and not in a release build', () => {
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
},
|
||||
"cloudCompanion": {
|
||||
"name": "Cloud Companion",
|
||||
"stage": "build",
|
||||
"stage": "preview",
|
||||
"approval": "Richard, 2026-12-02: \"you decide\"",
|
||||
"guides": []
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user