Nothing Special   »   [go: up one dir, main page]

Page MenuHomePhabricator

Improve UI in previous versions
Closed, ResolvedPublic4 Estimated Story Points

Assigned To
Authored By
scblr
Dec 9 2019, 12:16 PM
Referenced Files
F31607089: Screenshot_20200210-161125.png
Feb 10 2020, 3:38 PM
F31607102: sev4-28.png
Feb 10 2020, 3:38 PM
F31607082: Screenshot_20200210-160534.png
Feb 10 2020, 3:38 PM
F31607076: Screenshot_20200210-160013.png
Feb 10 2020, 3:38 PM
F31607100: Screenshot_20200210-162455.png
Feb 10 2020, 3:38 PM
F31513541: Screenshot_1579111957.png
Jan 15 2020, 6:18 PM
F31513544: Screenshot_1579111959.png
Jan 15 2020, 6:18 PM
F31513548: Screenshot_1579111968.png
Jan 15 2020, 6:18 PM

Description

Visual updates

Article descriptions
sev4-33.png (1×720 px, 621 KB)
sev4-35.png (1×720 px, 618 KB)
sev4-32.png (1×720 px, 612 KB)
Image captions
sev4-28.png (1×720 px, 916 KB)
sev4-30.png (1×720 px, 914 KB)
sev4-27.png (1×720 px, 917 KB)

👉Visuals on Zeplin


Conceptual additions

  • The article description and image caption feed will be updated to match the new lighter “cardless” UI that’s used in V4.
  • Revised information hierarchy (see above screens)
  • Respects original image aspect ratio (Details: T240196)
  • Image zoom behavior, according to T242138, should be incorporated

Event Timeline

Charlotte lowered the priority of this task from Medium to Low.

Hi @schoenbaechler

Respects original image aspect ratio (similar to new image tagging UI)

Not sure if you'd like it to have a minimum height of the image, and here are some examples of the current implementation.

The ratio of the image is: 1.77 (16:9)

Screenshot_1578964443.png (2×1 px, 1 MB)
Screenshot_1578964461.png (2×1 px, 2 MB)

Screenshot_1578964467.png (2×1 px, 458 KB)

Thanks @cooltey, looks clean already... 😳 In regards to:

Not sure if you'd like it to have a minimum height of the image (...)

Ideally, images should not be restricted in height. They should stretch to full viewport width and “organically” push down content depending on the image’s height. Details in T240196:

  • Image cropping
    • The concept respects the variety of image formats on Commons.
    • The idea is to keep as much of the image as possible, landscape stays landscape – portrait stays portrait.
    • Images are not cropped, should be fully visible from the start and are zoomable.

Let me know if you need more infos...

Hi @schoenbaechler

I've tried to make the image "fit screen width" and "wrap to its height", but unfortunately, the image library we've been using now does not support that. (Please see here: https://frescolib.org/docs/using-simpledraweeview.html)

The best way we can do might be setting a fixed height, for example, 300dp for portrait and 200dp for landscape and without any scaleType attributes (Please see: https://developer.android.com/reference/android/widget/ImageView.ScaleType).

Here are the screenshots:

Screenshot_1579044880.png (2×1 px, 1 MB)
Screenshot_1579044861.png (2×1 px, 3 MB)
Screenshot_1579044851.png (2×1 px, 169 KB)
Screenshot_1579044854.png (2×1 px, 547 KB)

Not sure if you are okay with this, but it looks good to me.

note: might have a solution for the wrap_content, but it does cause some unexpected behaviors after image loaded. (https://stackoverflow.com/a/34075281/4545041)

Thanks @cooltey. Your proposed solution for article descriptions is perfectly fine, since the article text is the center of the task, not the image.

Screenshot_1579044851.png (2×1 px, 169 KB)
Screenshot_1579044854.png (2×1 px, 547 KB)

In regards to image captions though, images are the center of the task, that’s why the designs for image captions differ on Zeplin. Images should be completely visible from the start and I’m fearing that the zoom experience is negatively affected with your proposed solution to apply a crop:

Screenshot_1579044880.png (2×1 px, 1 MB)
Screenshot_1579044861.png (2×1 px, 3 MB)

I’m having the same behavior in mind as defined for image tags. Check out the red square on the images below. Its dimensions are defined by the device’s current width, but the canvas itself stays the same, regardless of a portrait or landscape image.

sev4-27.png (1×720 px, 912 KB)
sev4-27 copy.png (1×720 px, 679 KB)

Of course, the red background is only used to illustrate the canvas. In reality, this would look like this:

sev4-27 copy 2.png (1×720 px, 917 KB)
sev4-27 copy 3.png (1×720 px, 679 KB)

Is this solution feasible for handling images in the captions and tags task (T240196)? If it’s really not possible, this would have substantial implications on both UI designs.

Hi @schoenbaechler

Is this solution feasible for handling images in the captions and tags task (T240196)? If it’s really not possible, this would have substantial implications on both UI designs.

It is possible when to have a fixed image height set.

Here are the examples of setting the image height as 300dp.

Screenshot_1579111957.png (2×1 px, 2 MB)
Screenshot_1579111959.png (2×1 px, 1 MB)
Screenshot_1579111965.png (2×1 px, 1 MB)
Screenshot_1579111968.png (2×1 px, 1 MB)

If we set it to 400dp, it would have too much empty space on the top and bottom of the images.

Screenshot_1579112292.png (2×1 px, 2 MB)

Charlotte added a subscriber: cooltey.

Great job implementing @cooltey & @Dbrant 👏. Zooming is incredibly helpful, especially when adding image captions. I only found a few, minor things to optimize:

01) Adapt this to 24sp with 32sp line height (100%). Ideally, the font size here adapts to the global font-size setting (as for articles). Can we do that?

Screenshot_20200210-160013.png (2×1 px, 415 KB)

02) Use paper_color / color_group_50 for background in feed UI (also in image caption UI)

Screenshot_20200210-160534.png (2×1 px, 538 KB)

03) Increase side indicator’s width to 4dp (also in image caption UI)

Screenshot_20200210-161125.png (2×1 px, 805 KB)

04) Some changes in hierarchy / information architecture need to be applied.

  • Move highlighted caption to the top
  • Change style of file name and move it below image caption
ImplementationvsDesign
Screenshot_20200210-162455.png (2×1 px, 1 MB)
sev4-28.png (1×720 px, 915 KB)

Adapt this to 24sp with 32sp line height (100%)

👍🏻

Ideally, the font size here adapts to the global font-size setting (as for articles). Can we do that?

We cannot :(

Use paper_color / color_group_50 for background in feed UI (also in image caption UI)

👍🏼

Increase side indicator’s width to 4dp (also in image caption UI)

👍🏽

  • Move highlighted caption to the top
  • Change style of file name and move it below image caption

👍🏾

You nailed it @Dbrant! Damn, it feels so clean now 😍Moving it to QA signoff...