Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions app/pages/system/UpdatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { CardBlock } from '~/ui/lib/CardBlock'
import { DateTime } from '~/ui/lib/DateTime'
import { Divider } from '~/ui/lib/Divider'
import * as DropdownMenu from '~/ui/lib/DropdownMenu'
import { Message } from '~/ui/lib/Message'
import { PageHeader, PageTitle } from '~/ui/lib/PageHeader'
import { PropertiesTable } from '~/ui/lib/PropertiesTable'
import { TipIcon } from '~/ui/lib/TipIcon'
Expand Down Expand Up @@ -193,6 +194,25 @@ export default function UpdatePage() {
</PropertiesTable.Row>
</PropertiesTable>

{status.contactSupport && (
<Message
className="mt-4"
variant="notice"
title="Contact Oxide support"
content={
<>
The system has detected one or more known conditions that require Oxide
support to resolve.{' '}
<TipIcon className="ml-0.5 [&>svg]:text-[var(--content-accent-secondary)]">
Contact support before starting any update, and immediately if an update has
recently completed. The checks underlying this state are not exhaustive, so
the absence of this message does not mean the system is completely healthy.
</TipIcon>
</>
}
/>
)}

<Divider className="my-8" />

<CardBlock>
Expand Down
2 changes: 1 addition & 1 deletion mock-api/system-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const updateStatus: Json<UpdateStatus> = {
'17.0.0': 12,
'16.0.0': 5,
},
contact_support: false,
contact_support: true,
suspended: false,
target_release: {
version: '17.0.0',
Expand Down
Loading