fix(timesheet): improve tablet layout and deleted relation handling
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -5,6 +5,7 @@ export interface Tag {
|
||||
workspace: string;
|
||||
name: string;
|
||||
color: string;
|
||||
is_deleted?: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user