-
Notifications
You must be signed in to change notification settings - Fork 66
Add application environment details view #175
Add application environment details view #175
Conversation
|
/assign @rohitkrai03 |
f6cf2d1 to
779776a
Compare
Codecov Report
@@ Coverage Diff @@
## main #175 +/- ##
==========================================
+ Coverage 66.61% 66.94% +0.32%
==========================================
Files 319 336 +17
Lines 6042 6492 +450
Branches 1437 1562 +125
==========================================
+ Hits 4025 4346 +321
- Misses 1911 2030 +119
- Partials 106 116 +10
Continue to review full report at Codecov.
|
karthikjeeyar
left a comment
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.
| </Bullseye> | ||
| ); | ||
|
|
||
| if (applicationError || !applicationLoaded || environmentError || !environmentLoaded) { |
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.
| if (applicationError || !applicationLoaded || environmentError || !environmentLoaded) { | |
| if (applicationError || !applicationLoaded || environmentError || !environmentLoaded || !componentsLoaded) { |
| </FlexItem> | ||
| <FlexItem> | ||
| <Tooltip content="Route"> | ||
| <ExternalLink href={componentRouteWebURL} text={<ExternalLinkAltIcon />} /> |
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.
Clicking on this link opens the sidebar.
|
There are a couple of issues causing the topology positioning error. Fixes are known but not yet available: |
| import imageUrl from '../imgs/getting-started-illustration.svg'; | ||
| import { getQueryArgument } from '../shared/utils'; | ||
|
|
||
| const GETTING_STARTED_MODAL_KEY = 'application-list-getting-started-modal'; |
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.
| const GETTING_STARTED_MODAL_KEY = 'application-list-getting-started-modal'; | |
| const GETTING_STARTED_MODAL_KEY = 'environment-details-getting-started-modal'; |
src/shared/utils/git-utils.tsx
Outdated
| INVALID = '', | ||
| } | ||
|
|
||
| export const gitUrlRegex = |
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.
We have gitUrlRegex already in src/components/ImportForm/utils/validation-utils.ts
|
@karthikjeeyar @rottencandy Could you please take another look? @beaumorley @Ranelim @serenamarie125 Any comments from UX/PM? |
|
Hard coded values such as commit info and status & date in environment card will be addressed in separate ticket ? |
Yes, unless those are now available. The hard coded values were there already. |
ed2a0c1 to
499f9ec
Compare
rohitkrai03
left a comment
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.
When switching from list view to graph view with an item selected. I cannot select the node again once the sidebar is closed.
Screen.Recording.2022-08-17.at.7.27.45.PM.mov
Also, should we even show the revision details right now with dummy data or wait for the API to provide information and then add it? cc: @serenamarie125 @beaumorley
config/remotePlugin.js
Outdated
| { | ||
| type: 'core.page/route', | ||
| properties: { | ||
| path: '/app-studio/application-environment-details', |
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.
HAC Core now support routes with params. So maybe we can use that instead of query params here -
| path: '/app-studio/application-environment-details', | |
| path: '/app-studio/applications/:appName/environments/:envName', |
PS: We also need to update the current application route to support route param. Something like - /app-studio/applications/:appName
| actions={actions} | ||
| > | ||
| <PageSection> | ||
| <Flex> |
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.
Do we need this flex anymore?
499f9ec to
74dcd3f
Compare
|
@rohitkrai03 in my opinion, the more we can show the better. It helps us to get feedback. |
74dcd3f to
04e71db
Compare
|
I created a doc of notes about the implementation of the application view, and have included the environment view specific notes in this comment, since those seem to be the focus of this PR.
Note: This list doesn't capture any sort of adjustments based on the absence of the ‘Components’ card and the selection behavior that drives changing the detailed content below. My understanding is that this was an iteration for milestone 7 of this view's development and those interactions could still come in later milestones. |
👍
This is in the application detail page, I have not updated that and I know there are changes being made. Not part of this PR.
👍
It looks bad to me to have 4 links in the side panel each with the external link icon. To me it is fairly obvious that they are links and therefore also expect them to open in a new tab. Seems extraneous and cluttering. If UX feels strongly I will add them, but against my better judgement.
The kebab menu looks bad next to the close (x) button. Openshift uses the |
Regarding this interaction, @jeff-phillips-18 mentioned that he might be able to implement the switching interaction in M7 as a separate PR, just so we could try iterating on the view to see how it looks and where any issues lie. If that PR can't merge in time or we decide not to go that route for now, at least this existing PR will have already merged with the environment view functionality as a drill-in for M7 and we can revisit in M8. I suspect when we implement the switching behavior, we will confirm that the space for the topology graph view and side panel is fairly constrained when the cards are expanded. My hope is that by iterating on that PR we can find an acceptable layout that offers the user sufficient space to interact with the environment’s components, and also still retains the card flow view of the components into the Development environment into subsequent environments, since I do think that is beneficial to orienting the user, and also very explicitly shows the user what environments’ details they are looking at (which seems to be important.) |
rohitkrai03
left a comment
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.
@jeff-phillips-18 I am still seeing the issue where I am not able to select the node if i switch from list view to graph view with a node selected. Also the search is not highlighting the nodes.
|
@rohitkrai03 Every other view filters out the non-matches. Do we want this view to be different? Only the graph view or both the graph and list view? |
aacf940 to
22eeeaa
Compare
|
/lgtm |
|
@rohitkrai03 Any further thoughts? |
320a056 to
c5e027b
Compare
|
/retest |
|
/lgtm |
|
There is a test failure due to new route in hacbs ImportForm submit handler. |
c5e027b to
8c2b676
Compare
|
@jeff-phillips-18: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
/lgtm |
rohitkrai03
left a comment
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.
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jeff-phillips-18, rohitkrai03 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |



Fixes
https://issues.redhat.com/browse/HAC-1943
https://issues.redhat.com/browse/HAC-1944
Description
Updates the application details view to use the application environment cards as drill downs into an application's environment details view.
Add an application environment details view showing components in the application. This view is switchable from a list view to a topology graph view with a side panel showing more details for the selected component.
Type of change
Screen shots / Gifs for design review
How to test or reproduce?
Navigate to the application details view.
Select the environment card you wish to view details for.
Select a component in the environment to view the side panel details.
Use the graph/list icons to switch between list and graph views.
Browser conformance: