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 extension point to the right side of the menu bar #20514

Merged
merged 5 commits into from
Jun 30, 2022

Conversation

samtfm
Copy link
Contributor

@samtfm samtfm commented Jun 28, 2022

SUMMARY

adds a file, setupExtensions.ts, for applying ui overrides to registered places
adds a registration point for adding components to the right side of the top nav bar.

TESTING INSTRUCTIONS

registering a component to the "navbar.right" registration key should cause that component to render to the left of the menu items on the right side of the nav bar.

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

@codecov
Copy link

codecov bot commented Jun 28, 2022

Codecov Report

Merging #20514 (24c3ad0) into master (90d486a) will increase coverage by 0.00%.
The diff coverage is 75.00%.

@@           Coverage Diff           @@
##           master   #20514   +/-   ##
=======================================
  Coverage   66.71%   66.71%           
=======================================
  Files        1752     1752           
  Lines       65478    65482    +4     
  Branches     6916     6917    +1     
=======================================
+ Hits        43681    43684    +3     
- Misses      20049    20050    +1     
  Partials     1748     1748           
Flag Coverage Δ
javascript 51.80% <75.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...set-ui-core/src/ui-overrides/UiOverrideRegistry.ts 100.00% <ø> (ø)
superset-frontend/src/preamble.ts 0.00% <0.00%> (ø)
superset-frontend/src/views/components/Menu.tsx 50.00% <ø> (ø)
...perset-frontend/src/views/components/RightMenu.tsx 65.17% <100.00%> (ø)

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 90d486a...24c3ad0. Read the comment docs.

@samtfm samtfm force-pushed the samtfm/add-setup-extensions branch from 9148d6f to 79bd04e Compare June 28, 2022 17:55
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.

Awesome, thanks. Adding the setupExtensions code gets me unblocked too :)

@samtfm samtfm force-pushed the samtfm/add-setup-extensions branch from 982a33c to 8e8f9df Compare June 29, 2022 20:30
@suddjian suddjian merged commit f2af81b into apache:master Jun 30, 2022
akshatsri pushed a commit to charan1314/superset that referenced this pull request Jul 19, 2022
…0514)

* add setupExtensions

* add 'navbar.right' extension to registry

* add test for navbar.right extension point

* rename MenuRight -> RightMenu

* lint
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 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.

3 participants