Commit 65f5093
fix(topics): default message list to newest-first ordering
The message table defaulted to `sorting: []`, so rows rendered in raw
backend stream order (per-partition arrival, oldest-first within a
partition) instead of newest-first. A newest-first default existed in the
original 2019 table (offset:descending) but was dropped in the migration
to the nuqs/TanStack table; the only surviving newest-first sort was gated
behind continuous pagination.
For the "Newest" (last N / EndMinusResults) view, sort by timestamp
descending with offset descending as a tiebreaker. Offset isn't global
across partitions, so timestamp is the primary key. This applies only when
the user hasn't chosen an explicit column sort, so header sorting still
wins; continuous pagination (which forces sorting to []) also lands here.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7ee42a0 commit 65f5093
1 file changed
Lines changed: 7 additions & 4 deletions
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
576 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
577 | 580 | | |
578 | | - | |
579 | | - | |
| 581 | + | |
| 582 | + | |
580 | 583 | | |
581 | 584 | | |
582 | 585 | | |
| |||
0 commit comments