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

chore: Moves Tooltip to the components folder #14137

Merged

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Moves Tooltip to the components folder.

This work is part of SIP-61

@rusackas @junlincc

TEST PLAN

1 - Execute all tests
2 - All tests should pass

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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

@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #14137 (b953fb7) into master (55bf72a) will not change coverage.
The diff coverage is 100.00%.

❗ Current head b953fb7 differs from pull request most recent head 387121f. Consider uploading reports for the commit 387121f to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14137   +/-   ##
=======================================
  Coverage   77.04%   77.04%           
=======================================
  Files         946      946           
  Lines       47985    47985           
  Branches     5962     5962           
=======================================
  Hits        36970    36970           
  Misses      10814    10814           
  Partials      201      201           
Flag Coverage Δ
javascript 72.15% <100.00%> (ø)

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

Impacted Files Coverage Δ
superset-frontend/src/CRUD/Field.jsx 83.33% <ø> (ø)
...rontend/src/SqlLab/components/TabbedSqlEditors.jsx 71.77% <ø> (ø)
...et-frontend/src/SqlLab/components/TableElement.jsx 89.02% <ø> (ø)
...-frontend/src/components/AlteredSliceTag/index.jsx 96.00% <ø> (ø)
...-frontend/src/components/CopyToClipboard/index.jsx 94.28% <ø> (ø)
superset-frontend/src/components/Tooltip/index.tsx 100.00% <ø> (ø)
...src/dashboard/components/PublishedStatus/index.jsx 100.00% <ø> (ø)
...-frontend/src/explore/components/ControlHeader.jsx 85.18% <ø> (ø)
...rontend/src/explore/components/EmbedCodeButton.jsx 80.76% <ø> (ø)
...tend/src/explore/components/ExploreChartHeader.jsx 63.15% <ø> (ø)
... and 40 more

Continue to review full report at Codecov.

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

@michael-s-molina michael-s-molina force-pushed the tooltip-to-components-folder branch from bdf04e5 to 5c25f07 Compare April 14, 2021 22:45
@junlincc junlincc added the sip:61:folder-org Related to the organization of the folders as of SIP 61 label Apr 15, 2021
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

LGTM, needs rebase.

This PR also makes me wonder if we couldn't add an info prop to the Tooltip and add the styling/features of InfoTooltip into Tooltip that way so that we don't need to maintain two components.

@michael-s-molina
Copy link
Member Author

LGTM, needs rebase.

This PR also makes me wonder if we couldn't add an info prop to the Tooltip and add the styling/features of InfoTooltip into Tooltip that way so that we don't need to maintain two components.

You're totally right. I noticed that now that things are starting to be organized, it's easier to perceive duplicated components or merge-able ones. For me the best example of this is CertifiedIcon, ChartIcon, FaveStar, IconTooltip, RefreshLabel, WarningIconWithTooltip. They could all be merged into an Icon that can be clicked, selected, and have a tooltip. We'll get there in the second wave of refactoring.

@michael-s-molina michael-s-molina force-pushed the tooltip-to-components-folder branch from 5c25f07 to e460ce4 Compare April 16, 2021 11:09
@pkdotson
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

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

@Deena2112
Copy link

Deena2112 commented Apr 17, 2021 via email

@michael-s-molina michael-s-molina force-pushed the tooltip-to-components-folder branch from e460ce4 to 4a7cf46 Compare April 19, 2021 14:28
@michael-s-molina michael-s-molina force-pushed the tooltip-to-components-folder branch from 4a7cf46 to 387121f Compare April 20, 2021 14:47
@rusackas rusackas merged commit 8441590 into apache:master Apr 20, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 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 sip:61:folder-org Related to the organization of the folders as of SIP 61 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants