Docs

Quick menu: page actions on iPhone with a hold

Updated

The card that opens from the Fret (hold it for half a second, or the menu button of the bar). Code: QuickMenuView, QuickMenuPlan, QuickMenuItems (ios/FretKit/Sources/FretShell/Menu); the app decides which rows apply in AppFeatures.availability and runs them in ActionRouter.menu. 1.6 cut what a person sees at once from up to 20 rows to 6 tiles and one More row. Nothing was removed: every row is still there, once.

Before (1.5): one card, every row

Order on screen: the 3-column tile grid, then list rows, then the footer plate. A row not drawn is hidden, never dimmed.

#Row (id)Shows whenKindIcon
1Private tab / Leave private (fret.menu.private)alwaysone-shot (toggles private session)private
2Add to favorites (favorite)normal page, not yet a favorite, room for oneone-shotplus
3Save to Reading list (saveReading)normal tab, page loadedone-shotbookmark
4Share page (share)a page is showingone-shot (system sheet)share
5Smart Share (smartShare)page passes the share gate, not private, not loading, build ships itone-shotshare
6Forward (forward)tab has a page aheadone-shotforward
7Reload page (reload) / Stop loading (stop)page showing; Stop only while loadingone-shotrefresh / stop
8History (history)normal tabnavigation (sheet)history
9Downloads (downloads)alwaysnavigation (sheet)download
10Reading list (reading)normal tabnavigation (sheet)reader
11Spaces (spaces)normal tabnavigation (sheet)space
12Find on page (find)a page is showingone-shot (opens find bar)search
13Calm this page (calm)a page is showingnavigation (sheet with switches)text
14Translate / Show original (translate)page can be translated or is translated, iOS 18 or latertoggletranslate
15Invite friends (invite)build has a public domainnavigation (sheet)copy
15bApp icon (icons)only where Invite friends is notnavigation (sheet)home
16Import bookmarks (import)normal tabnavigation (sheet)folder
17Forget this site (forgetSite)http or https page, normal or privatenavigation (sheet that asks first)forget
18Tell Fret about this site (tellfret)normal tab, not a sensitive page, site has a registrable domainnavigation (sheet)info
19Create account (account)signed outnavigation (account sheet)key
20Settings (settings)alwaysnavigation (sheet)settings
21Hide the Fret (hide)unless the bar is held open on a blank tabone-shotdown
-You (you), Help (help)never drawn today (the app turns neither on; Help has no route)-home, pinch

Rows on screen: signed in, typical web page 18 (up to 20 with Forward and Translate); signed out 19; private tab with a page 10; new-tab page 8.

After (1.6): two levels

First level: at most six tiles (QuickMenuPlan.firstLevelLimit), then one More row (fret.menu.more). The tiles are the first five available of Share page, Find on page, Translate, Private tab, History, Spaces, then Settings always last. Settings stays here: the UI test helpers and Settings' Back to the menu depend on it.

PageFirst levelRows on screen
Web page, signed in or outShare page, Find on page, Private tab, History, Spaces, Settings, More (with Translate offered: Translate takes Spaces' place)7
Private tabShare page, Find on page, Leave private, Settings, More5
New-tab pagePrivate tab, History, Spaces, Settings, More5

More opens in the same card: a Back row (fret.menu.more.back), then groups under headings (fret.menu.group.<name>). A group with no row is not drawn. The card scrolls when it is taller than the screen.

GroupRows, in order
This pageSmart Share, Add to favorites, Save to Reading list, Forward, Reload page or Stop loading, Calm this page
This siteTell Fret about this site, Forget this site
LibraryDownloads, Reading list, Spaces (when it did not fit), Import bookmarks
FretCreate account (signed out), Invite friends (or App icon), Hide the Fret

Rules: no row stands twice; a row that does not apply is hidden; Private tab, Settings, Share page, Find on page, History and Spaces keep their ids; the account gate still opens the account sheet when a row needs an account; the pick closes the menu as before.

Not in the menu, so not placed: page improvements and undo, site navigation choices and Shields for this site have no row in the quick menu (they live on the Improvement pill, the site bar and the bar's shield stone). If one is added later it goes in "This site".

Ids: ios/Contract/ids.d/v16-quick-menu-trim.txt. Strings: quickMenu.more, quickMenu.moreBack, quickMenu.group.page|site|library|fret in FretShell's Localizable.xcstrings (English and Arabic).

Tests: QuickMenuPlanTests (first level at most 6, every available row in exactly one place, groups and order); UI tests open More through menuRow(_:) and openMenuMore() in UITestSupport.swift.