Remove createdAt from Project interface

This commit is contained in:
Alex Gleason committed 2025-07-30 21:52:15 -05:00
1 parent 95a539c760
commit a1eb111244
2 files changed
+4 -16

No files matched your search

-4
View File
@@ -15,7 +15,6 @@ export interface Project {
id: string;
name: string;
path: string;
createdAt: Date;
lastModified: Date;
}
@@ -54,7 +53,6 @@ export class ProjectsManager {
id,
name: this.formatProjectName(id), // Use formatted directory name
path: projectPath,
createdAt: timestamp,
lastModified: timestamp,
};
}
@@ -86,7 +84,6 @@ export class ProjectsManager {
id: dir, // basename of the path
name: this.formatProjectName(dir), // Convert directory name to readable format
path: projectPath,
createdAt: modifiedDate, // Use modified time as creation time
lastModified: modifiedDate,
};
@@ -114,7 +111,6 @@ export class ProjectsManager {
id, // basename of the path
name: this.formatProjectName(id), // Convert directory name to readable format
path: projectPath,
createdAt: modifiedDate, // Use modified time as creation time
lastModified: modifiedDate,
};
}
+4 -12
View File
@@ -268,14 +268,10 @@ export default function Index() {
<CardHeader className="pb-2">
<CardTitle className="text-base md:text-lg">{project.name}</CardTitle>
<CardDescription className="text-sm">
Created {project.createdAt.toLocaleDateString()}
Modified {project.lastModified.toLocaleDateString()}
</CardDescription>
</CardHeader>
<CardContent className="pt-0">
<p className="text-xs md:text-sm text-muted-foreground">
Last modified {project.lastModified.toLocaleDateString()}
</p>
</CardContent>
</Card>
))}
</div>
@@ -460,14 +456,10 @@ export default function Index() {
<CardHeader className="pb-2">
<CardTitle className="text-base md:text-lg">{project.name}</CardTitle>
<CardDescription className="text-sm">
Created {project.createdAt.toLocaleDateString()}
Modified {project.lastModified.toLocaleDateString()}
</CardDescription>
</CardHeader>
<CardContent className="pt-0">
<p className="text-xs md:text-sm text-muted-foreground">
Last modified {project.lastModified.toLocaleDateString()}
</p>
</CardContent>
</Card>
))}
</div>