-
Notifications
You must be signed in to change notification settings - Fork 64
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
feat(ESSNTL-4194): Show groups in a table #1767
feat(ESSNTL-4194): Show groups in a table #1767
Conversation
Looks good, just a few comments:
|
All these problems will not be reproducible with the real API implementation soon. |
@gkarat Other than that the PR look fine :) |
@mmenestr, thanks a lot for your review! I addressed your points in the last commits. For the button in the error state: this would require some work in our library (separate from the inventory frontend): I left the TODO note to fix it later. |
/retest |
d617d3d
to
cc91451
Compare
import { generateLoadingRows } from '../InventoryTable/helpers'; | ||
import NoEntitiesFound from '../InventoryTable/NoEntitiesFound'; | ||
|
||
const GROUPS_TABLE_INITIAL_STATE = { |
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.
How about extracting assets into separate file?
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.
i'd like to keep it in the same file since these constants are tied to the component's state only
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.
Hmm, maybe there will be a new component that can re-use them? But, not a big deal, this is minor :)
Codecov ReportBase: 73.36% // Head: 69.54% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1767 +/- ##
==========================================
- Coverage 73.36% 69.54% -3.83%
==========================================
Files 105 108 +3
Lines 2219 2420 +201
Branches 838 869 +31
==========================================
+ Hits 1628 1683 +55
- Misses 591 737 +146
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Codewise looks good!
import { generateLoadingRows } from '../InventoryTable/helpers'; | ||
import NoEntitiesFound from '../InventoryTable/NoEntitiesFound'; | ||
|
||
const GROUPS_TABLE_INITIAL_STATE = { |
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.
Hmm, maybe there will be a new component that can re-use them? But, not a big deal, this is minor :)
# [1.3.0](v1.2.0...v1.3.0) (2023-02-16) ### Features * **ESSNTL-4194:** Show groups in a table ([#1767](#1767)) ([b80c00e](b80c00e))
🎉 This PR is included in version 1.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Implements https://issues.redhat.com/browse/ESSNTL-4194.
Mock https://www.sketch.com/s/c19f555b-7887-4423-b55d-575c8dd1dfb7/a/dl8zwyb.
Create the groups list table with three columns: name, total systems and last modified. Implement sorting by each column, filtering by name and pagination.
How to test
npm run start:mock
).Screenshots
No match state:
Failed request (any runtime error):
Pagination values: