-
Notifications
You must be signed in to change notification settings - Fork 20
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(dashboard): dashboard card catalog #937
Conversation
Compared to the original comments, there are not actual card previews tho. This requires us to bundle more screenshots so its not very ideal as the number of possible card grows. We can try design some icons for it but for now, its just a general icon. Labels are also supported so that should also help explain. |
3937ba7
to
4e2f591
Compare
Test image available:
|
Test image available:
|
Test image available:
|
a747a89
to
d33d2b4
Compare
Test image available:
|
Test image available:
|
Maybe not - we could just render the actual components but with fake data. |
89a1f07
to
727263e
Compare
Looks perfect functionally. I think ideally the card components themselves should not know anything about "being fake" or not, the fake data should simply be supplied to them from the outside. This could mean via their |
Test image available:
|
Yehh this would be very nice! Just that each card has a different set of data and are mostly self-contained now. I will leave it for later refactoring then cuz i might mess up the chart controller. EDIT: Oh wait actually, from ur latest comments, i can give it a try. |
Sounds good. Before I dive into the implementation review, I'm not sure how I feel about placing the |
Actually, i placed the add card first following this example: https://www.patternfly.org/v4/demos/card-view/react-demos/card-view/ |
Yea, I'm not sure if I like that PF guideline though. The cards they demo are very simple and static and all the cards are pretty small in comparison to our dashboard. |
ohh yeh...hmm the toolbar now is for dashboard layout. I will try to see how to put the button there. |
d33d2b4
to
71cc50c
Compare
Test image available:
|
Signed-off-by: Thuan Vo <[email protected]>
Yeh I think I can try using percentage height. Tho, there is no guarantee that it will show all cards as it depends on the current browser dimension. However, the grid is scrollable to it should not be too bad.
Opps. Looking now.. |
Thoughts on moving the panel content body in the drawer head like this so that there is less white space since there is no header?
Maybe could use some negative padding too... |
Negative margin should do the tricks^^ |
23738a3
to
55e5d9c
Compare
Ready for review again :)) Addressed all suggestions now^^ One new thing is that the MBean metric card actually have some moving data points so it looks like its real time. |
55e5d9c
to
2e91253
Compare
Test image available:
|
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.
Everything looks good to me now, great job!
Welcome to Cryostat! 👋
Before contributing, make sure you have:
main
branch[chore, ci, docs, feat, fix, test]
git commit --amend --signoff
Related to #468
Description of the change:
Motivation for the change:
See #727 (comment)
Screenshots
Empty
Some cards
Catalog