Skip to content

Library: equal size chat cards and no loading placeholders - #12221

Merged
shimmyshimmer merged 3 commits into
mainfrom
library-chats-equal-cards
Sep 29, 2026
Merged

shimmyshimmer merged 3 commits into
mainfrom
library-chats-equal-cards

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Cards in the Library Chats grid now all have the same width and height, and the grey placeholder rows that flashed on open are gone.

Changes

  • CardGrid takes an equalRows prop that sets grid-auto-rows: 1fr, so every row is as tall as the tallest card. The chats, projects and sections grids use it. Before, a two-line name or an extra project/section line made one row taller than the others, so card sizes varied.
  • Cards keep their existing aspect-[8/7] and self-stretch, with no overflow-hidden, so nothing is clipped. The 8:7 ratio is the minimum height, and a card only grows past it when its content needs the room, in which case the whole grid grows with it.
  • The "New project" and "New section" tiles use the same 8:7 box with self-stretch instead of min-h-40 / min-h-44, so they match the cards next to them.
  • Removed the LoadingRows skeleton. While chats and projects load, the area stays empty until the real content arrives, instead of briefly showing eight list-shaped grey bars (also in grid view).

An earlier revision of this PR locked the cards to 8:7 with overflow-hidden, which clipped the footer on Small and Medium card sizes when a card had a long name and a location line. This version replaces that.

Grouped views (by date) size each group separately, so a group containing a long name can have slightly taller cards than another group.

Testing

  • tsc -b passes.
  • tests/library-chats.test.ts passes, including the existing check that cards stretch and do not clip.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T04:38:31.390236Z 4adc371 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@danielhanchen

Copy link
Copy Markdown
Member

The Windows frontend failure is from this change rather than the runner: studio/frontend/tests/library-chats.test.ts:420 ("chat, project and section cards are a little shorter than square, dated bottom left") asserts the CARD class in chats-items.tsx does not contain overflow-hidden, and this PR adds it. Either keep the card from clipping another way or update that assertion with the reason the clip is now wanted.

@mahiatlinux mahiatlinux self-assigned this Sep 28, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: b57c9275b6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 4adc371e16

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer
shimmyshimmer merged commit 6c20f0f into main Sep 29, 2026
40 of 42 checks passed
@shimmyshimmer
shimmyshimmer deleted the library-chats-equal-cards branch September 29, 2026 04:31
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 6c20f0fac7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…#12221)

* Library: equal size chat cards, drop loading placeholders

* Library: size grid rows to the tallest card instead of clipping

---------

Co-authored-by: Maheswar Kumar <[email protected]>
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.

3 participants