Skip to content

Builder: labels for all 39 field types - #301

Merged
Musiker15 merged 2 commits into
mainfrom
fix/builder-field-labels
Oct 29, 2026
Merged

Musiker15 merged 2 commits into
mainfrom
fix/builder-field-labels

Conversation

@Musiker15

Copy link
Copy Markdown
Member

Problem

The builder shows a field's type through builder.ft, and falls back to the raw key when there's no label. ft covered 24 of the 39 types in FIELD_TYPES, so an imported form with discord_user, country, steam_hex or ranking (the four that were reported) showed those keys in the outline and the editor. The same went for password, multi_select, time, datetime, address, fivem_id, age_check, captcha, section_break, image_block and spacer.

Fix

  • The 15 missing labels in all seven languages.
  • i18n/field-type-labels.test.ts checks every type of FIELD_TYPES against every dictionary, so a new field type can't ship without a label.

Checked

  • The test fails on main for all seven languages and passes with the labels.
  • pnpm --filter @msk-forms/web typecheck, eslint and prettier on the changed files.

builder.ft had labels for 24 of the 39 field types, and the builder falls
back to the raw key for the rest. A form imported with discord_user,
country, steam_hex, ranking or one of the other eleven showed keys like
"steam_hex" in the outline and the type picker.

All 15 missing labels are added in the seven languages, and a test checks
that every type in FIELD_TYPES has a label in every dictionary, so a new
field type can't ship without one.
@Musiker15
Musiker15 merged commit ec5d7d5 into main Oct 29, 2026
4 checks passed
@Musiker15
Musiker15 deleted the fix/builder-field-labels branch October 29, 2026 06:20
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