Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an explicit “no results” empty state for cell line tables (including hiding the table header when empty) and introduces responsive styling for that empty-state message to address the “dead end” UX for null search results.
Changes:
- Add a custom Ant Design Table
locale.emptyTextJSX block and hide headers when the table has no rows. - Add CSS module styles (with responsive adjustments) for the empty-state message and links.
- Render category sections even when a category has zero results (instead of returning
null).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/style/table.module.css | Adds .empty-message and .link styles plus responsive tweaks for empty-state UI. |
| src/components/CellLineTable/index.tsx | Implements custom empty-state message via locale.emptyText and hides table headers when empty. |
| src/components/CategorySections.tsx | Stops skipping categories with no results so empty-state can display per category. |
Comments suppressed due to low confidence (1)
src/components/CategorySections.tsx:75
- Issue #266 acceptance criteria says categories with no results should be pushed to the bottom. This component still renders tables in the original
selectedCategoriesorder, so empty categories won’t move. Consider deriving a sorted categories list based onbuckets[cat]?.length(stable sort: non-empty first, preserve relative order within the non-empty and empty groups) and mapping over that instead.
{selectedCategories.map((cat) => {
const data = buckets[cat] || [];
return (
<CellLineTable
key={cat}
tableName={cat}
tableDescription={LABEL_COPY[cat] || ""}
cellLines={data}
released={released}
columns={getNormalTableColumns(!released)}
mobileConfig={getNormalTableMobileConfig(isPhone)}
/>
);
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
✅ Deploy Preview for cell-catalog ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #266
Solution
Sort the categories so empty results move to the bottom.
Define a small block of JSX to pass to the table when data is empty, and also hide the header with the
showHeaderprop.Defined what I felt were reasonable reductions in margins, padding and font for smaller screen situations, as the designs are for a very wide screen.