Repository navigation
feat(examples): migrate remaining examples to the shared component package - #521
Merged
Merged
Conversation
Design for roadmap item #1 of the shared-example-components work: migrate the seven examples not covered by #520 (aef-mosaic, dynamical-zarr-ecmwf, land-cover, naip-mosaic, usgs-topo-cutline, vermont-cog-comparison, zarr-sentinel2-tci) onto deck.gl-raster-examples-shared, plus the three roadmap components serving >=2 examples (RangeSlider, HelpTooltip, ColormapPreview) and an optional `label` prop on DebugControls. CategoryFilter and SwipeHandle stay local; per-example panel-file placement is preserved. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
New components in deck.gl-raster-examples-shared for the example migrations: RangeSlider (dual-thumb, wraps Chakra's multi-thumb Slider), HelpTooltip (Chakra Tooltip + a "?" collecticon trigger), ColormapPreview (prop-driven sprite strip). Also adds an optional `label` prop to DebugControls. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…les-shared Swaps the hand-rolled DeckGLOverlay + inline-styled control panel for the shared ControlPanel / Field / ExternalLink / DeckGlOverlay components and the shared Chakra theme; wraps the app in ExampleProvider. Links the CutlineBbox mention to the API docs. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ples-shared Replaces the hand-rolled DeckGLOverlay + inline panel with the shared ControlPanel / DebugControls (label="Debug mesh") / DeckGlOverlay components and the shared Chakra theme; wraps the app in ExampleProvider. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ared Replaces the hand-rolled DeckGLOverlay + inline panel and the raw @radix-ui/react-slider with the shared ControlPanel / Field / ExternalLink / RangeSlider / ColormapPreview / DeckGlOverlay components and the shared Chakra theme; extracts the panel into src/control-panel.tsx; wraps the app in ExampleProvider. Drops the @radix-ui/react-slider dep. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…examples-shared Replaces the hand-rolled DeckGLOverlay + ComparePanel chrome with the shared ControlPanel / Field / ExternalLink / DeckGlOverlay components and the shared Chakra theme (per-side year/render-mode selects → Field + NativeSelect, keeping the optgroups); wraps the app in ExampleProvider. SwipeHandle stays a local component. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Replaces the hand-rolled DeckGLOverlay, InfoTooltip, and raw @radix-ui/react-slider panel with the shared ControlPanel / Field / ExternalLink / HelpTooltip / RangeSlider / DeckGlOverlay components (band sliders → Chakra Slider) and the shared Chakra theme; wraps the app in ExampleProvider. Drops the @radix-ui/react-slider dep. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…amples-shared Replaces the hand-rolled DeckGLOverlay, InfoTooltip, Play/Pause SVGs, and two raw @radix-ui/react-slider sliders with the shared ControlPanel / Field / ExternalLink / HelpTooltip / RangeSlider / ColormapPreview / DeckGlOverlay components (single-thumb sliders → Chakra Slider, date input → Chakra Input, play/pause → CollecticonCirclePlay/Pause IconButton) and the shared Chakra theme; wraps the app in ExampleProvider. Drops the @radix-ui/react-slider dep (now fully unused across examples). Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Deletes the local DeckGLOverlay, UIOverlay, and HelpIcon; rebuilds InfoPanel on the shared ControlPanel (intro prose → ExternalLink; debug overlay + opacity slider + mesh-max-error slider on Chakra Checkbox/Slider; HelpIcons → HelpTooltip); rewrites CategoryFilter's checkbox tree and color swatches on Chakra Checkbox (tri-state master/group checkboxes via `checked="indeterminate"`) with ExternalLink for the classification reference; uses the shared UIOverlay + DeckGlOverlay; wraps the app in ExampleProvider. Also makes the shared HelpTooltip preserve newlines (`whiteSpace="pre-line"`) for multi-paragraph help text. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…p items Updates examples/README.md to say all examples use deck.gl-raster-examples-shared, and marks roadmap items 1–3 (remaining-example migrations, HelpTooltip, RangeSlider) done and item 6 (ColormapPreview) partial in the shared-example- components design spec. Refs #519. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
kylebarron
enabled auto-merge (squash)
May 11, 2026 19:06
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.
Follow-up to #520 — migrates the seven remaining examples onto
deck.gl-raster-examples-sharedand adds the roadmap components that serve ≥2 examples. Spec:dev-docs/specs/2026-05-11-migrate-remaining-examples-to-shared-design.md.Closes #519.
New
examples/_shared/componentsRangeSlider— dual-thumb slider built on Chakra v3's multi-thumbSliderHelpTooltip—?-icon tooltip (ChakraTooltip+CollecticonCircleQuestion)ColormapPreview— prop-driven colormap-sprite preview stripDebugControlsgains an optionallabelprop;HelpTooltippreserves newlines (whiteSpace: pre-line)Migrated examples
usgs-topo-cutline,zarr-sentinel2-tci,naip-mosaic,vermont-cog-comparison,aef-mosaic,dynamical-zarr-ecmwf,land-cover— all now use the shared package, like the #520 pilots (cog-basic,sentinel-2). For each:main.tsxwrapped in<ExampleProvider>; localDeckGLOverlaysnippet → sharedDeckGlOverlay; hand-rolled floating panel →<ControlPanel>(collapsible header + docs/source/repo footer); native form controls → ChakraNativeSelect/Checkbox/Sliderin<Field>; external links →<ExternalLink>.aef-mosaic/naip-mosaic/dynamical-zarr-ecmwfdrop@radix-ui/react-slider(no longer used anywhere in the repo).naip-mosaic's panel extracted tosrc/control-panel.tsx.dynamical-zarr-ecmwf's play/pause buttons →CollecticonCirclePlay/CollecticonCirclePause.land-coverdeletes its localUIOverlay/HelpIcon(uses the sharedUIOverlay/HelpTooltip) and rewritesCategoryFilter's checkbox tree + color swatches on ChakraCheckbox(tri-state master/group checkboxes; whole header bars expand/collapse).Single-use widgets stay local:
vermont-cog-comparison'sSwipeHandle,land-cover'sCategoryFilter.Also pulls in #522 (NDVI range-filter rescale fix) via a merge from
main, and includes acustom map stylecommit for the ECMWF example.Test plan
_sharedand all 11 examples (thedocspackage has a pre-existing typecheck failure on missing generated typedoc sidebars — unrelated)pnpm checkclean (Biome lint + format)pnpm buildbuilds every package + exampledeck.gl-raster,deck.gl-geotiff,deck.gl-zarr,affine,proj(packages/geotiffintegration tests need locally-generated.npyfixtures from thegeotiff-test-datasubmodule — pre-existing, not affected by this branch)dynamical-zarr-ecmwfandland-cover🤖 Generated with Claude Code