WordPress-iOS icon indicating copy to clipboard operation
WordPress-iOS copied to clipboard

Reader: Add a footer view for the Reader tags feed

Open wargcm opened this issue 9 months ago β€’ 2 comments

Fixes #23108

Description

Adds the "More" footer view to the Reader tags feed.

Note: There's an existing issue when navigating to a tag feed from the "Your Tags" feed. This is due to the following chain of events:

  1. A reader stream view controller is created with the tag slug
  2. A lookup happens and then the readerTopic of the stream view controller gets set
  3. The didSet of the readerTopic sets the inUse property on the tag managed object and the context is saved
  4. The existing "Your Tags" feed now sees a change to the tag object
  5. That tag cell is reloaded

This causes the collection view offset to briefly show at the beginning, and then it'll update back to the end of the content when navigating back to the "Your Tags" feed from the tag feed.

I couldn't find a good way to fix this because it appears the inUse property is currently used. I'll keep attempting to look for a solution.

Screenshots

Light Dark
Simulator Screenshot - iPhone SE (3rd generation) - 2024-04-26 at 17 18 11 Simulator Screenshot - iPhone SE (3rd generation) - 2024-04-26 at 17 18 23

Testing

To test:

  • Launch Jetpack and login
  • Navigate to the "Your Tags" feed
  • Scroll to the end of a tag's collection view
  • πŸ”Ž Verify the "More" footer view is styled correctly
  • Tap on the view
  • πŸ”Ž Verify it navigates to that tag's feed

Regression Notes

  1. Potential unintended areas of impact Should be none.

  2. What I did to test those areas of impact (or what existing automated tests I relied on) N/A

  3. What automated tests I added (or what prevented me from doing so) N/A PR submission checklist:

  • [x] I have completed the Regression Notes.
  • [x] I have considered adding unit tests for my changes.
  • [x] I have considered adding accessibility improvements for my changes.
  • [x] I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

Testing checklist:

  • [ ] WordPress.com sites and self-hosted Jetpack sites.
  • [ ] Portrait and landscape orientations.
  • [ ] Light and dark modes.
  • [ ] Fonts: Larger, smaller and bold text.
  • [ ] High contrast.
  • [ ] VoiceOver.
  • [ ] Languages with large words or with letters/accents not frequently used in English.
  • [ ] Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • [ ] iPhone and iPad.
  • [ ] Multi-tasking: Split view and Slide over. (iPad)

wargcm avatar Apr 26 '24 21:04 wargcm

WordPress AlphaπŸ“² You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr23109-0a19acf
Version24.7
Bundle IDorg.wordpress.alpha
Commit0a19acf816a4ed7a2a1edd0b6915bdc230fb4389
App Center BuildWPiOS - One-Offs #9709
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

wpmobilebot avatar Apr 26 '24 22:04 wpmobilebot

Jetpack AlphaπŸ“² You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr23109-0a19acf
Version24.7
Bundle IDcom.jetpack.alpha
Commit0a19acf816a4ed7a2a1edd0b6915bdc230fb4389
App Center Buildjetpack-installable-builds #8753
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

wpmobilebot avatar Apr 26 '24 22:04 wpmobilebot

Maybe at some point we can rewrite the stream view controller. There's a decent amount of strange behavior from the current one, which is very difficult to fix or track down.

We just need to fetch the tags once every time the stream is loaded or the user initiates a refresh gesture.

We'd still need to handle a user's tags changing, unless navigating back counts as loading. They can open one of the tag posts, then tap on a tag for that post, and follow it.

Thanks for the review!

wargcm avatar Apr 30 '24 22:04 wargcm