Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions openspec/specs/browser-window/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,3 +452,14 @@ When Clair launches, it SHALL reopen the tabs that were open when it quit, as Ar
#### Scenario: Open pins
- **WHEN** the user quits with a pinned tab and a favorite open, and relaunches
- **THEN** both are open again, and the pinned tabs and favorites that weren't open are listed, still not open

### Requirement: Both pages of a split are visible
When the active tab is in a split, the page area SHALL show both tabs' pages in their panes (`split-view`), each resized with its pane, and both SHALL be reported to the page as visible. Selecting a tab outside the split SHALL report both as hidden.

#### Scenario: A split
- **WHEN** the window shows a split
- **THEN** both panes' pages report `document.visibilityState` as `visible`

#### Scenario: Leaving the split
- **WHEN** the user selects a tab outside the split
- **THEN** both of the split's pages report `document.visibilityState` as `hidden`
16 changes: 12 additions & 4 deletions openspec/specs/favorites/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Each profile SHALL have its own favorites, in the user's order. A window SHALL s
- **THEN** the same page shows, without reloading

### Requirement: Favorites grid
Favorites SHALL show as tiles of equal size between the URL field and the Space header, each with the page's icon centred, in rows of at most four. The grid SHALL take as few rows as that allows, and as few columns as those rows allow. Tiles SHALL be 47 points tall and share the sidebar's width, less 8 points at the edges and between tiles.
Favorites SHALL show as tiles of equal size between the URL field and the Space header, each with the page's icon centred, in rows of at most four. A favorited split SHALL take one tile (`split-view`). The grid SHALL take as few rows as that allows, and as few columns as those rows allow. Tiles SHALL be 47 points tall and share the sidebar's width, less 8 points at the edges and between tiles.

#### Scenario: One favorite
- **WHEN** a profile has one favorite
Expand All @@ -35,6 +35,10 @@ Favorites SHALL show as tiles of equal size between the URL field and the Space
- **WHEN** a profile has eight favorites and the sidebar is at its default width
- **THEN** they show in two rows of four square tiles

#### Scenario: A favorited split
- **WHEN** a profile's favorites are a split of two pages and one other favorite
- **THEN** the grid shows two tiles, each half the row

### Requirement: Favorite tile states
A tile SHALL be tinted against the sidebar, darker under the pointer in Light Mode and lighter in Dark Mode. The tile of the favorite whose page the window shows SHALL turn white in Light Mode, or light grey in Dark Mode, with a 2-point ring in its icon's main colour. No other row SHALL be highlighted while it's shown.

Expand Down Expand Up @@ -103,14 +107,14 @@ While the window shows a favorite's page, Cmd+W and Close Tab in its menu SHALL
- **THEN** "Mail" keeps its tile, its page is closed, and "News" is active

### Requirement: Favorite menu
A favorite's context menu SHALL offer Copy Link, Rename…, Mute or Unmute, Edit Pinned Page › (`pinned-tabs`), Duplicate, Close Tab while its page is shown, and Remove Favorite. Hovering a tile SHALL show no button.
A favorite's context menu SHALL offer Copy Link, Rename…, Mute or Unmute, Edit Pinned Page › (`pinned-tabs`), Duplicate, Split with Tab › (`split-view`), Close Tab while its page is shown, and Remove Favorite. Hovering a tile SHALL show no button.

#### Scenario: The shown favorite's menu
- **WHEN** the window shows "Mail" and the user right-clicks its tile
- **THEN** the menu offers Copy Link, Rename…, Mute, Edit Pinned Page, Duplicate, Close Tab and Remove Favorite
- **THEN** the menu offers Copy Link, Rename…, Mute, Edit Pinned Page, Duplicate, Split with Tab, Close Tab and Remove Favorite

