Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback 2024: Longest Episode #2347

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Conversation

bjtitus
Copy link
Contributor

@bjtitus bjtitus commented Oct 28, 2024

📘 Part of: #2250

Part of #2346

LongestEpisode.mov
LongestEpisodeSmall.mov

To test

  • Enable the endOfYear2024 feature flag
  • Navigate through the stories until you hit this Longest Episode screen
  • Ensure layout looks alright across devices

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 spreadsheet to reflect any new or changed analytics.

@bjtitus bjtitus added the [Project] End of Year 2024 End of Year project for 2024 label Oct 28, 2024
@bjtitus bjtitus added this to the 7.77 milestone Oct 28, 2024
@bjtitus bjtitus marked this pull request as ready for review October 28, 2024 17:13
@bjtitus bjtitus requested a review from a team as a code owner October 28, 2024 17:13
@bjtitus bjtitus requested review from SergioEstevao and removed request for a team October 28, 2024 17:13
.padding(.top, isSmallScreen ? 0 : 20)
VStack(alignment: .leading, spacing: isSmallScreen ? 4 : 16) {
let timeString = episode.playedUpTo.storyTimeDescriptionForSharing
Text("The longest episode you listened to was \(timeString)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the EOY English only? No need to localize these?

@State var fifthCover: Double = 0.08
@State var sixthCover: Double = 0

var backgroundColor = Color(hex: "#E0EFAD")
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this color ever change? Can it be a let variable?

Copy link
Contributor

@SergioEstevao SergioEstevao left a comment

Choose a reason for hiding this comment

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

Tested on iPhone 6s and iPad and it looks correct, iPhone 6s maybe a bit tight.

iPad iPhone 6s
Simulator Screenshot - iPad (10th generation) - 2024-10-29 at 15 36 32 Simulator Screenshot - iPhone 6s - 2024-10-29 at 15 28 01

Regarding the code there is just some nitpick comments.

@bjtitus bjtitus merged commit d45bc0e into trunk Oct 29, 2024
4 of 6 checks passed
@bjtitus bjtitus deleted the bjtitus/playback-2024/longest-episode branch October 29, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Project] End of Year 2024 End of Year project for 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants