Skip to content

fix(ui): sort project notes ascending to match branch timeline order#413

Merged
matt2e merged 1 commit intomainfrom
reorder-project-notes
Mar 19, 2026
Merged

fix(ui): sort project notes ascending to match branch timeline order#413
matt2e merged 1 commit intomainfrom
reorder-project-notes

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Mar 19, 2026

Summary

  • Sort project notes by createdAt in ascending (oldest-first) order instead of descending, so the timeline matches the chronological branch order.

Test plan

  • Verify project notes appear in oldest-first order
  • Verify generating notes still appear at the end

🤖 Generated with Claude Code

Project notes were sorted newest-first (descending) while the branch
timeline sorts oldest-first (ascending). Align project notes to use
the same chronological order.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt2e matt2e requested review from baxen and wesbillman as code owners March 19, 2026 05:32
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bcd343ef53

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

const bIsGenerating = !b.title.trim() && !b.content.trim();
if (aIsGenerating !== bIsGenerating) return aIsGenerating ? 1 : -1;
return b.createdAt - a.createdAt;
return a.createdAt - b.createdAt;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore newest-first ordering for project notes

Sorting timelineNotes oldest-first moves the note for the current project session to the bottom of the list. handleSubmitPrompt() explicitly reloads notes so the stub "appears as Generating note…" in ProjectSection.svelte, but this component never scrolls the notes list into view and just renders timelineNotes in order. On projects with enough existing notes to extend below the viewport, the running session and its finished note are no longer visible after submit, so users can miss that their request actually started or completed.

Useful? React with 👍 / 👎.

@matt2e matt2e merged commit bf9c9d4 into main Mar 19, 2026
4 checks passed
@matt2e matt2e deleted the reorder-project-notes branch March 19, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant