Prioritize pinned projects in sidebar

- Include project pin state in projection snapshots
- Show the pin indicator before project names in the sidebar
This commit is contained in:
Julius Marminge committed 2026-03-30 15:43:43 -07:00
1 parent 3083d30b1c
commit c09e21da38
2 files changed
+5 -3

No files matched your search

@@ -165,6 +165,7 @@ const makeProjectionSnapshotQuery = Effect.gen(function* () {
project_id AS "projectId",
title,
workspace_root AS "workspaceRoot",
pinned,
default_model_selection_json AS "defaultModelSelection",
scripts_json AS "scripts",
created_at AS "createdAt",
@@ -184,6 +185,7 @@ const makeProjectionSnapshotQuery = Effect.gen(function* () {
thread_id AS "threadId",
project_id AS "projectId",
title,
pinned,
model_selection_json AS "modelSelection",
runtime_mode AS "runtimeMode",
interaction_mode AS "interactionMode",
+3 -3
View File
@@ -1741,9 +1741,6 @@ export default function Sidebar() {
/>
)}
<ProjectFavicon cwd={project.cwd} />
<span className="flex-1 truncate text-xs font-medium text-foreground/90">
{project.name}
</span>
{project.pinned ? (
<span
className="inline-flex shrink-0"
@@ -1756,6 +1753,9 @@ export default function Sidebar() {
<PinIcon className="size-3 text-muted-foreground/55" />
</span>
) : null}
<span className="flex-1 truncate text-xs font-medium text-foreground/90">
{project.name}
</span>
</SidebarMenuButton>
<Tooltip>
<TooltipTrigger