Default app layout

Every app renders into AppShell. Pages provide a title, views, actions and content; the shell provides everything else.

Use AppShell

---
import AppShell from '@gope/ui/AppShell.astro';
import Icon from '@gope/ui/Icon.astro';
const views = [
  {href: '/apps/plan/calendar', label: tr('Calendar'), icon: 'calendar', current: true},
  {href: '/apps/plan/tasks', label: tr('Task board'), icon: 'board'},
];
---
<AppShell app="plan" title="Calendar · Gope" heading={tr('October')}
          meta={tr('{count} appointments', {count})} views={views} viewsLabel={tr('Plan views')}>
  <Fragment slot="actions">
    <button class="gp-button" type="button"><Icon name="plus"/>{tr('Add appointment')}</button>
  </Fragment>
  <section class="gp-card">…</section>
</AppShell>

Optional props: crumbs for detail pages, header to hide the page header, bare for signed-out pages. Use the sidebar slot for browse-first modules such as Docs or Files.

Shell anatomy

ElementRule
Content surfaceOne white surface clipped around the dock with 8 px clearance. It scrolls inside; the page never scrolls behind it.
Dock unit44 × 44 px controls with 8 px gaps. Hover scales to 1.04, press to 0.97. Labels appear as tooltips.
PinsUp to six apps or views, chosen and ordered by each person. Stored per account in this browser.
Workbench148 px shelf (three units plus two gaps). Opening it lifts the dock and the surface; nothing in the dock changes.
Time statusAlways the same control at the right end. It opens the project rail above itself; the surface makes room with a notch.
Search⌘K or Ctrl+K opens pages, apps and files from anywhere.

Design rules

Move with scale, not position

Cards scale to 1.015, small objects to 1.04. Nothing slides up on hover.

Never clip a shadow

Shadows are soft and centered. Do not put overflow: hidden on a parent of a shadowed element; give it room instead.

One toolbar

Title on the left, views centered, actions on the right. Explanations belong in Docs, not on the page.

Honest states

Empty states sit beside their header. Unconnected integrations say so; never show invented data.

Icons

Use semantic names with the Icon component. The registry in packages/ui/src/icons.ts maps them to the light icon set; add new glyphs there, never inline SVG in a page.

<Icon name="calendar"/>

Keyboard

WorkbenchEnter or Space on the chevron opens it. Escape closes it and returns focus.
Search⌘K or Ctrl+K. Arrow keys move, Enter opens, Escape closes.
Time trackingArrow keys move through projects. Enter switches; Pause stops the running record.
PinsDrag, or Alt + Left/Right while a pin has focus.

App structure

apps/APPNAME/
  gope.json
  schema.sql
  src/
    layouts/Layout.astro   → wraps AppShell
    middleware.ts
    pages/index.astro
    pages/api/
  • Register the app name, version, description, MDI icon, one category, permissions and page policies in gope.json.
  • Serve pages below /apps/APPNAME/ and APIs below /api/APPNAME/. Resolve identity through server-only Core RPC and enforce authorization on the server.
  • Translate English and German labels, follow the incoming language preference, and audit domain events centrally with the app name. Never log secrets.
  • Test keyboard operation, responsive layout, light and dark themes, and high contrast. Keep database migrations and schema.sql aligned.

The content contour

Die Kontur · content that wraps

Design paper principles, integrated into this chapter. Original annotations remain in English; planned concepts are not a list of shipped features.

In the sketch the white surface does not sit above the controls — it flows between them and down to the bottom edge wherever they are not. Treating the content as a shape rather than a rectangle is what makes the shell feel like one continuous material instead of stacked panes, and it opens a second kind of overlay: one that is cut into the surface rather than floated over it.

7.1 · THE SILHOUETTE RULE

A rectangle floating above a row of buttons reads as two layers. A surface that flows around them reads as one material with things pressed into it — which is the difference between "an app with a toolbar" and "an environment".

It also does real work. The strip reads left to right as modules, separator, tabs; the surface then drops to the bottom edge, which is what tells you the controls have ended. And it climbs back up over the running timer at the far right, so a second, unrelated group is legible as separate without any chrome around it.

Implementation is a single clip path on the content surface plus a drop-shadow on its wrapper, recomputed when the strip's contents change. The strip animates its own width; the silhouette follows in the same 200 ms.

7.2 · DER EINSCHUB · THE SECOND KIND OF OVERLAY

A floating window is an interruption you will finish in a minute. An Einschub is a conversation you want to keep next to your work for the afternoon. It is not floating — it is cut into the surface from an edge, carries the ground colour, and can be pushed away to a rail and pulled back without ever closing.

PUSHED ASIDE · THE RAIL

