Skip to content

Fix the disabled Transcript action rendering as invisible#4729

Open
kean wants to merge 2 commits into
trunkfrom
fix/disabled-transcript-action-visibility
Open

Fix the disabled Transcript action rendering as invisible#4729
kean wants to merge 2 commits into
trunkfrom
fix/disabled-transcript-action-visibility

Conversation

@kean

@kean kean commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Fixes PCIOS-

When the playing episode has no transcript, the Transcript action in the player's "More Actions" sheet (and the shelf button variant) was tinted with playerContrast06 — white at 10% alpha, a background-fill color — making it render as essentially invisible. This switches the disabled state to playerContrast04 (~30% alpha), which reads as disabled but stays legible on all themes. Tap behavior is unchanged: the disabled action still shows the "transcript not available" toast.

Before After
Screenshot 2026-07-10 at 1 38 35 PM (1) Screenshot 2026-07-10 at 5 06 56 PM

|

To test

  1. Play an episode that has no transcript.
  2. Open the full-screen player and tap the "More Actions" (…) button.
  3. Verify the Transcript row is dimmed but clearly visible.
  4. Tap it and verify the "transcript not available" toast appears.
  5. In the player, tap Edit in the More Actions sheet and move Transcript onto the shelf; verify the shelf icon is also dimmed but visible.

Checklist

  • I have considered if this change warrants user-facing release notes and have added them to CHANGELOG.md if necessary.
  • I have considered adding unit tests for my changes.
  • I have updated (or requested that someone edit) the Event Horizon schema to reflect any new or changed analytics.

🤖 Generated with Claude Code

The disabled state used playerContrast06 (10% white), a background-fill
color, making the row unreadable on the More Actions sheet. Use
playerContrast04 instead so the action looks disabled but stays legible.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 10, 2026 21:08
@kean kean requested a review from a team as a code owner July 10, 2026 21:08
@kean kean added this to the 8.17 milestone Jul 10, 2026
@kean kean removed the request for review from a team July 10, 2026 21:08
@kean kean added the [Type] Bug Used for issues where something is not functioning as intended. label Jul 10, 2026
@kean kean requested a review from SergioEstevao July 10, 2026 21:08
@kean kean added the Player label Jul 10, 2026
Co-Authored-By: Claude Fable 5 <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.

Pull request overview

Adjusts the disabled styling for the Transcript action in the player UI so it remains legible (while still clearly disabled) when an episode has no transcript.

Changes:

  • Update the Transcript shelf button disabled tint from playerContrast06 to playerContrast04.
  • Update the Transcript row icon/text disabled tint in the “More Actions” sheet from playerContrast06 to playerContrast04.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
podcasts/TranscriptShelfButton.swift Uses playerContrast04 for the disabled shelf button tint to keep the icon visible.
podcasts/ShelfActionsViewController+Table.swift Uses playerContrast04 for the disabled Transcript row (icon + text) in the actions table.

Comment on lines 56 to 58
// Disable transcript if not available
let isTranscriptsAndIsDisable = action == .transcript && !isTranscriptEnabled
if isTranscriptsAndIsDisable {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Player [Type] Bug Used for issues where something is not functioning as intended.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants