Skip to content

fix: antimeridian in the map filter, boolean queryables, item description, request errors - #585

Open
jo-chemla wants to merge 5 commits into
developmentseed:mainfrom
jo-chemla:fix/heritage-catalog-small-fixes
Open

jo-chemla wants to merge 5 commits into
developmentseed:mainfrom
jo-chemla:fix/heritage-catalog-small-fixes

Conversation

@jo-chemla

Copy link
Copy Markdown
Contributor

Four small fixes from #584, one commit each.

  • Map bounding box filter across the antimeridian. bboxIntersectsViewport in utils/bbox.ts runs the view through normalizeViewport and also splits a bbox that crosses the antimeridian itself (west greater than east); Items and Collections use it. Example: Samoa, with the view panned past 180° lists 3 of 3 instead of 0.
  • Queryables. Enum options are rendered with String(), and the value keeps its type, so a boolean is sent as "prop" = true. A type given as an array (["integer", "null"]) gets min and max.
  • Item description. properties.description is used when there is no top-level description.
  • Request errors. The message gives the status code, the status text when there is one, and the description of a STAC API error body: "GET …: 404 (Catalog nope not found)".

Tests added for the bbox helper, the boolean filter and the error message.

Checklist

  • Code is formatted (yarn format)
  • Code is linted (yarn lint)
  • Code builds (yarn build)
  • Tests pass (yarn test)
  • Commit messages and/or this PR's title are formatted per Conventional Commits

Drafted with Claude Fable 5.2.

jo-chemla and others added 4 commits November 21, 2026 08:59
…ilter

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…eryables

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

@gadomski gadomski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for this! Mostly some code nits, and a question about STAC API responses.

Comment thread src/components/cards/value.tsx Resolved
Comment thread src/components/queryables.tsx Resolved
Comment thread src/components/queryables.tsx Resolved
Comment thread src/components/value.tsx Resolved
Comment thread src/utils/stac.ts Resolved
@jo-chemla

Copy link
Copy Markdown
Contributor Author

Thanks for the review, suggestions applied!

This branch has not been deployed

No deployments
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.

2 participants