Skip to content

Chore/import main image url into json#450

Merged
zigzagdev merged 2 commits intochore/add-main_iamge_urlfrom
chore/import-main_image_url-into-json
May 4, 2026
Merged

Chore/import main image url into json#450
zigzagdev merged 2 commits intochore/add-main_iamge_urlfrom
chore/import-main_image_url-into-json

Conversation

@zigzagdev
Copy link
Copy Markdown
Owner

No description provided.

zigzagdev and others added 2 commits May 4, 2026 20:03
In normalizeSiteRowImportReady, surface main_image_url on every newly
created site row in world_heritage_sites.json. The lookup prefers the
local dump's image_url key (UNESCO main_image_url is renamed to
image_url by DumpUnescoWorldHeritageJson) and falls back to
main_image_url for sources that keep the original UNESCO field name.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
In mergeSiteRowPreferExisting, fill main_image_url onto an already
seen site row when the existing entry has none and a duplicate row
provides a value. This keeps the existing-wins semantics consistent
with the rest of the merge while ensuring transnational/duplicate
rows do not silently drop the hero image.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zigzagdev zigzagdev self-assigned this May 4, 2026
@zigzagdev zigzagdev linked an issue May 4, 2026 that may be closed by this pull request
2 tasks
Copy link
Copy Markdown
Owner Author

@zigzagdev zigzagdev left a comment

Choose a reason for hiding this comment

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

LGTM

@zigzagdev zigzagdev merged commit 1575f82 into chore/add-main_iamge_url May 4, 2026
25 checks passed
@zigzagdev zigzagdev deleted the chore/import-main_image_url-into-json branch May 4, 2026 11:16
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.

feat: emit main_image_url from SplitWorldHeritageJson

1 participant