Skip to content

Commit

Permalink
client: Fix node incident layout and stats descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
XxRoloxX committed Dec 3, 2024
1 parent 0fe417c commit 139c50e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const statItems = (
});

defaultStats.push({
title: `Incidents from ${stats.nodeWithMostIncidents.numberOfIncidents}`,
title: `Incidents from ${stats.nodeWithMostIncidents.nodeName}`,
value: stats.nodeWithMostIncidents.numberOfIncidents,
unit: 'incidents',
valueColor: colors.urgency.low,
Expand Down
32 changes: 15 additions & 17 deletions client/src/pages/Incident/NodeIncident.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,24 +140,22 @@ const NodeIncidentPage = () => {
/>
</div>
</div>
<div className="incident__sources">
<div className="incident__row--two-columns">
<SummarySection summary={incident.summary} />
<RecommendationSection recommendation={incident.recommendation} />
</div>

{transitions((style, source) => (
<animated.div style={style}>
<NodeSourceSection
content={source.content}
filename={source.filename}
timestamp={source.timestamp}
/>
</animated.div>
))}

{isFetchingSources && <CenteredSpinner />}
<div className="incident__row--two-columns">
<SummarySection summary={incident.summary} />
<RecommendationSection recommendation={incident.recommendation} />
</div>

{transitions((style, source) => (
<animated.div style={style}>
<NodeSourceSection
content={source.content}
filename={source.filename}
timestamp={source.timestamp}
/>
</animated.div>
))}

{isFetchingSources && <CenteredSpinner />}
</div>
</PageTemplate>
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/ReportDetails/ReportDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const statItems = (
});

defaultStats.push({
title: `Incidents from ${stats.nodeWithMostIncidents.numberOfIncidents}`,
title: `Incidents from ${stats.nodeWithMostIncidents.nodeName}`,
value: stats.nodeWithMostIncidents.numberOfIncidents,
unit: 'incidents',
valueColor: colors.urgency.low,
Expand Down

0 comments on commit 139c50e

Please sign in to comment.