Skip to content

style: match Chunk into Resources dialog to the Add Audio Resource mock - #595

Draft
nabalone wants to merge 1 commit into
internalize_changes_part2from
chunk-into-resources-dialog-ui
Draft

style: match Chunk into Resources dialog to the Add Audio Resource mock#595
nabalone wants to merge 1 commit into
internalize_changes_part2from
chunk-into-resources-dialog-ui

Conversation

@nabalone

Copy link
Copy Markdown
Collaborator

Restyles the Chunk into Resources wizard (ProjectResourceConfigure) to match the Add Audio Resource mock.

Changes

  • Title — the dialog now mirrors the previous step's dialog (Add Audio Resource / Edit Audio Resource) instead of "Chunk into Resources".
  • Striped table — segment rows now stripe with theme.palette.action.hover, the same approach KeyTermTable uses. Every cell's text stays the normal color (header and the read-only Reference column included) — react-datasheet's grey read-only tint is cleared so rows stripe uniformly.
  • Layout — the Suffix field moved below the table with a blue info-tooltip icon; Copy to clipboard is pinned to the bottom-left, with Create Resources / Cancel on the right.
  • Full width — the waveform (and its +/−/Reset controls) and the table now span the full dialog width; the Description column absorbs the extra space.

Waveform controls were left as the existing PassageDetailPlayer/WSAudioPlayer built-ins (nothing new built).

Notes

  • Stacked on internalize_changes_part2 (the base branch these files already diverge from develop on).
  • npm run typecheck:web passes; ProjectResourceConfigure jest suite passes.

🤖 Generated with Claude Code

- Title now mirrors the previous step's dialog (Add/Edit Audio Resource)
  instead of "Chunk into Resources".
- Stripe the segment table's rows (theme.palette.action.hover, as KeyTermTable
  does) and keep every cell's text at the normal color, including the header
  and the read-only Reference column.
- Move the Suffix field below the table with a blue info tooltip icon, and pin
  Copy to clipboard to the bottom-left, matching the mock.
- Let the waveform and table span the full dialog width.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new tooltip help icon is not keyboard-accessible and the wizard section contains duplicate DOM ids, both of which should be corrected before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Restyles the Chunk into Resources wizard (ProjectResourceConfigure) UI to align with the Add/Edit Audio Resource dialog patterns in the Passage Detail artifacts workflow.

Changes:

  • Updated the project resource wizard dialog title to reflect Add Audio Resource vs Edit Audio Resource based on entry path.
  • Made the segment table full-width with a flexible Description column and added striped rows consistent with existing table striping.
  • Repositioned the Suffix field below the table with an info tooltip icon, and pinned Copy to clipboard to the left of the action row.
File summaries
File Description
src/renderer/src/components/PassageDetail/Internalization/ProjectResourceConfigure.tsx Full-width datasheet + striped rows; moves Suffix UI and action-row layout.
src/renderer/src/components/PassageDetail/Internalization/PassageDetailArtifacts.tsx Aligns wizard dialog title with Add/Edit Audio Resource flow and adjusts wizard width.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 586 to 587
<StyledPaper id="proj-res-sheet" style={heightStyle}>
<StyledTable id="proj-res-sheet">
Comment on lines 608 to 610
<LightTooltip title={t.suffixTip}>
<TextField
label={t.suffix}
variant="outlined"
value={suffix}
onChange={handleSuffix}
/>
<InfoIcon color="info" fontSize="small" />
</LightTooltip>
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.

2 participants