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

fix(Dashboard): Add border to row when hovering HoverMenu in edit mode #27593

Merged

Conversation

rtexelm
Copy link
Member

@rtexelm rtexelm commented Mar 20, 2024

SUMMARY

This adds a distinction to the context of the hover menu icons being a full row of the dashboard editor rather than the left most chart. It's purpose is to avoid confusion as to what these icons would affect.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

B:
row icons
A:
new-hover

TESTING INSTRUCTIONS

Edit a dashboard then hover over the menu icons to the left of any row

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Sorry, something went wrong.

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 69.77%. Comparing base (349e496) to head (6ab5abd).

Files Patch % Lines
...nd/src/dashboard/components/gridComponents/Row.jsx 50.00% 2 Missing and 1 partial ⚠️
...ontend/src/dashboard/components/menu/HoverMenu.tsx 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #27593      +/-   ##
==========================================
- Coverage   69.77%   69.77%   -0.01%     
==========================================
  Files        1911     1911              
  Lines       75056    75069      +13     
  Branches     8362     8365       +3     
==========================================
+ Hits        52374    52383       +9     
- Misses      20630    20632       +2     
- Partials     2052     2054       +2     
Flag Coverage Δ
javascript 57.49% <71.42%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eschutho
Copy link
Member

/testenv up

Copy link
Contributor

@eschutho Ephemeral environment spinning up at http://34.218.74.166:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@john-bodley
Copy link
Member

@rtexelm is there merit in in matching the line color/thickness to be the same as when you hover over a specific dashboard element?

@rtexelm
Copy link
Member Author

rtexelm commented Mar 21, 2024

@john-bodley I thought making it 2px instead of 1 would hopefully differentiate it from a regular dashboard element, inspired by the styling from WithPopoverMenu but using a dashed border to avoid confusion with that context.
It could go further in that direction, changing the border style and color to be more distinct but I don't think it should be closer to the style of a chart or other dashboard element because rows represent a separate role as a container of those

@pull-request-size pull-request-size bot added size/M and removed size/S labels Mar 23, 2024
@rtexelm rtexelm requested a review from eschutho March 23, 2024 00:58
@rtexelm rtexelm force-pushed the fix/update-leftmost-icons-on-rows/sc-76025 branch from 27fe911 to a1d5c77 Compare March 23, 2024 01:11
@rtexelm rtexelm force-pushed the fix/update-leftmost-icons-on-rows/sc-76025 branch from 5ca3c1b to 05f0c05 Compare March 27, 2024 06:41
@rtexelm
Copy link
Member Author

rtexelm commented Mar 27, 2024

Came across the problem that getByTestId was not finding data-testid but will find data-test. There is an override I found here but I couldn't find it utilized in the codebase. I did find this in babel.config.js:

production: {
      plugins: [
        [
          'babel-plugin-jsx-remove-data-test-id',
          {
            attributes: 'data-test',
          },
        ],
      ],
    },

Does this make sense for the substitution during testing?

@rtexelm rtexelm requested a review from eschutho March 27, 2024 21:21
@eschutho
Copy link
Member

@rtexelm Yeah, this all looks good to me. Thanks for the improvements!

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

Lgtm!

rtexelm added 5 commits April 4, 2024 18:18

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mjcarroll Michael Carroll

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mjcarroll Michael Carroll

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mjcarroll Michael Carroll

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mjcarroll Michael Carroll

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mjcarroll Michael Carroll
@rtexelm rtexelm force-pushed the fix/update-leftmost-icons-on-rows/sc-76025 branch from 6ab5abd to 60cc1c4 Compare April 4, 2024 22:19
@eschutho eschutho merged commit 265390c into apache:master Apr 4, 2024
33 checks passed
Copy link
Contributor

github-actions bot commented Apr 4, 2024

Ephemeral environment shutdown and build artifacts deleted.

@michael-s-molina michael-s-molina added v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch labels Apr 5, 2024
mz0in added a commit to mz0in/superset that referenced this pull request Apr 5, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mjcarroll Michael Carroll
fix(Dashboard): Add border to row when hovering HoverMenu in edit mode (apache#27593
EandrewJones pushed a commit to UMD-ARLIS/superset that referenced this pull request Apr 5, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mjcarroll Michael Carroll
michael-s-molina pushed a commit that referenced this pull request Apr 8, 2024
EnxDev pushed a commit to EnxDev/superset that referenced this pull request Apr 12, 2024
michael-s-molina pushed a commit that referenced this pull request Apr 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
@mistercrunch mistercrunch added 🍒 3.1.3 🍒 4.0.1 🍒 4.0.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Jul 2, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch 🍒 3.1.3 🍒 4.0.1 🍒 4.0.2 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants