> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pult.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Views

> Saved slices of an inbox for the whole team.

A view is a filtered, sorted slice of one inbox that everyone sees in the sidebar:

```ts theme={null}
import { view } from "pult"

export const unassigned = view("unassigned-reports", {
  label: "Unassigned reports",
  inbox: reports,
  filter: { state: "open", assignee: "none" },
  sort: "-lastSeen",
})

export const regressions = view("regressions", {
  inbox: crashes,
  filter: { tags: ["regressed"], state: "open" },
  layout: "table",
  columns: ["title", "occurrences", "users", "lastSeen"],
})
```

`filter` takes:

* `state`: one state or a list.
* `tags`: items must have all of them.
* `assignee`: `"me"` for whoever's looking, or `"none"`.
* `triaged`: only items triage closed on its own.
* `search`: words in the title.

`sort` is `lastSeen`, `firstSeen`, `occurrences`, `users`, `title` or `due`, with a `-` in front for descending. `layout` and `columns` work like an inbox's and default to it.

People can also save their own filters as personal views from any list. Those stay theirs and don't need a deploy.

To count or list a view's items on a page, use `b.count(view)` and `b.items(view)`. See [Pages](/build/pages).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.