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

feat: add favorite star to dashboard and chart lists #10510

Merged
merged 9 commits into from
Aug 4, 2020

Conversation

riahk
Copy link
Contributor

@riahk riahk commented Aug 4, 2020

SUMMARY

  • Use svg for FaveStar icon and convert to TypeScript
  • Fix button alignment on individual chart/dashboard header view
  • Add favorite star to cells in dashboard and chart lists

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
Screen Shot 2020-08-03 at 5 04 33 PM
Screen Shot 2020-08-03 at 5 05 01 PM
Screen Shot 2020-08-03 at 5 02 40 PM
Screen Shot 2020-08-03 at 5 04 51 PM

After:
Screen Shot 2020-08-03 at 5 08 39 PM
Screen Shot 2020-08-03 at 5 00 08 PM
Screen Shot 2020-08-03 at 5 00 28 PM
Screen Shot 2020-08-03 at 4 59 24 PM

TEST PLAN

Updated Cypress Tests for FaveStar

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

showTooltip?: boolean;
}

export default class FaveStar extends React.PureComponent<FaveStarProps> {
Copy link
Member

Choose a reason for hiding this comment

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

thanks for the ts conversion!

@riahk riahk requested a review from nytai August 4, 2020 22:19
Copy link
Member

@nytai nytai left a comment

Choose a reason for hiding this comment

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

lgtm. just one final change to support translations

superset-frontend/src/views/CRUD/utils.tsx Outdated Show resolved Hide resolved
superset-frontend/src/views/CRUD/utils.tsx Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #10510 into master will increase coverage by 0.14%.
The diff coverage is 81.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10510      +/-   ##
==========================================
+ Coverage   70.85%   71.00%   +0.14%     
==========================================
  Files         604      605       +1     
  Lines       32400    32484      +84     
  Branches     3414     3438      +24     
==========================================
+ Hits        22956    23064     +108     
+ Misses       9332     9309      -23     
+ Partials      112      111       -1     
Flag Coverage Δ
#cypress 55.05% <80.00%> (+0.33%) ⬆️
#javascript 59.98% <75.40%> (+0.26%) ⬆️
#python 70.40% <ø> (+0.05%) ⬆️

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

Impacted Files Coverage Δ
superset-frontend/src/views/CRUD/utils.tsx 64.10% <38.88%> (-21.62%) ⬇️
superset-frontend/src/components/FaveStar.tsx 100.00% <100.00%> (ø)
superset-frontend/src/components/Icon.tsx 100.00% <100.00%> (ø)
...erset-frontend/src/dashboard/components/Header.jsx 55.78% <100.00%> (+0.30%) ⬆️
...tend/src/explore/components/ExploreChartHeader.jsx 83.33% <100.00%> (+0.98%) ⬆️
...perset-frontend/src/views/CRUD/chart/ChartList.tsx 71.09% <100.00%> (+1.67%) ⬆️
...rontend/src/views/CRUD/dashboard/DashboardList.tsx 70.07% <100.00%> (+1.74%) ⬆️
superset/views/alerts.py 70.83% <0.00%> (-29.17%) ⬇️
superset/examples/energy.py 82.50% <0.00%> (-2.12%) ⬇️
superset/examples/unicode_test_data.py 80.00% <0.00%> (-1.64%) ⬇️
... and 46 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 c9cb723...07ce20c. Read the comment docs.

@nytai nytai merged commit e040bf7 into apache:master Aug 4, 2020
@nytai nytai deleted the moriah/dashboard-list-favorite branch August 4, 2020 23:34
@@ -0,0 +1,88 @@
/**
Copy link
Member

@mistercrunch mistercrunch Aug 5, 2020

Choose a reason for hiding this comment

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

nit (optional): for next time, let's use git mv when moving from jsx to tsx so that the file's git history stays attached to it. Now you're on the git blame for all the lines in the file :)

@rusackas
Copy link
Member

Impacts #8976

Ofeknielsen pushed a commit to ofekisr/incubator-superset that referenced this pull request Oct 5, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.38.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 size/L 🚢 0.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants