Refactor/main flow #38

Merged
DeepnaPooja merged 7 commits from refactor/main_flow into production 2026-09-22 17:13:08 +05:30
3 changed files with 9 additions and 0 deletions
Showing only changes of commit 44e335d542 - Show all commits
@@ -55,6 +55,12 @@ export function RideViewSheet({ open, onClose, ride }: RideViewSheetProps) {
<Row label="Meter End" value={ride.meterend ? `${ride.meterend} km` : '—'} />
<Row label="Started At" value={fmtDateTime(ride.startedAt)} />
<Row label="Closed At" value={fmtDateTime(ride.closedAt)} />
{ride.status === 'Cancelled' && (
<>
<Row label="Cancel Type" value={ride.cancelTypeCode || '—'} />
<Row label="Cancel Reason" value={ride.cancelReason || '—'} />
</>
)}
<Row label="Created At" value={fmtDateTime(ride.createdAt)} />
</div>
</DialogContent>
@@ -145,6 +145,7 @@ export function RidesClient() {
{
action: 'cancel',
label: 'Cancel ride',
tone: 'destructive',
onClick: handleCancel,
visible: (target) => target.status === 'Open',
},
+2
View File
@@ -561,6 +561,8 @@ export interface RideResponse {
meterend: number
startedAt: string | null
closedAt: string | null
cancelTypeCode: CancelRequestType | null
cancelReason: string | null
createdAt: string
}