Files
superset2/superset-frontend/plugins/plugin-chart-country-map/src
Evan Rusackas f696fe1e05 feat(country-map): full control panel — worldview, admin level, region filters, language
Replace the placeholder control panel with the real form-data surface.
New controls (none of which exist on the legacy plugin):

- worldview: SelectControl, defaults to 'ukr' per documented editorial
  choice; configurable per-deployment + per-chart
- admin_level: SelectControl (Admin 0 / Admin 1 / Aggregated regions)
- country: SelectControl, visible only when admin_level !== 0 and no
  composite is selected
- region_set: SelectControl, visible only when admin_level === 'aggregated';
  choices depend on selected country (sourced from the regional_aggregations
  YAML's snapshot table)
- composite: SelectControl (france_overseas etc.); when set, overrides
  admin_level + country
- region_includes / region_excludes: free-form multi-select for client-side
  filtering at render time (these drive the projection refit too — the
  renderer's `filterFeatures` uses them)
- show_flying_islands: CheckboxControl, default true
- name_language: SelectControl with 20 NE-supported languages

The choice tables (WORLDVIEW_CHOICES, COUNTRY_CHOICES, REGION_SET_CHOICES_
BY_COUNTRY, COMPOSITE_CHOICES) are hardcoded snapshots for the POC.
Follow-up commit will replace these with options pulled from the build
pipeline's manifest.json so adding a new worldview or country only
requires a build script run, not a plugin code change.

Standard query controls (entity, metric, adhoc_filters, row_limit,
linear_color_scheme, number_format) preserved from the legacy plugin.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 17:00:08 -07:00
..