Skip to content

Replace blocky region graphic with clean world map base and interactive anchors#173

Closed
BioMark3r wants to merge 1 commit intomainfrom
codex/replace-world-svg-with-cleaner-asset
Closed

Replace blocky region graphic with clean world map base and interactive anchors#173
BioMark3r wants to merge 1 commit intomainfrom
codex/replace-world-svg-with-cleaner-asset

Conversation

@BioMark3r
Copy link
Copy Markdown
Owner

Motivation

  • Replace the current low-quality/blocky world graphic with a cleaner, stylized world silhouette suitable for region selection and validator geography display.
  • Keep the base map simple and dashboard-friendly while rendering interactive region dots in the UI layer.
  • Ensure the solution is theme-aware and the base asset can be swapped later without touching interaction logic.

Description

  • Added a lightweight static world map asset at dashboard/src/assets/world-map-clean.svg containing a muted continent silhouette.
  • Added a reusable RegionWorldMap React component at dashboard/src/components/RegionWorldMap.tsx which renders the static asset and places interactive SVG region dots on top; the component supports selectedRegion, highlightedRegion, onRegionSelect, and showLocalAnchor props.
  • Preserved and standardized anchors for required regions: us-east-1, us-west-2, eu-west-1, eu-central-1, ap-southeast-1, and local (local/unassigned).
  • Added theme-aware styles in dashboard/src/styles/region-world-map.css that provide muted map treatment and dashboard-accented dots for both Light and Altius/Dark themes.

Testing

  • No automated unit or integration tests were executed as part of this change; the edits are self-contained asset and component additions intended for integration into the dashboard build.
  • Performed lightweight repository/file inspections to confirm the new files are present and readable.

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 210154c67d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return (
<div className={["region-world-map", className].filter(Boolean).join(" ")}>
<img src={worldMapCleanAsset} alt="World map" className="region-world-map__asset" draggable={false} />
<svg viewBox="0 0 100 100" className="region-world-map__overlay" aria-hidden="true">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use a map-matching viewBox for the overlay

The interactive overlay is rendered with viewBox="0 0 100 100", but the base map asset is a wide 1000x460 canvas; with SVG’s default preserveAspectRatio="xMidYMid meet", the overlay content is fit into a centered square region rather than the full map area. This causes the region anchor dots/hit targets to be positioned incorrectly relative to the continents in normal dashboard layouts. Match the overlay viewBox to the map aspect ratio (or explicitly set preserveAspectRatio behavior) so click targets align with the map.

Useful? React with 👍 / 👎.

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.

1 participant