Skip to content

Commit 39021ce

Browse files
committed
fix(ui): remove redundant breadcrumb and add New Project button on projects page
The breadcrumb showed "Projects" directly above the h1 "Projects", creating a visual stutter. Removed it since this is the top-level page with no parent navigation. Added a "New Project" button (visible to logged-in users) consistent with the owner profile and dashboard pages.
1 parent e60c73d commit 39021ce

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/entrypoints/app/routes/projects.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { Context } from 'hono'
2-
import { Breadcrumb } from '../../../design-system/components/flex-breadcrumb/index'
32
import { Layout } from '../../../design-system/components/flex-layout/index'
43
import type { ProjectService } from '../../../services/projects'
54
import { resolveUrl } from '../../../shared/base-path'
@@ -12,9 +11,15 @@ export function projectsDirectoryHandler(projectService: ProjectService) {
1211
.filter((p) => p.status === 'ready')
1312
return c.html(
1413
<Layout user={user} title="Projects" currentSection="projects">
15-
<Breadcrumb items={[{ label: 'Projects' }]} />
1614
<div class="flex-form" data-size="large">
17-
<h1>Projects</h1>
15+
<div class="l-cluster justify-between" style="align-items: baseline;">
16+
<h1>Projects</h1>
17+
{user && (
18+
<a href={resolveUrl('/new')} class="flex-button">
19+
New Project
20+
</a>
21+
)}
22+
</div>
1823
{projects.length === 0 ? (
1924
<p>No projects yet.</p>
2025
) : (

0 commit comments

Comments
 (0)