Skip to content
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

[RHOAI-14745]: Apply Final Microcopy Changes #3403

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

jenny-s51
Copy link
Contributor

https://issues.redhat.com/browse/RHOAIENG-14745

Description

Before

Environment Variable: Default Help Text
Screenshot 2024-10-30 at 12 32 53 PM

Environment Variable: Error Text
Screenshot 2024-10-30 at 12 32 58 PM

Environment Variable: Warning Text
Screenshot 2024-10-30 at 12 33 09 PM

"Attach existing connection" button tooltip in workbench creation form:
Screenshot 2024-10-29 at 2 56 17 PM

"Create connection" button in Connections tab of project view (tooltip does not exist here):

Screenshot 2024-10-30 at 12 32 31 PM
After

Environment Variable: Default Help Text
Screenshot 2024-10-30 at 11 57 11 AM

Environment Variable: Error Text
Screenshot 2024-10-30 at 11 57 20 AM

Environment Variable: Warning Text
Screenshot 2024-10-30 at 11 58 24 AM'

"Attach existing connections" button tooltip in "Create workbench" form:
Screenshot 2024-10-30 at 11 59 47 AM

"Create connection" button tooltip in Connections tab of project view:
Screenshot 2024-10-30 at 11 56 39 AM

How Has This Been Tested?

Add field modal:
Connection Types -> "Edit" in kebab dropdown for connection type -> "Add field"

In workbench creation form:
Disable all connection types -> Navigate into a DSP -> Create workbench -> Verify "Attach existing connections" button is disabled and has correct microcopy on tooltip when hovered: "No connection types available".

In "Connections" tab of a DSP:
Disable all connection types -> Navigate into a DSP -> Go to "Connections" tab -> Verify "Create connection" button is disabled and has correct microcopy on tooltip when hovered: "No connection types available".

Test Impact

N/A - updates to microcopy

Request review criteria:

Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.
  • Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main

Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.96%. Comparing base (fdcdd51) to head (cbd718e).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...cts/screens/detail/connections/ConnectionsList.tsx 81.81% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3403      +/-   ##
==========================================
+ Coverage   85.94%   85.96%   +0.01%     
==========================================
  Files        1339     1339              
  Lines       30310    30323      +13     
  Branches     8369     8378       +9     
==========================================
+ Hits        26051    26068      +17     
+ Misses       4259     4255       -4     
Files with missing lines Coverage Δ
...nd/src/concepts/connectionTypes/validationUtils.ts 100.00% <ø> (ø)
...ctionTypes/manage/ConnectionTypeDataFieldModal.tsx 85.48% <ø> (ø)
...ens/spawner/connections/ConnectionsFormSection.tsx 81.70% <100.00%> (+1.44%) ⬆️
...cts/screens/detail/connections/ConnectionsList.tsx 93.93% <81.81%> (+1.63%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fdcdd51...cbd718e. Read the comment docs.

id="no-connections-tooltip"
content="No existing connections available"
id="no-connection-types-tooltip"
content="No connection types available"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are attaching connections and not connection types.

Suggested change
content="No connection types available"
content="No connections available"

Furthermore, the create button may be disabled if there are no connection types.

Copy link
Contributor Author

@jenny-s51 jenny-s51 Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @christianvogt , nice catch!

Wondering if we should then add another tooltip to the disabled create button for that case when there are no connection types, i.e.:

Screenshot 2024-10-30 at 4 50 32 PM

Currently if a user clicks the create button and toggles the modal, both the dropdown and the create button in the modal are disabled when there are no connection types:
Screenshot 2024-10-30 at 4 46 57 PM

When you have a moment would be great to get your thoughts on the best approach here @simrandhaliw

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jenny-s51, we should disable the button and display the tooltip upon hover. The tooltip text above also looks good to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @simrandhaliw , updated

Comment on lines 86 to 94
Create connection
</Button>
{enabledConnectionTypes.length === 0 && (
<Tooltip
id="no-connection-types-tooltip"
content="No connection types available"
triggerRef={tooltipRef}
/>
)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have an Add connection that gets disabled just the same if there's no connection types. But right now there's no tooltip.
@simrandhaliw i think this button should also be named Add connection, no? Other pages don't mix create and add actions labels.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All instances of connection creation should use "Create" instead of "Add," since the opposite action is "Delete". If the opposite action were "Remove," then "Add" would be appropriate.

Also, we should update the preview drawer's modal heading from "Add connection" to "Create connection," as this is consistent with the terminology used for connection creation modals.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have an Add connection that gets disabled just the same if there's no connection types. But right now there's no tooltip.

@christianvogt Do you mean the "Create connection" action in the Connections tab of the Project details view? Yes, that is another instance where the same tooltip would be displayed for the disabled button.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's several inconsistencies with other tabs. Perhaps it's best to create an issue to align them all instead of part of this PR.

@jenny-s51 jenny-s51 force-pushed the RHOAIENG-14745 branch 2 times, most recently from c525c96 to b43187b Compare November 4, 2024 19:44
Create connection
</Button>
{enabledConnectionTypes.length === 0 && (
<Tooltip content="No connection types available" triggerRef={tooltipRef} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing ID to go with the aria-describedby attribute.

Suggested change
<Tooltip content="No connection types available" triggerRef={tooltipRef} />
<Tooltip id="no-connection-types-tooltip" content="No connection types available" triggerRef={tooltipRef} />

Also noticed that the Add connection button doesn't have a tooltip when there is an existing connection but no connection types.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @christianvogt - applied these fixes

remove unused import

disable create connection button and show tooltip on hover

remove key, add aria-describedBy,format

remove duplicate ID on button

fix aria-describedBy check to match disabled check

add ID, apply tooltip to disabled Add Connection button
@christianvogt
Copy link
Contributor

/lgtm
/approve

Copy link
Contributor

openshift-ci bot commented Nov 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christianvogt

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Nov 4, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit e44b1c6 into opendatahub-io:main Nov 4, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants