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
Add enhancements to GitOpsDetailsPage #9242
Add enhancements to GitOpsDetailsPage #9242
Conversation
Need to do a rebase @reginapizza |
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.
Some initial feedback @reginapizza -- Please let me know if you have any questions or concerns about what I mentioned here.
frontend/packages/gitops-plugin/src/components/GitOpsDetailsPage.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/GitOpsDetailsPage.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/GitOpsListPage.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/details/CommitDetails.scss
Outdated
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/details/GitOpsServiceDetailsSection.tsx
Outdated
Show resolved
Hide resolved
envs, | ||
(env) => | ||
env && ( | ||
<Stack> |
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.
Looks WIP-esk... but don't forget to put React key
s.
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.
this is the area that Keith will be contributing. Likely most of this will be overwritten.
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.
Is this something that was intended to be removed?
frontend/packages/gitops-plugin/src/components/list/GitOpsList.tsx
Outdated
Show resolved
Hide resolved
d44db04
to
5a2d9fa
Compare
5a2d9fa
to
a45d46c
Compare
2403f11
to
765aa19
Compare
@reginapizza , I created a commit in your repo reginapizza@0c3dac2 Here is a screen shot. The counts are showing, and the number of non-healthy resources do appear. If the frontend is talking to an 'older' backend, the resource count will not be '0' but rather, 'N/A', like so. |
Hi @reginapizza , was the design changed such that the cards are shown only in one column? Could you confirm that you are seeing this too? |
@keithchong when I looked at the cluster you sent yesterday they were being displayed side by side... the design hasn't changed though |
98c6629
to
247984f
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.
As discussed in our chat, feel free to take some of these refactor notes as suggestions for post 4.9. There isn't too much to worry about here from a bug perspective. Perhaps the lack of error handling can bite you if things go off the rails.
frontend/packages/gitops-plugin/src/components/GitOpsDetailsPage.tsx
Outdated
Show resolved
Hide resolved
{_.map( | ||
envs, |
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.
Is it possible to have envs that are null or undefined? Because you do a env &&
at the start of the map which adds an indent. I would think if you could have bad envs you should filter them out first before mapping to improve readability and save an indent (this component has a lot of indentation).
frontend/packages/gitops-plugin/src/components/details/GitOpsDetails.tsx
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/details/GitOpsDetails.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/details/GitOpsDetails.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/utils/useEnvDetails.ts
Outdated
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/utils/useEnvDetails.ts
Outdated
Show resolved
Hide resolved
frontend/packages/gitops-plugin/src/components/details/GitOpsResourcesSection.scss
Show resolved
Hide resolved
c88915b
to
b2721ef
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.
Dropping WIP
/retitle Add enhancements to GitOpsDetailsPage
Updating state based on what I've done
/kind feature
/label qe-approved
Apply labels from Epic
/label px-approved
/label docs-approved
Adding Keith as a reviewer for the lgtm:
/assign @keithchong
b2721ef
to
9fcb70f
Compare
/approve The bot is having some issues, but for the clear record, I approve of the state this PR is in. The changes unhandled will be taken up by the GitOps team post 4.9 and hopefully added to a dynamic plugin which will slot over the work done in 4.9. @reginapizza please don't forget to file a ticket in the GitOps Jira to keep track of these things, I do think they are important. |
9fcb70f
to
add31f8
Compare
Co-Authored-By: Keith Chong <kykchong@redhat.com>
add31f8
to
0b8ee69
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, keithchong, reginapizza The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is our WIP PR for GitOps work to be done in 4.9, outlined in ODC-5841.
At the moment, only Details Page (overview) is included, Deployment History page will be contributed by @keithchong. These changes are purely UI; backend changes still need to go in and dummy data needs to be replaced.
Just creating this early for more visibility and earlier code reviews where/when possible. (Will include more screenshots later on)
@andrewballantyne @bgliwa01 @serenamarie125