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: import file-routes.js instead of views.js in Flow.tsx #19059

Closed
wants to merge 1 commit into from

Conversation

taefi
Copy link
Contributor

@taefi taefi commented Mar 27, 2024

Follow up for vaadin/hilla#2271

NOTE: the vaadin/hilla#2271 also keeps the generation of views.ts temporarily to prevent possible snapshot build failures.
Please feel free to add any changes needed for a smooth transition, if needed.
After these two PRs (on both sides) merged successfully, the generation of views.ts would be removed from Hilla codebase.

Follow up for vaadin/hilla#2271

NOTE: the vaadin/hilla#2271 also keeps the generation
of views.ts temporarily to prevent possible snapshot
build failures. After these two PRs (on both sides)
merged successfully, the generation of views.ts would
be removed from Hilla codebase.
Copy link

sonarcloud bot commented Mar 27, 2024

Quality Gate Passed Quality Gate passed

Issues
13 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

Test Results

1 091 files  ± 0  1 091 suites  ±0   1h 22m 31s ⏱️ + 2m 13s
6 934 tests ± 0  6 885 ✅ ± 0  49 💤 ±0  0 ❌ ±0 
7 265 runs  +22  7 204 ✅ +22  61 💤 ±0  0 ❌ ±0 

Results for commit 9819d32. ± Comparison against base commit 5c58117.

@@ -223,7 +223,7 @@ private String getFlowTsxFileContent(boolean frontendRoutesTsExists)
return content.replace("//%toReactRouterImport%",
"import { toReactRouter } from '@vaadin/hilla-file-router/runtime.js';")
.replace("//%viewsJsImport%",
"import views from 'Frontend/generated/views.js';")
"import views from 'Frontend/generated/file-routes.js';")
Copy link
Contributor

Choose a reason for hiding this comment

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

This wouldn't be needed after we switch to RouterBuilder API, because views.js won't be used by Flow anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, so we can close this PR for good.

@mshabarov mshabarov closed this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants