Skip to content

Build an app

Author a validated JSON app with the Arc component catalog.

Updated

New Run apps use JSON rendered by CloudRaker Agent UI. The component catalog uses Arc controls and design tokens. Keep workflow rules, review fields and message templates in the project. Reuse catalog controls instead of adding a shared component for one customer.

Project files

Create apps/<slug>.json for the body and apps/<slug>.yml for its stable id, audience, table grants and actions. When migrating an app, keep its id and remove the HTML body of the same slug. Some CLI versions generate HTML starters. Replace that body with JSON for a new app.

A small body can list the records of a table:

{
  "version": 1,
  "title": "Claims",
  "home": "list",
  "pages": {
    "list": {
      "title": "Claims",
      "root": "page",
      "queries": { "claims": { "table": "claim" } },
      "elements": {
        "page": { "type": "Page", "props": { "title": "Claims" }, "children": ["table"] },
        "table": { "type": "DataTable", "props": { "rows": { "$state": "/queries/claims/rows" }, "columns": ["reference", "status"] } }
      }
    }
  }
}

Declare claim in the metadata’s tables.read grant. Give writes only to the tables and roles that need them. Use Input, Select, Textarea, DataTable and RecordForm for workflow forms. Use one catalog action per event. A record write can continue with one then action. Keep editable values in app state so interface changes preserve corrections.

The catalog is closed. Do not embed HTML, custom React, JavaScript or CSS in a JSON app. Validate the app against the deployed catalog before publication. The same validation runs when the app opens.

Document sources

Use DocumentViewer for attachments and field highlights. Store original file ids, source run ids, rendered page ids and exact Paperwork citations. Keep signed URLs in runtime memory only. Read Files for grounding and page-number conventions.

Human review

Keep human approval records separate from agent drafts. Give only reviewers write access to approval records. Before execution, validate the current source revision, reviewed facts, destination and exact message content. New source information must invalidate an earlier approval. For real external effects, use authoritative reads and transactional authorization and idempotency.

Test the native app at desktop and phone widths, in both themes. Check each supported interface language independently from the document or message language. HTML apps remain a legacy compatibility format. Build new apps with JSON and the Arc catalog.

Type to search…

↑↓ navigate↵ selectEsc close