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 Trigger and Subscription modal in topology #6080
Add Trigger and Subscription modal in topology #6080
Conversation
/assign @invincibleJai |
/retest |
e01a893
to
8adcb85
Compare
@rachael-phillips can you confirm? I think that the label on the Add Trigger modal should be "Subscriber", not "Select Subscriber" |
Can we have the Attribute/Value be the same width as the other input widgets? Right now there's extra space between the delete icon & the edge of the modal. |
297b13c
to
921c1d0
Compare
@serenamarie125 @rachael-phillips Like we have in Design doc, I have changed the title to cc: @christianvogt |
51d1ca8
to
877ab26
Compare
Hey @karthikjeeyar @serenamarie125 I can confirm that the recommendation to have Subscriber rather than Select Subscriber is correct. I think we should eventually update the spacing of the ATTRIBUTE, KEY, VALUE, APIVERSION, KIND, etc. form fields across the flow, but agree with keeping it standard for now rather than updating based on what I've seen in other places. For example, this is another modal on the topology view, and for consistency I think we should go with the standard spacing. To be super clear, I think what Karthik has now for spacing these form fields is correct. @serenamarie125 I will add your recommendation to this Audit I am currently working on of our form fields so we can address this in the future: https://docs.google.com/document/d/10QMFBrCGmwbq92Vy8GSNteAX6EgslTcR4PnMoQwF_1w/edit?usp=sharing |
frontend/packages/dev-console/src/components/topology/components/edges/BaseEdge.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/topology/components/edges/TrafficConnector.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/actions/add-subscription.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/components/pub-sub/form-fields/PubSubSubscriber.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/topology/components/edges/EventSourceLink.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/topology/components/edges/TrafficLink.tsx
Outdated
Show resolved
Hide resolved
877ab26
to
956a556
Compare
@karthikjeeyar ran into an issue where if I set only the value of a filter and then submit the form, I get an error and then the filters key, value, and Add button go missing. |
The rest seems to function well. |
frontend/packages/knative-plugin/src/actions/getEventPubSubActions.ts
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/components/pub-sub/PubSub.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/topology/create-connector-utils.ts
Outdated
Show resolved
Hide resolved
956a556
to
af2dc23
Compare
frontend/packages/knative-plugin/src/actions/getEventPubSubActions.ts
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/components/pub-sub/PubSub.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/components/pub-sub/PubSubModal.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/knative-plugin/src/topology/create-connector-utils.ts
Outdated
Show resolved
Hide resolved
af2dc23
to
bb23496
Compare
LGTM! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: invincibleJai, karthikjeeyar 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 |
Verified , works as expected!! |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
Fixes: https://issues.redhat.com/browse/ODC-4246 , https://issues.redhat.com/browse/ODC-4167
Problem:
Ability to add trigger/subscription from topology gestures and kebab actions
Solution:
Added Trigger modal and kebab actions for triggers.
Added Subscription modal and kebab actions for subscriptions
Added context menu on the resource backed edges
Note: Sidebar enhancements will be added in a follow up PR
Screenshot:
Trigger Modal:
Subscription Modal:
Empty state:
Error state:
Gif:
cc: @rachael-phillips @beaumorley @openshift/team-devconsole-ux