Chevron-right parks the Einschub on the edge: the surface closes back over it, leaving a small ground-coloured tab with the avatar and an unread count. The conversation is not closed and nothing is lost — clicking the tab slides it back out in 240 ms with the scroll position and the half-typed reply intact. Several parked conversations stack down the right edge; the top and left edges take the same rail when an Einschub is opened from there.

Floats above the work at level 3, white, movable, dismissed with Escape. For things you will finish in under a minute: a quick reply, an assistant question, a document peek. Poking into something, then coming straight back.

Cut into the surface from an edge, carries the ground colour, has no shadow of its own — it is not above the page, it is part of it. For a conversation you want beside you for the afternoon. Parks to a rail instead of closing.

Nothing reflows and nothing resizes. The layout keeps the width it had a second ago; the surface it is painted on simply stops earlier, and everything past that line is hidden — the right-hand cards in the frame above are still there, still full width, still at their coordinates — the surface just stops drawing them past the cut. Coming back is free and there is no layout jump in either direction.

That is deliberate: an Einschub is a temporary look at something else, not a change to the workspace. It reads as depth rather than as a resize — the surface is one continuous plane and the panel is pressed into it, which is also why the panel casts no shadow of its own. If a module regularly hides a primary action this way, the module's layout is too far right, not the Einschub too wide.

Whether an Einschub can be resized by dragging its edge (probably yes, in 4 steps rather than freely), whether two can be open on different edges at once (probably not — one at a time keeps the silhouette legible), and whether the assistant should be allowed to use one. Messaging is the clear case; I would hold the rest until it is in front of people.

Home briefing

Home · the eight-second briefing

Design paper principles, integrated into this chapter. Original annotations remain in English; planned concepts are not a list of shipped features.

Halden Architekten, eleven people, Munich. Lena Halden opens the laptop at 08:40. Six cards, one question each, in the order she asks them. Click the chevron in the dock to open Bühne.

The content surface is no longer a rectangle: it wraps around the dock and the tab group and runs down to the bottom edge everywhere they are not. The rule behind that shape, and the second kind of overlay it makes possible, are in section 07.

1728 × 1064 · live

Attention feed is largest and leftmost because it is the only card that can contain something urgent she does not already know about. Money sits top-right, the natural second glance. Tasks and projects fill the second beat. The agent digest is last and quietest — it is a briefing, not an alarm.

Same six cards, different order and different permissions. An employee sees tasks and attention first, no cash card at all, project health without budget figures. The bookkeeper gets receivables and the bank feed at the top. Cards are drag-reorderable and dismissible; dismissed cards return from a small "+" at the end of the grid, never from a settings page.

Hard cap of three items per day per agent, and an agent that gets dismissed twice on the same kind of notice stops sending it and says so. Mute is one click away, in the card, not buried — a digest you cannot silence is a digest that gets silenced by ignoring it.

The grid keeps its shape. Each card shows a Fraunces line and one action: "Noch keine Projekte" / "Erstes Projekt anlegen". No illustrations, no progress checklist, no confetti. The digest card is the exception — on day one it is the setup assistant, and it retires itself once four of six cards have data.

Attention

What needs my attention?

Finances

Where does the money stand?

Today

What is happening today?

Tasks

What do I need to finish?

Projects

How is the work progressing?

Since yesterday

What changed while I was away?

Window examples

Add data-window to a data-modal dialog for an independent window: several can stay open, the header drags or moves with arrow keys, and Escape closes the focused one.

Overlay windows

Design paper principles, integrated into this chapter. Original annotations remain in English; planned concepts are not a list of shipped features.

Lena is looking at the Meyer project budget. Jonas messages her; she also wants to ask the assistant something. Both arrive as floating windows over the project, which does not move, does not reload and does not lose her scroll position.

1728 × 1064 · two overlays open over a module view

The page behind drops to 72% opacity and 92% saturation. No blur, no dark scrim. Everything underneath stays readable, which is required — the whole reason to float a message over a budget is so you can answer while reading the budget.

Only the frontmost window is at level 4; every other open window drops to level 3 and 96% opacity. That single difference is enough to say which one has the keyboard, without an active-title-bar colour.

Three at once, hard cap. Opening a fourth minimizes the least recently touched one into its dock pin rather than refusing. New windows cascade from the summoning control with a 32 px offset so they never land exactly on top of each other.

Windows never leave the content panel's bounds and never cover the dock. On a 1280 px screen the cap drops to two and windows snap to half-width columns.

Coming soon

Chat, calls, meetings and file sharing.

Coming soon

Accounting and invoice creation.

Drag to reorder, or use Alt + Left or Right.

Navigation

HomeDocumentationAccessibilityQuickstart

↑↓ navigate↵ open