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 when | Kind | Icon |
|---|---|---|---|---|
| 1 | Private tab / Leave private (fret.menu.private) | always | one-shot (toggles private session) | private |
| 2 | Add to favorites (favorite) | normal page, not yet a favorite, room for one | one-shot | plus |
| 3 | Save to Reading list (saveReading) | normal tab, page loaded | one-shot | bookmark |
| 4 | Share page (share) | a page is showing | one-shot (system sheet) | share |
| 5 | Smart Share (smartShare) | page passes the share gate, not private, not loading, build ships it | one-shot | share |
| 6 | Forward (forward) | tab has a page ahead | one-shot | forward |
| 7 | Reload page (reload) / Stop loading (stop) | page showing; Stop only while loading | one-shot | refresh / stop |
| 8 | History (history) | normal tab | navigation (sheet) | history |
| 9 | Downloads (downloads) | always | navigation (sheet) | download |
| 10 | Reading list (reading) | normal tab | navigation (sheet) | reader |
| 11 | Spaces (spaces) | normal tab | navigation (sheet) | space |
| 12 | Find on page (find) | a page is showing | one-shot (opens find bar) | search |
| 13 | Calm this page (calm) | a page is showing | navigation (sheet with switches) | text |
| 14 | Translate / Show original (translate) | page can be translated or is translated, iOS 18 or later | toggle | translate |
| 15 | Invite friends (invite) | build has a public domain | navigation (sheet) | copy |
| 15b | App icon (icons) | only where Invite friends is not | navigation (sheet) | home |
| 16 | Import bookmarks (import) | normal tab | navigation (sheet) | folder |
| 17 | Forget this site (forgetSite) | http or https page, normal or private | navigation (sheet that asks first) | forget |
| 18 | Tell Fret about this site (tellfret) | normal tab, not a sensitive page, site has a registrable domain | navigation (sheet) | info |
| 19 | Create account (account) | signed out | navigation (account sheet) | key |
| 20 | Settings (settings) | always | navigation (sheet) | settings |
| 21 | Hide the Fret (hide) | unless the bar is held open on a blank tab | one-shot | down |
| - | 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.
| Page | First level | Rows on screen |
|---|---|---|
| Web page, signed in or out | Share page, Find on page, Private tab, History, Spaces, Settings, More (with Translate offered: Translate takes Spaces' place) | 7 |
| Private tab | Share page, Find on page, Leave private, Settings, More | 5 |
| New-tab page | Private tab, History, Spaces, Settings, More | 5 |
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.
| Group | Rows, in order |
|---|---|
| This page | Smart Share, Add to favorites, Save to Reading list, Forward, Reload page or Stop loading, Calm this page |
| This site | Tell Fret about this site, Forget this site |
| Library | Downloads, Reading list, Spaces (when it did not fit), Import bookmarks |
| Fret | Create 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.