chore: show service type in maintenance schedule names for differentiation (refs #174)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-02-13 19:55:25 -06:00
parent f03cd420ef
commit afd4583450

View File

@@ -191,9 +191,11 @@ export const MaintenanceSchedulesList: React.FC<MaintenanceSchedulesListProps> =
}}
>
<Box sx={{ flex: 1 }}>
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1, mb: 1 }}>
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1, mb: 1, flexWrap: 'wrap' }}>
<Typography variant="h6">
{categoryDisplay}
{schedule.subtypes && schedule.subtypes.length > 0
? `${schedule.subtypes.join(', ')} \u2014 ${categoryDisplay}`
: categoryDisplay}
</Typography>
<Chip
label={status.label}
@@ -295,7 +297,9 @@ export const MaintenanceSchedulesList: React.FC<MaintenanceSchedulesListProps> =
</Typography>
{scheduleToDelete && (
<Typography variant="body2" color="text.secondary" sx={{ mt: 1 }}>
{getCategoryDisplayName(scheduleToDelete.category)} - {getScheduleTypeDisplay(scheduleToDelete)}
{scheduleToDelete.subtypes && scheduleToDelete.subtypes.length > 0
? `${scheduleToDelete.subtypes.join(', ')} \u2014 ${getCategoryDisplayName(scheduleToDelete.category)}`
: getCategoryDisplayName(scheduleToDelete.category)} - {getScheduleTypeDisplay(scheduleToDelete)}
</Typography>
)}
</DialogContent>