Expand map layer URL keys in parsing and serialization#31
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
facusturla
pushed a commit
to facusturla/worldmonitor
that referenced
this pull request
Feb 27, 2026
### Motivation - Ensure share URLs fully capture map layer state by including every key from the `MapLayers` type (geopolitical and tech layers). - Keep `parseMapUrlState` and `buildMapUrl` consistent so both parsing and serialization cover the same complete set of layers. ### Description - Expanded the `LAYER_KEYS` array in `src/utils/urlState.ts` to include `ais`, `protests`, `military`, `spaceports`, `minerals`, `startupHubs`, `cloudRegions`, `accelerators`, `techHQs`, and `techEvents` so it matches `MapLayers`. - `parseMapUrlState` continues to use `LAYER_KEYS` to populate a `MapLayers` object from the `layers` query param, now covering the full set. - `buildMapUrl` uses `LAYER_KEYS` to serialize active layers into the `layers` query param, ensuring all layer flags are represented in share URLs. - Change is contained to `src/utils/urlState.ts` and committed. ### Testing - No automated tests were run for this change. ------ [Codex Task](https://chatgpt.com/codex/tasks/task_b_6977b8c992e0832eb1acc9f4dd730f11)
EleCor79
added a commit
to EleCor79/BehavioralHealthPulse
that referenced
this pull request
Mar 2, 2026
Distribute all 32 feeds from feeds-health-italy-eu.csv into the FEEDS config consumed by loadNews() / fetchCategoryFeeds(): - ministero-salute: +MinSalute News Specifiche (CSV koala73#18) - iss-epicentro: +ISS Notizie (CSV koala73#3), +Epicentro Coronavirus (CSV koala73#17) - aifa-tracker: +AIFA Feed (CSV koala73#5), +EMA News (CSV koala73#8), +FDA (CSV koala73#12) - agenas-ospedali: +AGENAS RSS (CSV koala73#4), +PNRR (CSV koala73#6/koala73#19), +Lombardia (CSV koala73#20), +Lazio (CSV koala73#21) - ema-europa: +EMA Clinical Trials (CSV koala73#22) - ecdc-sorveglianza:+ECDC Weekly Threats (CSV koala73#23), +WHO DON (CSV koala73#9), +ProMED (CSV koala73#10) - live-news: +Sanitainformazione (CSV koala73#24), +Humanitas (CSV koala73#26) - europe: +EU Core Health Indicators (CSV koala73#31), +GLOBSEC HRI (CSV koala73#32), +ISTAT (CSV koala73#13), +EIN Health Europe (CSV koala73#29) - rare-diseases: NEW category — EURORDIS (CSV koala73#14), Orphanet IT (CSV koala73#15), Telethon (CSV koala73#16), CDC FluView (CSV koala73#11) Panel disabled by default, available in settings Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.
Motivation
MapLayerstype (geopolitical and tech layers).parseMapUrlStateandbuildMapUrlconsistent so both parsing and serialization cover the same complete set of layers.Description
LAYER_KEYSarray insrc/utils/urlState.tsto includeais,protests,military,spaceports,minerals,startupHubs,cloudRegions,accelerators,techHQs, andtechEventsso it matchesMapLayers.parseMapUrlStatecontinues to useLAYER_KEYSto populate aMapLayersobject from thelayersquery param, now covering the full set.buildMapUrlusesLAYER_KEYSto serialize active layers into thelayersquery param, ensuring all layer flags are represented in share URLs.src/utils/urlState.tsand committed.Testing
Codex Task