-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Discover] Migrate discover.html Angular template to React #75784
[Discover] Migrate discover.html Angular template to React #75784
Conversation
…-discover-migrate-discover-html
…-discover-migrate-discover-html
src/plugins/discover/public/application/components/discover_legacy.tsx
Outdated
Show resolved
Hide resolved
…thub.com:kertal/kibana into kertal-2020-08-24-discover-migrate-discover-html
src/plugins/discover/public/application/angular/directives/fixed_scroll.js
Show resolved
Hide resolved
@flash1293 yes, if Jenkins goes green 🌲 🍏 💚 |
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.
Tested in Chrome and Firefox and didn't notice any issues. Looks good to me once the aria-expanded
I commented on is fixed
src/plugins/discover/public/application/components/discover_legacy.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/angular/directives/fixed_scroll.js
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/components/discover_legacy.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/components/discover_legacy.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/components/discover_legacy.tsx
Outdated
Show resolved
Hide resolved
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.
Naming issue on the scss.
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.
There's still a few seemingly arbitrary pixel values in the SASS, but I'll 👍 for now to unblock progress.
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
…5784) Co-authored-by: Andrea Del Rio <[email protected]>
…77704) Co-authored-by: Andrea Del Rio <[email protected]>
Summary
This PR removes the Angular template
discover.html
, converts it intoDiscoverLegacy.tsx
, a React component. Discover's doc table is still in Angular, so this is also converted into a React ComponentDocTableLegacy
, that's a wrapper for an Angular directive. So we're basically turn the table. Before, it was React in Angular, now it's Angular in React. This enables us to continue deangularization (controller, embeddable, router) without being blocked by the one indomitable gallic village of Angular in a React occupied plugin.Checklist
Delete any items that are not applicable to this PR.