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

[datasource editor] Only one click target for edit action #8495

Merged

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented Nov 1, 2019

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Some of our users didn't know how to find all options for edit datasource, since they didn't realize the datasource name and caret are different label buttons.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
Screen Shot 2019-11-01 at 3 16 35 PM

After:
Screen Shot 2019-11-01 at 3 41 24 PM

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

@michellethomas @etr2460 @john-bodley

title={datasource.name}
className="label label-default label-btn m-r-5"
bsSize="sm"
id="datasource_menu"
Copy link
Contributor

Choose a reason for hiding this comment

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

would be better to use className instead of id

Copy link
Author

Choose a reason for hiding this comment

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

this id was from old code. i think it's required by react bootstrap:
https://react-bootstrap.github.io/components/dropdowns/#dropdown-button-props

padding-left: 8px;
padding-right: 8px;
}
#datasource_menu .caret {
Copy link
Contributor

Choose a reason for hiding this comment

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

add blank line

Copy link
Author

Choose a reason for hiding this comment

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

fixed.

@codecov-io
Copy link

codecov-io commented Nov 1, 2019

Codecov Report

Merging #8495 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8495      +/-   ##
==========================================
- Coverage   66.61%   66.61%   -0.01%     
==========================================
  Files         449      449              
  Lines       22610    22609       -1     
  Branches     2367     2366       -1     
==========================================
- Hits        15061    15060       -1     
  Misses       7411     7411              
  Partials      138      138
Impacted Files Coverage Δ
.../explore/components/controls/DatasourceControl.jsx 67.74% <100%> (-1.01%) ⬇️

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 d46b47a...8ed17ce. Read the comment docs.

@graceguo-supercat graceguo-supercat merged commit acad66d into apache:master Nov 2, 2019
john-bodley pushed a commit to airbnb/superset-fork that referenced this pull request Nov 2, 2019
@dpgaspar dpgaspar added the v0.35 label Dec 20, 2019
@graceguo-supercat graceguo-supercat deleted the gg-ClickDatasourceName branch February 10, 2020 04:21
@mistercrunch mistercrunch added 🍒 0.35.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 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/L v0.35 🍒 0.35.2 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants