# Overviews

## Summary

Each level of the app opens on its Overview: one page of cards that shows how
things stand and links to where to act.

- **A workspace's Overview**, titled with the workspace's name, shows its
  first steps until it has a website, then the website's verdict (up or
  down, health score, the top of this week's fix list), and its files by
  status.
- **The organization's Overview** shows a card for every workspace you reach,
  each with its website and its files, and a side column with what needs
  attention across them: websites that are down, and the organization folder.

The Overviews only read. Every number on them comes from Site health and
Files & Assets, and every card links to the page where you change things.

## Who can do what

| Action | Owner | Admin | Member | Credential (scope) |
| --- | --- | --- | --- | --- |
| Open a workspace's Overview | Yes | Yes | Workspaces they are in | Not applicable |
| Open the organization's Overview | Yes | Yes | When they are in at least one workspace | Not applicable |
| See a workspace's card on the organization's Overview | Every workspace | Every workspace | Workspaces they are in | Not applicable |
| Read the organization's files summary | Yes | Yes | Yes, for the workspaces they reach | Yes (`files:read`), for the workspaces it names |
| Read the organization's websites | Yes | Yes | Yes, for the workspaces they reach | Yes (`websites:read`), for the workspaces it names |

## How it works

- "Overview" is the first item of the sidebar at both levels. Opening a
  workspace (`/w/{workspaceID}`), signing in and creating an organization
  open the workspace's Overview. Opening the organization
  (`/o/{organizationID}`) opens the organization's Overview.
- "Go to Overview" (G then O) opens the Overview of the level shown.
- Both pages are named "Overview" in the sidebar, the tab and the browser
  title. The workspace's Overview is headed by the workspace's name and
  mark, with its organization below; the organization's is headed
  "Overview". The workspace switcher at the top of the sidebar names the
  level: the workspace with its organization below it, or the organization
  alone.
- **Workspace Overview, "Get {workspace} running" panel.** Shown while the
  workspace has no website: four steps with how many are done. "Create the
  workspace" is done. "Add your website" offers "Add website", which opens
  Site health's setup, to owners and admins; members read "An owner or
  admin adds it". "Upload brand files" is done once the workspace has a
  file, else offers "Upload files". "Connect your agent" is done once you
  have a connected app, else offers "Connect", which opens your connected
  apps. Once the website is added, the "Website" panel takes its place.
- **Workspace Overview, "Website" panel.** With a website: its state ("Up",
  "Down 12 min", "Not verified", "Paused", "Not probed yet" or "Failing"),
  the host, the health score with its change this week ("Not checked yet"
  before the first crawl), and "Open site health" ("Verify ownership" while
  it is not verified), which opens the website's Site health. Beside them,
  "This week's fixes": the first three items of this week's fix list, each
  with a dot for its severity, and the number still open. Before the first
  list it reads "First fix list {Monday's date}." ("No fix list yet." while
  paused or not verified); an empty list reads "Nothing to fix this week.".
  The panel is coloured like the website's verdict on its Site health
  Overview: dark from a score of 90, amber below or while a check fails,
  grey without a score or while paused or not verified, red while down.
- **Workspace Overview, "Files & Assets" card.** The workspace's live files
  by status, the same counts as the Statuses card in Files & Assets. Its
  heading carries the file count, which opens Files & Assets, and, when
  there are any, the open suggestions ("2 suggestions to decide"), which open
  the suggestions.
- **Organization Overview, workspace cards.** One card per workspace you
  reach, by name. The card's heading opens the workspace's Overview. Under it:
  the website's host, state, change in health, health ring, 30 days of
  uptime and "{share}% up, 30 days · {ms} ms", or "No website watched" with
  "Add website"; then the file count and the open suggestions.
- **Organization Overview, side column.** First an alert for each website
  that is down ("{name} is down", since when and for how long), linking to
  its Site health. Then "Organization folder" with its file count and open
  suggestions.
- File counts count live files only; files in the trash are left out.
  "Suggestions to decide" counts suggestions that are still open: neither
  closed nor expired.
- Website numbers refresh every 30 seconds while the page is open. File
  numbers refresh when files change in this browser, and when the page is
  opened again.
- Each card reads its own data. When one read fails, that card shows the
  error with "Retry" and the others still show.

## In the app

1. Sign in, or choose a workspace in the workspace switcher: its Overview
   opens.
2. To see every workspace, choose "Organization" under "Give feedback",
   or the organization in the workspace switcher. Its Overview opens.
3. Choose a workspace card's name to open that workspace's Overview.

## For agents

The Overviews are built from two organization-level reads. Both list only
the workspaces the caller reaches, and for a credential only the workspaces
it names.

| Operation | Capability | MCP tool | Scope |
| --- | --- | --- | --- |
| `GET /v1/organizations/{organizationID}/files/summary` | `organization.files.summary` | `organization_files_summary` | `files:read` |
| `GET /v1/organizations/{organizationID}/site-health` | `organization.site_health.get` | `organization_site_health_get` | `websites:read` |

`organization_files_summary` answers `{items: [...]}`: the organization folder
first (`workspaceID` null, named after the organization), then each workspace
by name. Each item has `fileCount` (live files) and `openSuggestionCount`
(open suggestions).

```sh
curl -s "$TALEWRIGHT/v1/organizations/$ORGANIZATION_ID/files/summary" \
  -H "Authorization: Bearer $TOKEN"
```

```json
{
  "items": [
    {"workspaceID": null, "name": "Test Co", "fileCount": 1, "openSuggestionCount": 0},
    {"workspaceID": "0192...", "name": "Main", "fileCount": 4, "openSuggestionCount": 1}
  ]
}
```

## Edge cases

- **A member in one workspace.** The organization's Overview shows that
  workspace's card only, and the organization folder, which every member
  reads.
- **A key that names some workspaces.** The files summary lists the
  organization folder and those workspaces only, even when its member
  reaches more.
- **A workspace without files.** Its card reads "0 files".
- **A website that is not verified.** On the organization's Overview the
  ring reads "-" and the uptime bars stay empty until it is verified and
  probed. The workspace's "Website" panel is grey, reads "Not checked yet"
  and offers "Verify ownership".
- **A website down while you look.** The alert appears in the side column
  within 30 seconds, without a reload.

## Errors

| Code | Status | Meaning | What to do |
| --- | --- | --- | --- |
| `UNAUTHENTICATED` | 401 | No valid session or credential | Sign in again, or use a valid key |
| `FORBIDDEN` (`INSUFFICIENT_SCOPE`) | 403 | The credential lacks `files:read` or `websites:read` | Use a key with the scope |
| `NOT_FOUND` | 404 | The organization does not exist, or you are not a member | Check the organization ID |

## Questions and answers

### Why does my workspace open on Overview and not on Files & Assets?

Overview is each level's home: it shows the website and the files together,
with links into both. Files & Assets is one click away in the sidebar (G
then F).

### Why do I not see every workspace on the organization's Overview?

Owners and admins see every workspace. Members see the workspaces they are
in. Ask an owner or admin to add you to a workspace.

### Is anything on the Overviews editable?

No. They read and link. You change files in Files & Assets and websites in
Site health.

## Related pages

- [Organizations, The organization level](organizations.md#the-organization-level)
- [Site health](../websites/site-health.md)
- [Statuses](../files/statuses.md)
- [The organization folder and suggestions](../files/library-and-suggestions.md)
