-
Notifications
You must be signed in to change notification settings - Fork 605
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 toast for import #10290
add toast for import #10290
Conversation
@abhinandan13jan Good direction, but this solution has currently some UI issues and ignores some import cases:
In ticket ODC-6380 we will need also change this in the topology sidebar. It's definitely not required to reuse this component here, but maybe you can take a look. I would recommend one link with two icons. :) This UI change would also help that the link is not rendered without any space behind the "Deployment created successfully" message.
|
frontend/packages/dev-console/src/components/import/ImportForm.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/import/ImportForm.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/import/ImportForm.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/import/toast/ImportToastcontent.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/import/toast/ImportToastcontent.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/import/toast/ImportToastcontent.tsx
Outdated
Show resolved
Hide resolved
ccd57a2
to
1d70b19
Compare
@jerolimov I've updated accordingly.. Can you please re-visit |
/retest |
frontend/packages/dev-console/src/components/import/toast/ImportToastcontent.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/import/__tests__/ImportToastcontent.spec.tsx
Outdated
Show resolved
Hide resolved
@openshift/team-devconsole-ux @beaumorley I think we need your UX feedback here, a) Are you fine with the toast / notification layout in the first comment? Sorry, I personally would still suggest not to use the gray bar to show a link. We use this to copy and paste data, like ConfigMap/Secrets keys or values. Esp. we do not use such a box on the topology sidebar to show the same infos. We show there just a link. I suggest a UI more like the sidebar: Wdyt? b) There are two strings which shows which resources are created RESOURCE ADDED This strings currently doesn't depend on the Deployment type we created. Should we add different cases* for that or could we use a more generic term here like "Application created successfully."? Wdyt? *Deployment vs DeploymentConfig vs Serverless Service. |
1d70b19
to
5a6d533
Compare
@jerolimov Created new component to handle all the discussed cases. Updated screenshots please check |
/assign |
don't think we want all CAPS here @abhinandan13jan but will let @beaumorley confirm |
my concern with these two icons next to eachother is that the hit target is so small, people trying to copy will likely click the link frequently. @beaumorley what are your thoughts? |
5a6d533
to
fbba78e
Compare
@serenamarie125 @beaumorley Updated heading to |
b9fac03
to
2bb1c98
Compare
Hi all, Could you do something like this? There is an option in the PF spec for copy to clipboard in a form and the size of the field is this size. @serenamarie125 what do you think? |
2bb1c98
to
3a3c9cf
Compare
@beaumorley @jerolimov I've updated the component to look similar to the CopyToClipboard component Please note that:
|
Looks great. Can you just add a period after "Deployment created successfully." <-- Like that. Thank you. |
@beaumorley While having a |
@beaumorley I see what @christianvogt is saying ... here's my 2 cents New component pluses
Concerns
|
+1 for showing a blue link, but also just my opinion! And to be fair, blue on gray doesn't look good. 😕 At the end someone needs to decide and we (as group) should agree one a UI now before Abhi updates it again and again. If we can not do here we should to that on PM/Eng/UX Sync... ¯_(ツ)_/¯ |
Agree with your feedback @christianvogt . And your +1 Christoph. It was my initial reaction but then I tried to work with the requirement and PF patterns. I think we agree that blue linked text conveys that this is a link. The external icon conveys it is taking user to new place. These are exiting conventions. The copy icon is being used unconventionally. @serenamarie125 do you want to go back to the other design and just put more space between the icons? Alternatively, we could just not add the copy link at all. Here is the alter with more space between the icons. @serenamarie125 is this what you had originally suggested? |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
10 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/test e2e-gcp-console |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
15 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Addresses
https://issues.redhat.com/browse/ODC-6392
https://issues.redhat.com/browse/ODC-6380
Screenshot
Tests
Added test suite for importToast
Browser conformance
Chrome