Skip to content

Conversation

@kaylendog
Copy link
Contributor

Take no. 2 - conditioned the banner appearance on the feature flag, added another unit test that verifies the incorrect behaviour reported no longer happens.

Pull Request Checklist

UI changes have been tested with:

  • iPhone and iPad simulators in portrait and landscape orientations.
  • Dark mode enabled and disabled.
  • Various sizes of dynamic type.
  • Voiceover enabled.

@kaylendog kaylendog self-assigned this Dec 12, 2025
@kaylendog kaylendog added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Dec 12, 2025
@pixlwave pixlwave added pr-wip for anything that isn't ready to ship and will be enabled at a later date and removed T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements labels Dec 12, 2025
@pixlwave
Copy link
Member

Any chance you could squash everything from #4738 into a single commit so that it's easy to see what was reviewed already and the changes that this PR will make on top of that? 😇

* feat: Add history visible alert.

- Adds a dismissable alert that is displayed whenever the user
  opens a room with `history_visibility` != `joined`. When cleared,
  this is recorded in the app's data store.
- When opening a room with `history_visibility` = `joined`, this
  flag is cleared.

Issue: element-hq/element-meta#2875

* tests: Add unit tests for history sharing in `RoomScreenFooterView`.

* feat: Rename flag to `hasSeenHistoryVisibleBannerRooms`, document.

* refactor: Merge enum variants, use function for banner description.

* feat: Use `AppSettings.historyVisibleDetailsURL` over hard-coded value.

* tests: Correct potential race condition with deferred assertion.

* chore: Use Localazy translation string over project-defined.

* fix: Final tweaks and review comments.

* chore: Checkout `Enterprise` submodule.

* tests: Final fixes.
@kaylendog kaylendog force-pushed the kaylendog/history-sharing/alert branch from 9c05308 to 4020623 Compare December 15, 2025 11:05
Comment on lines +475 to +476
ServiceLocator.shared.settings.enableKeyShareOnInvite = true
ServiceLocator.shared.settings.acknowledgedHistoryVisibleRooms = Set()
Copy link
Contributor Author

@kaylendog kaylendog Dec 15, 2025

Choose a reason for hiding this comment

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

I'm not convinced resetting the set every test is necessary, but after I set prod on fire I don't want to take any chances.

Copy link
Member

@stefanceriu stefanceriu Dec 15, 2025

Choose a reason for hiding this comment

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

after I set prod on fire

Just for the record, it only made it to nightly before we reverted it, and while we generally aim not to break nightly either this was more of a minor annoyance.

Copy link
Member

Choose a reason for hiding this comment

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

💯 – this is the entire point of Nightly builds and instability should be expected with them from time to time.

@kaylendog
Copy link
Contributor Author

Any chance you could squash everything from #4738 into a single commit so that it's easy to see what was reviewed already and the changes that this PR will make on top of that? 😇

@pixlwave should be done!

@sonarqubecloud
Copy link

@kaylendog kaylendog marked this pull request as ready for review December 15, 2025 12:05
@kaylendog kaylendog requested a review from a team as a code owner December 15, 2025 12:05
@kaylendog kaylendog requested review from pixlwave and removed request for a team December 15, 2025 12:05
@kaylendog
Copy link
Contributor Author

I've had a look through the CI logs, but can't actually see any unit test that's failing - either I'm blind or that's a false negative?

@pixlwave
Copy link
Member

It was just a flakey test, searching for ::error usually jumps you straight to them. I've re-run and it is now green.

Given there's a small conflict with #4861 (it also includes the element.io URL) and that it improves the copy, I'd like to wait for that to merge and for this to be rebased before I review these changes again if you don't mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-wip for anything that isn't ready to ship and will be enabled at a later date

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants