Skip to content

New projects should sort to top of sidebar #11

@BunsDev

Description

@BunsDev

Summary

A newly created project with no threads sorts to the bottom of the sidebar because the default sort (updated_at) derives its timestamp from child threads. A project with zero threads has no timestamp and falls below all other projects.

Expected behavior

New projects should appear at the top of the sidebar immediately after creation, even before any threads are started.

Current behavior

New projects appear at the bottom because getProjectSortTimestamp() in Sidebar.logic.ts returns Number.NEGATIVE_INFINITY for projects with no threads.

Suggested fix

Use the project's own createdAt timestamp as a fallback when a project has no threads, so it sorts alongside recently-active projects.

Context

From TODO.md — "New projects should go on top". Triaged as a quick fix.

🤖 Filed by Claude Code

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions