CommunityMech review cleanup: CVD-safe palette, PaCMAP labels, data-table, de-emoji, footer, discussions/examples dark#198
Conversation
…ency) The per-community network diagram loaded d3 from https://d3js.org with no fallback, while every sibling page (landing, browser, UMAP) already bundles the local docs/d3.v7.min.js. Offline or under a strict CSP, the network diagram silently rendered blank. Point the community.html template's d3 <script> at ../d3.v7.min.js (community pages render to docs/communities/, one level below the bundle) and regenerate the 262 affected community pages. Surfaced by a dataviz/artifact-design review. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Additive dark-mode sweep across all reviewed pages (landing, browser, UMAP/graph, and 265 per-community pages) plus the shared style.css. - Vendor theme-toggle.js at web root (docs/); OS prefers-color-scheme default + persisted data-theme toggle. Included on every reviewed page (root: theme-toggle.js; communities/*: ../theme-toggle.js). - Per-page dark blocks redefine each page's own tokens by role using the CommunityMech slate palette (bg #101420, surface #1a1f2e, ink #e8ecf4, muted #99a2b5, line #2a3142, accent #6ea6f0, hero #1d2740; brightened status colors). Both @media (prefers-color-scheme: dark) and :root[data-theme="dark"] variants; OS default yields to explicit light. - Landing: map --pastel-b->bg, --pastel-a->hero; dark translucent stat/ footer surfaces; accent buttons get dark text. - Browser (token-less): targeted dark overrides for the specific selectors. - UMAP/graph: plot bg -> --surface, .point stroke -> --surface, legend symbol stroke driven from --point-stroke var. - Community network: label fills driven from --net-label var; plot bg follows --card; dark chip/box tints. - Reduced-motion guard added to every page and style.css. Edited templates AND every generated output identically (no re-render), so template and docs stay in sync. Light appearance unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…s, data-table, de-emoji, footer, discussions/examples dark Addresses the remaining dataviz/artifact-design review findings (stacked on the dark-mode branch): - Category color: collapse the 14-hue hand-picked rainbow to the dataviz skill's validated 8-slot CVD-safe categorical palette (blue/aqua/yellow/green/violet/ red/magenta/orange, assigned in the CVD-optimized order) with the long tail → grey "Other". Unique shape per coloured category retained so identity is never colour-alone; grey categories stay distinguished by shape. - PaCMAP relabel: drive the projection axis/label wording from the actual reduction method in umap_generator.py (pacmap→"PaCMAP", umap→"UMAP", sfdp→ "Layout") instead of hard-coded "UMAP". - Data-table fallback (<details>) added below the scatter on the UMAP + graph pages. - Removed decorative emoji from the landing, browser, and UMAP headers/cards. - Family footer no longer self-links CommunityMech (plain text). - Extended the dark theme + toggle + reduced-motion guard to the previously-missed app/discussions/ and docs/examples/ pages (vendored theme-toggle.js alongside). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Reviewed in depth. Clean — all six cleanup goals verified. Palette (8 CVD-safe + grey Other). Verified against the 292-community data: the 8 colored categories (RHIZOSPHERE, BIOTECHNOLOGY, BIOREMEDIATION, LIGNOCELLULOSE, SYNTROPHY, METHANOGENESIS, PHYTOPLANKTON, CARBON_SEQUESTRATION) are exactly the 8 most frequent real categories; OTHER (grey catch-all) and the long tail (≤11 each: EXTREME_ENVIRONMENT, BIOMINING, DIET, AMD, ORAL, METAL_REDUCTION) collapse to grey #898781. Every data category is mapped (no fall-through). (color, shape) is unique across all 15: the 8 colored all have distinct colors; the 7 grey each get a distinct d3 shape (Circle/Cross/Diamond/Square/Star/Triangle/Wye — all 7 used once). PaCMAP label. Template axis captions now Data table. All referenced fields exist in De-emoji / footer / discussions+examples. Emoji removed from landing/index/graph/umap headers and cards; footer CommunityMech self-link replaced with No issues found. Note (not from this PR): CI |
|
Retargeted to |
Addresses the remaining dataviz/artifact-design review findings for CommunityMech. Stacked on
feat/dark-mode-toggle(which stacks onfix/community-d3-local) — retargets tomainas those merge.Changes
categoryColorswith the dataviz skill's CVD-optimized 8-slot categorical palette (#2a78d6 #1baf7a #eda100 #008300 #4a3aa7 #e34948 #e87ba4 #eb6834), assigned to the 8 most frequent categories; the long tail → grey#898781"Other". The existing per-category shape encoding is retained (unique shape per coloured category; grey categories distinguished by shape) so identity is never colour-alone.umap_generator.py(pacmap→"PaCMAP",umap→"UMAP",sfdp→"Layout"), not hard-coded "UMAP".<details>table below the scatter on the UMAP + graph pages (dataviz Backfill engineering_design for plant and SynCom communities #10).app/discussions/anddocs/examples/pages.Verification
d3js.orgCDN refs; old category rainbow hexes gone from template + generatedcommunity_umap.html/community_graph.html; new palette present.stateColors(ecological state, a separate 4-value set) intentionally left unchanged — it wasn't the flagged 14-hue category rainbow.🤖 Generated with Claude Code