Page MenuHomePhabricator

Talk Tab bar: As a contributor, I want to have access to features that I can find in the app, such as ‘share’, ‘revision history’, 'find in page' and additionally be able to 'add a new topic'
Closed, ResolvedPublic

Assigned To
Authored By
OTichonova
Jun 9 2022, 2:33 PM
Referenced Files
F35754477: Screenshot 2022-11-11 at 11.14.31.png
Nov 11 2022, 2:41 PM
F35754459: IMG_9600.PNG
Nov 11 2022, 2:41 PM
F35597561: IMG_9392.png
Oct 18 2022, 10:58 PM
F35597559: IMG_9391.png
Oct 18 2022, 10:58 PM
F35597557: IMG_9390.png
Oct 18 2022, 10:58 PM
F35597555: IMG_9389.png
Oct 18 2022, 10:58 PM
F35311308: IMG_8264 1.png
Jul 7 2022, 11:20 PM
F35222292: Search 'primate'.png
Jun 9 2022, 2:33 PM

Description

Why are we doing this?

To give contributors easy access to frequently used features (how frequent? This can be tracked).

Audience story

As a contributor, I want to have access to features that I can find in the app, such as ‘share’, 'revision history', 'find in page', and additionally be able to 'add a new topic'

Relevant documents

Share
Slide 12

  • Appears the same as it does on the article page
Share
Share.png (812×375 px, 112 KB)

Reading themes
Slide 12

  • Native page
Revision history
IMG_8264 1.png (812×375 px, 72 KB)

Find in page
Slide 6

  • Will work the same as the ‘find in page’ in the articles.

once a word(s) is typed into the search field the count of the words is indicated and the words become highlighted in the page.

  • Is it possible to uncollapse only the topics where the word(s) is present? If not, then uncollapse all topics to show the searched word(s).
Tapping on ‘find in page’Showing found words
Open find page.png (813×375 px, 59 KB)
Search 'primate'.png (812×375 px, 52 KB)

Add a new topic
Slide 10

  • This information can be found here T310285

See more information about the UI in the - Figma file ‘Talk pages screens & specs’

Additional research and resources

Event Timeline

LGoto triaged this task as Medium priority.Jun 13 2022, 6:40 PM

Per planning yesterday - we're not going to make the theming / font size popover for V1. Since this is a native screen, the expectation is for this screen to work with Apple's dynamic type system setting, not the article/editor web view text size.

Tsevener renamed this task from Tab bar: As a contributor, I want to have access to features that I can find in the app, such as ‘share’, ‘reading themes’, 'find in page' and additionally be able to 'add a new topic' to Tab bar: As a contributor, I want to have access to features that I can find in the app, such as ‘share’, ‘revision history’, 'find in page' and additionally be able to 'add a new topic'.Aug 2 2022, 7:19 PM
JMinor renamed this task from Tab bar: As a contributor, I want to have access to features that I can find in the app, such as ‘share’, ‘revision history’, 'find in page' and additionally be able to 'add a new topic' to Talk Tab bar: As a contributor, I want to have access to features that I can find in the app, such as ‘share’, ‘revision history’, 'find in page' and additionally be able to 'add a new topic'.Aug 16 2022, 9:11 PM
Mazevedo subscribed.

Things remaining to develop:

Need button functionality on all of these

Tsevener moved this task from Doing to Needs Code Review on the ios-app-v7.0 board.

Things remaining to develop:

Find in page

Moving to waiting while Find in Page is developed (T319470).

Hey @OTichonova! Can you confirm the 1. background color and 2. theme element we should be using for the highlighted background shown here? https://phab.wmfusercontent.org/file/data/3nhdayomawj2dopfdjst/PHID-FILE-top6xydb3q2qiobmewwi/Search_primate_.png

