Skip to content

refactor: internalization resource dialogs and artifact category selector - #480

Draft
nabalone wants to merge 12 commits into
developfrom
internalize_refactors
Draft

refactor: internalization resource dialogs and artifact category selector#480
nabalone wants to merge 12 commits into
developfrom
internalize_refactors

Conversation

@nabalone

Copy link
Copy Markdown
Collaborator

Refactoring pass over the Passage Detail → Internalization resource flow. No Jira ticket.

What changed

  • Add Resource / Add Audio dialogs — resource kind is now controlled from parent state; tightened dialog layout, restored the upload drop zone, kept the recorder content-sized and removed the record-button gap.
  • AddResourceAction — Add Resource menu actions are now typed with an enum instead of loose values.
  • ResourceData / PassageDetailArtifacts (+ mobile) — internalization resource state cleanup.
  • SelectArtifactCategory — simplified the artifact category selector.
  • UploadRecordToggle — new shared upload/record toggle component.
  • PassageRecordDlg — substantial rework (a TODO is left in place noting it should be renamed).
  • Localization — new/updated strings in TranscriberAdmin-en-1.2.xliff with regenerated model.tsx / reducers.tsx and strings JSON.

Notes

  • Opened as a draft and intentionally left unverified — no typecheck/lint/test run and no code review yet.
  • Branch has not been rebased onto the latest develop (currently behind); rebase before marking ready.

🤖 Generated with Claude Code

nabalone and others added 12 commits July 22, 2026 16:38
Keep the selected resource kind synchronized across mode changes and align upload and record action spacing.

Co-authored-by: Cursor <cursoragent@cursor.com>
…rce wizard ref

Make SelectArtifactCategory always render the free-solo Autocomplete
(type to filter or add a category), dropping the old Select + "add new"
menu variant, the now-unused `autocomplete` prop, and its dead helpers.
Rename `wizardAddRef` to `isAddingAudioResourceRef` in the desktop and
mobile PassageDetail artifacts components for clarity and remove stale
TODO comments.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Only pass onSpeaker into MediaUploadContent for Media uploads so Resource/ProjectResource keeps hasRights and the file drop target stays usable.

Co-authored-by: Cursor <cursoragent@cursor.com>
Raise the dialog to 700px when space allows, and only pin the record button with space-between in full-height mobile panes.

Co-authored-by: Cursor <cursoragent@cursor.com>
Wrap MediaRecord so height:100% cannot resolve against DialogContent and open a gap above the record button.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace magic action strings shared by AddResource and both artifact views.

Co-authored-by: Cursor <cursoragent@cursor.com>
Lift section/passage/general resource scope into parent state so radios
stay in sync across Upload/Record remounts without a local sync effect.

Co-authored-by: Cursor <cursoragent@cursor.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