Moss · API

verifyApp

Runs the check a boot runs, for an app that is not booted: the charter with each role’s closure audited, every entry’s reach, and the layout variants. A boot refuses an app whose errors is not empty. Example: the programme gains a button that opens seats, which guest and usher are not granted; that is no error, and the closure audit lists it under both roles.

Programme action
{
  id: 'programme',
  layout: {
    component: 'Stack',
    children: [
      { component: 'Text', children: 'programme' },
      {
        component: 'Button',
        ref: 'book',
        children: 'Book seats',
      },
    ],
  },
  triggers: [
    {
      event: 'ui:click',
      ref: 'book',
      do: [{ push: { action: 'seats' } }],
    },
  ],
}
Calls
verifyApp(app, grants)
Errors
none
Closure issues per role
{
  guest: [
    'programme: step pushes action "seats" which is not in the catalog',
  ],
  member: [],
  usher: [
    'programme: step pushes action "seats" which is not in the catalog',
  ],
  manager: [],
}
Output matches the expected value

Computed when this site was built, by the installed package, which does not run in a browser. The site’s checks recompute it on every change.