-
Notifications
You must be signed in to change notification settings - Fork 23
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: add and use XAboutCard component in detail views #3300
refactor: add and use XAboutCard component in detail views #3300
Conversation
✅ Deploy Preview for kuma-gui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
06a1e2c
to
6e8fa1c
Compare
6e8fa1c
to
b820afc
Compare
Would it be much effort to split this PR in two:
The reason I'm checking is, if its not too much effort it would be good to do the Also there are a couple of things that I'd like to do with the design of |
It takes some efforts, but I think I can reduce it to a minimum when I keep the |
Ok, I understood that you are going to keep the I guess thats mixing concerns still a little. The reason ideally we'd have it all in one PR is so that would mean the re-introduction of If |
The main point of adding The styles could also be added to the |
Ok gotcha, let me have a quick look at this here. I'm curious as to why there is styling needed for |
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 made an initial pass on this, mostly concentrating on XAboutAppSection
. Lmk know on those comments, I'd be keen to get this work in by tomorrow/Wednesday preferably 👍
I was about to look and see why we have to overwrite things and others don't but wondered if you'd checked that before doing this? lmk if so, if not I'll take look.
packages/kuma-gui/src/app/external-services/views/ExternalServiceDetailView.vue
Outdated
Show resolved
Hide resolved
packages/kuma-gui/src/app/data-planes/views/DataPlaneDetailView.vue
Outdated
Show resolved
Hide resolved
packages/kuma-gui/src/app/x/components/x-about-section/XAboutSection.vue
Outdated
Show resolved
Hide resolved
packages/kuma-gui/src/app/data-planes/views/DataPlaneDetailView.vue
Outdated
Show resolved
Hide resolved
We recently noticed that `console` statements are not catched in `.vue` files inside the `template` (although catched in `script`) (xref: #3300 (comment)). --------- Signed-off-by: schogges <moritz.fleck@konghq.com>
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.
Couple more bits, sorry this is a bit piecemeal, I think we should be able to get this in by the end of today which would be great. There are a couple of things here that I'm not sure are outstanding or not.
Yeah I think that might be best, give it a try and see what we think? We can always revert. Not sure about the DataPlane one those, thats unfortunate, not quite sure 🤔 |
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.
Ok I think I've covered everything, there are a couple of outstanding things that we just want to cover off either way. But wanted to note that I don't think theres anything else here.
Appreciate I had quite a few comments and concerns, I was being extra careful considering everything. Also appreciate how you dealt with my comments with care and patience, so thanks! We've both said ideally we don't want to be coming back here again at any point soon, if at all, and I think this is in the best state we can get it now 🎉
Just waiting to see if there's anything else to be done on the unresolved comments, then I can come back here with a 👍 I think
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
Signed-off-by: schogges <moritz.fleck@konghq.com>
e871116
to
bf9109e
Compare
Just pushed the last changes and resolved some conflicts. I think it's ready to go now 🙂
Thanks a lot for your thoughts, comments and patience 🙂 this is much better now! 🙌 |
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.
Ok lets get this in!
These changes introduce a new global component
XAboutCard
that is used to improve the layout of the formerly usedKCard
in the detail views "About" section. It is based on theAppAboutSection
exported by@kong-ui-public/app-layout
. The layout in the content slot changed to a horizontal layout with badges (XBadge
) instead of the column based layout for a general improvement of readability. AllXAboutSection
show the date times of creation and potential modification of the resource.For better visual separation of the
ResourceStatus
entries in theControlPlaneStatus
I have introduced a new class.columns-with-borders
which works similarly to.stack-with-borders
but for a horizontal layout.Furthermore I have replaced several occurrences of
class="column"
orclass="stack"
in the files I touched withXLayout
and replaced static text with i18n.