Hi @Dmantena!

  1. Sorry, just to clarify, which background color are you referring to? The background color of the keyboard (should be the same as in 'find in page' on the article page)? The page background color behind the cells (it is #F8F9FA)?
  2. Just to clarify, what is a theme element? The color of the highlighted background (should be the same as in the 'find in page' on the article page #FFCC33/color-yellow-600).
  1. Sorry, just to clarify, which background color are you referring to?

@OTichonova Apologies - I was referring to the find in page highlighted background color.

  1. Just to clarify, what is a theme element?

Meaning which existing semantic element name (baseBackground, midBackground, overlayText, etc.) in our existing Theme colors should we be using for this find in page background color. I don't see one element that maps to yellow50 aka #FFCC33 across all our themes.

Hi @Dmantena!
Ahhh I see, thank you. so much for all the clarification.
So I am digging around for it and I think it is actually Yellow50.
I found it with -->
descriptionBackground: .yellow50,
warning: .yellow50
descriptionWarning: .yellow50

@OTichonova No worries - sorry, I should have been more clear! Indeed you're right we use yellow50 as a value in app for different UI elements, but it doesn't seem like we have one specific semantic theme element (e.g. baseBackground, warning, etc.) that maps to using yellow50 as the value for each theme (light, dark, black, sepia).

The way it's engineered in app is that we choose a theme's general semantic element name to use for a UI element, and then as the user changes between themes the app then automatically selects the appropriate color to display. So as an example, we may set the background color for a view to the semantic theme element baseBackground. In the light theme, the color value of this is currently set to base80 / #EAECF0. But if the user changes their app theme to Sepia, this background color is set to the value sepiaBase85/ #E1DAD1.

So on the engineering side, we need an existing semantic element name (warning, unselected, shadow, etc.) to use to set as the background color for the find in page highlight, which will automatically select an appropriate actual value based on the user's selected theme.

There doesn't seem to to be one semantic theme element name that maps to the value yellow50 for all themes, so if you don't see a semantic name that works for our purposes, lemme know and I can just special case use yellow50 regardless of user's theme (similar to the special casing I did for the coffee roll background color, which we also didn't have a usable semantic element for).

Hi @Dmantena,
Right! I am with you now, sorry for taking so long to understand the ask.

I looked at the articles find in page (shown below). It seems like there is another color used for dark & black themes that I can't find anywhere. I think keeping it Yellow50 for all themes is fine.
Additionally, like in the example below, it would be great to revert the color of the highlighted word for the dark and black themes as done in the article view.
Eg. so for the dark/black themes, the word 'plan' is black, while the rest of the words on the page are a very light gray/almost white color. This will help to keep the necessary contrast between the word and the Yellow50 highlight. Do you think that is okay to implement?

DefaultSepiaDarkBlack
IMG_9389.png (667×375 px, 76 KB)
IMG_9390.png (667×375 px, 90 KB)
IMG_9391.png (667×375 px, 105 KB)
IMG_9392.png (667×375 px, 102 KB)

Right! I am with you now, sorry for taking so long to understand the ask.

No worries at all!

I looked at the articles find in page (shown below). It seems like there is another color used for dark & black themes that I can't find anywhere. I think keeping it Yellow50 for all themes is fine.

Sounds good.

Additionally, like in the example below, it would be great to revert the color of the highlighted word for the dark and black themes as done in the article view.
Eg. so for the dark/black themes, the word 'plan' is black, while the rest of the words on the page are a very light gray/almost white color. This will help to keep the necessary contrast between the word and the Yellow50 highlight. Do you think that is okay to implement?

Great call out, I'll be sure this is reflected in the work.

Tsevener moved this task from Needs Code Review to Needs Design Review on the ios-app-v7.0 board.

Just a heads up, I'm keeping the find-in-page subtask (T319470) in Ready for Dev, because it still has some missed scrolling moments. But I think enough of it is in place to begin design reviewing and testing.

Hi!
When testing I noticed two things:

  1. Under 'Share' the airdrop option for some reason doesn't open the talk page but opens a warning message instead (for en talk pages and other languages). Sending the link via email or what's app worked.
Message when airdropping talk page (mobile)Web
IMG_9600.PNG (1×750 px, 164 KB)
Screenshot 2022-11-11 at 11.14.31.png (696×1 px, 124 KB)
  1. I am aware that the 'Find in Page' is still being worked on, but I wanted to throw in an example that I found where the screen didn't scroll at all, in the recording I keep tapping on the down arrow to show the next result, but the screen stays completely still (WWII talk page). Watch screen recording here

This will be ready to test in TestFlight build 7.0.0 (2010).

ABorbaWMF subscribed.

Working for me on 7.0.0 (2010)

JMinor claimed this task.