Repository navigation
fix(web): lazy-load city-timezones to restore script transfer budget - #5200
Merged
Merged
Conversation
TimezoneDialogHost and timezone-mismatch no longer statically import the picker catalog that embeds city-timezones. Place search preloads when the combobox opens. Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
tyler-dane
enabled auto-merge
November 9, 2026 23:48
Contributor
|
Boot bundle: 574.3 KB gzip (+0.0 KB vs main) |
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Satisfy Biome exhaustive-deps in TimezoneCombobox when the city-timezones chunk loads. Replace node:crypto in series-split with a browser-safe SHA-256 so #5204 does not pull the crypto polyfill onto the boot graph. Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
#5185 wired
city-timezonesintofilterTimeZonesvia a static import ontimezone-catalog.ts. That module sat on the boot graph throughTimezoneDialogHost(always mounted) andtimezone-mismatch→DefaultTimezonePicker→ settings, pushing desktop script transfer on main to ~1.35 MB (median 1,349,794 bytes vs 1,065,000 budget; last green main ~974 KB).After merging current main into this branch, #5204 made it worse locally (~1.10 MB) by importing
remainderMasterIdfromseries-split.ts, which usednode:cryptoand pulled the browser crypto polyfill onto the eager graph viaprojectRecurringEdit(same class of regression as #5101).Fix
timeZoneCityNameintotimezone-iana-label.util.tsso mismatch/settings never import the catalog.TimezonePickerDialogfromTimezoneDialogHost(same pattern as booking settings).@core/timezone/city-timezone-searchonly throughplace-timezone-search.lazy.ts(dynamicimport());TimezoneComboboxpreloads on mount and refreshes results when the chunk arrives.node:cryptoinseries-split.tswithsha256-hex.util.tsso recurrence split IDs stay deterministic without the crypto polyfill on boot.city-timezone-index.jsonfromdesktop:export; core search logic unchanged.Performance
Local run:
COMPASS_CONFIG_FILE=…/compass.perf.yamlbuild,bunx serveonbuild/web:9161,bun .github/perf/assert-budget.ts.Tests
bun test:web -- apps/calendar-web/src/timezonebun test:core -- packages/core/src/timezoneandpackages/core/src/util/series-split.test.tsbun lint,bun type-checkVERDICT: PASS (focused suites + local perf budget; full
bun run verify --strictnot run on this VM)