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

refactor: Migrate HeaderActionsDropdown to typescript #30568

Merged

Conversation

EnxDev
Copy link
Contributor

@EnxDev EnxDev commented Oct 10, 2024

SUMMARY

Migrate HeaderActionsDropdown to typescript

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N.A

TESTING INSTRUCTIONS

  • All tests should pass

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

@dosubot dosubot bot added the change:frontend Requires changing the frontend label Oct 10, 2024
@EnxDev EnxDev force-pushed the refactor/typescript-migration-HeaderActionsDropdown branch from 1a1f111 to a60504a Compare October 14, 2024 14:13
@geido
Copy link
Member

geido commented Oct 18, 2024

/testenv up

Copy link
Contributor

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


handleMenuClick({ key }) {
handleMenuClick = ({ key }: Record<string, any>) => {
Copy link
Member

Choose a reason for hiding this comment

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

nit: shouldn't the type here be sth like { key: MenuKeys }?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

{ key: MenuKeys } doesn't work.

I believe the appropriate type is { MenuInfo } from 'rc-menu/lib/interface'; however, rc-menu is not listed in the project's dependencies.

Copy link
Member

@kgabryje kgabryje left a comment

Choose a reason for hiding this comment

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

Looks great, thank you for your work! Added 1 minor comment

@EnxDev EnxDev requested a review from kgabryje October 19, 2024 14:30
@geido geido merged commit 4433ef4 into apache:master Oct 22, 2024
38 checks passed
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

Yobi-Aditias pushed a commit to sid-indonesia/superset that referenced this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:frontend Requires changing the frontend size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants