Skip to content

Commit a413fe9

Browse files
committed
Explain platform traffic status in plain language
1 parent febb6bc commit a413fe9

3 files changed

Lines changed: 16 additions & 19 deletions

File tree

‎platform/packages/api/src/admin/react/styles.css‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ body {
190190
font-size: 0.875rem;
191191
margin: 0;
192192
}
193-
.void-platform-status-grid dt,
194-
.void-platform-status-timestamp {
193+
.void-platform-status-grid dt {
195194
color: var(--color-text-secondary);
196195
}
197196
.void-platform-status-grid dd {

‎platform/packages/api/src/admin/react/views/PlatformStatusPage.tsx‎

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -268,16 +268,10 @@ export function PlatformStatusPage({
268268
<dd>{formatDateTime(current.checkpoint.updatedAt)}</dd>
269269
</dl>
270270
)}
271-
{operation?.phase === 'complete' && !failed && (
272-
<p>
273-
The lifecycle operation completed. Use the traffic state alongside health checks
274-
to assess availability.
275-
</p>
276-
)}
277271
{operation && !needsAttention && operation.phase !== 'complete' && (
278272
<p>
279-
Keep the lifecycle command running. Refreshing this page does not interrupt the
280-
operation.
273+
Keep the CLI command running until it finishes. Refreshing this page won’t
274+
interrupt it.
281275
</p>
282276
)}
283277
</section>
@@ -289,17 +283,16 @@ export function PlatformStatusPage({
289283
</Heading>
290284
<p>
291285
{!current
292-
? 'Traffic state is not currently available.'
286+
? 'Traffic status is unavailable. Try refreshing.'
293287
: current.traffic === 'paused'
294-
? 'Application requests may receive a temporary-unavailability response. Platform changes stay paused for administrators except for sign-in and this status page.'
295-
: 'The API traffic gate is open. Individual projects and other services may still be affected while Workers roll out.'}
288+
? 'App traffic and dashboard changes are paused for maintenance. You can still sign in and follow progress here.'
289+
: 'Maintenance mode is off. The platform is allowing requests to your apps.'}
296290
</p>
297-
{current && (
298-
<p className="void-platform-status-timestamp">
299-
Confirmed {formatDateTime(current.checkedAt)}
300-
</p>
301-
)}
302-
<p>This state does not replace service or project health checks.</p>
291+
{current?.traffic === 'enabled' &&
292+
operation &&
293+
['deploying', 'verifying', 'enabling'].includes(operation.phase) && (
294+
<p>Some apps may be temporarily unavailable while services are being updated.</p>
295+
)}
303296
</section>
304297
</div>
305298

‎platform/packages/api/test/integration/platform-status.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ it('omits empty operation details when no installation checkpoint is configured'
180180
expect(response.status).toBe(200);
181181
const html = await response.text();
182182
expect(html).toContain('Traffic enabled');
183+
expect(html).toContain(
184+
'Maintenance mode is off. The platform is allowing requests to your apps.',
185+
);
186+
expect(html).not.toContain('Confirmed ');
187+
expect(html).not.toContain('Some apps may be temporarily unavailable');
183188
expect(html).not.toContain('No saved operation');
184189
expect(html).not.toContain('platform-operation-heading');
185190
expect(html).not.toContain('Detailed progress is available');

0 commit comments

Comments
 (0)