Skip to content

🤖 tests: stabilize landing page workspace ordering#2764

Merged
ammario merged 2 commits intomainfrom
storybook-eb0y
Mar 3, 2026
Merged

🤖 tests: stabilize landing page workspace ordering#2764
ammario merged 2 commits intomainfrom
storybook-eb0y

Conversation

@ammar-agent
Copy link
Collaborator

Summary

Landing page "Recent Workspaces" cards could reorder between Storybook/Chromatic runs when multiple workspaces shared the same recency timestamp. This change makes the sort deterministic so snapshots stay stable.

Background

The new landing page sorts recent workspaces by recency only. In Storybook fixtures, recency ties are common, and map insertion order can vary enough to produce inconsistent card ordering.

Implementation

  • Updated RecentWorkspacesSection in LandingPage.tsx to keep recency as the primary key.
  • Added deterministic tie-breakers in this order: createdAt (desc), name (asc), id (asc).
  • Documented why the tie-breakers are necessary for Storybook/Chromatic stability.

Validation

  • make static-check

Generated with mux • Model: openai:gpt-5.3-codex • Thinking: xhigh • Cost: $n/a

@ammar-agent
Copy link
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link

To use Codex here, create a Codex account and connect to github.

@ammario ammario merged commit afc6d6c into main Mar 3, 2026
17 of 18 checks passed
@ammario ammario deleted the storybook-eb0y branch March 3, 2026 21:05
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.

2 participants