Skip to content

feat(supported-languages): tick-grid table with split filters#355

Open
daniel-jones-dev wants to merge 1 commit into
autogen-language-tablesfrom
improve-languages-table
Open

feat(supported-languages): tick-grid table with split filters#355
daniel-jones-dev wants to merge 1 commit into
autogen-language-tablesfrom
improve-languages-table

Conversation

@daniel-jones-dev
Copy link
Copy Markdown
Member

Summary

Rewrites the interactive language table on top of the SupportedLanguages snippet introduced in #349.

  • One column per resource / customization / feature instead of badges; cells use voice-style ticks (, , β, ).
  • Filters split into three groups: by resource (single-select), by customization (multi-select), by feature (multi-select). Two extra row-mask toggles: hide beta and hide external.
  • Resource selection drives which customizations and features are available; customization columns hide when no compatible customization remains. Voice forces transcription on.
  • Mask toggles render unsupported ticks as rather than dropping rows, but a feature filter combined with a mask toggle does exclude rows whose tick would be masked.
  • Drops the redundant "Style rules are supported for the following target languages" paragraph from docs/getting-started/supported-languages.mdx — the table itself answers the same question.
  • Footer legend documents the tick symbols + β marker.

Stacked on #349 — base is autogen-language-tables. Retarget to main after that merges.

Test plan

  • mint dev renders /docs/getting-started/supported-languages with the three column groups and the legend.
  • Select each resource in turn and confirm:
    • Resource columns collapse to the selected one.
    • Customization columns shrink to those compatible (e.g. voice keeps glossary + spoken_terms, hides style_rules + translation_memory; write hides all customizations).
    • Feature columns appear only for features the resource exposes; voice locks transcription on.
  • Toggle hide external; transcription ticks for languages whose voice transcription is external turn into . Then check the transcription feature filter — those rows drop.
  • Toggle hide beta; de-CH / fr-CA resource ticks become .
  • Select only a customization (no resource): resource columns hide.

🤖 Generated with Claude Code

@daniel-jones-dev daniel-jones-dev force-pushed the autogen-language-tables branch from 28cdeaf to 1cb740a Compare May 22, 2026 09:45
@daniel-jones-dev daniel-jones-dev force-pushed the improve-languages-table branch from 73b3263 to 8438fdf Compare May 22, 2026 09:45
@daniel-jones-dev daniel-jones-dev force-pushed the autogen-language-tables branch from 1cb740a to 8326896 Compare May 22, 2026 10:00
@daniel-jones-dev daniel-jones-dev force-pushed the improve-languages-table branch from 8438fdf to ad44dd1 Compare May 22, 2026 10:01
@daniel-jones-dev daniel-jones-dev force-pushed the autogen-language-tables branch from 8326896 to 07c6bc5 Compare May 22, 2026 10:03
Rewrites the interactive language table around three explicit column
groups: by resource (single-select), by customization (multi-select),
and by feature. The cells use voice-style ticks (✓, ⎋, β, —) instead
of badges; the column headers are the resource / customization /
feature names themselves.

Filter behaviour

- Resource is single-select (one product at a time); customization is
  multi-select; feature is multi-select.
- Customization availability for the active resource is derived from
  the inlined RESOURCES (the resource must list the customization as a
  feature key, e.g. voice has `glossary` and `spoken_terms`).
  `translation_memory` has an explicit override of `translate_text`
  until the API exposes TM as a /v3/languages resource. Picking an
  incompatible customization is auto-cleared.
- Feature filters are enabled only when a resource is selected and the
  resource lists that feature. For voice, `transcription` is forced on
  and the checkbox is locked.
- Two row-mask toggles ("hide beta", "hide external") render the
  affected ticks as `—` instead of dropping rows. Combining a feature
  filter with one of these toggles does exclude rows whose tick would
  be masked, so checking transcription with hide-external on filters
  out langs whose transcription is only external.
- "Clear all" sits next to the "Filters" label so the hide toggles
  stay anchored to the right edge.

Column behaviour

- Resource columns hide when only a customization is selected.
- Customization columns shrink to selected ones; if none are selected
  and a resource is, incompatible customizations also hide.
- Feature columns appear only when a resource is selected, ordered
  Auto-detection, Transcription, Tag handling, Translated speech,
  Formality, Tone, Writing style.

Other

- Footer legend documents the tick symbols + β marker.
- `beta` chip moved off the language name onto the resource / feature
  ticks (✓β / ⎋β).
- `glossary` and `style_rules` removed from the feature options; the
  customization columns cover them.
- supported-languages.mdx drops the now-redundant "Style rules are
  supported for the following target languages" paragraph — the table
  itself answers the same question.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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