# Website

> The browser tab inside AirBuild: a Project's list of websites and development servers, and any web page, artifact or site you open, with its address bar, zoom and Select Element.

Source: https://air.build/docs/screens/website/sites/

Website is a browser inside AirBuild, opened as a tab in a chat's [inspector](https://air.build/docs/screens/shell/inspector/). In a Project's chat it starts on the Project's list of websites and the development servers your Agents are running; tap one and the tab shows the page, with an address bar, back and forward, zoom and **Select Element**. Every web page, artifact and development server you open from a chat is a Website tab of its own.

The walk-through (getting a site built, the Support and Privacy pages for App Review) is the Guide [Publish your app's website](https://air.build/docs/services/publish-a-website/).

## Open it

**iPhone**

- In the Project's chat, tap the tabs button (four squares) in the top-right corner, and in the list under the tab cards tap **Website**. See [Tab overview](https://air.build/docs/screens/shell/tab-overview/).
- On the [New Tab](https://air.build/docs/screens/shell/new-tab/) page, tap **Website** (in the **Growth** group in a Project's chat; under **Agent** in a DM with an Agent).
- In a DM, a group or an Agent's DM, type an address in the New Tab page's **Enter a URL** field and tap **Go**.

On iPhone the tab is a page over the chat: go back to the chat with the back button or a swipe from the left edge. An iPad window too narrow for two columns works the same way.

**On iPad** at full width, tap **Show Inspector** at the right end of the chat's toolbar, tap **New Tab** (**+**) and tap **Website**. The tab opens beside the chat.

**Mac**

- In the Project's chat, choose **View › Go To › Website**.
- Or open the inspector (**View › Show Inspector**, ⌥⌘I), click **New Tab** (**+**) and click **Website** (in an Agent's DM it's under **Tools**). In an Agent's DM, a page you opened before is also under [Recently Opened](https://air.build/docs/screens/shell/new-tab/#recently-opened-mac) on the New Tab page.

The tab opens beside the chat.

These open a page straight in a new Website tab, in any chat:

| Where | What you tap |
| --- | --- |
| An [Artifact](https://air.build/docs/cards/artifact/) card, or a tile in the Project's **Artifacts** tab | The card, or **Open** in its menu. The tab is named after the artifact. |
| A [Service](https://air.build/docs/cards/service/) card, or the list of services over the composer | **Open** (or **Open :3000** and so on, one per port). |
| The **Hosting** tab | A service's address. See [Host your app's backend, database and sign-in (AirHost)](https://air.build/docs/services/host-a-backend/). |
| A link on a web page that opens a new window | The link opens in a new Website tab beside the one you're in. |

If a tab is already showing that address, AirBuild selects that tab instead of opening a second one. On the Mac, ⌘-click opens the tab behind the one you're looking at, as in Safari.

Outside a Project (a DM or a group), with **Open Links in Default Browser** turned on in Settings › [General](https://air.build/docs/settings/general/), these open in your default browser instead. Ordinary links in messages are not Website tabs: on iPhone and iPad they open in the [In-app browser](https://air.build/docs/screens/shell/in-app-browser/), on the Mac in your default browser.

## The website list

In a Project's chat, a new Website tab shows the Project's list first. Top to bottom:

| Item | What it shows or does |
| --- | --- |
| **Websites** | The Project's sites, in order. Each row: the site's icon (or its first letter on the site's color until the icon has been read), its title, and its address without `https://`. Tap a row to open the site in this tab. |
| **Add Website…** | The last row of **Websites**. Opens [New Website](https://air.build/docs/screens/website/edit-site/). |
| **Development Servers** | Servers your Agents are running in the Project right now, one row per port: the service's name and its port, for example ":3000". Tap one to open it. Shown only while at least one is running; rows come and go with the Agents' work. |

The list is the same for everyone in the Team, and it's the one your Agents keep with the [website](https://air.build/docs/cli/website/) command: what they add appears here, and what you change, they see. Each time the list shows, AirBuild asks for the sites' pages to be read again, so icons and colors stay current.

A site whose address AirBuild can't open does nothing when tapped, and its menu has no **Open in Browser** or **Copy Address**.

While the list loads for the first time it shows three placeholder rows. On iPhone and iPad, pull down to read it again.

### Row menu

Touch and hold a row (on the Mac, right-click it):

| Item | What it does | On |
| --- | --- | --- |
| **Open in Browser** | Opens the address in your default browser. | Sites and servers |
| **Copy Address** | Copies the full address. | Sites and servers |
| **Edit…** | Opens [Edit Website](https://air.build/docs/screens/website/edit-site/) to change the title or address, or delete the site. | Sites |
| **Move Up**, **Move Down** | Moves the site one place. Dimmed at the top or bottom of the list. Does nothing while a site you just added is still being saved. | Sites |
| **Delete Website** | Asks **Delete Website**: "The site stays online. It only leaves this list." Tap **Delete** to take it off the list. | Sites |

Changes show at once. If AirBuild can't save one, it's undone and a line under the **Websites** card says why (see [Messages](https://air.build/docs/screens/website/sites/#messages)).

### No websites yet

When the Project has no sites and no development server is running, the tab shows **No Websites Yet**: "Ask the agents in the project chat to find or build the project's website. Every site they record appears here." The **Add Website…** button under it opens [New Website](https://air.build/docs/screens/website/edit-site/).

### Outside a Project

In a DM, a group or an Agent's DM there's no list. On iPhone and iPad, a Website tab opened with nothing in it shows the address field **Enter a URL**, with "Enter a web address, or open a page or document from the chat" under it. On the Mac the address field is in the row over the tab, and the tab shows the chat's New Tab page under it; going back past a tab's first page shows it too.

## The page

Once a page is open, the tab shows it with a browser's controls. Where they are depends on the device.

**iPhone**

The page fills the screen under the bars. As you scroll down, the bars shrink out of the way, as in Safari; tap the site's name at the foot to bring them back.

**The row at the foot** (the inspector's tab row):

| Item | What it does | When it shows |
| --- | --- | --- |
| **Back** (‹), at the left | Goes back a page. From the first page it goes back to the website list. On the list of a Project's Website you opened from an Agent's DM, it goes back to the Project's page you came from. | Once there's somewhere to go back to |
| Page name, in the middle | The page's icon and title (its domain until the title loads). Tap it to type an address: a field **Enter a URL** opens across the foot with the whole address selected. Type and tap **Go**; the ✕ before it, or tapping away, closes it. | Always |
| **Reload** (↻), at the end of the name | Loads the page again. While a page loads it's **Stop** (✕). | Once a page is open |
| **Select Element**, at the right | Starts [Select Element](https://air.build/docs/screens/website/select-element/). Lit while it's on. | On a page, not on the list |

A thin line at the top of the page shows the load's progress.

**More** (**⋯**, top-right corner, once a page has been opened in the tab):

| Item | What it does |
| --- | --- |
| **Websites** | Goes to the website list, or back to the page from the list. |
| **Forward** | Goes forward a page. Dimmed when there's none. |
| **Open in Browser** | Opens the page in your default browser. |
| **Copy Address** | Copies the page's full address. |
| **Share** | Opens the share sheet with the address. |
| **Page Zoom** | Shows the current zoom (for example "100%"). Inside: **Zoom Out**, the percentage (tap it to go back to 100%) and **Zoom In**. **Zoom Out** is dimmed at 50%, **Zoom In** at 300%. The menu stays open while you press them. |
| **Who Can View** | On an artifact's page. Shows once AirBuild has checked that you can see the artifact. **Everyone in** _Team_ or **Anyone with the Link**, with a tick on the current one. Choose one to change who can open the page. See [Who can view an artifact's page](https://air.build/docs/screens/website/sites/#who-can-view-an-artifacts-page). |

On an artifact's page that isn't open to anyone with the link, **Share** adds a line to the link: "Only people in _Team_ can open this link."

**Mac**

In a Project's chat, a row over the page, left to right:

| Item | What it does | When it's dimmed |
| --- | --- | --- |
| **Websites** (four squares) | Switches between the website list and the page you were on. Lit while the list shows. | While no page has been opened in the tab |
| **Back** (‹) | Goes back a page; from the first page, to the website list. | On the list, with no page history |
| **Forward** (›) | Goes forward a page. | When there's no page to go forward to |
| Address | A lock (for `https`) or a globe, then the address without `https://`. Click it to see and type the full address; press Return to go there. Leaving the field without Return puts the page's address back. | — |
| Zoom (for example "125%") | Shows the page's zoom; click it to go back to 100% (**Reset to Actual Size**). | Shown only while the zoom isn't 100% |
| **Select Element** | Starts [Select Element](https://air.build/docs/screens/website/select-element/). Lit while it's on. | On the list, or before a page is open |
| **Reload** (↻) | Loads the page again. While a page loads it's **Stop** (✕). | Before a page is open |
| **Open in Browser** | Opens the page in your default browser. | Before a page is open |
| **Share** | The share menu, with the address. On an artifact's page that isn't open to anyone with the link, it adds "Only people in _Team_ can open this link." | Before a page is open |

A line under the row fills while a page loads.

The row has no **Who Can View**: on the Mac it's in the tab's right-click menu in the [inspector](https://air.build/docs/screens/shell/inspector/). See [Who can view an artifact's page](https://air.build/docs/screens/website/sites/#who-can-view-an-artifacts-page).

**Zoom** works on the page while you're in it (after clicking the page): **View › Zoom In**, **View › Zoom Out** and **View › Reset to Actual Size**. With the keyboard anywhere else, the same keys change the size of AirBuild's text instead.

In a DM, a group or an Agent's DM (a Project's Website opened from there too), the row over the page is shorter, left to right: **Back**, **Forward**, **Reload** (**Stop** while a page loads), the address (the domain at rest, the full address while you type; ⌘L puts the cursor in it), **Open in Browser** and **Share**. It has no **Websites** button, no zoom percentage and no **Select Element**. From a Project's Website, **Back** past the first page shows the Project's sites.

**On iPad**, and on iPhone Duo's inner display, the controls are a floating bar at the foot of the page, left to right: **Websites** (four squares), **Back**, the address (as on the Mac: tap it to type, **Go** to open), **Select Element**, **Reload** (or **Stop**) and **More** (**⋯**). **More** holds **Forward**, **Page Zoom**, **Open in Browser**, **Share** and **Copy Address**, and **Who Can View** on an artifact's page. When the pane is narrow, **Select Element** and **Reload** move into **More**, at its top, and the address shows only the domain. A line under the bar fills while a page loads.

### Keyboard

- On the Mac, in a Project's chat, ⇧⌘C presses **Select Element**.
- On the Mac, with the keyboard in the page, ⌘+ or ⌘= chooses **View › Zoom In**, ⌘− chooses **View › Zoom Out** and ⌘0 chooses **View › Reset to Actual Size**. In a DM, a group or an Agent's DM, Zoom In is ⌘+ only.
- On the Mac, in a DM, a group or an Agent's DM, ⌘L puts the cursor in the address field.
- In the address field, Return goes to the address you typed (on the Mac); on iPhone and iPad, **Go** does.
- On iPhone and iPad, with a keyboard, ⌘[ presses **Back**.
- On the Mac, ⌘-click on a link to an artifact, a service or a page opens its Website tab behind the one you're looking at.

### Typing an address

Type a full address (`https://example.com/pricing`) or just the site (`example.com`): an address without `http://` or `https://` gets `https://` in front. An address with spaces, or one that isn't a web address, does nothing.

### Zoom

Page zoom lays the page out larger or smaller, from 50% to 300%, in Safari's steps. AirBuild remembers the zoom for each site, on this device: the next page from that site opens at the same zoom. A site you never zoomed opens at 100%.

### Tabs and their names

Each Website tab is its own browser, with its own history. Its name in the inspector is the artifact's title when it was opened from an artifact (while it still shows that page), else the page's title, else the site's domain while the page loads. The page in each tab stays as you left it when you switch tabs or chats, and AirBuild reopens it after a relaunch.

## Who can view an artifact's page

On an artifact's page, **Who Can View** sets who can open it. It shows once AirBuild has checked that you can see the artifact.

Where it is: on iPhone, in **More** (**⋯**) at the top right; on iPad, in **More** (**⋯**) on the floating bar and in the tab's menu in the inspector's strip; on the Mac, in the tab's right-click menu in the inspector. It's also on the [Artifact](https://air.build/docs/cards/artifact/) card's menu and on the Project's [Artifacts](https://air.build/docs/screens/artifacts/gallery/) tab.

The choices, the question the app asks and what happens when AirBuild doesn't accept a change are described in [Artifact](https://air.build/docs/cards/artifact/#who-can-view-it).

## Messages

| Message | When it shows | What to do |
| --- | --- | --- |
| **No Websites Yet** | The Project has no sites and no development server is running. | Ask your Agents in the Project's chat, or tap **Add Website…**. |
| A reason with **Try Again**, in the **Websites** card | The list couldn't be read. | Tap **Try Again**. |
| "The website couldn’t be saved." | A site you added or edited wasn't saved; the list shows it as it was. | Try again. Sometimes the line gives the reason instead, for example that the address isn't accepted; fix that in [Edit Website](https://air.build/docs/screens/website/edit-site/). |
| "The website couldn’t be removed." | A deleted site came back. | Delete it again. |
| "The order couldn’t be saved." | **Move Up** or **Move Down** was undone. | Try again. |
| **Delete Website**: "The site stays online. It only leaves this list." | You chose **Delete Website**. | **Delete** to remove it from the list. To take the site itself offline, ask your Agents. |
| "Enter a web address, or open a page or document from the chat" | An empty Website tab outside a Project, on iPhone and iPad. | Type an address in **Enter a URL**. |
| **Let Anyone with the Link View This Page?** or **Couldn’t Change Who Can View** | After a choice under **Who Can View**. | See [Artifact](https://air.build/docs/cards/artifact/#who-can-view-it). |

A page that fails to load (no connection, a wrong address) shows nothing new: the tab keeps the page it had, or stays empty. Check the address and tap **Reload**. The app doesn't show the reason a page failed.
