feat: align en/es sites and recover spatial coverage - #1595
Closed
rdahis wants to merge 1 commit into
Closed
Conversation
Make the English (data-basis.org) and Spanish (basedelosdatos.org) sites
consistent by removing Portuguese/Brazil-specific elements, and restore the
previously-hidden spatial coverage feature.
- Consulting banner: gate the dataset-page ServiceHighlightABTest on
NEXT_PUBLIC_DOMAIN so it renders only on basedosdados.org. Adds
getDomain()/isBasedosdadosDomain() helpers (build-time domain, works under
Docker where the hostname is localhost).
- Generated query alias: localize the backend's `dados` table alias per
locale (pt->dados, en->data, es->datos) via localizeQueryTableAlias(),
applied to the SQL/Python/R snippets. Word-boundary replace leaves the
`basedosdados.<dataset>.<table>` project path untouched.
- Spatial coverage (recovered, gated to non-pt):
* dataset page shows it side-by-side with temporal coverage
(getDataset now requests spatialCoverageName{Locale}).
* search result cards show it.
* search left-column filter box (above Organization), backed by the
/search spatial_coverages aggregation; hidden on pt.
- Homepage: drop Brazil-specific phrasing in en/es (largest platform in
Brazil -> a large platform; socioeconomic data from Brazil; IBGE/Brazilian
municipalities example generalized). Testimonials left intact.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.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.
Summary
Same changeset as #1594 (open against
staging), targeted atmain.Makes the English (data-basis.org) and Spanish (basedelosdatos.org) sites consistent by removing Portuguese/Brazil-specific elements, and restores the previously-hidden spatial coverage feature.
ServiceHighlightABTestrenders only onbasedosdados.org, gated onNEXT_PUBLIC_DOMAIN(newgetDomain()/isBasedosdadosDomain()helpers; build-time domain, correct under Docker).localizeQueryTableAlias()rewrites the backend'sdadostable alias per locale (pt→dados, en→data, es→datos) across SQL/Python/R; thebasedosdados.<dataset>.<table>path is left untouched.pt) — dataset page (beside temporal), result cards, and the search left-column filter box placed above Organization; hidden onpt.en/es; testimonials left intact.Test plan
next buildpasses (1292 pages, 0 errors).🤖 Generated with Claude Code