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(nav): Update Tabbed Nav on CRUD Pages #21213

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

Antonio-RiveroMartnez
Copy link
Member

SUMMARY

These changes are part of a bigger collection of changes we are introducing to navigation in our menu to direct users to more useful flows.

  • Updates to tab menus for Databases, Datasets, Saved Queries and Query History menu
  • Including new tests to cover changes

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
error

After:
test

TESTING INSTRUCTIONS

  1. Load the app
  2. Check all the new changes:
1. Databases page no longer shows the tabbed nav for Databases / Datasets / Saved queries / Query History
2. Datasets page no longer shows the tabbed nav for Databases / Datasets / Saved queries / Query History
3. Rename page header on Databases from "Data" to "Databases"
4. Rename page header on Datasets from "Data" to "Datasets"
5. Saved query and Query history pages both show tabbed nav with the header as "SQL" in place of what used to be "Data"
6. Databases and Datasets are removed from the SQL tabbed nav (remaining menu items are Saved queries / Query history)

ADDITIONAL INFORMATION

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

@Antonio-RiveroMartnez Antonio-RiveroMartnez changed the title feat(nav): Updates to our menu feat(nav): Update Tabbed Nav on CRUD Pages Aug 26, 2022
@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

Copy link
Member

@AAfghahi AAfghahi left a comment

Choose a reason for hiding this comment

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

It looks like the CI has something wrong with it, you have the same error that Phillip did. . .Potentially just need a rebase.

@@ -139,6 +139,10 @@ describe('DatabaseList', () => {
expect(wrapper.find(SubMenu)).toExist();
});

it('renders a SubMenu with no tabs', () => {
expect(wrapper.find(SubMenu).props().tabs).toBeUndefined();
Copy link
Member

Choose a reason for hiding this comment

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

is undefined correct here or null?

Copy link
Member Author

Choose a reason for hiding this comment

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

undefined is correct since nothing should be passed to it, not even null.

});

it('renders a SubMenu with no tabs', () => {
expect(wrapper.find(SubMenu).props().tabs).toBeUndefined();
Copy link
Member

Choose a reason for hiding this comment

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

same thought process here.

Copy link
Member Author

Choose a reason for hiding this comment

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

undefined is correct since nothing should be passed to it, not even null.

@Antonio-RiveroMartnez
Copy link
Member Author

Antonio-RiveroMartnez commented Aug 26, 2022

@AAfghahi I just rebased it, however, I can see all latest PRs failing because some new changes introduced in master regarding PivotTableChart.

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

@lyndsiWilliams
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@lyndsiWilliams Container image not yet published for this PR. Please try again when build is complete.

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

@codecov
Copy link

codecov bot commented Aug 26, 2022

Codecov Report

Merging #21213 (6644a84) into master (6644a84) will not change coverage.
The diff coverage is n/a.

❗ Current head 6644a84 differs from pull request most recent head a98defe. Consider uploading reports for the commit a98defe to get more accurate results

@@           Coverage Diff           @@
##           master   #21213   +/-   ##
=======================================
  Coverage   66.67%   66.67%           
=======================================
  Files        1793     1793           
  Lines       68532    68532           
  Branches     7282     7282           
=======================================
  Hits        45695    45695           
  Misses      20974    20974           
  Partials     1863     1863           
Flag Coverage Δ
hive 53.08% <0.00%> (ø)
javascript 52.85% <0.00%> (ø)
mysql 78.20% <0.00%> (ø)
postgres 78.27% <0.00%> (ø)
presto 52.98% <0.00%> (ø)
python 81.41% <0.00%> (ø)
sqlite 76.76% <0.00%> (ø)
unit 51.06% <0.00%> (ø)

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

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Antonio-RiveroMartnez
Copy link
Member Author

@AAfghahi all rebased and passing the checks now.

@lyndsiWilliams
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

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

Copy link
Member

@lyndsiWilliams lyndsiWilliams left a comment

Choose a reason for hiding this comment

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

lgtm!

@yousoph
Copy link
Member

yousoph commented Sep 20, 2022

/testenv up

@github-actions
Copy link
Contributor

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

- Updates to tab menus for Databases, Datasets, Saved Queries and Query History menu
- Including new tests to cover changes
@yousoph
Copy link
Member

yousoph commented Sep 21, 2022

/testenv up

@github-actions
Copy link
Contributor

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

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

nice tests, too!

@eschutho eschutho merged commit fb835d1 into apache:master Sep 21, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 labels Mar 13, 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/M 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants