manager icon indicating copy to clipboard operation
manager copied to clipboard

change: [M3-9778] - TooltipIcon modifications

Open abailly-akamai opened this issue 7 months ago • 6 comments

Description 📝

Apply Tooltip Icons guidelines Replace current Tooltip icon types: , combine 'help' & 'info' to ' info', and 'error' & 'warning' to 'warning'

Apply Tooltip icon style to other icons without labels or with tooltips/popovers
Replace 'error' (warning) icon with ADS warning icon

Changes 🔄

  • Get rid of the old info icons (question mark) and update them to the new CDS version (info icon)
    • help => info
  • Get rid of error and replace with warning
  • Get rig of 'success' (no instance)

Preview 📷

image-2025-05-29-19-16-24-468 image-2025-05-29-19-17-49-063 image-2025-05-29-19-20-00-656

How to test 🧪

Verification steps

In both light and dark modes, verify

  • Behavior and styling of info icons
  • Behavior and styling of Buttons with info icons
  • Behavior and styling of Cloud Icons in images landing (use MSW legacy)
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review ❔ Our contribution guidelines 🤏 Splitting feature into small PRs ➕ Adding a changeset 🧪 Providing/improving test coverage 🔐 Removing all sensitive information from the code and PR description 🚩 Using a feature flag to protect the release 👣 Providing comprehensive reproduction steps 📑 Providing or updating our documentation 🕛 Scheduling a pair reviewing session 📱 Providing mobile support ♿ Providing accessibility support

  • [x] I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • [x] All unit tests are passing
  • [x] TypeScript compilation succeeded without errors
  • [x] Code passes all linting rules

abailly-akamai avatar Jun 06 '25 19:06 abailly-akamai

I think we should keep some kind of red tooltip error icon instead of just replacing across the board with a warning icon as there are semantic differences

For example, the payment method drawer use case is to indicate that the action failed or can't be taken instead of warning the user about an action. What are your thoughts?

hana-akamai avatar Jun 13 '25 16:06 hana-akamai

@hana-akamai those were the CDS recommendations.

In general to denote an action failing we should use a notice.

abailly-akamai avatar Jun 13 '25 16:06 abailly-akamai

The default info icon color looks different (should be icon/secondary) and the color is not changing on hover image

tzmiivsk-akamai avatar Jun 16 '25 12:06 tzmiivsk-akamai

I think we should keep some kind of red tooltip error icon instead of just replacing across the board with a warning icon as there are semantic differences

For example, the payment method drawer use case is to indicate that the action failed or can't be taken instead of warning the user about an action. What are your thoughts?

We discussed that currently we don’t have any error cases (i.e. errors that would prevent saving changes, etc.), only warnings with tooltips - and that's why we decided to change it to the warning CDS icon. Is that still the case?

tzmiivsk-akamai avatar Jun 16 '25 13:06 tzmiivsk-akamai

@tzmiivsk-akamai I think the only case where we use the error Tooltip icon was in the Add Payment Drawer (seen in the description screenshot). Since it's a one-off we can disregard my comment

hana-akamai avatar Jun 16 '25 14:06 hana-akamai

It would be great to also fix the spacing around the info icon across different elements – like table cells and checkboxes (based on what I noticed – adding a screenshot). image

I also spotted a wrong style for the disabled button in IAM. image

Other than that, everything looks good!

tzmiivsk-akamai avatar Jun 17 '25 09:06 tzmiivsk-akamai

@harsh-akamai please review the assigned PR, thanks

abailly-akamai avatar Jun 20 '25 18:06 abailly-akamai

I'm going to give this a quick check this morning due to the rebase 👀

jaalah-akamai avatar Jun 27 '25 12:06 jaalah-akamai

@jaalah-akamai but are you ;)

abailly-akamai avatar Jun 27 '25 20:06 abailly-akamai

Cloud Manager UI test results

:small_red_triangle: 2 failing tests on test run #25 ↗︎

:x: Failing:white_check_mark: Passing:arrow_right_hook: Skipped:clock1: Duration
2 Failing668 Passing4 Skipped125m 46s

Details

Failing Tests
SpecTest
:x:advanced-configuration.spec.tsCloud Manager Cypress Tests→Update database clusters→Advanced configurations for a g6-nanode-1 MySQL v8.x 1-node cluster » Update database clusters→Advanced configurations for a g6-nanode-1 MySQL v8.x 1-node cluster
:x:object-storage-objects-multicluster.spec.tsCloud Manager Cypress Tests→Object Storage Multicluster objects » Object Storage Multicluster objects

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/databases/advanced-configuration.spec.ts,cypress/e2e/core/objectStorageMulticluster/object-storage-objects-multicluster.spec.ts"

linode-gh-bot avatar Jul 02 '25 13:07 linode-gh-bot