feat: Update shift card styles and remove cancellation reason display

This commit is contained in:
Achintha Isuru
2026-03-19 16:40:07 -04:00
parent bd2d5610b3
commit a544b051cc
3 changed files with 3 additions and 13 deletions

View File

@@ -26,16 +26,6 @@ class ShiftCardBody extends StatelessWidget {
ShiftCardTitleRow(data: data), ShiftCardTitleRow(data: data),
const SizedBox(height: UiConstants.space2), const SizedBox(height: UiConstants.space2),
ShiftCardMetadataRows(data: data), ShiftCardMetadataRows(data: data),
if (data.cancellationReason != null &&
data.cancellationReason!.isNotEmpty) ...<Widget>[
const SizedBox(height: UiConstants.space1),
Text(
data.cancellationReason!,
style: UiTypography.footnote2r.textSecondary,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
],
], ],
), ),
), ),

View File

@@ -70,8 +70,8 @@ class ShiftCardStatusBadge extends StatelessWidget {
case ShiftCardVariant.cancelled: case ShiftCardVariant.cancelled:
return ShiftCardStatusStyle( return ShiftCardStatusStyle(
label: context.t.staff_shifts.my_shifts_tab.card.cancelled, label: context.t.staff_shifts.my_shifts_tab.card.cancelled,
foreground: UiColors.destructive, foreground: UiColors.mutedForeground,
dot: UiColors.destructive, dot: UiColors.mutedForeground,
); );
case ShiftCardVariant.completed: case ShiftCardVariant.completed:
return ShiftCardStatusStyle( return ShiftCardStatusStyle(

View File

@@ -101,7 +101,7 @@ class ShiftSectionList extends StatelessWidget {
SectionHeader( SectionHeader(
title: title:
context.t.staff_shifts.my_shifts_tab.sections.confirmed, context.t.staff_shifts.my_shifts_tab.sections.confirmed,
dotColor: UiColors.textSecondary, dotColor: UiColors.textSuccess,
), ),
...assignedShifts.map( ...assignedShifts.map(
(AssignedShift shift) { (AssignedShift shift) {