Skip to content

Regions with no figure read "No data" in the list, tooltip and summary (0.1.0-beta.16) - #33

Merged
alexandermccormick merged 6 commits into
mainfrom
feat/no-figure-text
Nov 16, 2026
Merged

alexandermccormick merged 6 commits into
mainfrom
feat/no-figure-text

Conversation

@alexandermccormick

Copy link
Copy Markdown
Member

Under noFigure: "outline" (choropleth), a region the map draws as a no-figure outline now reads "No data" (mapsdk_legend_no_figure), the same as the Legend, where it said "No level".

What changes

  • New optional FeatureListItem.noFigure. shapesPlugin sets it on polygons drawn as no-figure outlines, using the same predicate (drawnAsNoFigure) as legend()'s "No data" row. Lines are never flagged.
  • Those items read "No data" in:
    • the feature list row, with an unfilled swatch like the Legend's;
    • its accessible name: "Fresno, No data" with no value, "Fresno, 5 µg/m³, No data" with a value;
    • the generic tooltip;
    • the view summary: "2 No data", before any "No level".
  • A level's label always wins, and noFigure wins over detail.
  • A source with no scale draws every polygon as an outline, so every polygon reads "No data".
  • The Legend's "No data" swatch now takes --swatch-outline-width and --swatch-outline-color, falling back to 1px --foreground as before.
  • Under noFigure: "neutral" (the default), nothing changes. There are no new message keys or tokens, and the exports are otherwise unchanged.
  • Version 0.1.0-beta.16, with the README "Changes" entry, the README examples test and the CLAUDE.md lines updated.

Spec: docs/superpowers/specs/2026-11-15-no-figure-text-design.md. Plan: docs/superpowers/plans/2026-11-15-no-figure-text.md.

Checks

  • Unit, client and browser tests: 1188/1188.
  • e2e on Chromium and Firefox: 78/78.
  • Lint, svelte-check, and the bundle and licence checks pass.
  • axe finds no violations on the list or the tooltip.

@alexandermccormick
alexandermccormick merged commit f08f673 into main Nov 16, 2026
1 check passed
@alexandermccormick
alexandermccormick deleted the feat/no-figure-text branch November 16, 2026 06:55
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.

1 participant