Skip to content
This repository was archived by the owner on Nov 14, 2026. It is now read-only.

feat: picture-first country, home and theme pages - #5

Merged
kanywst merged 6 commits into
mainfrom
feat/visual-glance
Nov 8, 2026
Merged

kanywst merged 6 commits into
mainfrom
feat/visual-glance

Conversation

@kanywst

@kanywst kanywst commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

The site read as a wall of text: the Japan page ran to about 16,000px, mostly claims followed by 14 full-size strips, and the home evidence map was a grid of stacked rules that was hard to read. This puts a picture first on each page and folds detail one level down.

What changed

  • Country page: opens with "At a glance". One short row per scale (8 Culture Map, 6 Hofstede), with the other countries as gray dots and this one in 朱, plus claims by theme as one square per claim. Each row links to the scale page read from this country. The 14 full strips are gone from this page (they live on the scale pages). The Japan page is now about 9,000px.
  • Home: new 14 × 8 grid of every country on every Culture Map scale. The evidence map uses one square per claim (filled / half / outline) and shades cells by claim count.
  • Theme pages: the related-scales cards become the same grid, with only that theme's scales and a claims column.
  • Countries index: a row of squares per country in place of the counts by label.
  • Scales index: the source line and the Hofstede caption are stated once per section instead of under all 14 strips.
  • Claims: sources fold behind "▸ N sources" and open when the claim is the URL target.
  • research/design.md records the new figures and why the rules became squares.

Reference points for the direction: GlobeSmart profile gap charts, Cochrane GRADE certainty symbols, Datawrapper heatmap tables, and the NN/g notes on mobile tables and progressive disclosure.

Verification (local)

  • pnpm lint, pnpm lint:md, pnpm check (0 errors), pnpm test (86 passed), REQUIRE_EN=1 pnpm validate:data, pnpm build: all pass
  • pnpm test:e2e: all pass (1 skipped), with a new glance.spec.ts (grid, fingerprint, squares, folded sources, phone overflow)
  • Checked by eye at 1280px and 412px in both languages, plus dark mode

- country page: 'at a glance' panel with a compact Meyer/Hofstede fingerprint
  (other countries as grey dots, this one in shu) and a per-theme evidence
  overview; the 14 full-size strips move to the scale pages the rows link to
- claims fold their citations into a details element
- home: 14 x 8 Culture Map small-multiples grid; evidence map uses one
  confidence pip per claim and shades cells by claim count
- shorter home premise and map lead
…tries index

The scale grid takes a scale list and an optional theme, so a theme page
shows every country's claims (as pips) next to the scales that bear on
the theme, replacing the card list of related scales.
- fingerprint: draw a secondary basis hollow with a dagger, say 'no source'
  in the value column instead of covering other dots, name each row with its
  poles, keep other-country dots at ink-3 contrast
- scale grid: name the country in every cell link, link no-source cells to
  the plain scale page, sticky corner cell, 44px rows, no tab stop on a
  region that does not scroll, Hofstede caption follows the domain
- evidence map: smaller pips on phones so they stay inside the cell
- pips: shared component with counts in words; forced-colors for every level
- claims: 44px summary, arrow out of the accessible name, sources open when
  the claim is the URL target
- copy: plainer home premise and map lead, 'Confidence' legend, theme and
  glance headings; strings moved into i18n; unused strings removed
- tests: grid, fingerprint, pips, folded sources, phone overflow
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2c89a830-64f1-461a-9cd7-f8d03ad788e5
Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kanywst

kanywst commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Action not completed

Head commit changed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@kanywst
kanywst merged commit 8b57af0 into main Nov 8, 2026
15 checks passed
@kanywst
kanywst deleted the feat/visual-glance branch November 8, 2026 15:21
kanywst added a commit that referenced this pull request Nov 8, 2026
* feat: summary-first visuals for country and home pages

- country page: 'at a glance' panel with a compact Meyer/Hofstede fingerprint
  (other countries as grey dots, this one in shu) and a per-theme evidence
  overview; the 14 full-size strips move to the scale pages the rows link to
- claims fold their citations into a details element
- home: 14 x 8 Culture Map small-multiples grid; evidence map uses one
  confidence pip per claim and shades cells by claim count
- shorter home premise and map lead

* feat: country-by-theme grid on theme pages and claim pips on the countries index

The scale grid takes a scale list and an optional theme, so a theme page
shows every country's claims (as pips) next to the scales that bear on
the theme, replacing the card list of related scales.

* fix(grid): keep country names on one line so rows keep their height

* docs(design): record the fingerprint, scale grid and confidence pips

* fix: address review of the compact figures

- fingerprint: draw a secondary basis hollow with a dagger, say 'no source'
  in the value column instead of covering other dots, name each row with its
  poles, keep other-country dots at ink-3 contrast
- scale grid: name the country in every cell link, link no-source cells to
  the plain scale page, sticky corner cell, 44px rows, no tab stop on a
  region that does not scroll, Hofstede caption follows the domain
- evidence map: smaller pips on phones so they stay inside the cell
- pips: shared component with counts in words; forced-colors for every level
- claims: 44px summary, arrow out of the accessible name, sources open when
  the claim is the URL target
- copy: plainer home premise and map lead, 'Confidence' legend, theme and
  glance headings; strings moved into i18n; unused strings removed
- tests: grid, fingerprint, pips, folded sources, phone overflow

* feat(scales): state the source line once per section on the scales index
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant