fix: address code review feedback
- Fix incorrect API endpoint paths (removed /api prefix) - Improve TypeScript strict typing with explicit metadata interfaces - Update SKILL.md with clear trigger phrases and examples - Fix README installation path reference - Add clarification about API URL format (no /api suffix needed) - Export new metadata type interfaces
This commit is contained in:
@@ -28,6 +28,10 @@ export type ProjectStatus = 'PLANNING' | 'ACTIVE' | 'ON_HOLD' | 'COMPLETED' | 'A
|
||||
export type TaskStatus = 'NOT_STARTED' | 'IN_PROGRESS' | 'PAUSED' | 'COMPLETED' | 'ARCHIVED';
|
||||
export type TaskPriority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
|
||||
|
||||
export interface ProjectMetadata {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface Project {
|
||||
id: string;
|
||||
workspaceId: string;
|
||||
@@ -37,7 +41,7 @@ export interface Project {
|
||||
startDate: string | null;
|
||||
endDate: string | null;
|
||||
color: string | null;
|
||||
metadata: Record<string, unknown>;
|
||||
metadata: ProjectMetadata;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
tasks?: Task[];
|
||||
@@ -47,6 +51,12 @@ export interface Project {
|
||||
};
|
||||
}
|
||||
|
||||
export interface TaskMetadata {
|
||||
startDate?: string;
|
||||
dependencies?: string[];
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface Task {
|
||||
id: string;
|
||||
workspaceId: string;
|
||||
@@ -61,11 +71,7 @@ export interface Task {
|
||||
creatorId: string;
|
||||
parentId: string | null;
|
||||
sortOrder: number;
|
||||
metadata: {
|
||||
startDate?: string;
|
||||
dependencies?: string[];
|
||||
[key: string]: unknown;
|
||||
};
|
||||
metadata: TaskMetadata;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
project?: {
|
||||
|
||||
Reference in New Issue
Block a user