Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/staged/src/lib/features/projects/ProjectSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,13 @@
}
}

/** All notes: completed (newest first) followed by generating. */
/** All notes: completed (oldest first) followed by generating – matches branch timeline order. */
let timelineNotes = $derived(
[...projectNotes].sort((a, b) => {
const aIsGenerating = !a.title.trim() && !a.content.trim();
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 👍 / 👎.

})
);

Expand Down