Skip to content

Commit 96092fc

Browse files
authored
1 parent fc3d969 commit 96092fc

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎OMICRON_VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9d95e0cf4542d2bc776c40b69f97ba6e05cff199
1+
6deb5ffe34c4227f516a882ee8781153cd12d6c2

‎app/api/__generated__/API_VERSION‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/api/__generated__/Api.ts‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/api/__generated__/OMICRON_VERSION‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/api/__generated__/validate.ts‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/pages/system/alerting/AlertReceiverDeliveries.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ function AlertTab({
350350
) : (
351351
// the fetch usually finishes before this tab is opened, so a blank
352352
// payload for the rest of the load is fine
353-
alert && <AlertPayload payload={alert.alert} />
353+
alert && <AlertPayload payload={alert.payload} />
354354
)}
355355
</div>
356356
)

‎app/pages/system/alerting/AlertsTab.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ type AlertRowProps = {
7373
// referentially stable, so only the rows whose `selected` flips re-render.
7474
const AlertRow = memo(function AlertRow({ alert, selected, onSelect }: AlertRowProps) {
7575
// stable object identity so HighlightJSON's memo holds across re-renders
76-
const payload = useMemo(() => snakeify(alert.alert), [alert])
77-
const hasPayload = Object.keys(alert.alert).length > 0
76+
const payload = useMemo(() => snakeify(alert.payload), [alert])
77+
const hasPayload = Object.keys(alert.payload).length > 0
7878

7979
return (
8080
// The row itself is the click target, like the audit log. Keyboard and
@@ -137,7 +137,7 @@ function AlertDetail({ alert, onDismiss }: { alert: Alert; onDismiss: () => void
137137
<DateTime date={alert.timeCreated} />
138138
</PropertiesTable.Row>
139139
</PropertiesTable>
140-
<AlertPayload payload={alert.alert} />
140+
<AlertPayload payload={alert.payload} />
141141
</ReadOnlySideModalForm>
142142
)
143143
}

‎mock-api/alert.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const psuAlert = (
147147
id,
148148
class: `hardware.power_shelf.psu.${action}`,
149149
version: 0,
150-
alert: {
150+
payload: {
151151
rack_id: rack.id,
152152
power_shelf: {
153153
shelf: 0,
@@ -173,7 +173,7 @@ export const alerts: Json<Alert>[] = [
173173
id: PROBE_ALERT_ID,
174174
class: 'probe',
175175
version: 0,
176-
alert: {},
176+
payload: {},
177177
time_created: minutesAgo(24 * 60),
178178
time_modified: minutesAgo(24 * 60),
179179
},

0 commit comments

Comments
 (0)