fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[UX] Reader Mode

Open lime124 opened this issue 7 years ago • 32 comments

User story:

~~As a user, I want to have a clean and distraction free reading experience for long~~form content.

Acceptance Criteria

-As a user I want to know when reader mode is available (Reader mode indicator) -As a user I want to be able to view a site in reader mode, have be able to change font, text size, and background) -As a user I want to be able to go back to the browser mode when I am done reading

┆Issue is synchronized with this Jira Task

lime124 avatar Jan 16 '19 23:01 lime124

@colintheshots to identify dependencies on other teams?

bbinto avatar Jan 23 '19 19:01 bbinto

Can we consider delegating this to Pocket?

st3fan avatar Jan 23 '19 21:01 st3fan

Blocked by PM to write up feature brief / user stories

bbinto avatar Feb 01 '19 13:02 bbinto

@bbinto it seems like this is still blocked? should we move it out of milestone 2?

lime124 avatar Feb 12 '19 22:02 lime124

@vesta0 will be working on this. Let's see what Vesta says when she might have some user stories for it, depending on that we can move it.

bbinto avatar Feb 12 '19 22:02 bbinto

Draft feature brief (includes designs from @bram)

vesta0 avatar Feb 15 '19 17:02 vesta0

@brampitoyo can you please size this?

bbinto avatar Feb 15 '19 18:02 bbinto

@bbinto If we choose to go with approach 1 (integration with Pocket), then the design on my end will be quite simple: an app bar icon. The actual reader view will be handled by Pocket.

For approach 2: in addition to the app bar icon, I will also need to design the reader view itself. This can still be simple. There is prior work in Fennec that I can adapt from. However, this approach may be harder to implement, engineering-wise.

Speaking as a Fenix user, Pocket offers me a lot of super-powers (on top of the reading mode itself) like reading list, related articles, and maybe even article narration.

Speaking as Mozilla, shipping a Pocket web service in every Fenix APK isn’t only going to increase Pocket MAU. It also means that Pocket’s content recommendation will get even better from having more inputs from Fenix users. It’s like having a more accurate “Forward button” for reader view.

For those reasons, I do prefer approach 1, even though it will require cross-team coordination (we’ll need to talk to Pocket).

brampitoyo avatar Feb 18 '19 02:02 brampitoyo

I like Pocket and have it installed on my device.

However, given the bug around CFR on Firefox desktop where Firefox connected to Mozilla upon presenting an add-on recommendation, I think it would be pretty concerning to privacy aware Fenix users to contact an external service to provide something as basic as a reader view - unless you are simply proposing using Pocket's reader view code locally without any connection to the Pocket web service.

I don't know enough about how Pocket works to know whether all of the reader view stuff that Pocket does is local to the device, or whether it has help from the Pocket web service; I think it would be concerning if enabling reader view on a page caused Fenix to hit a pocket.com domain.

yoasif avatar Feb 18 '19 21:02 yoasif

Since getting into web novels, I access reader view about 50 times a day, if not more. To be punted over to Pocket for each chapter and lose the integration with my Firefox (Global) session (History) would be a disaster.

uniquePWD avatar Feb 18 '19 21:02 uniquePWD

Maybe we could integrate the Pocket Instant App component into the APK? That would solve two problems. We'd get Pocket for under 4MB and without requiring an external app. It would also include links to get the full app experience. It's a thought. I haven't done any analysis of this option yet, but it would be interesting to test. If the device isn't compatible with Instant Apps, such as an Amazon Fire device, we can fall back to offering to install the < 4MB instant app as its own app.

Alternatively, we could modify the Instant App for our needs and include it directly as a module in the project.

colintheshots avatar Feb 21 '19 21:02 colintheshots

@brampitoyo I know you are already working on this. Please also add a S/M/L size to it based on your efforts.

vesta0 avatar Feb 22 '19 21:02 vesta0

So here's a test case for this feature: https://www.wuxiaworld.com/novel/trash-of-the-counts-family/tcf-chapter-1

While Pocket does a wonderful job of paginating the text. There's no way to keep your place as is the default behaviour on desktop. Also for some reason, narration isn't available via Pocket. As things stand, the user experience is better in Fennec and on desktop.

uniquePWD avatar Feb 24 '19 12:02 uniquePWD

@vesta0 If we’re building our own solution – and thanks @pwd-github @yoasif for providing really good reasons for it – then I think that this would be a size S.

If we’re using Pocket’s technology, it might be a size M.

brampitoyo avatar Feb 24 '19 21:02 brampitoyo

Last updated: 28 March 2019

Mocks

https://mozilla.invisionapp.com/share/WCR8VXQ6ASG

Entering and Exiting Reader View

  1. Reader View is accessed by swiping up on the Quick Action Bar

1@2x

  1. When the “Read” action is tapped, the icon turns blue and change label to “Close”, to indicate that it’s been selected.

2@2x

  1. To exit Reader View, tap the blue “Close” icon.

~Top app bar~

No longer relevant. Reader View controls are now located inside the Quick Action Bar.

Quick Action Bar

Reader View controls replace two actions in the Quick Action Bar.

  1. “Download” is replaced by “Appearance”: font selection, text size and colour scheme.

3@2x

  1. “Favorite” is replaced by “Read later” (which is another word for “Add to Reading List”).

Important note: Reading List is out of scope for MVP. We will remove it from both the Library UI and the Quick Action Bar. I put the icon here so we know its eventual position once it ships.

Scroll down behaviour

Both the bottom app bar and Quick Action Bar disappear as you scroll down the page, and reappears as you scroll up. This behaviour is pretty standard. I’m reiterating it here just to make sure that we have it covered.

brampitoyo avatar Feb 28 '19 05:02 brampitoyo

That looks really good. Though, personally I'd prefer it to have a more intuitive back button in the top left corner to allow for exiting as well. Also, the narrate feature, which is the real MVP of reader view is missing.

uniquePWD avatar Feb 28 '19 06:02 uniquePWD

@csadilek to review before closing.

vesta0 avatar Mar 01 '19 18:03 vesta0

@brampitoyo please remove the hyphen in sans serif - otherwise has my sign off.

mheubusch avatar Mar 01 '19 18:03 mheubusch

Looks great! With the planned enhancements/APIs for WebExtensions in GeckoView and Android Components, covering all this functionality should be possible soon.

csadilek avatar Mar 01 '19 20:03 csadilek

@mheubusch I’ve removed the hyphen in the word sans serif. @vesta0 @csadilek We’re now good to go.

brampitoyo avatar Mar 05 '19 04:03 brampitoyo