### Requirement: Leaving a favorite's site
From a favorite, a URL the user enters in the command bar or URL field that is on another site (another scheme or host, as for Peeks in `peek`) SHALL open in a new Today tab at the top, leaving the favorite's page as it was. A URL on the same site SHALL load in the favorite. A favorite's page navigated away from its pinned URL SHALL keep Back to Pinned URL in the Tabs menu (`pinned-tabs`).
From a favorite, a URL the user enters in the command bar or URL field that is on another site (another scheme or host, as for Peeks in `peek`) SHALL open in a new Today tab at the top, leaving the favorite's page as it was. A URL on the same site SHALL load in the favorite. A favorite's page in a split (`split-view`) SHALL load either in its pane. A favorite's page navigated away from its pinned URL SHALL keep Back to Pinned URL in the Tabs menu (`pinned-tabs`).

#### Scenario: Another site from the URL field
- **WHEN** the window shows the favorite "Mail" at `https://mail.example.com/` and the user enters `https://news.example.org/` in the URL field
Expand All @@ -120,6 +124,10 @@ From a favorite, a URL the user enters in the command bar or URL field that is o
- **WHEN** the user enters `https://mail.example.com/settings` there instead
- **THEN** "Mail" loads it

#### Scenario: Another site in a favorited split's pane
- **WHEN** the window shows a favorited split of "Mail" and "Calendar", with "Mail" focused, and the user enters `https://news.example.org/` in the command bar
- **THEN** "Mail"'s pane loads `https://news.example.org/`, and no Today tab opens

### Requirement: Favorite tiles show their Peek
While a favorite's page has a Peek open, its tile SHALL show the Peek page's favicon as a small badge at its top-trailing corner.

Expand Down
4 changes: 2 additions & 2 deletions openspec/specs/page-toolbar/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ The toolbar SHALL sit inside the card, across its top, 32 points tall, with a 1-
- **THEN** the toolbar is hidden and the video fills the screen, and the toolbar returns when full screen ends

### Requirement: Toolbar controls
The toolbar SHALL hold, from its leading edge, the sidebar toggle, back, forward and reload, centred 21, 57.75, 94.75 and 132 points from the card's leading edge, and the host in the middle. At its trailing end it SHALL hold the site-controls button, centred 21 points from the card's trailing edge, with the pinned extensions and then the permission indicators to its left, 36 points apart. All of them SHALL be vertically centred in the toolbar.
The toolbar SHALL hold, from its leading edge, the sidebar toggle, back, forward and reload, centred 21, 57.75, 94.75 and 132 points from the card's leading edge, and the host in the middle. At its trailing end it SHALL hold the split button (`split-view`), centred 21 points from the card's trailing edge, as in Arc, then to its left the site-controls button, the pinned extensions and the permission indicators, 36 points apart. All of them SHALL be vertically centred in the toolbar.

#### Scenario: Leading controls
- **WHEN** a window shows the toolbar, with the sidebar shown or hidden
- **THEN** the sidebar toggle, back, forward and reload sit at the toolbar's leading end, 37 points apart, in the same place relative to the card's leading edge

#### Scenario: Trailing controls
- **WHEN** the active tab uses the camera and two extensions are pinned
- **THEN** from the trailing end, the toolbar shows the site-controls button centred 21 points from the card's edge, the second and first pinned extensions centred 57 and 93 points from it, and the camera indicator centred 129 points from it
- **THEN** from the trailing end, the toolbar shows the split button centred 21 points from the card's edge, the site-controls button centred 57 points from it, the second and first pinned extensions centred 93 and 129 points from it, and the camera indicator centred 165 points from it

### Requirement: Same controls in the toolbar or the sidebar
The toolbar's controls SHALL be the sidebar's browser controls, moved: its host is the URL field, and its toggle, back, forward, reload, indicators, pinned extensions and site-controls button are the sidebar's. Every requirement on those controls in other capabilities, including their behaviour, tooltips, VoiceOver labels, highlights, menus and what they act on while a Peek shows, SHALL apply wherever they show.
Expand Down
27 changes: 23 additions & 4 deletions openspec/specs/peek/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ While the Peek preference is on, Shift+clicking a link in a page in a native bro
- **THEN** the link opens in a new window

