Page MenuHomePhabricator

Tabs overview
Closed, ResolvedPublic14 Estimated Story Points

Assigned To
Authored By
HNordeenWMF
Apr 3 2025, 4:06 PM
Referenced Files
F59131275: image.png
Apr 21 2025, 9:40 PM
F59131030: image.png
Apr 21 2025, 9:40 PM
F59130897: image.png
Apr 21 2025, 9:40 PM
F59127478: image.png
Apr 21 2025, 9:40 PM
F59126087: image.png
Apr 21 2025, 9:40 PM
F59126015: image.png
Apr 21 2025, 9:40 PM
F59125888: image.png
Apr 21 2025, 9:40 PM
F59125770: image.png
Apr 21 2025, 9:40 PM

Description

Background

See Epic: T384758: [Epic] Add Tabbed Browsing to the iOS App (Tabs)

Requirements
  • Tapping the Tabs icon opens the Tabs overview
  • "Done" takes them back to where they were when they opened the Tabs overview
  • The minimum amount of tabs is 1 (see how this looks here). If no article has been searched yet, the tab contains the main page.
  • The close button for the last remaining tab should be hidden. Users cannot close the last tab.
  • Sort tabs by date created, with the most recent at the bottom
  • Show all open tabs in the overview
    • If the article doesn’t have an image, more article text is featured (see here).
    • For articles without an article description, the title and the article’s text will be shown (Figma)
  • Show number of open tabs
  • New tab entry point (new tab flow to be built in separate task)
  • Users can close individual tabs
  • Allow users to have Tabs open in multiple languages
  • Allow duplicate tabs of the same article
  • Filter out non-article detours (talk pages, article history, files), if someone left one of these page, show the last visited article in the Tab
  • Support for landscape and iPad

Will be built in separate tasks

Nice to haves, will be built in separate tasks

  • Overflow menu (don't add entry point yet)
  • Long-press on tab in overview (don't add entry point yet)
iPhone Designs
image.png (786×1,704 px, 424 KB)
Figma
image.png (786×1,704 px, 932 KB)
Figma
image.png (786×1,704 px, 940 KB)
Bonus points for a light-grey status bar! Figma
image.png (786×1,704 px, 1 MB)
Figma
image.png (786×1,704 px, 449 KB)
Figma
image.png (786×1,704 px, 799 KB)
Figma
image.png (786×1,704 px, 769 KB)
Figma
  • Tab items have an aspect ration of 3:4 (portrait)
iPad/Landscape designs
  • Tabs should responsively scale based on available space.
  • Type and spacing within a “tabs-card” remain the same as an iPhone (font-sizes, top and bottom paddings, etc.).
  • iPad and iPhone landscape designs use the entire width and height of the screen.
  • iPad Portrait should feature at least 4 tabs in a row.
  • iPad and iPhone Landscape and iPhone should feature at least 5 tabs in a row.
Engineering Notes
  • [5] T392921 - Modify blank screen created in https://phabricator.wikimedia.org/T390991 to show SwiftUI grid of tabs. Base the number of tabs to display from Tabs Data Controller (which will already have logic to pull tabs from Core Data, that work will be done in T391002).
    • If tab indicates there are no articles, instead display a grid item with the "main page" UI.
    • Otherwise, display UI of top article summary.
      • To pull individual article summary information, call the fetchAllArticleTabs method from the data controller created in T392918. If T392918 is not ready yet, just display mock article UI temporarily.
      • Ensure number of tabs lay out well on all device sizes (landscape and iPad), and grid items can handle limited article data (no image, no article description).
  • [2] T392922 - Update navigation bar title in tabs overview to reflect the number of tabs.
  • [3] T392923 - Add individual X button to tabs, delete tab via data controller when pressed (delete method in data controller will be created in T391002). Ensure tab grid item hides after deleting. Note that we should NOT allow deleting of the last tab item, because we always want at least one currently active tab. Ensure the X button hides when there is only one tab item.
  • [1] T392924 - Tab sorting: Ensure tab sorting works as expected. Tabs should be sorted via date created, descending (so the more recent tabs appear at the bottom). The tab date created should already be persisted in the WMFTab Core Data entity.
  • [3] T392925 - Upon opening of tabs overview, automatically scroll to current tab (the items returned from the data controller will indicate what the current tab is. That work will be done in T391002).

Related Objects

Event Timeline

HNordeenWMF renamed this task from Tabs overview to Opening tabs in the tabs overview.Apr 16 2025, 10:52 PM
HNordeenWMF updated the task description. (Show Details)
HNordeenWMF renamed this task from Opening tabs in the tabs overview to Tabs overview.Apr 16 2025, 10:59 PM
HNordeenWMF updated the task description. (Show Details)
HNordeenWMF updated the task description. (Show Details)
Tsevener updated the task description. (Show Details)
HNordeenWMF raised the priority of this task from Low to Medium.Apr 24 2025, 10:47 PM
Tsevener updated the task description. (Show Details)
Tsevener updated the task description. (Show Details)
Tsevener updated the task description. (Show Details)

PM Signoff
✅ Tapping the Tabs icon opens the Tabs overview
✅ "Done" takes them back to where they were when they opened the Tabs overview
✅ The minimum amount of tabs is 1 (see how this looks here). If no article has been searched yet, the tab contains the main page.
✅ The close button for the last remaining tab should be hidden. Users cannot close the last tab.
✅ Sort tabs by date created, with the most recent at the bottom
✅Show all open tabs in the overview
✅ If the article doesn’t have an image, more article text is featured (see here).
✅ For articles without an article description, the title and the article’s text will be shown (Figma)
✅ Show number of open tabs
✅ New tab entry point (new tab flow to be built in separate task)
✅Users can close individual tabs
✅ Allow users to have Tabs open in multiple languages
✅ Allow duplicate tabs of the same article
✅ Filter out non-article detours (talk pages, article history, files), if someone left one of these page, show the last visited article in the Tab
✅ Support for landscape and iPad