Skip to content

Open three category panels from Start script tagging - #74

Merged
m4rc1e merged 4 commits into
mainfrom
starter-panels
Nov 10, 2026
Merged

m4rc1e merged 4 commits into
mainfrom
starter-panels

Conversation

@m4rc1e

@m4rc1e m4rc1e commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Changes the Start script tagging dialog to the workflow agreed in today's meeting.

  • The dialog has two single selects: one script and one category. The category list is no longer multi-select or prefilled.
  • OK adds the placeholders as before (0 score, static or variable by axes, skipped when the family has any tagging for the category).
  • OK then replaces the open panels with three "Tags for categories" panels for that category:
    1. sorted by score, Placeholders only, filtered by the script,
    2. sorted by family, filtered by the script,
    3. sorted by score, no filters.
  • OK is enabled even when nothing new is added, so a tagger can reopen the three panels for a category later.
  • The first two panels get a sample text of "Hello world" plus a two-word sample in the chosen script, four words at most, so every preview shows both. The third panel keeps the default text, since most of its families do not have the script. The samples live in a new src/pangrams.ts, keyed by the subset names in the family metadata. 31 scripts are covered, including every script with more than five families. A script without a sample gets "Hello world" only.

To support this, a category panel can be opened with a preset sort, script filter, placeholders-only state and sample text (Panel.vue, TagsByCategories.vue). Existing panels are unchanged.

Based on main.

Test plan

Checked on the scripts dev server with Arabic and /Expressive/Loud:

  • Dialog shows two single selects and OK is disabled until both are set.
  • OK added 10 placeholders (48 families already had the tag), closed the dialog and replaced the panels with exactly three.
  • Panel 1: sort = score, script filter = arabic, Placeholders only checked, shows the 10 placeholders only.
  • Panel 2: sort = family, script filter = arabic, shows all 58 Arabic taggings.
  • Panel 3: sort = score, no filter, shows all 1448 taggings for the category.
  • The first two panels have the sample text input set to "Hello world مرحبا بالعالم" and render it. The third panel's input is empty and shows the default.
  • vue-tsc clean apart from the pre-existing vue-select error.

🤖 Generated with Claude Code

The dialog now takes one script and one category, both single selects.
OK adds the placeholders and replaces the panels with three views of the
category: the new placeholders for the script sorted by score, every
tagging for the script sorted by family, and every tagging sorted by
score.

Category panels can be opened with a preset sort, script filter and
placeholders-only state.
New src/pangrams.ts holds a sample per script, keyed by the subset names
in the family metadata: a pangram where a known one exists, else the
first line of the Universal Declaration of Human Rights. OK in the dialog
puts the Latin pangram and the chosen script's sample into the sample
text of all three panels, so every preview shows both.

Category panels can be opened with a preset sample text.
Latin plus one script is now four words at most, so previews stay short.
…ging

That panel lists every family for the category, most without the script.
@m4rc1e
m4rc1e merged commit 567ddc9 into main Nov 10, 2026
9 checks passed
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