fix(ui): default issue sort to newest-first for new companies
Changes the default sort from "status ascending" to "created descending" so newest issues appear at the top. Also sets default groupBy to "none" since date-based sorting works best as a flat list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -49,9 +49,9 @@ const defaultViewState: IssueViewState = {
|
||||
priorities: [],
|
||||
assignees: [],
|
||||
labels: [],
|
||||
sortField: "status",
|
||||
sortDir: "asc",
|
||||
groupBy: "status",
|
||||
sortField: "created",
|
||||
sortDir: "desc",
|
||||
groupBy: "none",
|
||||
viewMode: "list",
|
||||
collapsedGroups: [],
|
||||
};
|
||||
@@ -272,13 +272,13 @@ export function IssuesList({
|
||||
<Plus className="h-4 w-4 sm:mr-1" />
|
||||
<span className="hidden sm:inline">New Issue</span>
|
||||
</Button>
|
||||
<div className="relative w-36 sm:w-52 md:w-64">
|
||||
<div className="relative w-48 sm:w-64 md:w-80">
|
||||
<Search className="pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" />
|
||||
<Input
|
||||
value={issueSearch}
|
||||
onChange={(e) => setIssueSearch(e.target.value)}
|
||||
placeholder="Search issues..."
|
||||
className="h-8 pl-7 text-xs sm:text-sm"
|
||||
className="pl-7 text-xs sm:text-sm"
|
||||
aria-label="Search issues"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user