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(home-screen): fixes for loading states, flicker issue, and reduction of api calls #11557

Merged
merged 12 commits into from
Nov 7, 2020

Conversation

pkdotson
Copy link
Member

@pkdotson pkdotson commented Nov 4, 2020

SUMMARY

This Pr is a follow up for community suggestions for home page adding loading states, css updates and reduction of three api calls that are originally called in a batch call on page load.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

Updating units tests

  • 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

@ktmud
Copy link
Member

ktmud commented Nov 4, 2020

Thanks for the fixes! Does this also fix the issue with the Recents tabs where the list will continue to grow if you switch tabs back and forth?

@pkdotson
Copy link
Member Author

pkdotson commented Nov 4, 2020

Thanks for the fixes! Does this also fix the issue with the Recents tabs where the list will continue to grow if you switch tabs back and forth?

Yes! It does. There was a issue with the key

superset-frontend/src/views/CRUD/hooks.ts Outdated Show resolved Hide resolved
superset-frontend/src/views/CRUD/hooks.ts Outdated Show resolved Hide resolved
superset-frontend/src/views/CRUD/hooks.ts Outdated Show resolved Hide resolved
superset-frontend/src/views/CRUD/types.ts Outdated Show resolved Hide resolved
@pkdotson pkdotson force-pushed the phillip/home-screeen-cleanup branch from 2aad4f2 to 32fbcb1 Compare November 5, 2020 21:54
@suddjian
Copy link
Member

suddjian commented Nov 5, 2020

Fixes #11588

@codecov-io
Copy link

codecov-io commented Nov 6, 2020

Codecov Report

Merging #11557 (35fe1cc) into master (091432e) will decrease coverage by 4.61%.
The diff coverage is 62.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11557      +/-   ##
==========================================
- Coverage   66.59%   61.97%   -4.62%     
==========================================
  Files         876      878       +2     
  Lines       42146    42311     +165     
  Branches     3943     3968      +25     
==========================================
- Hits        28066    26224    -1842     
- Misses      13977    15906    +1929     
- Partials      103      181      +78     
Flag Coverage Δ
cypress ?
javascript 62.61% <62.23%> (+0.04%) ⬆️
python 61.59% <ø> (-0.56%) ⬇️

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

Impacted Files Coverage Δ
...ontend/src/components/ListViewCard/ImageLoader.tsx 86.36% <ø> (ø)
...set-frontend/src/components/ListViewCard/index.tsx 94.23% <ø> (-5.77%) ⬇️
...rontend/src/views/CRUD/dashboard/DashboardList.tsx 73.68% <ø> (-5.27%) ⬇️
superset-frontend/src/views/CRUD/utils.tsx 48.78% <27.27%> (+0.54%) ⬆️
...perset-frontend/src/views/CRUD/chart/ChartCard.tsx 72.22% <44.44%> (-18.11%) ⬇️
...rontend/src/views/CRUD/dashboard/DashboardCard.tsx 72.97% <44.44%> (-20.78%) ⬇️
superset-frontend/src/views/CRUD/hooks.ts 56.64% <50.00%> (-7.39%) ⬇️
...t-frontend/src/views/CRUD/welcome/SavedQueries.tsx 59.30% <58.33%> (-3.86%) ⬇️
...set-frontend/src/views/CRUD/welcome/EmptyState.tsx 87.80% <66.66%> (+0.30%) ⬆️
...-frontend/src/views/CRUD/welcome/ActivityTable.tsx 65.51% <68.75%> (+19.03%) ⬆️
... and 213 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 091432e...35fe1cc. Read the comment docs.

@pkdotson pkdotson requested a review from nytai November 7, 2020 00:48
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.

Looks like lots of improvements! There might be some minor syntactical nits, but I think we should merge as is... this makes things much better!

@mistercrunch mistercrunch merged commit d8373f2 into apache:master Nov 7, 2020
@mistercrunch mistercrunch deleted the phillip/home-screeen-cleanup branch November 7, 2020 03:35
Copy link

@Kamh1234566 Kamh1234566 left a comment

Choose a reason for hiding this comment

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

@junlincc junlincc added the rush! Requires immediate attention label Nov 9, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
…ction of api calls (apache#11557)

* fixes for loading states, flicker issue, api calls

* fix filter bug

* add high res images

* bug fixes for cards and face pile, change imgs to svgs, and address comments

* update from comments

* add stopprop

* fix tests

* add liscenses

* remove unused type

* fix types

* add license

* fix lint
@junlincc junlincc removed the rush! Requires immediate attention label Mar 18, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants