-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Convert query control dropdown button to React #3698
Convert query control dropdown button to React #3698
Conversation
cc @washort |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- In our react migration effort we convert components to Ant Design. So, plz convert it to AntD
Dropdown
+Menu
(like we do here) and to keep visual consistency, also convert the button next to it "Edit Visualization" to an AntDButton
- The menu items don't work properly. Plz test your code.
@openjck wdym "extension API"? What does your follow up do? |
Thanks for the tip about ant. I'll do that. It might take some time as I need to hop on another project for the next few days.
That may not be the correct term. We use the redash-stmo extensions in our instance of Redash. |
78efd63
to
2e9e85e
Compare
Updated to use Ant. The buttons are working for me, but let me know if your have any issues. |
2e9e85e
to
57d8d9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @openjck!
Got a few comments in there.
Also, notice a specific test embed/share_embed_spec.js
fails.
57d8d9a
to
1c9fd18
Compare
Good tips. Updated. 😃 |
1c9fd18
to
654e3ba
Compare
The download links aren't workin'... Regarding the failed Cypress tests - I'll send you a fix when this PR is ready. |
c756f54
to
8983849
Compare
Updated! 😃 |
Percy seems great, but I'm not seeing the changes that it's reporting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lookin good. Just a few last requests:
- I think Percy diff is cuz branch not updated to latest. Plz rebase.
- To tidy things up plz put all components in one folder:
- app/components
- EditVisualizationButton
- index.jsx (currently EditVisualizationButton.jsx)
- QueryControlDropdown.jsx
- QueryResultsLink.jsx
- EditVisualizationButton
@arikfr plz give this a quick look to make sure we didn't forget anything.
8983849
to
a320687
Compare
Updated 😃 |
Sent you some code changes openjck#1 |
Merged your PR. Thanks! |
b00b8ca
to
84702e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Plz resolve conflicts (rebase I assume) and it's good to go.
84702e0
to
219c3e9
Compare
This conversion needs to happen before we can easily modify it with the extension API.
219c3e9
to
ab7048a
Compare
Rebased 😃 |
This conversion needs to happen before we can easily modify it with the
extension API.
What type of PR is this? (check all applicable)
Refactor