-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Use filterEmptyItem
for table columns to improve readability.
#2815
Conversation
Your org requires the Graphite merge queue for merging into mainAdd the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @agatha197 and the rest of your teammates on Graphite |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 4.86% | 349/7185 |
🔴 | Branches | 4.44% | 220/4959 |
🔴 | Functions | 2.81% | 67/2382 |
🔴 | Lines | 4.75% | 334/7027 |
Test suite run success
96 tests passing in 12 suites.
Report generated by 🧪jest coverage report action from f758c59
a7d80b1
to
226486e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚢
Merge activity
|
…ity. (#2815) Refactored image list column definitions to use conditional expressions with filterEmptyItem This PR simplifies the column definitions in CustomizedImageList and ImageList components by: - Replacing spread operator and conditional arrays with boolean expressions - Using filterEmptyItem to remove falsy column definitions - Maintaining the same functionality while reducing code complexity **Checklist:** - [ ] Documentation - [ ] Test case(s) to demonstrate the difference of before/after The changes make the code more maintainable by: 1. Eliminating nested conditional arrays 2. Making column visibility logic more explicit 3. Keeping column definitions flat and easier to read The functionality remains identical for users, with no changes to the UI or behavior.
226486e
to
f758c59
Compare
Refactored image list column definitions to use conditional expressions with filterEmptyItem
This PR simplifies the column definitions in CustomizedImageList and ImageList components by:
Checklist:
The changes make the code more maintainable by:
The functionality remains identical for users, with no changes to the UI or behavior.