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: Loading and Error screens #2369

Merged
merged 5 commits into from
Oct 31, 2024

Conversation

danielebogo
Copy link
Contributor

📘 Part of: #2367

Modify styles to our previous loading and error screens.
Localize one text in Top5Podcasts2024Story

Loading Error
Simulator Screenshot - iPhone 16 - 2024-10-31 at 11 28 01 Simulator Screenshot - iPhone 16 - 2024-10-31 at 11 29 53

To test

  • CI must be 🟢
  • Navigate to StoriesView -> body to force the loading and error state

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.

@danielebogo danielebogo added the [Project] End of Year 2024 End of Year project for 2024 label Oct 31, 2024
@danielebogo danielebogo added this to the 7.77 milestone Oct 31, 2024
@danielebogo danielebogo requested a review from a team as a code owner October 31, 2024 10:48
@@ -42,7 +42,7 @@ struct Top5Podcasts2024Story: ShareableStory {
.disabled(!isSmallScreen) // Disable scrolling on larger where we shouldn't be clipping.
.frame(height: geometry.size.height * 0.65)

Text("And you were big on these shows too!")
Text(L10n.eoyStoryTopPodcastsTitle)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bjtitus I found this text unlocalized. I changed it but let me know if I need to revert it.

.frame(width: 40, height: 40)
Text(L10n.loading)
.foregroundColor(.white)
.foregroundColor(.black)
.font(style: .body)
}

storySwitcher
Copy link
Contributor Author

@danielebogo danielebogo Oct 31, 2024

Choose a reason for hiding this comment

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

@bjtitus I'm not sure if this needs to be here. Forcing the loading view or error to be in the body causes a crash when tapping. the start method called causes an Inf value calculating the current progress. WDYT?

}

var failed: some View {
ZStack {
Spacer()

Text(L10n.eoyStoriesFailed)
.foregroundColor(.white)
.foregroundColor(.black)

storySwitcher
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bjtitus Same here. WDYT?

Copy link
Contributor

@bjtitus bjtitus left a comment

Choose a reason for hiding this comment

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

:shipit:

@danielebogo danielebogo merged commit 6521eb5 into trunk Oct 31, 2024
4 of 6 checks passed
@danielebogo danielebogo deleted the danieleb/eoy24/loading-and-error branch October 31, 2024 19:37
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