Skip to content

BB-399: feat(editor): Add checkbox to copy title language to content language#1214

Open
atharvsp02 wants to merge 2 commits intometabrainz:masterfrom
atharvsp02:BB-399
Open

BB-399: feat(editor): Add checkbox to copy title language to content language#1214
atharvsp02 wants to merge 2 commits intometabrainz:masterfrom
atharvsp02:BB-399

Conversation

@atharvsp02
Copy link
Contributor

Problem

When adding or editing Works and Editions, users must manually select the same language twice - once for the title and again for the content language. This can lead to mistakes

Issue link: https://tickets.metabrainz.org/browse/BB-399

Solution

  • Checkbox appears for Work and Edition entity types only
  • When checked, selecting a title language automatically adds it to content languages
  • Prevents adding duplicate languages
  • Unified form (cover tab) has checkbox pre-checked to preserve existing behavior
  • Users can uncheck to disable auto-copy if needed

Areas of Impact

Modified files:

  • name-section/actions.ts - New thunks for checkbox and language sync
  • name-section/reducer.js - Added checkbox state
  • name-section/name-section.js - Added checkbox UI
  • work-section/actions.ts, work-section/reducer.ts - Action type rename
  • edition-section/reducer.ts - Added undefined fallback

Behaviors affected:

  • Work and Edition entity editors - new checkbox feature
  • Unified form - checkbox pre-checked by default

Screenshots:

Before:

image

After:

image

Let me know if you have any suggestions or changes you’d like me to make.

@atharvsp02 atharvsp02 marked this pull request as draft January 2, 2026 14:13
@atharvsp02 atharvsp02 changed the title feat(editor): Add checkbox to copy title language to content language BB-399: feat(editor): Add checkbox to copy title language to content language Jan 2, 2026
@atharvsp02 atharvsp02 force-pushed the BB-399 branch 4 times, most recently from 5f68227 to 74c27c3 Compare January 2, 2026 15:31
@atharvsp02 atharvsp02 marked this pull request as ready for review January 2, 2026 15:43
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

Comments