oliver-zehentleitner / maity

web: settings: one select-policy form for steward writes, Keep the Why defaults and done authority; shared reason keys; one missing-reason rule

Sign in to report

tsk-mm25vqckwj0c Proposed

Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. View: project settings. Kind: duplication and i18n debt.

What is wrong

  • stewardWritesForm (web/js/app.js:1766-1788, new) matches keepTheWhyDefaultsForm (:1740-1762) line for line, including the provider === "none" gate; doneAuthorityForm (:1427-1446) has the same one-select-plus-reason shape.
  • Its keys repeat shared ones: settings.steward_writes.reason and .reason_placeholder repeat settings.reason and settings.reason_placeholder (web/i18n/en.json:5128, :5130), which the other forms added in the range use (ownApprovalsForm :1515, :1550; outsideClaimsForm :1598, :1666); settings.steward_writes.save repeats settings.ktw_defaults.save; settings.outside_claims.owner_only and settings.outside_claims.error.owner_only have the same English text.
  • A missing reason is handled two ways: outsideClaimsForm sets novalidate and shows settings.reason_needed; the other policy forms only focus the empty field.

Proposal

  • selectPolicyForm(ctx, save, {field, options, fallback, keys}) for the three select forms with the shared reason keys; drop the duplicate keys; one missing-reason behaviour.

Effort / risk: S-M. Low; key removals touch the ten catalogs and their meta files.