Page MenuHomePhabricator

ShareCard: Design updates
Open, Needs TriagePublic

Description

[ 10/09/26 ] Patch demo feedback

image.png (1,399×1,174 px, 926 KB)

[ 10/06/26 ] Finalized design v1.0

Complete Design: Figma File

Screenshot 2026-10-08 at 7.59.53 AM.png (1,459×698 px, 234 KB)

[ 09/29/26 ] Initial design explorations

  • Designs still being refined.
  • List Item

Figma File

Screenshot 2026-09-29 at 4.07.38 PM 1.png (1,640×974 px, 693 KB)

Design updates: Share Card images and text

This task covers how images and text should be handled on Share Cards.

Acceptance Criteria

Images

  1. Photos (the default) fill the image area edge to edge. They’re cropped to fit, never stretched, and cropping starts from the top so faces stay in frame.
  2. Graphics are shown whole, with 16px of padding on every side so they never touch the edges.
  3. An image counts as a graphic if it’s an SVG file (maps, flags, logos, diagrams) or has any transparent pixels.
  4. Behind every image is the card color with a 50% white overlay, which shows around graphics and through transparent areas. This keeps black logos (ex. the ChatGPT logo) visible.
  5. Cards for articles without images (ex. film articles) are cut so there is no space for an image. The card is shorter.

Text

  1. Article text is displayed under the article image (if there is one) and the article title. Text is shown as written in the article.
  2. Text is limited to 5 lines per card. If the text would otherwise exceed 5 lines, it’s truncated with an ellipsis.

Event Timeline

Change #1344825 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/WikimediaCustomizations@master] ShareCard: Display a rich, visual "share" dialog on share link click

https://gerrit.wikimedia.org/r/1344825

Change #1353415 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/WikimediaCustomizations@master] ShareCard: Show a short URL on the card

https://gerrit.wikimedia.org/r/1353415

Change #1344825 merged by jenkins-bot:

[mediawiki/extensions/WikimediaCustomizations@master] ShareCard: Display a rich, visual "share" dialog on share link click

https://gerrit.wikimedia.org/r/1344825

Change #1353415 merged by jenkins-bot:

[mediawiki/extensions/WikimediaCustomizations@master] ShareCard: Show a short URL on the card

https://gerrit.wikimedia.org/r/1353415

Change #1356557 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/WikimediaCustomizations@master] ShareCard: Show page views as a monthly rate

https://gerrit.wikimedia.org/r/1356557

Test wiki created on Patch demo by EGardner (WMF) using patch(es) linked to this task:
https://3ad969da06.catalyst.wmcloud.org/w/

Change #1356557 merged by jenkins-bot:

[mediawiki/extensions/WikimediaCustomizations@master] ShareCard: Show page views as a monthly rate

https://gerrit.wikimedia.org/r/1356557

Change #1359934 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/WikimediaCustomizations@wmf/1.48.0-wmf.1] ShareCard: Show page views as a monthly rate

https://gerrit.wikimedia.org/r/1359934

Change #1359934 merged by jenkins-bot:

[mediawiki/extensions/WikimediaCustomizations@wmf/1.48.0-wmf.1] ShareCard: Show page views as a monthly rate

https://gerrit.wikimedia.org/r/1359934

Mentioned in SAL (#wikimedia-operations) [2026-10-28T22:34:59Z] <egardner@deploy1003> Started scap sync-world: Backport for [[gerrit:1359934|ShareCard: Show page views as a monthly rate (T439164)]] (1.48.0-wmf.1), [[gerrit:1359937|ShareCard: Hide images on the bad image list (T439161)]] (1.48.0-wmf.1), Bump symfony/mailer and symfony/mime to 7.4.22 (T442768) ([[gerrit:1359972|1.47.0-wmf.24]], [[gerrit:1359974|1.48.0-wmf.1]])

Mentioned in SAL (#wikimedia-operations) [2026-10-28T22:56:48Z] <egardner@deploy1003> sbassett, egardner: Backport for [[gerrit:1359934|ShareCard: Show page views as a monthly rate (T439164)]] (1.48.0-wmf.1), [[gerrit:1359937|ShareCard: Hide images on the bad image list (T439161)]] (1.48.0-wmf.1), Bump symfony/mailer and symfony/mime to 7.4.22 (T442768) ([[gerrit:1359972|1.47.0-wmf.24]], [[gerrit:1359974|1.48.0-wmf.1]]) synced to the testservers (see https://wikitech.wikimedia.org/

Mentioned in SAL (#wikimedia-operations) [2026-10-28T23:11:57Z] <egardner@deploy1003> Finished scap sync-world: Backport for [[gerrit:1359934|ShareCard: Show page views as a monthly rate (T439164)]] (1.48.0-wmf.1), [[gerrit:1359937|ShareCard: Hide images on the bad image list (T439161)]] (1.48.0-wmf.1), Bump symfony/mailer and symfony/mime to 7.4.22 (T442768) ([[gerrit:1359972|1.47.0-wmf.24]], [[gerrit:1359974|1.48.0-wmf.1]]) (duration: 36m 58s)