### Requirement: Peek layout
The Peek SHALL be a card with rounded corners centred over the page card, about 80% of the page card's width and its full height less about 2 points at the top and bottom. Behind it, the parent page SHALL shrink by about 9 points on each side and be washed out toward the window's background colour, in Light and Dark Mode.
The Peek SHALL be a card with rounded corners centred over the page card, about 80% of the page card's width and its full height less about 2 points at the top and bottom. Behind it, the parent page SHALL shrink by about 9 points on each side and be washed out toward the window's background colour, in Light and Dark Mode. In a split, the Peek SHALL be centred over the whole page area, measured as one card, and only its parent's pane SHALL shrink and wash out behind it, as in Arc.

#### Scenario: Peek open
- **WHEN** a Peek is open in a window whose page card is 1723 by 1030 points
Expand All @@ -31,12 +31,20 @@ The Peek SHALL be a card with rounded corners centred over the page card, about
- **WHEN** the user resizes the window with a Peek open
- **THEN** the Peek and the parent page keep their proportions to the card

#### Scenario: A Peek in a split
- **WHEN** the window shows a split and a Peek opens from the trailing pane
- **THEN** the Peek is centred on the page area, about 80% of its width, the trailing pane shrinks and washes out behind it, and the leading pane keeps its size and colour

### Requirement: Peek buttons
A column of round buttons SHALL sit outside the Peek's top-trailing corner, beside the card: Close (×) and then Expand. Each SHALL highlight under the pointer and have a VoiceOver label naming its action, and Arc's tooltip: "Close" with ⌘W, and "Expand" with ⌘O.
A column of round buttons SHALL sit outside the Peek's top-trailing corner, beside the card: Close (×), then Expand, then Open in Split View (`split-view`), as in Arc, which SHALL NOT show while the Peek's parent is in a split. Each SHALL highlight under the pointer and have a VoiceOver label naming its action, and Arc's tooltip: "Close" with ⌘W, "Expand" with ⌘O, and "Open in Split View".

#### Scenario: Buttons shown
- **WHEN** a Peek is open
- **THEN** Close and Expand show in a column beside its top-trailing corner, outside the card
- **WHEN** a Peek is open on a tab that isn't in a split
- **THEN** Close, Expand and Open in Split View show in a column beside its top-trailing corner, outside the card

#### Scenario: A Peek in a split
- **WHEN** a Peek is open on a tab in a split
- **THEN** only Close and Expand show

### Requirement: Peek animation
Opening a Peek SHALL grow the card from the point the user clicked to its full size in about 190 ms, fast at first and then settling, while the parent page shrinks and washes out and the buttons move with the card's corner. Closing it SHALL reverse this toward the same point. With Reduce Motion on, the Peek SHALL fade in and out instead.
Expand Down Expand Up @@ -190,3 +198,14 @@ While the preference for links to other sites is on (`settings-window`), a link
#### Scenario: Pages that navigate themselves
- **WHEN** a pinned tab's page changes its location by script without the user clicking a link
- **THEN** the tab navigates, and no Peek opens

### Requirement: The link status names the Peek
While the Peek preference is on, Shift is held and the pointer rests on a link in a page, the link status (`browser-window`) SHALL read "Open <URL> in Peek", where Shift+click opens it in a Peek. Pressing or releasing Shift while the status shows SHALL update it at once. Inside a Peek, where Shift+click opens a new tab, it SHALL show the URL alone.

#### Scenario: Holding Shift over a link
- **WHEN** the pointer rests on a link to `https://example.com/` and the user holds Shift
- **THEN** the link status reads "Open https://example.com/ in Peek"

#### Scenario: Peek preference off
- **WHEN** the Peek preference is off and the user holds Shift over the link
- **THEN** the link status reads `https://example.com/`
12 changes: 10 additions & 2 deletions openspec/specs/pinned-tabs/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A pinned tab SHALL keep its pinned URL, its page title, its icon and any custom
- **THEN** that page shows as it was, without reloading

