Skip to content

Concepts ​

Short definitions of the building blocks. Each one is implemented and tested on all three cores in the prototypes; names and shapes may still change.

Resources ​

A resource wraps a model and declares how it is listed, edited and viewed:

  • Form — typed fields (text, number, select, relationship select, file, …). Validation runs on the server; a 422 maps each error to its field.
  • Table — columns, sorting, search, filters, pagination and summaries. Only sorts and filters the resource declares are accepted; anything else is a 422.
  • Infolist — a read-only view of a record.
  • Actions — see below.

Access is checked on the server for the resource, each record, each field and each action. A field can be hidden or read-only per user; a hidden field disappears from the schema, rows and records, and input for it is ignored. Records are always loaded through the resource's policy scope, so other users' rows are simply not found.

Pages ​

A page is a tree of blocks — section, grid, tabs, table, form, actions, metric — sent as schema and rendered by the one frontend renderer. The server filters the tree by the user's permissions. A resource's own list, create, edit and view screens are default page trees; you can replace or extend them. Tables can be linked as master-detail, and relation managers are tables limited to a parent record.

A custom page is a pair: your own API under /panel/pages/{page}/* (behind the panel's auth and CSRF) plus your own Vue page. It gets the same menu entry, permissions and typing as a resource.

Actions ​

An action is a command: on one record, on a selection (bulk), or standalone. It may carry its own form, and its result can tell the UI what to do next (show a message, open a record).

  • Permission is checked before the record is even looked up.
  • A bulk action authorizes each record individually; refused or failed records are reported, not fatal. The result is { total, succeeded, failed, failures }.
  • Each record change runs in a database transaction.

Import and export (CSV / XLSX) are built-in standalone actions.

Runs ​

A queued action returns 202 with a run id immediately; the work goes to the framework's queue and is done by a separate worker, one job per record. Poll GET /panel/runs/{run} for progress. Each record is changed exactly once, even if a worker dies mid-run: the change and its result are written in one transaction. A run can carry a file (for example, an export).

Notifications ​

The server stores notifications per user (for example, "your run finished"). The frontend either polls GET /panel/notifications or, when the backend has a Reverb (Pusher-protocol) server, receives them on a private channel. Realtime is a backend capability, not a requirement; bootstrap tells the client which mode to use.

Experimental. Not ready for production use.