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

fix(fs-router): pre-populate view titles from filenames #2321

Conversation

cromoteca
Copy link
Contributor

This pull request adds functionality to pre-populate view titles from filenames. It ensures that the view titles are automatically generated based on the filenames, as otherwise doing that in production mode can lead to use minified names.

Fixes #2318.

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.11%. Comparing base (6654875) to head (a56ea35).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2321      +/-   ##
==========================================
- Coverage   95.42%   95.11%   -0.32%     
==========================================
  Files          66       66              
  Lines        4415     4438      +23     
  Branches      634      636       +2     
==========================================
+ Hits         4213     4221       +8     
- Misses        161      176      +15     
  Partials       41       41              
Flag Coverage Δ
unittests 95.11% <100.00%> (-0.32%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

taefi
taefi previously approved these changes Apr 15, 2024
Copy link
Contributor

@taefi taefi left a comment

Choose a reason for hiding this comment

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

LGTM.
The codecov error seems to be complete non-sense, and it could be ignored.

Lodin
Lodin previously requested changes Apr 16, 2024
packages/ts/file-router/src/vite-plugin.ts Outdated Show resolved Hide resolved
@cromoteca cromoteca requested a review from Lodin April 16, 2024 11:37
Copy link

sonarcloud bot commented Apr 16, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

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

See analysis details on SonarCloud

@platosha platosha dismissed Lodin’s stale review April 16, 2024 12:39

The change request was addressed

@platosha platosha merged commit a94561f into main Apr 16, 2024
14 of 15 checks passed
@platosha platosha deleted the fix/2318/fs-router-default-view-names-are-minified-in-production-mode branch April 16, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fs-router] default view names are minified in production mode
4 participants