feat: complete approval workflow

This commit is contained in:
2026-08-04 16:51:51 +01:00
parent c2136bc250
commit 809eab9d4a
26 changed files with 1156 additions and 41 deletions

View File

@@ -20,6 +20,7 @@ declare module '@inertiajs/core' {
administer: boolean;
approveReservations: boolean;
};
unreadNotifications: number;
sidebarOpen: boolean;
[key: string]: unknown;
};

View File

@@ -4,6 +4,7 @@ export type Asset = {
asset_tag: string;
model_name: string | null;
category_name: string | null;
category_id?: number | null;
location_name: string | null;
status_name?: string | null;
image_url?: string | null;
@@ -11,7 +12,11 @@ export type Asset = {
export type ReservationItem = {
id: number;
asset: Pick<Asset, 'id' | 'name' | 'asset_tag' | 'category_name'>;
status: string;
asset: Pick<
Asset,
'id' | 'name' | 'asset_tag' | 'category_id' | 'category_name'
>;
};
export type Reservation = {
@@ -23,6 +28,7 @@ export type Reservation = {
starts_at: string;
ends_at: string;
status: string;
decision_reason?: string | null;
items: ReservationItem[];
};