Present Insights in newest-first order without changing store ordering.
- Sort each visible category by creation time descending with deterministic ID tie-breaking
- Keep malformed timestamps last and preserve their source order
- Cover network, cached, archive, and rendered ordering behavior
- Add a patch changeset for the published CLI package
Files changed:
.changeset/insights-newest-first.md | 7 ++
.../app/components/__tests__/InsightsView.test.tsx | 41 ++++++++
.../app/hooks/__tests__/useInsights.test.ts | 106 ++++++++++++++++++++-
packages/dashboard/app/hooks/useInsights.ts | 26 ++++-
4 files changed, 178 insertions(+), 2 deletions(-)
Fusion-Task-Id: FN-9027
Fusion-Task-Lineage: b9fecbeb-b8b8-49b1-b7db-c4dfda81fcbe
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>