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

EOY 2024: Fix header and duration issues #2393

Merged
merged 5 commits into from
Nov 6, 2024

Conversation

SergioEstevao
Copy link
Contributor

@SergioEstevao SergioEstevao commented Nov 5, 2024

| 📘 Part of: #2250 |
|:---:|

Fixes #2385 #2386

1 2
Simulator Screenshot - iPhone 16 Pro - 2024-11-05 at 12 24 20 Simulator Screenshot - iPhone 16 Pro - 2024-11-05 at 12 24 16

This PR fixes three issues on the EOY 2024:

  • Status bar always black
  • Close button black on loading
  • Duration for each story before moving on increased 3s

To test

  1. Start the app
  2. Ensure that you the FF end of year 2024 enabled. If not after enabling it you need to restart the app
  3. Go to Profile tab
  4. Tap on the EOY banner
  5. Check that the loading screen show a black x close button
  6. Check that all the EOY screens have the status bar black
  7. Check that the duration is 10s for each story

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.

@SergioEstevao SergioEstevao added this to the 7.77 milestone Nov 5, 2024
@SergioEstevao SergioEstevao changed the title Eoy2024: Fix header and duration issues EOY 2024: Fix header and duration issues Nov 5, 2024
@SergioEstevao SergioEstevao marked this pull request as ready for review November 5, 2024 12:31
@SergioEstevao SergioEstevao requested a review from a team as a code owner November 5, 2024 12:31
Copy link
Contributor

@danielebogo danielebogo left a comment

Choose a reason for hiding this comment

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

The changes work perfectly but we need to keep a retro compatibility with the EOY 23.
Can we base the changes on the current year?

@@ -206,9 +206,13 @@ struct EndOfYear {
}
}

extension EndOfYear {
static var defaultDuration = 10.seconds
Copy link
Contributor

Choose a reason for hiding this comment

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

As we still support the 2023 version, can we switch the duration based on the currentYear?

static var defaultDuration: TimeInterval {
        switch currentYear {
        case .y2024: 10.seconds
        default: 7.seconds
        }
    }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done here: 51402ee

class StoriesHostingController<ContentView: View>: UIHostingController<ContentView> {
override var preferredStatusBarStyle: UIStatusBarStyle {
.lightContent
.darkContent
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, can we switch on the current year like above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done here: 51402ee

@SergioEstevao SergioEstevao added the [Project] End of Year 2024 End of Year project for 2024 label Nov 5, 2024
Copy link
Contributor

@danielebogo danielebogo left a comment

Choose a reason for hiding this comment

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

:shipit:

Thanks for addressing those comments!

@SergioEstevao SergioEstevao merged commit 18d5a23 into trunk Nov 6, 2024
5 of 7 checks passed
@SergioEstevao SergioEstevao deleted the eoy2024/fix_header_and_duration_issues branch November 6, 2024 10:15
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.

The time each story stays looks a bit short. Can we increase it 3s?
2 participants