Skip to content

Screens

One inbox for every member's message

A shared inbox puts every email, web form and SMS from members in one list, newest first, with the newest new message already open beside it. When a message is about a booking, the booking sits above the thread with Move and Cancel, and either one writes the reply for the desk to send.

By Bohuslav PoláčekChecked

The desk's messages at 10:24 as the demo shows them, rendered from the kit when the site was built, with a member's request to move her booking open.

Open it in the live demo An app for a sports club

What the screen shows

  • The list: Open, New, Mine and Resolved with their counts, then a row per conversation: who wrote and when, the subject, the last message, the channel, the booking it is about and who has it. A blue dot marks a new one.
  • The thread: the subject, the member with the channel and the address the reply goes to, the state as a glyph and a word (New, In progress, Resolved), Assign and Resolved.
  • The booking card: the court in its colour, the time, paid or unpaid, the booking's own state, Move and Cancel.
  • The reply box under the thread: the channel and the member it goes to, Templates, and the send button inside the field.

Open on arrival

From 1024px a conversation is always open beside the list: the newest new message, else the first one shown, so the desk starts by reading, not by clicking. The list and the thread scroll on their own and the reply box stays under the thread; the page itself never scrolls. The filter and the open message live in the address, so a link opens the same view.

Under 1024px the inbox is the list alone. A message covers it with a way back, its subject becomes the page's title, and the booking card puts its state and buttons on a second row.

Acting on the booking from the message

  • Move lists the free start times on the same court for the same length. Picking one moves the booking and puts a reply in the box saying where it went; it does not send it.
  • Cancel asks first, with a reason that is required, then cancels the booking and puts the reply in the box.
  • Templates fill the box and never send.
  • Send is Cmd or Ctrl and Enter, or the button in the field. Enter alone starts a new line, so an email or an SMS never goes out half written.
  • Assign hands the conversation to a colleague and Resolved closes it. Two conversations closed one after the other, faster than the network answers, both stay closed.

The end-to-end tests in e2e/desk.spec.ts walk each of these, from "a reply goes out with Cmd or Ctrl and Enter" to "a template fills the reply box but never sends it".

Who can do what

Answering, assigning and resolving ask can("desk.reply"); moving and cancelling the booking ask can("desk.book"). The site manager and the front desk have both. The court keeper reads the day and the messages but sees no reply box and no buttons on the booking, and a test walks the screen as him to make sure.

What AI coding tools get wrong here

Asked for a support inbox, a coding assistant tends to build a page that scrolls as a whole, an empty pane until something is clicked, Enter that sends, coloured pills for the state, and the booking on another screen with its own search.

In Meadowstack the inbox is one of the kit's 9 screen types: <Screen archetype="inbox"> lays out the list, the thread and the reply box and decides what a phone shows (the inbox pattern). Composer sends with Cmd or Ctrl and Enter, a list with a reading pane opens with the most interesting item already open, and a state is a glyph and a word (StatusLabel). This screen is the kit's own sample of the inbox type: docs/patterns.md names it, and the runtime audit in e2e/screens.spec.ts checks it.

Moving the booking writes the reply

apps/demo/src/modules/desk/components/conversation.tsx
<MoveBooking
  booking={booking}
  courtName={booking.court?.name}
  onMoved={(moved) => {
    onChange((current) => ({ ...current, booking: { ...moved, court: booking.court } }));
    onDraft(
      `${tx("Dobrý den, rezervaci jsme posunuli", "Hello, we have moved your booking")}: ${booking.court?.name ?? tx("kurt", "court")}, ${time.format(new Date(moved.start))} ${tx("až", "to")} ${time.format(new Date(moved.end))}. ${tx("Těšíme se na vás.", "We look forward to seeing you.")}\n${signature}`,
    );
    toast.success(
      tx(
        "Rezervace je přesunutá. Odpověď členovi je připravená dole.",
        "Booking moved. A reply to the member is ready below.",
      ),
    );
  }}
/>
In the demo a time picked under Move changes the booking, puts a reply in the box and says so; sending stays with the person.

Where to open an inbox screen

The example apps whose code renders an inbox screen, read from the demo's source.Read from the demo's source when the site was built: 4 of 9 example apps render a <Screen archetype="inbox">. Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline.

Questions

Does Enter send the reply?

No. Cmd or Ctrl and Enter sends, as does the button inside the field. Enter alone starts a new line, so an email or an SMS never goes out half written.

What happens when a member asks to move a booking?

The booking sits above the message. Move lists the free start times on the same court, picking one moves the booking and writes the reply into the box, and the desk sends it after reading it.

Can a message be handed to a colleague?

Yes. Assign hands it to someone at the desk, whose first name then shows on its row, and Mine lists what is yours.

What does the shared inbox look like on a phone?

A list. A message covers it with a way back, its subject becomes the page's title, and the booking card puts its state and buttons on a second row.

Who can answer members?

The site manager and the front desk. The court keeper reads the messages but sees no reply box and no buttons for the booking.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app