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
Bug 1872283: Align UI with gitops-backend and remove mock-data #6373
Bug 1872283: Align UI with gitops-backend and remove mock-data #6373
Conversation
/assign @rohitkrai03 |
/cc: @serenamarie125 |
FYI @bkrikori |
This is looking good @divyanshiGupta ! I've asked Beth to give some input on the empty state copy. I think we may want to change a bit of the wording! |
/retest |
Suggestions from Jake and I regarding wording
|
Just to elaborate--
|
@divyanshiGupta: This pull request references Bugzilla bug 1872283, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@bkrikori which help menu are you suggesting here? As of now there is no help menu for this page. For the time being we can just keep it as cc: @rohitkrai03 |
d19c74c
to
5bca0e4
Compare
@divyanshiGupta: This pull request references Bugzilla bug 1872283, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
f3fefe1
to
f2fcefe
Compare
cc: @serenamarie125 |
FYI @beaumorley @lwrigh this the PR associated with @bkrikori designs |
FYI @divyanshiGupta unfortunately both Beth and Jake were interns, and they are no longer with Red Hat UXD. @divyanshiGupta were you able to make the changes re: sentence style as well as wording? If so I will provide approval. We could then get Laura and Beau to take a look at your responses to the formatting piece, and we can evaluate if it's possible to get in. Does that make sense? |
@serenamarie125 I made most of the changes Beth asked for but I had one concern #6373 (comment) regarding wordings suggested by Beth for the details page empty state. If you can confirm what should be done here it will be helpful. |
Regarding the wording I would suggest this: Environmental details were not found. Try reloading the page or contacting an administrator. |
@divyanshiGupta: This pull request references Bugzilla bug 1872283, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
f2fcefe
to
06b9129
Compare
@lwrigh done |
06b9129
to
53b37f4
Compare
<EmptyState variant={EmptyStateVariant.full}> | ||
<p className="odc-gitops-empty-state__msg">{emptyStateMsg}</p> | ||
<EmptyStateIcon variant="container" component={gitopsImage} /> | ||
</EmptyState> |
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.
Better to use PF standard way of rendering empty state.
<EmptyState variant={EmptyStateVariant.full}> | |
<p className="odc-gitops-empty-state__msg">{emptyStateMsg}</p> | |
<EmptyStateIcon variant="container" component={gitopsImage} /> | |
</EmptyState> | |
<EmptyState variant={EmptyStateVariant.full}> | |
<EmptyStateIcon variant="container" component={gitopsImage} /> | |
<EmptyStateBody>{emptyStateMsg}</EmptyStateBody> | |
</EmptyState> |
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 was trying to keep it similar to what we have for helm empty-state #6019 (review).
frontend/packages/dev-console/src/components/gitops/details/CommitDetails.tsx
Outdated
Show resolved
Hide resolved
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.
Although some of the refactoring does makes sense and it makes the code more readable, let's wait for 4.7 for major refactorings.
frontend/packages/dev-console/src/components/gitops/utils/useTransformedEnvsData.tsx
Outdated
Show resolved
Hide resolved
6372a22
to
db72938
Compare
@divyanshiGupta: This pull request references Bugzilla bug 1872283, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
db72938
to
7b23e20
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.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyanshiGupta, rohitkrai03 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
@divyanshiGupta: All pull requests linked via external trackers have merged: Bugzilla bug 1872283 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@divyanshiGupta: Bugzilla bug 1872283 is in an unrecognized state (MODIFIED) and will not be moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
In this PR I have removed any usage of mock-data and aligned UI with gitops-backend. Some fields in the environment data returned by backend (Cluster URL, Service source URL etc) are optional and thus I have added some empty states for these fields. Also refactored some code.
Screenshots:
When environment(s) info is not available:
When environment(s) info is available:
Updates:
Test setup:
Follow steps in : #6137
Public repo - https://github.com/rhd-gitops-example/gitops
Private repo - https://github.com/rhd-gitops-example/gitops-private