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: Homepage cleanup #14823

Merged
merged 18 commits into from
Jun 12, 2021
Merged

chore: Homepage cleanup #14823

merged 18 commits into from
Jun 12, 2021

Conversation

pkdotson
Copy link
Member

SUMMARY

This is follow up to #14695. This pr address the comments and ensures that the the sticky tabs works when examples tabs is rendered and not viewed.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

load a brand new instance of superset and test. The examples tabs should be set first if there is no active tab set in local state or viewed is set in previous state.

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

@pkdotson pkdotson requested a review from nytai May 25, 2021 19:22
@codecov
Copy link

codecov bot commented May 25, 2021

Codecov Report

Merging #14823 (ef53a50) into master (53df152) will decrease coverage by 0.01%.
The diff coverage is 75.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14823      +/-   ##
==========================================
- Coverage   77.50%   77.49%   -0.02%     
==========================================
  Files         968      969       +1     
  Lines       49880    49902      +22     
  Branches     6374     6383       +9     
==========================================
+ Hits        38659    38671      +12     
- Misses      11019    11029      +10     
  Partials      202      202              
Flag Coverage Δ
javascript 72.37% <75.71%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...perset-frontend/src/views/CRUD/welcome/Welcome.tsx 81.30% <65.00%> (-2.57%) ⬇️
...-frontend/src/views/CRUD/welcome/ActivityTable.tsx 78.43% <70.58%> (-1.17%) ⬇️
...set-frontend/src/views/CRUD/welcome/ChartTable.tsx 77.94% <78.57%> (+3.31%) ⬆️
...frontend/src/views/CRUD/welcome/DashboardTable.tsx 66.25% <83.33%> (+1.96%) ⬆️
superset-frontend/src/views/CRUD/storageKeys.ts 100.00% <100.00%> (ø)
superset-frontend/src/views/CRUD/types.ts 100.00% <100.00%> (ø)
superset-frontend/src/views/CRUD/utils.tsx 63.86% <0.00%> (-6.73%) ⬇️

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 53df152...ef53a50. Read the comment docs.

Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

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

LGTM on the basis of the code. I have asked to launch a testenv up for some manual testing

@pkdotson
Copy link
Member Author

/testenv up

@github-actions
Copy link
Contributor

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

@kgabryje
Copy link
Member

I think I found a bug - I don't have any favourite dashboards, but when I reload, dashboards from "Mine" tab show up in "Favourite" tab.
https://user-images.githubusercontent.com/15073128/119989659-b8843000-bfc7-11eb-9100-25611547f555.mov

@pull-request-size pull-request-size bot added size/L and removed size/M labels May 28, 2021
@kgabryje
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@kgabryje Ephemeral environment creation failed. Please check the Actions logs for details.

// storage keys for welcome page sticky tabs..
export const HOMEPAGE_CHART_FILTER = 'homepage_chart_filter';
export const HOMEPAGE_ACTIVITY_FILTER = 'homepage_activity_filter';
export const HOMEPAGE_DASHBOARD_FILTER = 'homepage_dashboard_filter';
Copy link
Member

Choose a reason for hiding this comment

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

constants file, nice!

@apache apache deleted a comment from github-actions bot Jun 10, 2021
@pkdotson
Copy link
Member Author

/testenv up

@github-actions
Copy link
Contributor

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

Copy link
Member

@suddjian suddjian left a comment

Choose a reason for hiding this comment

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

Approved with suggestions

@pkdotson pkdotson merged commit 8e6a5a6 into apache:master Jun 12, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* initial commit

* update welcome

* fix lint

* add enum

* more choring

* fix lint

* redo logic for api stick api calls

* fix test

* fix chart test

* lint fix and remove unused code

* fix flicker and add suggestions

* lint

* fix test

* add suggestions

* add suggestions and fix test

* revert packagelock

* fix space
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* initial commit

* update welcome

* fix lint

* add enum

* more choring

* fix lint

* redo logic for api stick api calls

* fix test

* fix chart test

* lint fix and remove unused code

* fix flicker and add suggestions

* lint

* fix test

* add suggestions

* add suggestions and fix test

* revert packagelock

* fix space
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* initial commit

* update welcome

* fix lint

* add enum

* more choring

* fix lint

* redo logic for api stick api calls

* fix test

* fix chart test

* lint fix and remove unused code

* fix flicker and add suggestions

* lint

* fix test

* add suggestions

* add suggestions and fix test

* revert packagelock

* fix space
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.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 preset-io size/L 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants