-
Notifications
You must be signed in to change notification settings - Fork 56
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: extract and combine routes from fs routing and flow #2032
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2032 +/- ##
=======================================
Coverage 95.30% 95.30%
=======================================
Files 52 52
Lines 3495 3495
Branches 527 527
=======================================
Hits 3331 3331
Misses 129 129
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
LGTM
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.
LGTM
...ava/endpoint/src/main/java/com/vaadin/hilla/route/RouteUnifyingIndexHtmlRequestListener.java
Outdated
Show resolved
Hide resolved
*Find and extract all server/client side routes and add and expose them in dev mode.
57ef156
to
4bf72c5
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
final String viewsJson = mapper | ||
.writeValueAsString(availableViews); | ||
response.getDocument().head().appendElement("script") | ||
.text("window.Vaadin.views = " + viewsJson); |
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.
This could lead to problems with some JSON. Jsoup has the DataNode to avoid problems, but I don't know if Jackson provides something similar. If Jsoup is on the classpath, this is how we did it in the SSO Kit: https://github.com/vaadin/sso-kit/blob/2ec9ce0308a14cbb5ad40dd6b38414a4f0b0d6f7/sso-kit-starter-hilla/src/main/java/com/vaadin/hilla/sso/starter/BootstrapDataServiceListener.java#L43-L48
This ticket/PR has been released with Hilla 24.4.0.alpha3 and is also targeting the upcoming stable 24.4.0 version. |
No description provided.