Reader: swipe through every image in a post

オープン
#26,255 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
36/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
ios, swift
領域
mobile

調査の方向性

Read the related issue #1260 and inspect ReaderDetailCoordinator.findGallery(containing:), ReaderPostParser, and the presentImage flow; the issue says #1260’s gallery fix must ship first because it changes the same tap-matching code. Trace how post images and their links are identified, then compare the resulting viewer sequence with the agreed eligibility and ordering rules. Done means swiping from any eligible image reaches every eligible post image in page order while linked images outside those rules still open their links.

索引モデルが issue の本文から書いたものです。

説明

[Type] Enhancement Media Reader

Split from #1260, which now covers only the gallery bug (linked gallery images open a web view).

In a Reader post, tapping an image outside a gallery opens it on its own in the full-screen viewer (presentImage). You can't swipe to the post's other images. Android lets you swipe through every image in the post. This was the original ask in #1260: "swipe through all the images in the post".

This is new functionality, not a bug, so it has no fix plan yet.

Decisions so far

Agreed in #1260:

  1. One swipe sequence for the whole post. Tapping any eligible image opens the viewer with every eligible image in the post, in page order, gallery images included. This matches Android.

  2. Images that link to another page stay links. An image joins the viewer only if it has no link, or its link points to:

    • the image itself (the same file at any size),
    • its full-size file (data-orig-file), or
    • its attachment page.

    Any other link is followed as it is today.

Spotting an attachment-page link: the markup has no explicit marker. In WordPress.com galleries, the <img> carries data-attachment-id, and the link sits under the post's permalink. In post 12152, for example, it's …/2012/10/04/tiled-image-galleries/2012-09-13-2012-09-13-img_3495/. The other form is ?attachment_id=<id>. So treat a link as an attachment page when the image has data-attachment-id and the link either starts with the post's permalink or contains attachment_id=.

Images to leave out of the sequence: emoji (img.emoji), tracking pixels and other tiny images, avatars, story images (.wp-story-image) and images inside embeds.

Not in scope: swipe-down to dismiss, captions, and laying galleries out natively in the post.

Order

Ship the #1260 gallery fix first. It changes the same tap-matching code (ReaderDetailCoordinator.findGallery(containing:), ReaderPostParser).

主要言語
Swift
スター
3.9k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
136

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wordpress-mobile/WordPress-iOS のほかの issue

wordpress-mobile/WordPress-iOS の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。