Skip to content

Commit cf8e265

Browse files
author
Marvin Zhang
committed
feat: update icon imports and clean up project configuration files
1 parent fbf1a9a commit cf8e265

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

packages/web/app/components/layout/NavigationBreadcrumb.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React from 'react';
44
import { usePathname, useRouter } from 'next/navigation';
55
import { useDevlogStore, useProjectStore } from '@/stores';
6-
import { CheckIcon, ChevronsUpDown, NotepadText, Package } from 'lucide-react';
6+
import { Check, ChevronsUpDown, NotepadText, Package } from 'lucide-react';
77
import {
88
Breadcrumb,
99
BreadcrumbItem,
@@ -103,7 +103,7 @@ export function NavigationBreadcrumb() {
103103
<div className="text-xs text-muted-foreground truncate">{project.id}</div>
104104
</div>
105105
{isCurrentProject && (
106-
<CheckIcon size={14} className="text-primary flex-shrink-0" />
106+
<Check size={14} className="text-primary flex-shrink-0" />
107107
)}
108108
</DropdownMenuItem>
109109
);

packages/web/app/components/layout/TopNavbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'next';
1+
import React from 'react';
22
import Link from 'next/link';
33
import Image from 'next/image';
44
import { NavigationBreadcrumb } from './NavigationBreadcrumb';

packages/web/app/not-found.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const dynamic = 'force-dynamic';
2+
13
export default function NotFound() {
24
return (
35
<div style={{ padding: '20px', textAlign: 'center' }}>

packages/web/app/projects/ProjectListPage.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import { Input } from '@/components/ui/input';
1818
import { Label } from '@/components/ui/label';
1919
import { Textarea } from '@/components/ui/textarea';
2020
import {
21-
AlertTriangleIcon,
21+
AlertTriangle,
2222
ChevronRight,
23-
FolderIcon,
24-
LoaderIcon,
25-
PlusIcon,
23+
Folder,
24+
Loader2,
25+
Plus,
2626
Search,
2727
Settings,
2828
} from 'lucide-react';
@@ -107,7 +107,7 @@ export function ProjectListPage() {
107107
if (projectsContext.error) {
108108
return (
109109
<Alert variant="destructive" className="m-5 flex items-center gap-2">
110-
<AlertTriangleIcon size={16} />
110+
<AlertTriangle size={16} />
111111
<div>
112112
<div className="font-semibold">Error Loading Projects</div>
113113
<AlertDescription>{projectsContext.error}</AlertDescription>
@@ -180,7 +180,7 @@ export function ProjectListPage() {
180180
{projects?.length === 0 && (
181181
<div className="min-h-[60vh] flex items-center justify-center">
182182
<Card className="text-center p-16 border-dashed border-2 bg-muted/50 max-w-2xl w-full">
183-
<FolderIcon size={80} className="mx-auto mb-8 text-muted-foreground" />
183+
<Folder size={80} className="mx-auto mb-8 text-muted-foreground" />
184184
<h3 className="text-2xl font-semibold mb-4 text-muted-foreground">
185185
No Projects Found
186186
</h3>
@@ -193,7 +193,7 @@ export function ProjectListPage() {
193193
onClick={() => setIsModalVisible(true)}
194194
className="flex items-center gap-2 px-8 py-3"
195195
>
196-
<PlusIcon size={18} />
196+
<Plus size={18} />
197197
Create First Project
198198
</Button>
199199
</Card>
@@ -244,7 +244,7 @@ export function ProjectListPage() {
244244
<Button type="submit" disabled={creating}>
245245
{creating ? (
246246
<>
247-
<LoaderIcon className="mr-2 h-4 w-4 animate-spin" />
247+
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
248248
Creating...
249249
</>
250250
) : (

packages/web/app/projects/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { ProjectListPage } from './ProjectListPage';
22

3+
export const dynamic = 'force-dynamic';
4+
35
export default function ProjectsPage() {
46
return <ProjectListPage />;
57
}

packages/web/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
"build": "next build",
99
"start": "pnpm run build && next start --port 3010",
1010
"preview": "next start --port 3010",
11-
"clean": "rimraf .next .next-build out *.tsbuildinfo",
11+
"clean": "rimraf .next out *.tsbuildinfo",
1212
"clean:dev": "rimraf .next",
13-
"clean:build": "rimraf .next-build",
1413
"test": "vitest run",
1514
"test:watch": "vitest",
1615
"test:ui": "vitest --ui",

packages/web/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"**/*.ts",
3636
"**/*.tsx",
3737
".next/types/**/*.ts",
38-
".next-build/types/**/*.ts"
3938
],
4039
"exclude": ["node_modules"]
4140
}

0 commit comments

Comments
 (0)