### Requirement: Pinned section
Between the Space header and the "New Tab" row, the sidebar SHALL list the Space's pinned tabs in the user's order, with the icon and title each had when last open. A pinned tab whose page isn't open SHALL look like one whose page is open and isn't selected. A divider SHALL separate the pinned section from "New Tab" while the Space has Today tabs.
Between the Space header and the "New Tab" row, the sidebar SHALL list the Space's pinned tabs, and its pinned splits as split rows (`split-view`), in the user's order, with the icon and title each had when last open. A pinned tab whose page isn't open SHALL look like one whose page is open and isn't selected. A divider SHALL separate the pinned section from "New Tab" while the Space has Today tabs.

#### Scenario: Pinned and Today tabs
- **WHEN** a Space has the pinned tabs "Mail" and "Docs" and two Today tabs
Expand All @@ -31,6 +31,10 @@ Between the Space header and the "New Tab" row, the sidebar SHALL list the Space
- **WHEN** "Mail" is pinned in "Work" and the window shows "Home"
- **THEN** the sidebar doesn't list "Mail"

#### Scenario: A pinned split
- **WHEN** "Work" has the pinned tab "Mail" and then a pinned split of "News" and "Docs"
- **THEN** the pinned section lists "Mail" and then one row holding a "News" chip and a "Docs" chip

### Requirement: Pinning and unpinning
Tabs › Pin Tab (Cmd+D) and Pin Tab in a Today tab's menu SHALL pin the tab at the bottom of the pinned section, keeping its page and its selection. On a pinned tab, the item SHALL read Unpin Tab and SHALL move the tab to the top of the Today tabs, keeping its page, or opening it if closed, and its custom name. The pinned URL SHALL be the page's URL when it was pinned.

Expand Down Expand Up @@ -149,7 +153,7 @@ A pinned tab's menu SHALL offer Edit Pinned Page › with "Replace Pinned URL wi
- **THEN** Save is disabled

### Requirement: Pinned tab menu
A pinned tab's context menu SHALL offer Copy Link, Rename…, Mute or Unmute, Edit Pinned Page ›, Duplicate, Move to Space (with more than one Space), Pin to Favorites and Unpin Tab, and no Remove Pin. Copy Link SHALL copy the page's current URL, or the pinned URL while the page is closed. Duplicate SHALL open the same URL as a new Today tab at the top.
A pinned tab's context menu SHALL offer Copy Link, Rename…, Mute or Unmute, Edit Pinned Page ›, Duplicate, Split with Tab › (`split-view`), Move to Space (with more than one Space), Pin to Favorites and Unpin Tab, and no Remove Pin. Copy Link SHALL copy the page's current URL, or the pinned URL while the page is closed. Duplicate SHALL open the same URL as a new Today tab at the top.

#### Scenario: Copy Link on a closed pinned tab
- **WHEN** the pinned tab "Mail" has no open page and the user chooses Copy Link
Expand All @@ -163,6 +167,10 @@ A pinned tab's context menu SHALL offer Copy Link, Rename…, Mute or Unmute, Ed
- **WHEN** the user right-clicks a pinned tab
- **THEN** the menu ends with Pin to Favorites and Unpin Tab

#### Scenario: Split with Tab
- **WHEN** the user right-clicks the pinned tab "Mail" and chooses Split with Tab › "News"
- **THEN** the window shows a split of "Mail" and "News", "News" focused

### Requirement: Collapsing the pinned section
While the Space has pinned tabs, hovering the Space header SHALL show a chevron at its leading edge, sliding the name aside as in Arc; without pinned tabs the header shows no chevron. Clicking it or anywhere else on the header, or View › Collapse Pinned Tabs, SHALL hide the pinned rows except the active one, and turn the chevron to point sideways, shown without hover. Clicking it again or View › Expand Pinned Tabs SHALL show them. Each Space SHALL remember the choice across windows and launches.

Expand Down
Loading