Have an app say a scene

An app joins by adding one read that answers a scene and one row that lists it. Dynamic UI asks the app over its own door and shows what it answers.

Add the read

The read takes no more than which thing is open and which form, and answers a scene built from what the app already holds. This is Creator Tracker’s, the first app to join.

The read, in the app’s operation list
"creator-tracker.scene": define(
  "How the creators followed connect, said as a scene another screen can show (hopper.dynamic-ui.scene.v1): each creator a person with what is held about them, each organization the graphs hold a thing of its own, who names whom with the post that says so. With `open`, that creator's posts and own places come with them. Nothing is in it that `connections`, `insights`, `pictures.list` and `creator.detail` do not already answer.",
  z.strictObject({ open: Slug.optional(), form: z.enum(FORMS).default("ring") }).prefault({}),
  Scene,
),

List it

Dynamic UI keeps the apps it can ask as data. A new app is a new row, not new code.

config/sources.json
{
  "app": "creator-tracker",
  "title": "Creator Tracker",
  "operation": "creator-tracker.scene",
  "says": "How the creators followed connect: who names whom, the organizations the graphs hold, and each creator's posts and own places.",
  "opens": {
    "input": "open",
    "prefix": "creator:"
  }
}

Opening a thing

When a person opens a thing whose id begins with the row’s prefix, Dynamic UI asks the app again with that thing as open. The app answers the same scene with the thing’s parts in it, and they arrive out of it on the stage. The parts were never sent until someone asked for them.

What holds

  • The app is asked over its own door while it runs. Its code and its records are never reached into.
  • The scene says only what the app’s other reads already answer.
  • A scene that does not read is refused whole, with the app’s name and the code.