fix(timesheet): improve tablet layout and deleted relation handling

This commit is contained in:
2026-04-27 22:58:27 +03:30
parent 02cd2d67a0
commit a770272ce2
7 changed files with 496 additions and 98 deletions

View File

@@ -25,17 +25,18 @@ export interface ProjectMembership {
is_active: boolean;
}
export interface Project {
id: string;
name: string;
description: string;
color: string;
is_archived: boolean;
workspace: string;
client: ProjectClient | null;
my_role?: string;
members?: ProjectMembership[];
}
export interface Project {
id: string;
name: string;
description: string;
color: string;
is_archived: boolean;
is_deleted?: boolean;
workspace: string;
client: ProjectClient | null;
my_role?: string;
members?: ProjectMembership[];
}
export interface ProjectPayload {
name: string;

View File

@@ -5,6 +5,7 @@ export interface Tag {
workspace: string;
name: string;
color: string;
is_deleted?: boolean;
created_at: string;
updated_at: string;
}

View File

@@ -1,15 +1,31 @@
import { authFetch } from "./client";
export interface TimeEntryProjectDetails {
id: string;
name: string;
is_deleted: boolean;
client_name: string | null;
}
export interface TimeEntryTagDetails {
id: string;
name: string;
color: string;
is_deleted: boolean;
}
export interface TimeEntry {
id: string;
workspace: string;
user: string;
project: string | null;
project_details: TimeEntryProjectDetails | null;
description: string;
start_time: string;
end_time: string | null;
duration: string | null;
tags: string[];
tag_details: TimeEntryTagDetails[];
is_billable: boolean;
hourly_rate: string | null;
currency: string;