# Meadowstack > Full text of the Meadowstack website in English and Czech: the framework, its prices, security and the Figma file, and the studio. The short version with links: https://meadowstack.com/llms.txt ## Meadowstack (English) ### What Meadowstack is Business apps, built like products. A React UI kit, a Figma file and the rules your coding tools follow. Screens look designed. Permissions get checked. The business app framework for Claude Code, Cursor and Codex. Meadowstack is a framework for business apps: a React UI kit, a Figma file, screen archetypes, and the rules, checks and security defaults your coding tools follow. #### Four promises - Looks designed: Your coding tool builds from the same kit, archetypes and rules as the 9 example apps, so the screens it writes get the same widths, headers, tables and states. - Behaves the same everywhere: One command runs 15 checks: types, lint, design tokens, contrast, screen states, markup, motion and the tests. A screen that breaks a rule does not get through, whoever wrote it. - Safe by default: Apps built with AI rarely fail on SQL injection. They fail on a missing permission check. In Meadowstack 3.0 every table, role and action needs a rule, and a missing one fails the build. Meadowstack 3.0 arrives as an update to every licence. Until then, 2.1 gives you permissions in one table per module, the history of every change and a sign-in for development; the real sign-in and the server side are yours. - Yours to keep: One payment, lifetime updates and client work without extra licences. The code lives in your repository and runs without us, and you have 14 days to ask for your money back. ### The framework The React framework for business apps you build with AI tools. Meadowstack Framework is a React codebase for business apps: components, 9 screen archetypes, working flows (approvals, roles, records with history) and the rules, skills and checks Claude Code, Cursor and Codex follow, so what they build looks and behaves like a product team made it. Claude Code, Cursor, Codex, GitHub Copilot, Windsurf and any editor that reads AGENTS.md. React, TypeScript and Tailwind, nothing exotic. #### How you get the framework The framework is a private GitHub repository. You buy a licence, accept an invitation and clone it. - Buy a licence: Pay once at checkout. Polar takes the payment and issues the licence. - Accept the invitation: After payment, connect your GitHub account on your Polar order page and you are invited to the private repository. A Team licence has ten seats, which you hand out on the same page. - Clone and prompt: Clone it into a folder you name, run the starter app and give your AI tool the first prompt. - You need Node 22.18 or newer, a GitHub account, an AI coding tool or an editor, and enough React to read what it writes. #### The front end, and the way to build it - Not a backend: In 2.1, sign-in and data in the starter are simulated: you connect your own backend, and the docs include a recipe for connecting your data. Sign-in and the audit trail come with Meadowstack 3.0. - Not a no-code builder: You work in code, in your editor, with your AI tool. Every line is yours to read and change. #### What is in the repository What is in the repository: Components 126, Screen archetypes 9, Claude Code skills 10, Recipes 17, Example apps 9. - packages/kit/: components, patterns, tokens - AGENTS.md: rules for every AI coding tool - CLAUDE.md: Claude Code specifics - .claude/skills/: new screen, entity, module, approvals, theme, check - .mcp.json: an MCP server that finds the right component - .cursor/rules/: the same rules for Cursor - templates/starter/: an app shell ready for your first module - docs/recipes/: recipes: orders, approvals, rotas, bookings, your data and more - docs/decisions/: why each rule is what it is - UPGRADING.md: what to change when you move from 1.0 to 2.0 - apps/demo/: a full reference app with 9 example apps - scripts/: token, contrast and state checks #### AI writes code fast. It doesn’t write a system. Ask an AI tool for ten screens and you get ten different ideas of a table, a form and an error. The framework gives it one way to do each, and checks that it did. - Designed from the first prompt: Components, patterns and rules make the first screen look like it came from a product team. - The same quality everywhere: Every module and every project follows the same rules, whoever or whatever wrote it. - Checks that fail the build: Colours only from tokens, contrast in light and dark, every data screen with its states, accessibility tested. - Grows with you: The tenth module follows the same recipe as the first, and one licence covers unlimited projects. #### New in 2.0: Screens from archetypes, and tests that keep people oriented Version 2.0 changes how a screen is built, so an AI tool gets the layout right before it writes a line. - Screen archetypes: Nine kinds of screen with typed slots. One primary action, one region that scrolls, the same header everywhere. - Orientation as tests: The starter checks every route at 1440 and 390 pixels, so nobody gets lost in a screen an AI tool added. - The Objects layer: Receipts, delivery notes, signatures, floor plans and more: things from the real world as components. - MCP for AI tools: A server that answers from the component manifest, so Claude Code and Cursor reuse a component before writing their own. - Assemble your app: In the demo, pick a trade and its modules, then open the assembled app at an address you can share. - Shell and navigation: App shell with a sidebar that slides, peeks and resizes; Command palette for pages, records and actions; Keyboard shortcuts and a list of them; Help menu: docs, shortcuts, whom to ask, what is new; Route progress line instead of a full-page spinner; Workspace launcher and switcher; Breadcrumbs and a step back for links inside content; One flat sidebar: modules as sections, counts, settings at the foot; Create menu in the sidebar or the top bar - Screens from archetypes: 9 archetypes: index, worklist, record, form, overview, workspace, inbox, settings, canvas; Header, width, scroll and the way a record opens set by the archetype; One primary action, quiet in the top bar; The page never scrolls, exactly one region does; An overview opens with a headline sentence; Orientation rules as tests on every route, at 1440 and 390 - Objects: Paper: receipt, A4, delivery note and label, with Download PDF; Signature field and stamp; Asset card, product stage and swatch; Gauge, pass and account card; Floor plan and weather strip; Post preview, goal ring and day strip - Lists, boards and records: Data table with sorting, selection and bulk actions; Tables that fold into rows on a phone; Filters as pills, kept in the address; View options: group, sort, show columns; Saved views as pills over the list: the same page, another query; One Display menu for presentation, grouping, sorting and columns; Board with drag and drop, from the keyboard too; Record peek beside its list, and the full page; Pickers that change a property in place; Sticky group headers that never cover a row; Optimistic changes with undo in the toast; Four states for every data view: loading, error, empty, data; Empty and no-results as different states - Approvals, permissions and history: Permissions in one file, asked through ; A recipe to enforce the same rules in the database; Four-eyes approval: nobody approves their own record; Rejection always with a reason; Decision card first on a phone; Audit timeline with comments; Confirmation before irreversible steps; No access page for what a role cannot open - Forms and writing: Fields with visible labels and messages that say what to do; Validation with react-hook-form and zod; Unsaved changes block navigation; Composer with mentions, files and Cmd/Ctrl+Enter; Checklists; Voice messages - Conversation: Messages by author and day, with a line where the new ones start; Reactions, typing, threads; An assistant that answers with the kit's own parts; A mailbox where every thread sits next to its record - Time and planning: Timer that grows from its start button; Week as a grid of time blocks; Resource timeline with drag, resize and a now line; Planning grid: copy with Alt, quick add in an empty cell; Budgets that warn at 80 percent - Charts and data: Column, line and bar charts with a table behind every chart; Donut, heatmap and ranked lists; Goals as reference lines, the running period marked; Stats with a trend and a change that says if it is good news; Chart cards and their skeletons; Colour-blind-safe series in a fixed order; CSV export - Canvas: Flow canvas with pan, zoom, minimap and runs along the edges; The same flow as an ordered list for screen readers and phones - Motion and feedback: Shared curves and lengths as tokens; Press feedback on buttons; Text that swaps through a soft blur; Numbers that roll; Work in progress that shows what it is doing; Toasts, tooltips, dialogs and menus with focus handled; Reduced motion turns movement into fades - Rules and skills for AI: AGENTS.md for every AI coding tool; CLAUDE.md and path rules for Claude Code; Skill: new module; Skill: new screen from an archetype; Skill: new entity end to end; Skill: approvals; Skill: client theme; Skill: final check; Cursor rules generated from the same file; MCP server: your AI tool asks for the right component before writing its own; A manifest of every component: when to use it, when not; Patterns and principles documented with their sources; Recipes for the jobs that repeat; Decisions with the reason behind each rule - Checks: One command runs all 15: npm run check; Type checks, lint and formatting; Colours only from tokens, or the build fails; Contrast of every colour pair in light and dark; Every data screen has its four states; Column kinds, hand-made controls and header actions; Motion only from the kit's tokens; No untranslated text left in the demo; The component list for AI tools matches the kit; A secret scan of the repository and the builds; Review audit of every demo screen; Action contracts: every entity offers what it promised; Unit tests of the kit, the apps and the scripts - Reference apps: A starter app with an approval flow and its tests; A demo of 9 fictional companies built from modules; Assemble your app: pick a trade and modules, open it at a shareable address; A playground with every component in every state - Theme, devices and accessibility: Light and dark, following the system; Your brand in one input, contrast checked; From a phone to a wide screen; 40px controls on touch screens; WCAG 2.2 AA: keyboard, focus, labels, contrast; Czech and English built in; End-to-end tests with accessibility checks; Visual regression of every story and key screen Rather have it built for you? The studio plans, builds and reviews apps on the framework. #### Questions about the framework ##### What is Meadowstack Framework? A React codebase for business apps you build with AI tools. It holds components, 9 screen archetypes, working flows such as approvals, roles and records with history, and the rules, skills and checks Claude Code, Cursor and Codex follow. ##### What exactly do I get? An invitation to a private GitHub repository. In it: the kit, a starter app, a demo with 9 example apps, AGENTS.md and CLAUDE.md, Claude Code skills, Cursor rules, an MCP server that finds the right component, recipes and decisions in docs, checks for tokens, contrast, states and accessibility, and tests. You clone it and build on it; the quick start shows the steps. ##### Which AI tools does it work with? Claude Code, Cursor and Codex, and any tool or editor that reads AGENTS.md. Claude Code also gets the skills and the MCP server, Cursor, GitHub Copilot and Windsurf their own rules files. You can work without an AI tool too. What such a file should hold: AGENTS.md for a React business app. ##### What is it built with? React, TypeScript, Vite and Tailwind, with accessible primitives underneath. Your apps are ordinary React apps. ##### Does it include a backend and sign-in? Not in 2.1: it is the front end and the way to build it. Sign-in and data in the starter are simulated; you connect your own backend, and the docs include a recipe for connecting your data. Meadowstack 3.0 adds sign-in and the audit trail, as an update every licence includes. See Security. ##### Can I use it for client projects? Yes. The licence is per person and covers unlimited projects, including apps you build for clients, with no licence per client. ##### Can my client keep developing the app? Your client can run, maintain and change the app you deliver. Building further apps on the framework needs their own licence. ##### How is it different from a UI kit such as shadcn/ui? A UI kit gives you components to compose. The framework adds what sits above them: screen archetypes, working flows with permissions and history, and rules and checks your AI tool follows, so every screen is put together the same way. See how it compares and how to keep AI-generated UI consistent. ##### How is it different from app builders such as Lovable or v0? App builders generate an app from a prompt on their platform. The framework is code in your own repository, which you build on with the AI tool you already use and keep maintaining like any React app. See how it compares. ##### How do updates arrive? New versions arrive as tagged releases in the same repository; you pull the one you want, when you want it. Every licence includes lifetime updates, so they keep coming for as long as we develop the framework. ##### How do I add my team on a Team licence? The buyer connects GitHub on the Polar order page and is invited. A Team licence has ten seats in all; hand them out to the others on the same page and each is invited to the same repository. ##### What do designers get? The Figma file: variables that match the code’s tokens, the components and screen archetypes under the same names, and the example apps. It comes with every licence. ##### Do you offer support? The framework comes with documentation and recipes. Questions about the licence go to hello@meadowstack.com. If you want us to help with your app, the studio reviews it or builds it. #### From clone to your own app What happens after you buy Meadowstack Framework, step by step: the repository, the starter app, your own app in its own repository and the first prompt to your AI tool. https://meadowstack.com/framework/start/ - Accept the invitation: After payment, connect your GitHub account on your Polar order page. You are invited to the private repository. Accept the invitation on GitHub. - Clone and install: Clone the repository into a folder of its own and install it once. Chromium runs the end-to-end tests. `git clone https://github.com/meadowstack-studio/framework.git meadowstack-framework && cd meadowstack-framework && npm install && npx playwright install chromium` - Run the starter: The starter app opens at the address the terminal prints. Sign in as one of the people listed on the sign-in page. `npm run dev:starter` - Make your own app: Your app lives in a repository of its own, with the kit packed into it. Run the first command in the framework’s folder, then start the app. `npm run new-app -- ../my-app && cd ../my-app && npm install && npm run dev` - Give your AI tool the first prompt: Open the app’s folder in Claude Code, Cursor or Codex and ask for a module. The tool reads AGENTS.md and follows the recipes. `claude "Add a time-off module with approvals"` - Check it: When the tool says it is done, run the checks and the end-to-end tests. They check every route at 1440 and 390 pixels, so a new screen cannot break the layout unnoticed. `npm run check && npm run e2e` - Sign-in: A development sign-in: anyone listed signs in with any password. You put your identity provider behind the same hooks. - Data: Kept in memory and reset on reload. You replace the api functions with calls to your backend and enforce the same permissions there. - Going live: Recipes in the docs show how to connect your data and how to go live. - How updates arrive: New versions arrive as tagged releases in the same private repository. Update the framework’s folder, read the changelog, then take the new kit into your app. `npm run new-app -- ../my-app --update` #### How Meadowstack Framework compares Four kinds of tools people weigh against it, in plain words. Each is the better choice for some jobs, and the table says which. https://meadowstack.com/framework/compare/ - UI component kit (For example shadcn/ui and Untitled UI): What you get: Components to compose, often as code you copy into your project. Working flows: approvals, roles, history: Not included: you build them from the components. Rules and checks for AI tools: Not the kit’s job: how screens are put together is up to you and your tool. Who owns and hosts the code: You, anywhere you like. Backend and sign-in: Not included. Best for: A design system for any app, when you design the screens yourself. - SaaS starter kit (For example MakerKit and supastarter): What you get: A SaaS app skeleton: sign-in, teams, billing and a landing page. Working flows: approvals, roles, history: Accounts, teams and billing; business flows are yours to build. Rules and checks for AI tools: Some include rules for AI tools, written for a SaaS product. Who owns and hosts the code: You, anywhere you like. Backend and sign-in: Included, usually with a database and a sign-in provider. Best for: A SaaS product that needs sign-in and billing from day one. - Prompt-to-app builder (For example Lovable, v0 and Bolt): What you get: An app generated from your prompt on the builder’s platform. Working flows: approvals, roles, history: Whatever the prompt produces, solved anew in each app. Rules and checks for AI tools: The builder’s own AI, steered in its chat. Who owns and hosts the code: The app starts on the builder’s platform; exporting the code varies. Backend and sign-in: Often through a connected service. Best for: A quick prototype, especially one you will throw away. - Internal-tool platform (For example Retool): What you get: Screens assembled from ready widgets on top of your data. Working flows: approvals, roles, history: Built from the platform’s blocks and its permission settings. Rules and checks for AI tools: You work in the platform’s editor rather than with a coding tool. Who owns and hosts the code: The platform runs it; some offer self-hosting. Backend and sign-in: Connects to your databases and APIs; sign-in is the platform’s. Best for: Internal tools without writing code. - Meadowstack Framework: What you get: A React codebase: components, 9 screen archetypes, a starter app, recipes and 9 example apps. Working flows: approvals, roles, history: Included: four-eyes approval, roles and permissions, records with their history. Rules and checks for AI tools: AGENTS.md, Claude Code skills, Cursor rules, an MCP server and checks that fail the build. Who owns and hosts the code: You: a private repository you clone, an app you host anywhere. Backend and sign-in: Not included: simulated in the starter, with recipes for connecting yours. Best for: Business apps (orders, approvals, records, planning) you build and keep with an AI coding tool. - A backend or a database: you connect your own. - Production sign-in: the starter’s is for development, and your identity provider goes behind it. - Billing and subscriptions: a SaaS starter kit has them out of the box. - Hosting: the app is yours to deploy where you like. #### What changed in Meadowstack Framework Every version, newest first, as the changelog in the repository states it. Buyers receive each version as a tag in their private repository. https://meadowstack.com/changelog/ Current version: 2.1.0 (2026-11-11). ##### v2.1.0 Your own app in its own repository, the starter's settings pages, real data and hosting as recipes, a prompt library, and rules for more AI coding tools. Released on 11 November 2026. **Why 2.1.0.** Everything here is new or changes the look; an app built on 2.0.0 compiles and passes its checks as it is, with one exception named under "If you used". ###### Your own app - **`npm run new-app -- ../my-app`** makes an app in its own repository from the starter: the kit packed into its `vendor/` folder, so it installs on CI and on any host with the public npm registry alone, its own lint, Prettier, checks and CI with a visual diff, and the agent rules adapted to an app. `npm run new-app -- ../my-app --update` takes a later kit into it (`docs/recipes/start-your-own-app.md`). - **Agent rules stamped with the kit version**: `AGENTS.md`, `CLAUDE.md`, the skills and the path rules in an app say which kit they were written for, and the app's `npm run check:rules` fails while they are older than the installed kit. - **`--empty`** starts the app without the sample module, and `npm run remove-sample` takes it out of an app later; an app without modules opens on its start page. - **Rules for GitHub Copilot and Windsurf**: next to Claude Code, Cursor and Codex, the folder and every app get `.github/copilot-instructions.md` and `.windsurf/rules/meadowstack.md`, short pointers to `AGENTS.md` written by `npm run cursor-rules` and stamped like the other rules. ###### Starter - **The four settings pages** behind the gear at the foot of the sidebar: General, Team and roles, Connected apps, and MCP and AI, the last three for admins through `can()` rules. Connected apps and MCP and AI say what a real connection needs instead of pretending one. - **Real data behind the same contract**: the sample module's `data/api.ts` is the contract the pages import, with two implementations, `api.simulated.ts` (the default) and `api.http.ts`, switched on with `VITE_DATA_SOURCE=http`. One contract test runs against both. The skills `kit-crud`, `kit-screen` and `kit-module` describe the split. - **Ready to host**: `vercel.json` and `public/_redirects` with the rewrite a static host needs, environment variables read in one place (`src/shared/config.ts`, `.env.example`). ###### Kit - **`@meadowstack-studio/kit/vite`**: the `meadowstackKit()` plugin keeps the dev server working when the kit is an installed package (the map's worker); the starter and new apps have it in `vite.config.ts`. - **Money and tables**: `formatPercent` is exported, `formatMoney` takes `{ fractionDigits, rounding }` and keeps the cents an amount has, `Paper` takes the same, and `DataTable` has a total row (`meta.total`) and drops the page count when everything fits on one page and nothing is filtered. - **`IntegrationCatalog onConnectRequest`**: Connect hands over to your app's own step instead of the consent dialog. - **One greyscale**: the neutrals are pure grey, without the warm tint (decision 0012). Expect visual snapshots to change. - The settings gear closes the phone's drawer like every other link in it. ###### Docs - Recipes: `going-live.md` (the build, the rewrite, environment variables, the security checklist, what must be real before real users come) and `connect-your-data.md` (the contract, any HTTP backend, and Postgres on Supabase with row-level security as a worked example). - `docs/prompts.md`: prompts to paste for each screen archetype and each common job, each naming its skill and ending with the checks. - The README is rewritten for the first hour: what is in the folder, what you need, the quick start, first prompts, what is simulated and what you connect, updates. Node 22.18 or newer runs it; CI and new apps pin Node 24. ###### If you used - **`untinted` and `data-palette="neutral"`** are gone with the second palette: the one palette is already neutral. Remove the import and the attribute. ##### v2.0.0 Screens made from archetypes, one scroll, orientation rules with tests, the Objects layer and the "Assemble your app" demo. Released on 6 November 2026. **Why 2.0.0.** An app built on 1.0.0 has to change its code before it compiles: `PageHeader` no longer takes `description`, and every `DataTable` column needs `meta: { kind }`, while `meta.width` and `meta.numeric` are gone. Everything else is new or deprecated with the old behaviour kept, but the look changes in many places (warmer neutrals, rounder corners, figures without a frame, centred columns), so expect most visual snapshots to change. The steps are in `UPGRADING.md`, "From 1.0 to 2.0". ###### Changes you must make - **`PageHeader` has no `description`** (decision 0001). A sentence that explains a screen goes; what people need to know goes into the content, an option's explanation into its tooltip. - **`DataTable` columns say what they hold**: `meta: { kind }` with one of `id`, `title`, `text`, `person`, `status`, `date`, `datetime`, `period`, `money`, `number`, `meter`, `actions`. The kind sets width and alignment; `width` and `numeric` were removed. `npm run check:columns` finds a column without meta. ###### Screens and navigation - **`Screen`**: a screen is one of nine archetypes (index, worklist, record, form, overview, workspace, inbox, settings, canvas) with typed slots, one primary and at most two secondary actions in the header, and one region that scrolls. Under the shell the page itself no longer scrolls from 1024px up (decision 0001, skill `kit-screen`). `PageHeader` pages still work. - **Orientation** (decision 0009): inside `AppShell` a `Screen`'s primary action sits quiet in the top bar, the last crumb is dropped when it repeats the title, `ViewPills` are saved views as links to the same page, `DisplayMenu` is one "Display" button for presentation, grouping, sorting, columns and a legend (`ViewOptions` is now a `DisplayMenu` with only the list view). `overview` requires a `headline`, `index` has a `summary` slot (above the list from 768px, under it on a phone), `record` has `decision` and `physical`, `form` has `summaryWidth="wide"`. - **One flat sidebar**: every module unfolded, a module with one item of the same name has no heading, settings can be the gear at the foot (`settings`), new slots `create` (`CreateMenu`) and `dock`, `NavBadge` for counts. - **Page widths**: `contained`, `form` and `narrow` are centred columns (1200, 960, 768px, utility `px-frame`); `wide` and `full` start at the left edge and reach the right one. - **Records**: `RecordPeek` moves the page aside on a desktop with room, `RecordTabs` for the record's card, `usePeekPushed()`. ###### Look - Warmer neutrals and a warm off-white page panel, `shadow-plate` for raised objects, `Lead` (the finding in one sentence) and `StatGroup` drawn `hero` by default (the first figure large, no frame). `variant="framed"` still draws the old boxes but is deprecated (decisions 0008 and 0009). - Lightness: corners one step rounder (controls 10px, cards 12px, dialogs and menus 16px, `rounded-nested` inside), tables without an outer box and with a rounded hovered row (`tableRowClass`), no grey footer bands, closable `Notice` and `NoticeList` for what needs attention. - A neutral palette without the warm tint, `data-palette="neutral"` on the root, for pages that should read grey (decision 0011). Apps keep the warm one. - People and companies never get red, orange or yellow: `avatarHues`, new hues `cyan`, `purple` and `slate`. `LabelChip` and tags are neutral; their `hue` is accepted and ignored. - Negative numbers use the real minus sign in the kit's formatters (`withMinus` for your own). ###### New in the kit - Layout and text: `SectionRow` (`ruled`, `open`, `tiles`), `ScrollArea`, `Truncate` (with `short`), `ResizeHandle`, `BlurText`, `ThinkingState`, `Mention`, `ChoiceTile`, `CreateMenu`, `Input size="sm"`, `SettingsSection tone="danger"`, utilities `scroll-edge` and `sticky-retire-text`. - Files and writing: `UploadDropzone`, `Avatar` photos (`KitProvider avatarSrc`), `ChatAttachment onOpen`, `RichTextEditor` with a fixed `toolbar` and `onImageUpload`, `Composer appearance="liquid"`. - The Objects layer: `Paper` (receipt, A4, delivery note, label, with "Download PDF"), `SignatureField`, `Stamp`, `AssetCard`, `DayStrip`, `ProductStage`, `Swatch`, `Gauge`, `Pass`, `AccountCard`, `FloorPlan`, `WeatherStrip`, `PostPreview`, `GoalRing`, `PhysicalObject`. - Action contracts: `requiredActions`, `missingActions`, `entityAction`, `PdfButton`; the starter checks its own in `e2e/contract.spec.ts`. - Planning and data: `GanttChart ghosts` and lighter arrows, `TimeGrid` as a content calendar (blocks without `hue`, `content`, `resizable`, `hourHeight`), `ResourceTimeline` blocks that grow on hover, `DataTable` `hideBelow: "sm"` and smooth folding of groups, `LineChart` labels for goals in the margin, `ApprovalPanel onRejectInPlace`, `Picker checkTone`. - Maps: a real street map (MapLibre over OpenFreeMap tiles, no key, loaded on first view, `tiles={false}` for the outlines), pins with `icon` and `popup`, labels that never leave the map. - Integrations: `icon` on `IntegrationApp`, `IntegrationLogo` and `SyncStatus`, thirty more brand logos. - For AI tools: the component manifest (`packages/kit/src/components.json`) and an MCP server that answers from it (`find_component`, `get_component`), switched on by `.mcp.json`. ###### Starter, checks and docs - The starter's screens are archetypes: the requests list is an `index` with `ViewPills` instead of status tabs and three sidebar items, the record a `record`, settings a `settings` screen with its own section list. - New e2e in the starter: `routes.spec.ts` runs the orientation rules (`e2e/orientation.ts`) on every route at 1440 and at 390, and `contract.spec.ts` checks each entity's actions. - `npm run check` also runs `check:columns`, `check:markup` (hand-made controls and tables, own scroll, arbitrary text sizes, too many header actions, a `SegmentedControl` in a header, `framed` figures, a presentation switch outside `DisplayMenu`), `check:manifest` and the scripts' own tests. `npm run audit` reviews every demo screen (`docs/audit.md`). - The demo: every company on archetypes, "Assemble your app" on its first page (pick a trade and modules, open the assembled app at an address you can share, decision 0010), photos, maps, the Objects layer in use. - Docs: `docs/decisions/` (why each rule is what it is, 0001 to 0011, the website's 0007 left out), `docs/audit.md`, `docs/benchmarks.md`, recipes rewritten for `Screen`, `ViewPills`, `DisplayMenu` and column kinds. ##### v1.0.0 The first version that is sold. Released on 23 October 2026. - **Kit** (`packages/kit`): the components, patterns and tokens apps are built from, among them the app shell (modules as sections of one sidebar with the open one unfolded, Alt+1 to 9), lists and tables with bulk actions, records in a side panel that expands to a full page, forms, approvals with four-eyes, boards, calendars, timelines, a Gantt chart, charts with the framework's rules, a map, files, photos and a lightbox, a rich text editor, a notification centre, an assistant panel, connected apps with consent, and a motion system with one set of curves and lengths (`docs/motion.md`). - **Rules for AI tools**: `AGENTS.md` (read by Claude Code through `CLAUDE.md`, by Codex as it is, and by Cursor through `.cursor/rules`, generated from it), path rules in `.claude/rules`, skills in `.claude/skills`. - **Starter** (`templates/starter`): an English app with the shell, a development sign-in, a slot for your logo and one module with an approval flow, unit tests and end-to-end tests with axe. - **Reference apps**: `apps/demo` (fictional companies, each with the modules its trade needs) and `apps/playground` (every component in every state, light and dark). - **Docs**: principles, patterns, motion, recipes, theming, security and testing in `docs/`. - **Checks**: types, lint, format, tokens, contrast, the four data states, motion, unit tests, end-to-end tests with axe, visual regression. ### Prices and the licence One payment. Yours to keep. Every licence includes the code, the Figma file with the example apps, lifetime updates and client work without extra licences. You have 14 days to ask for your money back. https://meadowstack.com/pricing/ - Personal (for one person): $299, one payment - Team (for up to ten people): $899, one payment - Enterprise (for more than ten people, or terms of your own): from $2,490 - Launch price: Personal $249, Team $699 Prices in US dollars, excluding VAT. Polar, which sells the licence, adds the tax for your country at checkout. #### Every licence includes - The code: The kit, the starter app, the rules and skills for coding tools, recipes and the checks, in a private GitHub repository. - The Figma file: Foundations, components and screen archetypes named as in code, with the example apps. - Lifetime updates: Every new version for as long as we develop the framework. Today that is version 2.1. - Client work: Build apps for clients with no licence per client. Your client can run and change the app you deliver. - 14 days money back: Ask within 14 days of buying and get the full price back, no reason needed. #### What the same money buys elsewhere List prices in US dollars, one payment each, and the terms each seller publishes. Temporary sales are left out. Checked on their own pricing pages on 1 December 2026. - Meadowstack: one person $299; a team (up to 10) $899; client work: In every licence, no licence per client; money back: 14 days - MakerKit: one person $349; a team (up to 5) $649; client work: Teams licence only, and each client needs its own licence; money back: No refunds. Pricing page of MakerKit: https://makerkit.dev/pricing - supastarter: one person $349; a team (up to 5) $799; client work: Named only on the Agency plan, $1,499; money back: Not stated. Pricing page of supastarter: https://supastarter.dev/pricing - Untitled UI React: one person $349; a team (up to 8) $999; client work: Allowed; money back: No refunds. Pricing page of Untitled UI React: https://www.untitledui.com/pricing #### The licence in short - Unlimited projects, including client work - You can’t resell the framework itself - Every version you get stays yours - Read the full licence: https://meadowstack.com/framework/license/ - Framework terms: https://meadowstack.com/framework/terms/ #### Questions about the licence ##### Who counts as a person? Anyone who works with the framework’s code or files, by hand or through a coding tool they run. People who only use the apps you build don’t count. ##### Do I pay again for updates? No. Every licence includes lifetime updates: each new version arrives in the same repository for as long as we develop the framework. ##### Can my client keep developing the app? Yes. Your client can run, maintain and change the app you deliver, framework code included. Building a further app on the framework needs a licence, yours or theirs. ##### How does the money back work? Write to hello@meadowstack.com within 14 days of buying. Polar refunds the full price, and the licence and access to the repository end. No reason needed. ##### Who sells the licence? Polar Software, Inc., our merchant of record: it takes the payment, handles VAT and issues the invoice. We grant the licence and deliver the framework. Details are in the terms. ##### What does Enterprise add? More than ten people, or terms your company needs. Tell us about your team in the form and we reply with a quote, from $2,490. ### Security: Secure defaults out of the box In published tests of AI-generated apps the common failures were not SQL injection or XSS, which modern frameworks block by default. They were missing authorisation and broken business logic: a user reading another company’s records, an action without a permission check. The defaults of Meadowstack 3.0 target exactly that. https://meadowstack.com/security/ #### What every app gets In Meadowstack 3.0 a missing permission check fails the build, and the rest of these defaults are in place when your coding tool writes the first screen. - Permissions: One policy file per app says who may read and change what. It generates the database’s row-level policies and the interface’s guards, and a test fails when a table, role or action has no rule. - Input: One schema per form or endpoint, used by the client and checked again on the server. - Sign-in: E-mail with a magic link or a password, two-factor sign-in with TOTP and passkeys, a session timeout and signing out everywhere. - Audit trail: Sign-ins, permission changes, exports and deletions are recorded with who, what, when and from where, without personal data in the message. - Headers: A Content Security Policy, HSTS, frame-ancestors 'none', nosniff, a strict referrer policy and a minimal permissions policy. - Secrets: Only in environment variables. A check fails when a secret lands in the repository or in the client bundle. - Dependencies: npm audit on every run of the standard checks, and a CycloneDX SBOM with every release. - Errors: People see what to do next and a request ID. Stack traces stay in the logs. Meadowstack 3.0 arrives as an update to every licence. Today, 2.1 has the parts that live in the interface: permissions in one table per module, actions a person cannot take hidden, a confirmation before irreversible steps, a reason for every rejection and the history of every change. Its starter signs in for development only; real sign-in, the server side, headers and secrets are yours. #### What people and coding tools must follow The rules sit in AGENTS.md, so Claude Code, Cursor and Codex read them before they write a line. - Add or change data access only through the policy file. Never query a table without a rule for the current role. - Validate every input on the server with the shared schema, even when the client already did. - Never put secrets, tokens or personal data in client code, URLs, logs or error messages. - Never use dangerouslySetInnerHTML, eval or string-built SQL. Use the query builder and React rendering. - Check ownership on every record action: the record belongs to the user’s organisation, and the user’s role allows the action. - Log security events through the audit trail helper, not console.log. - Add a dependency only when the standard library or the kit cannot do it, and check it with npm audit. - Run the standard checks before you finish. They run the security checks too. #### Built to support the technical measures in NIS2 Article 21 NIS2 obliges organisations, not software, so no framework makes you compliant. For each measure of Article 21(2) the table shows what the framework provides and what stays with you; use it as evidence in your own risk assessment. The Czech Cybersecurity Act (Act No. 264/2025 Coll.) asks for the same measures. - (a) Risk analysis and security policies. What the framework provides: Threat notes per screen archetype in the docs, the security defaults listed above. What you do: Write your own policy and risk register. - (b) Incident handling. What the framework provides: An audit trail of security events, an incident template, request IDs in errors. What you do: Run the process and report within 24 hours, 72 hours and one month (Article 23). - (c) Business continuity and backups. What the framework provides: Backup and restore steps for the database host in the deployment guide. What you do: Schedule backups, test a restore, plan your crisis contacts. - (d) Supply chain security. What the framework provides: A CycloneDX SBOM per release, pinned dependencies, npm audit in the checks. What you do: Assess your hosting and data processors. - (e) Secure development and vulnerability handling. What the framework provides: The standard checks, the policy coverage test, shared validation schemas, a disclosure process for the framework. What you do: Keep the framework updated and fix what the checks report. - (f) Assessing the measures. What the framework provides: The checks’ report and the policy coverage test as repeatable evidence. What you do: Review the reports on a schedule. - (g) Cyber hygiene and training. What the framework provides: Secure-coding rules for people and coding tools in AGENTS.md. What you do: Train your staff. - (h) Cryptography and encryption. What the framework provides: TLS only with HSTS, password hashing and tokens left to the auth provider, no custom crypto. What you do: Choose a host with encryption at rest. - (i) Access control and asset management. What the framework provides: Roles and permissions in one policy file, signing out everywhere, permission changes in the audit trail. What you do: Remove leavers and review roles. - (j) Multi-factor authentication. What the framework provides: TOTP and passkeys, with two-factor sign-in required per role if you choose. What you do: Require it at least for admins. Have a lawyer confirm which regime applies to your organisation and which obligations follow from it. #### Mapped to OWASP ASVS 5.0 Level 1 for every app, Level 2 for apps that hold personal or financial data. Where each chapter is handled, gaps included: - V1 Encoding and sanitization: React escaping, a lint ban on dangerouslySetInnerHTML and eval, a query builder instead of string SQL - V2 Validation and business logic: Shared schemas checked on the server, limits on bulk actions and exports - V3 Web frontend security: Security headers and a CSP in the deployment config, noopener on external links - V4 API and web service: Every endpoint checks its input and the policy, errors without internals - V5 File handling: Size and type allow-lists, storage outside the app’s origin, signed links that expire - V6 Authentication: An auth provider with password rules, magic links, TOTP and passkeys - V7 Session management: Provider sessions with a timeout, rotation on sign-in, signing out everywhere - V8 Authorization: The policy file to row-level policies and interface guards, with a coverage test - V9 Self-contained tokens: Provider JWTs verified on the server, short expiry - V10 OAuth and OIDC: Provider OAuth with PKCE when social sign-in is on - V11 Cryptography: No custom crypto, provider and platform primitives only - V12 Secure communication: HTTPS only, HSTS - V13 Configuration: Secrets in environment variables, a secret scan in the checks, debug off in production - V14 Data protection: Personal data fields marked in the schema, left out of logs and exports by default - V15 Secure coding and architecture: npm audit, an SBOM, pinned versions, the standard checks - V16 Security logging and error handling: The audit trail helper, request IDs, no stack traces for users - V17 WebRTC: Not used #### Report a vulnerability E-mail hello@meadowstack.com with the affected version, steps to reproduce and the impact you see. Please don’t open a public issue. - Within 2 working days: We confirm that we received your report. - Within 10 working days: You get our assessment. - The fix: Critical and high issues get a fix or a mitigation in the latest release as fast as we can make it safe, and every buyer gets a security notice. Lifetime updates bring the fix to everyone. - Actively exploited: Reported as the EU Cyber Resilience Act requires: an early warning within 24 hours, a notification within 72 hours and a final report within 14 days after a fix is available. We credit reporters who want it once a fix is out. In scope: the framework repository, the starter, the MCP server and this website. Apps you build with the framework are yours to secure; the defaults above help. ### Figma: The same system, in Figma The file is the framework drawn: the tokens, components and screen archetypes your coding tool builds with, under the same names. A screen designed in Figma maps one to one to code. Included with every licence, with its updates. https://meadowstack.com/figma/ #### Page by page - Read me: How the file is organised and how its names map to the code. - Foundations: Variables one to one with the code’s tokens, in light and dark: colour, spacing, radii, type, density, effects and icons, with notes on motion. - Components: 126 components with their variants and states, named as in code. - Archetypes: 9 screen archetypes, each in five content states. - Objects: The things business apps show: a receipt, a vehicle, a pass, a product, a floor plan, a signature, a stamp. - Example apps: A page per example app with six to ten key screens, in light, in dark and on a phone. - Patterns: Flows that run across screens, drawn once. - Changelog: What changed in each version of the file. #### What ships first The first release holds the foundations, the components and three example apps: Stonebridge, Foldline and Juniper. The other pages follow as updates, which every licence includes. #### Questions about the file ##### Do I need the file to use the framework? No. The code works without it. The file is for designing screens before your coding tool builds them, and for working with people who design in Figma. ##### How do I get it? With your licence: the file is a download in your order, and each new version of it arrives the same way. ##### Can I use it for client work? Yes, under the same licence as the code, including designs for client projects. You can’t resell the file or publish it as a kit of your own. ### The studio: we build it for you We build it for you. The studio behind Meadowstack designs and builds your business app on the framework at a fixed price, then keeps improving it. One named person answers for it. https://meadowstack.com/studio/ Between the box and the blank page: Off-the-shelf software is cheap because everyone gets the same thing. An agency is expensive because every client starts from a blank page. We sit between: the foundations are finished in the framework, so you pay for what is yours. #### Custom apps: From problem to working app First we learn how your work runs and what slows it down. We design the app and you click through it before anything is built. Then you get a fixed price, we build it on a proven framework and the code is yours. - A plan first: Screens, roles and data, before anything is built. - A prototype to click: On the real framework, so what you see is what you get. - A fixed price: It doesn’t change unless the scope does. - You own the app: And its code, with a licence for the framework. #### Care: The part most studios skip An app starts to age the day it launches. Care keeps yours healthy, comes with a warranty and makes it better every month from how your team really uses it. - Warranty and fixes: We stand behind the app, and a person checks every fix before it ships. - A monthly report: With the three changes that would help most. - Framework updates: Part of your Care subscription. Tested first, then rolled out in stages. - The code, if you want it: Want your own developers to take over? We hand over the code, the data and a guide. #### Rescue: An app built with AI, or an old system you depend on? Apps started in Lovable or Bolt reach a first version fast, and older systems keep running for years while nobody dares touch them. Rescue gets them onto the framework: an audit, fixes in order of risk, then the move itself. Whatever works stays. - Audit first: What is risky now, what can wait, what it costs. - Data and access checked: Who can read and change what, down to the database. - Fixes in order of risk: Data and access first, then the screens. - Moved onto the framework: Roles, history, states and checks on every change. #### Studio prices A new app starts with Solver, is built in Build and kept alive by Care. Rescue is for what already exists. - Solver: €590. A UX design, a clickable prototype and a fixed offer for your Build. Deducted from the price of Build; The prototype becomes the brief. - Build: from €1,990. Your app on the framework, at the price Solver fixed. 1 module and 1 role; Any number of screens; 3 months of Care Start included; The app and its code are yours. - Care Start: Included with Build. The first three months after launch. At their end we recommend a level from how the app is really used. Everything in Lite; A UX review after 30 days of real use; 6 hours of small changes; A monthly report; Our recommendation for the right level. - Care Lite: €99 a month. The essentials, so the app keeps running. Warranty, monitoring, backups and framework updates; Fixes reviewed by a person; A reply within one working day; Integration upkeep. - Care Basic: €239 a month. For an app that changes now and then. Everything in Lite; A UX review every quarter. - Care Standard: €399 a month. For an app the team works in all day. Everything in Basic; A UX review every month; 4 hours of changes a month. - Care Plus: €799 a month. For an app the business cannot stop. Everything in Standard; A reply within 4 working hours; 10 hours of changes a month. - Rescue audit: €690. Findings in plain language and a plan in order of risk. Deducted from the price of Rescue; A fixed price for the fix. - Rescue: from €1,390. The fixes in order of risk and the move onto the framework, at the price the audit fixed. Data and access first; Whatever works stays; Roles, history and tests from the framework; The app and its code are yours. - Extra module: €590 - Extra role: €199 - Integration with a tool through its API: from €390. A simple one. Two-way, or with an ERP or accounting system, from €990; Solver settles the exact price. - Hosting: €19 a month. We run the app and its database at cost. You can also host the app yourself, free of charge. - AI chat: €99 a month. Ask the app’s data in plain words, for 10 people; €6 for each extra person, no set-up fee. Fair use: 300 questions per person a month. A module is an area of work, such as Production or Invoices. A role is a type of user with rights, such as a manager or an accountant. “From” prices are where we start before Solver. After Solver you get a fixed price, and it doesn’t change unless the scope does. Prices exclude VAT. #### Questions about the studio ##### Why not just use Notion, Airtable or an AI app builder? Use them where they fit. Off-the-shelf tools are cheap, but your process bends to them and the real work ends up in a spreadsheet next to them. AI app builders get a first version working fast, then stall at roles, real data and someone who answers for the app. We build exactly what your process needs, on a framework that already handles the hard, invisible parts. ##### How can you cost less than an agency? There is less to build. An agency starts every client from a blank page and bills you again for tables, forms, roles and approvals. Those come ready from our framework, tested in every app we ship, so you pay only for what is unique to your business. AI writes much of the code; a person designs the app, reviews every change and answers for it. ##### Why “from”? “From” prices are where we start before Solver. After Solver you get a fixed price, and it doesn’t change unless the scope does. What moves the price: what a custom business app costs. ##### What are a module and a role? A module is an area of work, such as Production or Invoices. A role is a type of user with rights, such as a manager or an accountant. Build covers one of each; more are priced alone. ##### Who owns the code? You own your app and its code. The framework underneath stays ours, and your app gets a licence to use it for as long as it runs, even if you leave us. Framework updates come with your Care subscription. ##### How long does it take? Solver comes first and ends with a fixed offer that includes the timeline for your Build. While we build, you follow progress on a preview link. ##### Can it connect to the tools we already use? Yes, as long as the tool has an API. Each integration is built once and tested, a simple one from €390, a two-way one or one with an ERP or accounting system from €990. Keeping it working when the other side changes is part of Care. ##### Where does our data live, and is it safe? On your own accounts if you prefer to hold the keys, or we run the app for you as a Hosting add-on to Care, with daily backups. Who can read and change what is enforced in the database too, not only on the screen. ##### Do we need Care? Every Build comes with three months of Care Start. After that you choose a level of Care or take the app over yourself; without Care the warranty and framework updates end, the code and your licence stay with you. ##### Can you take over an app someone built with AI, or an old system? Yes, that is what Rescue is for: an audit first, then fixes in order of risk, then a move onto the framework. Whatever works stays. ##### How do we start? Describe your problem in the form or at hello@meadowstack.com. A few sentences are enough. We reply with questions or a proposal for Solver. ### Example trades (fictional companies in the demo) The companies are made up, the apps work. https://meadowstack.com/examples/ - Studios and services (Brightpath Studio): Capacity for the next eight weeks against the hours each project sold, tasks in a list or on a board, a timer and timesheet, each project’s money and margin, and a channel with every client. One app instead of three. What the app is made of: Capacity, Tasks, Time, Finance, Channels. https://meadowstack.com/examples/agency-capacity-planning/ - Roasters and online shops (Fernhill Coffee): The roast plan is worked out from the cafés’ orders, the subscriptions and the shop, every green coffee lot is traced to its customers, and a paid order issues its invoice and books the courier on its own. An assistant knows the stock. What the app is made of: Roasting, Green coffee, Shop, Wholesale, Scenarios. https://meadowstack.com/examples/coffee-roastery-production/ - Accounting offices (Kestrel Accounting): Clients’ documents are checked as they arrive, with the fields read from each one, bank payments are matched to invoices, the month close is a checklist of what is missing, and official letters get their reply dates. The office catches a fraudulent invoice before the client pays it. What the app is made of: Documents, Bookkeeping, Official mail, Invoicing. https://meadowstack.com/examples/accounting-office-documents/ - Restaurants and venues (Juniper Kitchen): Three bistros plan their shifts against the day’s takings, with rest rules and swaps to approve. Recipes carry their cost and allergens, the kitchen ticks off its food safety checks, and new people start with a handbook and an onboarding plan. What the app is made of: Shifts, Kitchen, Food safety, People, Handbook. https://meadowstack.com/examples/restaurant-staff-rota/ - Sports venues (Riverside Sports Club): Court bookings on a timeline you move by dragging, one inbox for every message from members, passes and payments at the desk, coaches’ lessons, racket hire and the till close. The front desk runs the courts, the rain and the river level from one screen. What the app is made of: Front desk, Courts, Club, Coaching, Rentals. https://meadowstack.com/examples/sports-club-court-bookings/ - Construction (Stonebridge Construction): Every site on one map, the schedule against the week’s weather, a site diary, defects pinned on drawings and a phone view for the foreman. When frost puts a pour at risk, the owner moves the work with one confirmation. What the app is made of: Sites, Schedule, Crews, Machines, Site diary, Drawings, Foreman's phone, Budget. https://meadowstack.com/examples/construction-site-management/ - Haulage (Ridgeway Freight): A dispatch plan that checks the drivers’ hours on every drag, a live map of the trucks, loads back, drivers’ documents, and fuel and tolls per truck. Dispatch sees who will miss a slot and replans without breaking the rules; the customer follows the delivery with its arrival time. What the app is made of: Freight, Drivers, Costs, Reports. https://meadowstack.com/examples/haulage-dispatch-planning/ - Packaging and print (Foldline Packaging): A job from the first e-mail to the pallet: quotes, the mail beside every job, print files checked in 3D before they reach the press, proofs the customer approves in their own portal and the machines’ week ahead. What the app is made of: Jobs, Print file editor, Quotes, Cutting dies, Colour. https://meadowstack.com/examples/packaging-print-production/ - For individuals (Martin Kerr): Not every app is for a company. Martin, a fitness creator, keeps his brand deals and their usage rights, his content calendar, his invoices and income limits, and his training in one app. His coach signs in too and sees only the training. What the app is made of: Brand deals, Content, Money, Training. https://meadowstack.com/examples/personal-app-for-a-creator/ ### Guides How to keep screens written by AI tools consistent, what to put in AGENTS.md, what a custom app costs and when a spreadsheet is still the right tool. Useful whether or not you ever buy anything from us. https://meadowstack.com/guides/ #### How to keep AI-generated UI consistent across a whole app https://meadowstack.com/guides/keep-ai-generated-ui-consistent/ (2026-11-11) An AI coding tool writes each screen from what it can see in that moment, so without a shared source it invents a new table, form and spacing every time. Better prompts do not fix this; structure does. Give the tool one place to take components from, short rules it reads before every task, checks that fail when a rule is broken, and a fixed set of screen types. All of it works in any React repository. ##### Why ten prompts give ten different screens Each prompt is a fresh decision. Ask Claude Code, Cursor or Codex for an orders list on Monday and a suppliers list on Thursday, and you get two tables that each look reasonable and do not match. One has a filter row, the other a search box in the header. One opens a record in a dialog, the other on a new page. The padding, the empty state and the date format all differ. The tool is not careless. It fills every gap you leave with the most likely answer from everything it has seen, and for a table there are thousands of likely answers. It also does not remember last week's screen unless that screen is in front of it, and in a growing repository it often is not. So the drift comes from the gaps, not from the model. The fix is to close the gaps where the tool looks first: the code it imports, the instructions it reads and the checks that run after it. ##### What actually fixes it ###### One source of components If a table can be written from scratch, it will be. Keep one folder or package that owns every building block (button, field, table, side panel, empty state) and make importing from it the only allowed way to build a screen. The tool then composes screens instead of drawing them, and a fix in the table reaches every list at once. Make the source easy to find. A short index of what exists, with one line on when to use each piece and what it replaces, saves the tool from writing its own modal because it did not know yours was there. ###### Rules the tool reads Coding tools read a standing instruction file before they start: `AGENTS.md` for most of them, `CLAUDE.md` for Claude Code. Rules there are read on every task, so they are worth more than any prompt. Good ones are short, concrete and checkable: - Use the semantic colour classes from the kit; never write a hex, rgb or hsl value in a component. - Every list loads through one data hook and shows four states: loading, error with retry, empty, and the data. - A screen header has a title, one primary action and at most two secondary ones; the rest goes behind a menu. - Tables never scroll sideways on a phone; less important columns hide and fold into the first cell. Write each rule once. When the same rule sits in three files in three wordings, the tool follows whichever it read last. Our guide on what to put in AGENTS.md covers the file itself. ###### Checks that fail the build A rule nothing checks is a suggestion. The tool will follow it most of the time, and the exceptions pile up. Turn every rule that can be checked into a script that fails: - A token check that searches components for raw colour values and stops the commit when it finds one. - A lint rule (`no-restricted-imports`) that forbids importing the underlying UI library anywhere outside your component package. - A states check that finds data loaded without the loading, error and empty branches. - End-to-end tests with an accessibility scan, and screenshots at phone and desktop width you actually look at. The tool reads the failure and fixes it in the same session. Run the cheap checks after every edit (Claude Code can do this with a hook) and the slower ones before you call a task done. ###### Screen archetypes The biggest source of drift is the layout of a whole screen: how wide it is, what sits in the header, what scrolls and how a record opens. Name a small set of screen types and give each a component that owns those decisions. A list is a list, a form is a form, and the tool picks the type instead of inventing a page. We use nine; the guide to screen archetypes describes each. ##### What you can do today, without buying anything 1. Pick one component library and write in `AGENTS.md` that every screen is built from it. Say where it lives. 2. Add the four or five rules above that matter most to your app, each in one sentence. 3. Add `no-restricted-imports` for the libraries the components wrap, and a ten-line script that fails on a hex colour in your components. 4. Write down what "done" means: which commands pass and which screen sizes you look at. 5. When you correct the tool twice for the same thing, add a rule. When you correct it three times, add a check. None of this needs a framework. It needs someone to decide once, write it down in one place and let a script enforce it. ##### How Meadowstack Framework packages it The framework is that setup, finished and kept up to date. It holds a component kit with a manifest of what each piece is for, an `AGENTS.md` and `CLAUDE.md` with one wording per rule, Claude Code skills for repeat jobs (a new screen, a new module, an approval flow, a final check), Cursor rules generated from the same file, and an MCP server that answers "which component do I use for this" before the tool writes its own. Screens are `` and its eight siblings; a slot the archetype does not have is a type error. Checks for tokens, contrast, screen states, column types, markup and motion run in `npm run check`, and an editor hook runs the formatter and the token check after every edit. You can see the result in the example apps: 9 trades, one look. ##### Can better prompts fix inconsistent UI? Only for the screen in front of you. A prompt does not carry over to the next task. Rules in a file the tool reads every time, and checks that fail the build, do. ##### Does this work with Cursor and Codex as well as Claude Code? Yes. The rules live in plain files and the checks are npm scripts, so any tool that reads an instruction file and runs commands follows them. Claude Code adds hooks and skills on top. ##### Is a design system the same thing? A design system gives you the parts and the reasons. Consistency with an AI tool also needs the rules in a file it reads and checks that stop a change, because the tool cannot attend a design review. #### What to put in AGENTS.md for a React business app https://meadowstack.com/guides/agents-md-for-react-business-apps/ (2026-11-11) AGENTS.md is a plain Markdown file at the root of a repository that AI coding tools read as standing instructions before they work. For a React business app it should hold five things: a map of the repository, the commands, what "done" means, the rules with one wording each, and where the longer rules live. Keep it short enough to read in two minutes and make every rule something a script or a test can check. The template at the end of this guide is a starting point you can copy. ##### What the file is, and who reads it `AGENTS.md` is a convention, not a product: one Markdown file at the root of the repository, written for the AI tool rather than for a new colleague. Tools that support it read it at the start of a task and treat it as standing instructions, so a rule written there applies to every prompt without being repeated. Codex reads `AGENTS.md` as it is, and so do a growing number of other tools and editors. Claude Code reads `CLAUDE.md`, which can pull the other file in with a single line, `@AGENTS.md`, and then add what only Claude Code uses (hooks, skills). Cursor reads `AGENTS.md` as well and keeps its own rules folder for rules that apply only to some files. One file, read by all of them, is the point. People read it too. A good `AGENTS.md` is also a short onboarding for a new developer. ##### The sections that earn their place ###### A map of the repository Name the folders and what lives in each, one line apiece: where the components are, where the screens are, where data is loaded, where tests go. The tool otherwise spends its first minutes searching, and sometimes stops at the first plausible folder. A map also says what not to touch: generated files, vendored code, the build output. ###### Commands A table of the commands for the jobs the tool will do: install, run the app, run all checks, run the end-to-end tests, format. Exact commands, not descriptions. If a task needs a step first (a database seed, a generated file), say so next to the command. ###### What "done" means The most useful section and the most often missing. List what must be true before the tool says it has finished: the checks pass, the tests of the screens it touched pass, a new behaviour has a test, screenshots at phone and desktop width were looked at, no TODOs are left. Without it, "done" means "it compiled". ###### Rules, one wording in one place Short, concrete, checkable rules, grouped by subject: look and layout, data and states, permissions, forms, accessibility, copy. Each rule is one sentence a person could verify on a screen. "Every list shows loading, error, empty and data states" is a rule; "write clean, maintainable code" is not. Each rule appears once. If the same rule is also in a skill, a code comment and a README, the copies drift apart and the tool follows whichever it read last. ###### Where the rules live As the app grows, some rules need more than a sentence: how to build a new screen, how an approval flow works, why a decision was made. Put those in their own files and give `AGENTS.md` a short table that points to them. The main file stays short; the detail is one step away when the task needs it. ##### Common mistakes - Essays. Paragraphs about the team's philosophy push the rules out of view. The tool reads the whole file every time; every sentence should change what it does. - Duplicated rules. The same rule in three places, in three wordings. Pick one place and delete the others. - Rules nothing checks. A rule without a script, a lint rule or a test behind it erodes quietly. If you correct the tool twice for the same thing, add a check. - Stale facts. A folder that was renamed, a command that no longer exists. The tool trusts the file more than the code, so a wrong map does real damage. Review it whenever the layout changes. - Secrets and personal data. The file is read by tools and often committed. Keys live in the environment, never here. ##### A template you can copy A generic skeleton of about forty lines for a React business app. Replace the paths and commands with your own and delete what you do not need. ```markdown ## Project instructions (all coding agents) An internal web app for [what the company does]. React, TypeScript, Vite. Each rule has one wording, in this file or in the file it points to. ### Layout - src/components: the only place UI building blocks live. Screens import from here. - src/screens: one folder per area of work; each screen is a list, record, form or dashboard. - src/data: loading and saving; screens never call the network directly. - src/permissions.ts: every rule about who may do what. - e2e: end-to-end tests. Never edit dist or generated files. ### Commands | Task | Command | | ----------- | -------------- | | Install | npm install | | Run the app | npm run dev | | All checks | npm run check | | End to end | npm run e2e | | Format | npm run format | ### Definition of done 1. npm run check passes. 2. The e2e tests of every screen you touched pass. 3. New behaviour has a test. 4. You looked at screenshots at 390px and 1440px, light and dark. 5. No TODOs, no commented-out code. ### Rules - Build screens from src/components; never add a new table, dialog or form field elsewhere. - Colours only through the design tokens; no raw colour values in components. - Every data view shows four states: loading, error with retry, empty, success. - Ask permissions through can(action, record); never compare roles in a component. - Every change of state writes an audit entry. - Every input has a visible label; one h1 per screen; everything works with a keyboard. - Tables never scroll sideways on a phone. - Messages say what to do next, in the app's language. ### Where the rules live | What | Where | | ------------------------- | --------------- | | How to build a new screen | docs/screens.md | | Why a rule is what it is | docs/decisions/ | ``` ##### How Meadowstack Framework does it The framework's own `AGENTS.md` follows this shape, filled in for a business app: the map of the kit, the starter and the example apps, the commands, a definition of done, and rules for look, data states, permissions, accessibility, forms and copy, with a table of where the longer rules live. Every rule there that can be checked has a script behind it, and the quick start shows the first prompt that puts it to work. The guide on keeping AI-generated UI consistent explains the checks. ##### Does Claude Code read AGENTS.md? Claude Code reads CLAUDE.md. Put a line with @AGENTS.md at the top of CLAUDE.md and it reads both, so the shared rules stay in one file and CLAUDE.md holds only what is specific to Claude Code. ##### How long should AGENTS.md be? Short enough to read in two minutes. Move anything longer than a few sentences into its own file and point to it from the table at the end. ##### Should AGENTS.md be committed to the repository? Yes. It describes the repository, changes with it and should be reviewed like code. Keep keys and personal data out of it. #### Nine screen archetypes every business app is made of https://meadowstack.com/guides/screen-archetypes-for-business-apps/ (2026-11-11) Almost every screen in a business app is one of nine types: index, worklist, record, form, overview, workspace, inbox, settings or canvas. Each type answers the same four questions the same way every time: how wide the screen is, what sits in its header, what scrolls and how a record opens. Naming the type before building a screen keeps an app consistent, and it gives an AI coding tool a choice between nine known answers instead of an open question. Below is what each one is for, with a working example. ##### Why name screen types at all A business app has dozens of screens, but people do a handful of things on them: find a record, work through a queue, read and change one record, fill in a form, check how things stand, plan on a board or a map, answer messages, change settings, edit a document. When each of those jobs gets one layout, people learn the app once. When every screen is designed from scratch, they relearn it on every page. The decisions an archetype fixes are the ones that drift most: the width of the content, what the header holds (a title, one primary action, at most two secondary ones, the rest behind a menu), which part of the screen scrolls, and where a record opens. In Meadowstack Framework a screen is `` and the archetype owns those four decisions; a slot it does not have is a type error. | Archetype | Width | What scrolls | A record opens | | --------- | ---------------------------------------------- | -------------------------------------- | ------------------------------------- | | Index | full, left | the body | in a panel beside the list | | Worklist | full, left | the list and the item, each on its own | in a permanent split view | | Record | centred, with a property column | the body | it is the page | | Form | centred, narrow | the body, with a sticky footer | nowhere | | Overview | centred | the body | through links into a list or a record | | Workspace | full | inside the surface | in a panel over the surface | | Inbox | full, list and thread | the list and the thread | in the thread | | Settings | centred, navigation on the left | the body | in a dialog | | Canvas | full for the canvas, text on a reading measure | the canvas | nowhere | ##### Index: find one record among many A table of records with a filter row above it and the records' bulk actions. It runs the full width, because a list earns its columns. Clicking a row opens the record in a panel beside the list, so the list stays in view; a corner button expands the panel to a full page. Example: the list of trucks in the haulage dispatch app. ##### Worklist: get through a queue For work that arrives and has to be dealt with one item at a time: documents to check, requests to approve. The list and the open item sit side by side permanently and scroll separately, so the next item is always one step away. Example: the documents inbox in the accounting office app. ##### Record: one thing, in full The page of one record: what people call it as the title, its number small above it, the content in the middle and a column of properties beside it. When the record waits for a decision, the decision sits as a card at the top of that column, not as a coloured banner. Example: a shipment in the haulage dispatch app. ##### Form: create or change something Centred and narrow, because a form is read top to bottom. The actions stay in a sticky footer, so the save button is never lost under a long form; a form with a summary gets a wider layout with the summary beside it. Example: a new invoice in the accounting office app. ##### Overview: how things stand A dashboard that opens with a headline, one sentence with the numbers that matter, then the figures and charts. It does not hold records itself; every number links into the list or the record behind it. Example: the costs overview in the haulage dispatch app. ##### Workspace: plan on a surface A board, a rota, a timeline or a map, where people move things around. The surface takes the whole screen and scrolls inside itself; a record opens in a panel over it, so the plan stays where it was. Example: the map of trucks in the haulage dispatch app. ##### Inbox: conversations A list of threads beside the open thread, each scrolling on its own, with the reply box under the thread. Use it for messages with customers or members, not for approvals, which are a worklist. Example: the messages at reception in the sports club app. ##### Settings: change how the app behaves Centred, with the settings' own navigation on the left and sections of rows on the right. A change that needs more than a switch opens in a dialog. In the framework every app has the same four settings pages: General, Team and roles, Connected apps, and MCP and AI. Example: the settings of the packaging print app. ##### Canvas: edit a document or an artboard The canvas takes the screen and is the one thing that scrolls; tools sit in a toolbar and an inspector beside it, and any text runs on a reading measure. Records do not open here; this is a place to make something. Example: the print file editor in the packaging print app. ##### How to use the nine Before a screen is built, write down who opens it, the one job they come to do, and so its archetype. If a screen seems to need two, it is usually two screens: a list and a record, or a dashboard that links into a worklist. If it fits none, look again before inventing a tenth: the example apps, from print production and haulage to accounting, bookings, rotas and construction sites, are built from these nine. ##### What is a screen archetype? A named type of screen that fixes its width, its header, what scrolls and how a record opens. Every screen of that type behaves the same way, whoever or whatever builds it. ##### Are nine archetypes enough for a whole app? Our example apps, in very different trades, are built from them. A new type is worth adding only when a job truly fits none of them. ##### Can I use archetypes without Meadowstack Framework? Yes. Write the nine down with their width, header, scroll and record rules, and make one layout component per type. The framework ships that component and the rules ready made. #### App builder or a coded framework: which for an app you will maintain https://meadowstack.com/guides/app-builder-or-coded-framework/ (2026-11-11) A prompt-to-app builder gets you a working prototype fastest, on its platform, and is the right choice for testing an idea or a small tool few people rely on. An app your team will use daily for years asks different questions: who owns the code, whether screen fifty still matches screen one, where it runs, and who can change it next year. Building in your own repository with an AI coding tool on a framework is slower on day one and steadier from month three. Many teams do both: prototype in a builder, then build the real app in code. ##### Two categories, both with AI Both ways use AI to write the app, which is why they get compared. They differ in where the app lives and what steers the AI. Prompt-to-app builders (Lovable, Bolt and v0 are examples of the category) take a description in a chat and produce a running app on their platform: the editor, the preview and usually the hosting are in one place. You steer by prompting; the builder decides the structure. A coded framework with an AI coding tool means a repository of your own, a framework in it that already holds the components, screen types and rules, and a tool such as Claude Code, Cursor or Codex working in that repository. You steer by prompting too, but the framework's rules and checks decide most of the structure before the tool writes a line. ##### The trade-offs, honestly ###### Speed of the first prototype Builders win, clearly. From a blank page to something you can click takes minutes, without installing anything. With a framework you first clone a repository and run it, and the first screen takes longer to appear. If the question is "does this idea make sense at all", the builder answers it sooner. ###### Ownership of the code With a framework the code is yours from the first commit, in your repository, under your version control. With a builder the app lives on the platform; many builders let you export the code or sync it to a repository, and that export is where the next question starts: who will maintain it outside the builder. ###### Consistency over months This is where the two drift apart. A builder generates each screen in answer to a prompt, and after a few dozen prompts the app usually has several ways of doing the same thing: tables that behave differently, forms with different validation, permissions checked in some places and not others. A framework closes those gaps up front: one source of components, rules the tool reads before every task, checks that fail when a rule is broken. Screen fifty is built the same way as screen one. Our guide on keeping AI-generated UI consistent explains how. ###### Hosting and data Builders usually host the app and often bring their own database service, which is convenient and ties the app to their platform and pricing. A coded app is an ordinary web app: you host it where you like, connect it to your company's sign-in and data, and move it if you need to. ###### Who can change it later A builder's app is easiest to change for the person who built it, in the builder. A coded app on a framework can be changed by any developer who knows React, with or without an AI tool, and the repository's rules tell the next person and the next tool how things are done. For an app a company depends on, that matters more than how fast it was born. ##### When the builder is the right choice - You want to test an idea with real people this week. - The tool is small, used by a few people, and nobody minds if it is rebuilt later. - You need a clickable demo for a pitch or a brief. - There is nobody who will look after code, and the platform's limits are acceptable. A prototype from a builder is also a good brief. It shows what people need in a way a document rarely does. ##### When code on a framework pays off - The app will be used every day by a team, for years. - It needs roles, approvals and a history of changes that someone can audit. - It must connect to the company's sign-in, data or other systems. - Several people, or several AI tools, will work on it over time. - You want to own the code and choose where it runs. ##### A common path Prototype in a builder, then build the real app in code. When a builder's app has already become something people depend on, an audit tells you what to keep: the studio's Rescue does exactly that and moves the app onto the framework. If you build it yourself, Meadowstack Framework is the repository to start from, and the comparison sets it beside UI kits, starters and builders by category. ##### Is an app builder good enough for an internal tool? For a small tool a few people use, often yes. Once the tool needs roles, approvals, an audit trail or a connection to company data, and people rely on it daily, a coded app is easier to keep correct. ##### Can I move an app from a builder to my own code later? Usually, if the builder exports the code. Expect to restructure it: the export runs, but it was not written to rules you chose. Treat it as a detailed brief for the rebuild. ##### Do I need to be a developer to build on a framework with an AI tool? You need to read code well enough to review what the tool changed and to run the checks. The framework's rules and checks do much of the reviewing for you, but someone has to own the result. #### What a custom business app costs, and what drives the price https://meadowstack.com/guides/custom-business-app-cost/ (2026-11-11) The price of a custom business app is set by five things: how many areas of work it covers, how many kinds of users it has, which other systems it must talk to, how much is designed from scratch, and who looks after it once it runs. Screens matter less than people expect; rules, roles and integrations matter more. A fixed price needs a short, paid phase that settles the scope first, while an hourly price moves with every surprise. Prepare a description of the work as it runs today, the people involved and the systems you use, and any quote you get will be closer to the truth. ##### What actually drives the price ###### Areas of work An area of work is one part of what the company does that the app takes on: orders, production, invoices, a rota, a fleet. Each brings its own records, lists, forms and rules. Two areas cost more than one, and three more than two, roughly in step, because each needs the same depth: what can happen to a record, who may do it, what has to be checked. This is the biggest single driver. ###### Roles A role is a kind of user with its own rights: a manager who approves, an accountant who sees costs, a customer who sees only their own orders. Every role adds rules to design, build and test, and every screen has to be right for each role that sees it. An app with one role is much simpler than an app with five. ###### Integrations Connecting the app to other systems (accounting, an online shop, a calendar, a carrier's API) is often underestimated. Reading data one way is the simple kind. Writing back in both directions, or talking to an ERP or accounting system, means handling conflicts, failures and the other system's quirks, and costs noticeably more. ###### Designed from scratch, or built on proven parts The foundations every business app needs (sign-in, roles, approvals, a history of changes, tables that work on a phone, loading and error states, accessibility) are the same from app to app. Built from scratch for each client, they are a large share of the bill. Built once and reused, they cost the client little, and the budget goes to what is specific to the business. ###### Care after launch An app that people use changes: the rules shift, a new colleague needs a role, a connected system updates its interface. Someone has to keep it running, secure and current. That is a monthly cost, smaller than the build, and worth knowing before you start. ###### What matters less than people think The number of screens. A list, a record and a form for one area of work are a few screens; adding a fourth view of the same data is cheap once the rules behind it are right. ##### Fixed price or hourly With hourly work you pay for the time spent, and the total is known only at the end. It suits work whose scope cannot be known in advance, and it puts the risk of every surprise on you. A fixed price puts that risk on the supplier, which is only fair if the scope is settled first. That is why fixed-price work starts with a short, paid phase: the problem taken apart, a design you can click through, and an offer for exactly that. The price holds unless you change the scope. A fixed price without that first phase is either padded to cover the unknown, or it will be renegotiated. ##### Our price list, as one worked example Prices differ a lot between suppliers, so here is ours as one example of how a price is put together, excluding VAT: | Part | Price | What it covers | | --------------------------- | ------------------------ | ------------------------------------------------------------------------------------- | | Solver | €590 | The problem taken apart, a clickable prototype and a fixed offer; deducted from Build | | Build | from €1,990 | One area of work and one role, any number of screens, three months of Care Start | | Extra area of work | €590 | Another module, such as Production or Invoices | | Extra role | €199 | Another kind of user with its own rights | | Integration, simple | from €390 | One tool through its API | | Integration, two-way or ERP | from €990 | Solver settles the exact price | | Care | from €99 a month | Lite, Basic at €239, Standard at €399, Plus at €799 a month | | Hosting | €19 a month | At cost; hosting the app yourself is free | So an app for two areas of work, three roles and one simple integration starts at Build, plus one extra area of work, two extra roles and the integration: €1,990 + €590 + 2 × €199 + €390, with Solver deducted. Care follows after the three included months, at the level you choose, or you take the app over yourself. The code is yours either way. The price is lower than starting from a blank page because the foundations listed above come from our framework, finished and tested. That is the part of the bill you no longer pay for. ##### What to prepare before you ask anyone for a quote 1. The work as it runs today. Where the data lives (spreadsheets, e-mail, paper, an old system), who touches it and in what order. A screenshot of the spreadsheet says more than a page of description. 2. The people. Who will use the app, how many of them, and what each kind of user may and may not see or do. These become the roles. 3. The systems. Which tools the app must read from or write to, and whether they have an API you can get access to. 4. What hurts most. The one or two problems that made you start looking. They set what goes into the first version. 5. What happens after launch. Whether you have someone to look after the app, or want the supplier to. With these, two quotes from two suppliers become comparable. Without them, each supplier prices a different guess. ##### How much does a custom business app cost? It depends on the areas of work, roles and integrations. Our Build starts at €1,990 for one area of work and one role with any number of screens, and the exact price is fixed after Solver. ##### Why do quotes for the same app differ so much? Because each supplier prices a different guess of the scope, and some build the foundations from scratch while others reuse them. Settling the scope first and asking what is reused makes quotes comparable. ##### Is a fixed price more expensive than hourly? Not if the scope is settled first. A fixed price moves the risk of surprises to the supplier; an hourly price leaves it with you. #### Off-the-shelf software, a spreadsheet, or a custom app https://meadowstack.com/guides/off-the-shelf-spreadsheet-or-custom-app/ (2026-11-11) A spreadsheet wins while a few people share simple data and trust each other. Off-the-shelf software wins when your process is the common one in your field and you are happy to work its way. A custom app wins when the way you work is part of what makes the company good, and the tools you have make people work around them. Between the box and the blank page sits a third option: a custom app built on a ready framework, which costs closer to the box and fits like the blank page. ##### Three options, three different promises A spreadsheet promises freedom: anyone can add a column, today, for nothing. Off-the-shelf software promises a finished solution: someone else has thought the process through and keeps the product running. A custom app promises fit: the software follows how your company works, not the other way round. Each promise is real, and each has a price that shows up later. The decision is about which price you would rather pay. ##### When the spreadsheet wins A spreadsheet is the right tool while three things hold: a few people use it, the data is simple, and everyone trusts everyone with every cell. A price list, a small stock count, a plan for one project. It costs nothing to start, everybody already knows how to use it, and it bends to any new idea in a minute. Do not replace a spreadsheet that works. Replace one that has started to cost you. ##### Signs you have outgrown the spreadsheet - Several versions exist. "Orders final 3 (Pavel).xlsx" sits next to the shared one, and nobody is sure which is right. - Someone is afraid to touch it. One person understands the formulas, and the file stops when they are on holiday. - People need different views and different rights. The warehouse should not see margins; a customer should see only their own orders. A spreadsheet cannot keep those apart. - Approvals happen in e-mail. Somebody asks, somebody answers "OK" in a thread, and three weeks later nobody can find who approved what. - Nobody knows who changed what. A number changed, and there is no history to say when, by whom or from what. - It does not work on a phone. People in the workshop, on the road or on a site copy figures onto paper and type them in later. Two or three of these together are a good reason to look for something better. ##### When off-the-shelf software wins Boxed software wins when your process is the common one in your field and you are happy to follow it: accounting, payroll, e-mail, a standard online shop. Thousands of companies share the same needs, so the product is mature, cheaper than anything built for you, and somebody else keeps it current. Bending your way of working to a good standard product is often the right call. It stops winning when the way you work is part of what makes your company good, or when the product covers most of what you need and the rest moves into spreadsheets next to it. That rest is where the time goes. ##### The hidden cost of software people work around Software that does not fit is paid for twice: once when you buy it, and again every day the real numbers live in a spreadsheet beside it. In a survey of 3,750 people in 14 countries, office workers said they lose 7.9 hours a week to software that gets in their way, and 88% of managers thought their people had the tools they need while only 21% of average employees agreed (WalkMe, The State of Digital Adoption 2026). That gap is worth checking in your own company. Ask the people who use the system every day, not the people who bought it, where they keep a copy of the data on the side. ##### When a custom app wins A custom app is worth it when the work has rules of its own that matter: who may approve what, which steps a job goes through, what a customer may see. It is also worth it when several spreadsheets and e-mail threads together carry one process that nobody can see whole. An app turns that process into one place with roles, approvals, a history of every change and a screen that works on a phone. Its classic costs are price and time: built from a blank page by an agency, it takes months and a budget most small companies do not have. ##### Between the box and the blank page There is a middle path. Most of what any business app needs is the same everywhere: sign-in, roles, approvals, a history of changes, tables that work on a phone, accessible screens. Built once in a framework and reused, those parts cost little, and the work goes only into what is specific to your company. That is how our studio works: every app is built on Meadowstack Framework, so it fits like a custom app and costs closer to boxed software, from €1,990, with a fixed price after a short design phase. The guide on what a custom app costs shows how a price is put together, and the example apps show 9 trades on the same foundation. ##### A simple way to decide 1. List the work the tool must carry and the people who do it. 2. Mark what is standard in your field and what is your own way of working. 3. If almost all of it is standard, look for off-the-shelf software first. 4. If a few people share simple data, keep the spreadsheet and tidy it up. 5. If your own way of working is the core, and people already work around the tools you have, talk to someone about a custom app. Start with the design, not the code. ##### When should a company replace a spreadsheet with an app? When several versions exist, people need different rights to the same data, approvals live in e-mail, or nobody can tell who changed what. One of these alone can be fixed; two or three together are a good reason. ##### Is a custom app always more expensive than off-the-shelf software? To build, usually yes. Over a few years it can cost less if the boxed product leaves part of the work in spreadsheets and people lose time working around it. Built on a ready framework, a custom app starts much closer to boxed prices. ##### Can we start small? Yes. Start with the one area of work that hurts most, with one kind of user, and add the rest once it runs. A first version is the cheapest way to learn what the app really needs. ### Questions and answers ##### What is Meadowstack? A framework for business apps: a React UI kit, a Figma file, screen archetypes, and the rules, checks and security defaults Claude Code, Cursor and Codex follow, so what they build looks designed and behaves the same on every screen. ##### What do I get when I buy it? An invitation to a private GitHub repository with the kit, the starter app your own app begins from, the rules and skills for coding tools, recipes, the checks and the demo with 9 example apps, and the Figma file. See what’s inside. ##### What do I need to use it? Node.js, an editor and a coding tool that reads AGENTS.md, such as Claude Code, Cursor or Codex. The apps are ordinary React and TypeScript, so some experience with them helps. The quick start walks through the first hour. ##### Can I use it for client work? Yes. Every licence covers client work, with no licence per client. Your client can run and maintain the app you deliver. You can’t resell the framework itself. ##### Can I get my money back? Yes, within 14 days of buying, without giving a reason. Write to hello@meadowstack.com and Polar, which sells the licence, refunds the full price. The licence and access to the repository end with the refund. ##### Does it make my app secure? From Meadowstack 3.0 your app starts with secure defaults: permissions in one policy file, input checked on the server, sign-in, an audit trail and strict headers. Until then, 2.1 keeps permissions in one table per module and the history of every change, and the server side is yours. It is built to support the technical measures in NIS2 Article 21; it does not make an organisation compliant by itself. See Security. ##### Can you build the app for us? Yes. The studio behind Meadowstack designs and builds business apps on the framework at a fixed price, and keeps improving them with Care. ### Contact - E-mail: hello@meadowstack.com - Security reports: hello@meadowstack.com - Form: https://meadowstack.com/contact/ - Founder: Bohuslav Poláček, https://bpolacek.com ## Meadowstack (Česky) ### Co je Meadowstack Firemní appky postavené jako produkt. React UI kit, Figma soubor a pravidla, kterými se řídí vaše AI nástroje. Obrazovky vypadají jako od designéra. Oprávnění se kontrolují. Framework pro firemní appky v Claude Code, Cursoru a Codexu. Meadowstack je framework pro firemní appky: React UI kit, Figma soubor, archetypy obrazovek a pravidla, kontroly a bezpečné výchozí nastavení, kterými se řídí vaše AI nástroje. #### Čtyři sliby - Vypadá jako od designéra: Váš AI nástroj staví ze stejného kitu, archetypů a pravidel jako 9 ukázkových appek, takže obrazovky, které napíše, mají stejné šířky, hlavičky, tabulky i stavy. - Chová se všude stejně: Jeden příkaz spustí 15 kontrol: typy, lint, design tokeny, kontrast, stavy obrazovek, HTML, animace a testy. Obrazovka, která poruší pravidlo, neprojde, ať ji napsal kdokoli. - Bezpečná od základu: Appky postavené s AI málokdy selžou kvůli SQL injection. Selžou kvůli chybějící kontrole oprávnění. V Meadowstack 3.0 potřebuje pravidlo každá tabulka, role i akce, a když chybí, build neprojde. Meadowstack 3.0 dostane každá licence jako aktualizaci. Do té doby máte ve verzi 2.1 oprávnění v jedné tabulce pro každý modul, historii každé změny a přihlášení pro vývoj; skutečné přihlášení a serverová část jsou na vás. - Navždy vaše: Jedna platba, doživotní aktualizace a práce pro klienty bez dalších licencí. Kód máte ve svém repozitáři a běží i bez nás. A do 14 dnů můžete požádat o vrácení peněz. ### Framework React framework pro firemní appky, které stavíte s AI nástroji. Meadowstack Framework je hotový základ firemních appek v Reactu: komponenty, 9 archetypů obrazovek, fungující pracovní postupy (schvalování, role, záznamy s historií) a pravidla, skills a kontroly, kterými se řídí Claude Code, Cursor i Codex, takže to, co postaví, vypadá a funguje, jako by to dělal produktový tým. Claude Code, Cursor, Codex, GitHub Copilot, Windsurf a každý editor, který čte AGENTS.md. React, TypeScript a Tailwind, nic exotického. #### Jak framework dostanete Framework je soukromý repozitář na GitHubu. Koupíte licenci, přijmete pozvánku a naklonujete ho. - Koupíte licenci: Zaplatíte jednou na pokladně. Platbu a licenci vyřizuje Polar. - Přijmete pozvánku: Po zaplacení na stránce objednávky v Polaru propojíte svůj účet na GitHubu a dostanete pozvánku do soukromého repozitáře. Licence Team má deset míst, která tamtéž rozdáte dalším lidem. - Naklonujete a zadáte prompt: Naklonujete ho do složky, kterou si pojmenujete, spustíte startovní appku a dáte svému AI nástroji první prompt. - Potřebujete Node 22.18 nebo novější, účet na GitHubu, AI nástroj na psaní kódu nebo editor a tolik Reactu, abyste přečetli, co napíše. #### Front end a způsob, jak ho stavět - Není to backend: Ve verzi 2.1 jsou přihlášení a data ve startovní appce simulované: napojíte vlastní backend a v dokumentaci je postup, jak napojit vaše data. Přihlášení a auditní stopu přinese Meadowstack 3.0. - Není to nástroj bez kódu: Pracujete v kódu, ve svém editoru, se svým AI nástrojem. Každý řádek si můžete přečíst a změnit. #### Co je v repozitáři Co je v repozitáři: Komponenty 126, Archetypy obrazovek 9, Skills pro Claude Code 10, Postupy 17, Ukázkové appky 9. - packages/kit/: komponenty, vzory, tokeny - AGENTS.md: pravidla pro každý AI nástroj na psaní kódu - CLAUDE.md: nastavení pro Claude Code - .claude/skills/: nová obrazovka, entita, modul, schvalování, vzhled, kontrola - .mcp.json: MCP server, který najde správnou komponentu - .cursor/rules/: stejná pravidla pro Cursor - templates/starter/: rámec appky připravený na první modul - docs/recipes/: postupy: objednávky, schvalování, směny, rezervace, vaše data a další - docs/decisions/: proč je každé pravidlo takové, jaké je - UPGRADING.md: co změnit při přechodu z 1.0 na 2.0 - apps/demo/: kompletní referenční appka s 9 ukázkovými appkami - scripts/: kontroly tokenů, kontrastu a stavů #### AI píše kód rychle. Systém ale nenapíše. Zadejte AI nástroji deset obrazovek a dostanete deset různých tabulek, formulářů a chybových hlášek. Framework mu dá na každou věc jeden způsob a zkontroluje, že ho dodržel. - Navržené od prvního promptu: Komponenty, vzory a pravidla zařídí, že už první obrazovka vypadá jako od produktového týmu. - Stejná kvalita všude: Každý modul i každý projekt se řídí stejnými pravidly, ať ho napsal kdokoli nebo cokoli. - Kontroly, které shodí build: Barvy jen z tokenů, kontrast světle i tmavě, každá obrazovka s daty se všemi stavy, testovaná přístupnost. - Roste s vámi: Desátý modul vznikne stejným postupem jako první a jedna licence pokryje neomezeně projektů. #### Nové ve 2.0: Obrazovky z archetypů a testy, které udrží lidi v orientaci Verze 2.0 mění, jak se obrazovka staví, takže AI nástroj trefí rozložení dřív, než napíše první řádek. - Archetypy obrazovek: Devět druhů obrazovek s typovanými sloty. Jedna hlavní akce, jedna posouvaná oblast, všude stejná hlavička. - Orientace jako testy: Startér zkontroluje každou stránku při 1440 a 390 pixelech, takže se nikdo neztratí v obrazovce, kterou přidal AI nástroj. - Vrstva Objekty: Účtenky, dodací listy, podpisy, půdorysy a další: věci z reálného světa jako komponenty. - MCP pro AI nástroje: Server, který odpovídá z manifestu komponent, takže Claude Code a Cursor použijí hotovou komponentu dřív, než napíšou vlastní. - Sestavte si appku: V ukázce vyberete obor a jeho moduly a sestavenou appku otevřete na adrese, kterou můžete sdílet. - Rámec a navigace: Rámec appky s bočním panelem, který se vysouvá, vykukuje a mění šířku; Paleta příkazů pro stránky, záznamy a akce; Klávesové zkratky a jejich přehled; Nabídka nápovědy: dokumentace, zkratky, koho se zeptat, co je nového; Proužek načítání místo kolečka přes celou stránku; Spouštěč a přepínač pracovních prostorů; Drobečková navigace a krok zpět u odkazů v obsahu; Jeden plochý boční panel: moduly jako sekce, počty, nastavení dole; Nabídka Vytvořit v bočním panelu nebo horní liště - Obrazovky z archetypů: 9 archetypů: seznam, pracovní fronta, záznam, formulář, přehled, pracovní plocha, schránka, nastavení, plátno; Hlavička, šířka, posouvání a otevírání záznamu dané archetypem; Jedna hlavní akce, nenápadně v horní liště; Stránka se neposouvá, posouvá se právě jedna oblast; Přehled začíná větou s čísly; Pravidla orientace jako testy na každé stránce, při 1440 a 390 - Objekty: Papír: účtenka, A4, dodací list a štítek, se stažením do PDF; Podpisové pole a razítko; Karta majetku, scéna produktu a vzorník; Ukazatel, vstupenka a karta účtu; Půdorys a pruh počasí; Náhled příspěvku, kruh cíle a pruh dne - Seznamy, tabule a záznamy: Tabulka dat s řazením, výběrem a hromadnými akcemi; Tabulky, které se v telefonu složí do řádků; Filtry jako štítky, uložené v adrese; Možnosti zobrazení: seskupit, seřadit, zobrazit sloupce; Uložené pohledy jako štítky nad seznamem: stejná stránka, jiný dotaz; Jedna nabídka Zobrazení pro podobu, seskupení, řazení a sloupce; Tabule s přetahováním, i z klávesnice; Náhled záznamu vedle seznamu a celá stránka; Výběry, které změní vlastnost na místě; Přichycené hlavičky skupin, které nezakryjí řádek; Okamžité změny s Vrátit v oznámení; Čtyři stavy každého pohledu na data: načítání, chyba, prázdno, data; Prázdno a žádné výsledky jako dva různé stavy - Schvalování, oprávnění a historie: Oprávnění v jednom souboru, dotaz přes ; Postup, jak stejná pravidla vynutit v databázi; Schvalování na dvě oči: nikdo neschválí vlastní záznam; Zamítnutí vždy s důvodem; Karta rozhodnutí v telefonu jako první; Časová osa historie s komentáři; Potvrzení před nevratnými kroky; Stránka bez přístupu pro to, co role nesmí - Formuláře a psaní: Pole s viditelnými popisky a hláškami, které řeknou, co udělat; Validace přes react-hook-form a zod; Neuložené změny zastaví odchod ze stránky; Pole pro psaní se zmínkami, soubory a Cmd/Ctrl+Enter; Kontrolní seznamy; Hlasové zprávy - Konverzace: Zprávy podle autora a dne, s čarou, kde začínají nové; Reakce, psaní, vlákna; Asistent, který odpovídá díly kitu; Pošta, kde každé vlákno leží u svého záznamu - Čas a plánování: Časovač, který vyroste z tlačítka; Týden jako mřížka časových bloků; Časová osa zdrojů s tažením, změnou délky a čárou teď; Plánovací mřížka: kopie s Alt, rychlé přidání do prázdné buňky; Rozpočty, které varují na 80 procentech - Grafy a data: Sloupcové, čárové a pruhové grafy s tabulkou za každým grafem; Prstencový graf, teplotní mapa a pořadí; Cíle jako referenční čáry, běžící období odlišené; Čísla s trendem a změnou, která řekne, jestli je to dobrá zpráva; Karty s grafy a jejich kostry; Řady bezpečné pro barvoslepé v pevném pořadí; Export do CSV - Plátno: Plátno postupů s posunem, zoomem, minimapou a během po hranách; Stejný postup jako seřazený seznam pro čtečky a telefony - Pohyb a odezva: Společné křivky a délky jako tokeny; Odezva stisku na tlačítkách; Text, který se mění přes jemné rozostření; Čísla, která se dopočítají; Probíhající práce, která ukazuje, co dělá; Oznámení, tooltipy, dialogy a nabídky s ošetřeným fokusem; Omezený pohyb promění pohyb v prolínání - Pravidla a skills pro AI: AGENTS.md pro každý AI nástroj na psaní kódu; CLAUDE.md a pravidla podle cesty pro Claude Code; Skill: nový modul; Skill: nová obrazovka z archetypu; Skill: nová entita od začátku do konce; Skill: schvalování; Skill: vzhled klienta; Skill: závěrečná kontrola; Pravidla pro Cursor vygenerovaná ze stejného souboru; MCP server: váš AI nástroj se zeptá na správnou komponentu, než napíše vlastní; Manifest všech komponent: kdy použít, kdy ne; Vzory a zásady popsané i se zdroji; Postupy pro úkoly, které se opakují; Rozhodnutí s důvodem u každého pravidla - Kontroly: Jeden příkaz spustí všech 15: npm run check; Kontrola typů, lint a formátování; Barvy jen z tokenů, jinak build spadne; Kontrast každé dvojice barev světle i tmavě; Každá obrazovka s daty má své čtyři stavy; Druhy sloupců, ručně dělané ovladače a akce v hlavičce; Pohyb jen z tokenů kitu; Žádný nepřeložený text v demu; Seznam komponent pro nástroje AI odpovídá kitu; Hledání tajných klíčů v repozitáři i v buildech; Revizní audit každé obrazovky dema; Smlouvy akcí: každá entita nabízí, co slíbila; Unit testy kitu, aplikací a skriptů - Ukázkové appky: Startovní appka se schvalováním a testy; Demo 9 smyšlených firem poskládaných z modulů; Sestavte si appku: vyberete obor a moduly, otevřete ji na adrese, kterou lze sdílet; Hřiště s každou komponentou v každém stavu - Vzhled, zařízení a přístupnost: Světlý i tmavý režim podle systému; Vaše značka jedním vstupem, s kontrolou kontrastu; Od telefonu po široký monitor; Ovládací prvky 40 px na dotykových obrazovkách; WCAG 2.2 AA: klávesnice, fokus, popisky, kontrast; Čeština a angličtina v základu; Testy od začátku do konce s kontrolou přístupnosti; Vizuální regrese každé ukázky a klíčových obrazovek Raději si ji necháte postavit? Studio appky na frameworku navrhuje, staví i kontroluje. #### Otázky k frameworku ##### Co je Meadowstack Framework? Hotový základ firemních appek v Reactu, které stavíte s AI nástroji. Obsahuje komponenty, 9 archetypů obrazovek, fungující pracovní postupy jako schvalování, role a záznamy s historií a pravidla, skills a kontroly, kterými se řídí Claude Code, Cursor i Codex. ##### Co přesně dostanu? Pozvánku do soukromého repozitáře na GitHubu. V něm je kit, startovní appka, ukázka s 9 ukázkovými appkami, AGENTS.md a CLAUDE.md, skills pro Claude Code, pravidla pro Cursor, MCP server, který najde správnou komponentu, postupy a rozhodnutí v docs, kontroly tokenů, kontrastu, stavů a přístupnosti a testy. Naklonujete ho a stavíte na něm; postup ukazuje Začínáme. ##### Se kterými AI nástroji funguje? S Claude Code, Cursorem a Codexem a s každým nástrojem nebo editorem, který čte AGENTS.md. Claude Code k tomu dostane skills a MCP server, Cursor, GitHub Copilot a Windsurf své soubory s pravidly. Pracovat můžete i bez AI nástroje. Co do takového souboru patří: AGENTS.md u firemní React aplikace. ##### V čem je postavený? React, TypeScript, Vite a Tailwind, pod tím přístupné primitivy. Vaše appky jsou běžné appky v Reactu. ##### Obsahuje backend a přihlášení? Ve verzi 2.1 ne: je to front end a způsob, jak ho stavět. Přihlášení a data jsou ve startovní appce simulované; napojíte vlastní backend a v dokumentaci je postup, jak napojit vaše data. Přihlášení a auditní stopu přidá Meadowstack 3.0, které každá licence dostane jako aktualizaci. Více na stránce Bezpečnost. ##### Můžu ho použít pro klientské projekty? Ano. Licence je na člověka a pokrývá neomezeně projektů, včetně appek pro klienty, bez licence na každého klienta. ##### Může klient appku dál rozvíjet? Klient může appku, kterou mu dodáte, provozovat, udržovat i měnit. Na stavbu dalších appek na frameworku potřebuje vlastní licenci. ##### Čím se liší od UI kitu, jako je shadcn/ui? UI kit vám dá komponenty, ze kterých skládáte. Framework přidává to, co je nad nimi: archetypy obrazovek, fungující pracovní postupy s oprávněními a historií a pravidla a kontroly, kterými se řídí váš AI nástroj, takže každá obrazovka je složená stejně. Podrobněji ve srovnání, v průvodci jak udržet jednotné UI a na blogu. ##### Čím se liší od nástrojů na tvorbu appek, jako je Lovable nebo v0? Tyto nástroje vygenerují appku z promptu na své platformě. Framework je kód ve vašem vlastním repozitáři, na kterém stavíte s AI nástrojem, který už používáte, a appku udržujete jako každou jinou v Reactu. Podrobněji ve srovnání. ##### Jak chodí aktualizace? Nové verze přicházejí jako označená vydání ve stejném repozitáři; stáhnete si tu, kterou chcete, a kdy chcete. Každá licence má doživotní aktualizace, takže chodí, dokud framework vyvíjíme. ##### Jak přidám tým k licenci Team? Kupující propojí GitHub na stránce objednávky v Polaru a dostane pozvánku. Licence Team má celkem deset míst, ostatním je rozdáte na téže stránce a každý dostane pozvánku do stejného repozitáře. ##### Co dostanou designéři? Figma soubor: proměnné, které odpovídají tokenům v kódu, komponenty a archetypy obrazovek pod stejnými jmény a ukázkové appky. Je součástí každé licence. ##### Nabízíte podporu? K frameworku patří dokumentace a postupy. Otázky k licenci pište na hello@meadowstack.com. Pokud chcete, abychom vám s appkou pomohli my, studio ji zkontroluje nebo postaví. #### Od naklonování k vlastní appce Co se děje po koupi Meadowstack Frameworku, krok za krokem: repozitář, startovní appka, vaše appka ve vlastním repozitáři a první prompt pro váš AI nástroj. https://meadowstack.com/cs/framework/zaciname/ - Přijměte pozvánku: Po zaplacení propojte svůj účet na GitHubu na stránce objednávky v Polaru. Dostanete pozvánku do soukromého repozitáře, přijměte ji na GitHubu. - Naklonujte a nainstalujte: Naklonujte repozitář do vlastní složky a jednou ho nainstalujte. Chromium spouští end-to-end testy. `git clone https://github.com/meadowstack-studio/framework.git meadowstack-framework && cd meadowstack-framework && npm install && npx playwright install chromium` - Spusťte startovní appku: Startovní appka se otevře na adrese, kterou vypíše terminál. Přihlaste se jako někdo z lidí uvedených na přihlašovací stránce. `npm run dev:starter` - Vytvořte si vlastní appku: Vaše appka žije ve vlastním repozitáři a kit má zabalený v sobě. První příkaz spusťte ve složce frameworku, pak appku spusťte. `npm run new-app -- ../moje-appka && cd ../moje-appka && npm install && npm run dev` - Dejte AI nástroji první prompt: Otevřete složku appky v Claude Code, Cursoru nebo Codexu a požádejte o modul. Nástroj si přečte AGENTS.md a drží se postupů. `claude "Přidej modul dovolených se schvalováním"` - Zkontrolujte výsledek: Až nástroj řekne, že je hotovo, spusťte kontroly a end-to-end testy. Kontrolují každou cestu na 1440 a 390 pixelech, takže nová obrazovka nerozbije rozložení bez povšimnutí. `npm run check && npm run e2e` - Přihlášení: Vývojové přihlášení: kdokoli ze seznamu se přihlásí s libovolným heslem. Za stejné hooky dáte svého poskytovatele identit. - Data: Drží se v paměti a po obnovení stránky se vrátí do výchozího stavu. Funkce api nahradíte voláním svého backendu a stejná oprávnění vynutíte i tam. - Spuštění naostro: Postupy v dokumentaci ukazují, jak napojit vaše data a jak appku spustit naostro. - Jak přicházejí aktualizace: Nové verze přicházejí jako označená vydání ve stejném soukromém repozitáři. Aktualizujte složku frameworku, přečtěte si přehled změn a pak převezměte nový kit do své appky. `npm run new-app -- ../moje-appka --update` #### Jak si Meadowstack Framework stojí ve srovnání Čtyři druhy nástrojů, se kterými ho lidé srovnávají, srozumitelně. Každý je pro některou práci lepší volbou a tabulka říká, pro kterou. https://meadowstack.com/cs/framework/srovnani/ - UI kit komponent (Například shadcn/ui a Untitled UI): Co dostanete: Komponenty, ze kterých skládáte, často jako kód, který si zkopírujete do projektu. Fungující postupy: schvalování, role, historie: Nejsou součástí: postavíte si je z komponent. Pravidla a kontroly pro AI nástroje: Nejsou úkolem kitu: jak se obrazovky skládají, je na vás a vašem nástroji. Kdo vlastní a provozuje kód: Vy, kdekoli chcete. Backend a přihlášení: Nejsou součástí. Nejlepší pro: Design systém pro jakoukoli appku, když si obrazovky navrhujete sami. - SaaS starter (Například MakerKit a supastarter): Co dostanete: Kostru SaaS appky: přihlášení, týmy, platby a úvodní stránku. Fungující postupy: schvalování, role, historie: Účty, týmy a platby; firemní postupy postavíte sami. Pravidla a kontroly pro AI nástroje: Některé mají pravidla pro AI nástroje, psaná pro SaaS produkt. Kdo vlastní a provozuje kód: Vy, kdekoli chcete. Backend a přihlášení: Jsou součástí, obvykle s databází a poskytovatelem přihlášení. Nejlepší pro: SaaS produkt, který od prvního dne potřebuje přihlášení a platby. - Generátor appek z promptu (Například Lovable, v0 a Bolt): Co dostanete: Appku vygenerovanou z vašeho promptu na platformě generátoru. Fungující postupy: schvalování, role, historie: Cokoli prompt vytvoří, v každé appce řešené znovu. Pravidla a kontroly pro AI nástroje: Vlastní AI generátoru, řízená v jeho chatu. Kdo vlastní a provozuje kód: Appka vzniká na platformě generátoru; export kódu se liší. Backend a přihlášení: Často přes připojenou službu. Nejlepší pro: Rychlý prototyp, hlavně takový, který zahodíte. - Platforma na interní nástroje (Například Retool): Co dostanete: Obrazovky poskládané z hotových widgetů nad vašimi daty. Fungující postupy: schvalování, role, historie: Poskládané z bloků platformy a jejího nastavení oprávnění. Pravidla a kontroly pro AI nástroje: Pracujete v editoru platformy, ne s nástrojem na psaní kódu. Kdo vlastní a provozuje kód: Provozuje ji platforma; některé nabízejí i vlastní provoz. Backend a přihlášení: Napojí se na vaše databáze a API; přihlášení je platformy. Nejlepší pro: Interní nástroje bez psaní kódu. - Meadowstack Framework: Co dostanete: Kód v Reactu: komponenty, 9 archetypů obrazovek, startovní appku, postupy a 9 ukázkových appek. Fungující postupy: schvalování, role, historie: Jsou součástí: schvalování dvěma lidmi, role a oprávnění, záznamy s historií. Pravidla a kontroly pro AI nástroje: AGENTS.md, skills pro Claude Code, pravidla pro Cursor, MCP server a kontroly, které zastaví build. Kdo vlastní a provozuje kód: Vy: soukromý repozitář, který naklonujete, a appka, kterou provozujete kdekoli. Backend a přihlášení: Nejsou součástí: ve startovní appce simulované, s postupy, jak napojit vaše. Nejlepší pro: Firemní appky (zakázky, schvalování, evidence, plánování), které stavíte a udržujete s AI nástrojem na psaní kódu. - Backend ani databázi: napojíte vlastní. - Přihlášení pro provoz: to ve startovní appce je vývojové a za ně dáte svého poskytovatele identit. - Platby a předplatné: ty má SaaS starter rovnou. - Hosting: appku nasadíte, kam chcete. #### Co se změnilo v Meadowstack Frameworku Každá verze od nejnovější, tak jak ji popisuje přehled změn v repozitáři. Kupující dostávají každou verzi jako tag ve svém soukromém repozitáři. https://meadowstack.com/cs/zmeny/ Aktuální verze: 2.1.0 (2026-11-11). ### Ceny a licence Jedna platba. Navždy vaše. Každá licence obsahuje kód, Figma soubor s ukázkovými appkami, doživotní aktualizace a práci pro klienty bez dalších licencí. Do 14 dnů můžete požádat o vrácení peněz. https://meadowstack.com/cs/cenik/ - Personal (pro jednoho člověka): 299 $, jednorázově - Team (pro tým až deseti lidí): 899 $, jednorázově - Enterprise (pro víc než deset lidí nebo vlastní podmínky): od 2 490 $ - Uváděcí cena: Personal 249 $, Team 699 $ Ceny jsou v amerických dolarech bez DPH. Polar, který licenci prodává, při platbě připočte daň podle vaší země. #### Každá licence obsahuje - Kód: Kit, startovní appku, pravidla a skills pro AI nástroje, postupy a kontroly v soukromém repozitáři na GitHubu. - Figma soubor: Základy, komponenty a archetypy obrazovek pojmenované stejně jako v kódu, s ukázkovými appkami. - Doživotní aktualizace: Každou novou verzi, dokud framework vyvíjíme. Dnes je to verze 2.1. - Práce pro klienty: Appky pro klienty stavíte bez licence na každého klienta. Klient může appku, kterou mu dodáte, provozovat i měnit. - 14 dnů na vrácení peněz: Požádejte do 14 dnů od nákupu a dostanete zpět celou částku, bez udání důvodu. #### Co za stejné peníze koupíte jinde Ceníkové ceny v amerických dolarech, vždy za jednu platbu, a podmínky, které jednotliví prodejci zveřejňují. Dočasné slevy nepočítáme. Ověřeno na jejich cenících 1. prosince 2026. - Meadowstack: jeden člověk 299 $; tým (až 10) 899 $; práce pro klienty: V každé licenci, bez licence na klienta; vrácení peněz: 14 dnů - MakerKit: jeden člověk 349 $; tým (až 5) 649 $; práce pro klienty: Jen s licencí Teams a každý klient potřebuje vlastní licenci; vrácení peněz: Peníze nevrací. Ceník MakerKit: https://makerkit.dev/pricing - supastarter: jeden člověk 349 $; tým (až 5) 799 $; práce pro klienty: Uvedená jen u tarifu Agency, 1 499 $; vrácení peněz: Neuvádí. Ceník supastarter: https://supastarter.dev/pricing - Untitled UI React: jeden člověk 349 $; tým (až 8) 999 $; práce pro klienty: Povolená; vrácení peněz: Peníze nevrací. Ceník Untitled UI React: https://www.untitledui.com/pricing #### Licence ve zkratce - Neomezeně projektů, včetně práce pro klienty - Samotný framework dál prodávat nesmíte - Každá verze, kterou dostanete, vám zůstane - Celá licence: https://meadowstack.com/cs/framework/licence/ - Obchodní podmínky Frameworku: https://meadowstack.com/cs/framework/obchodni-podminky/ #### Otázky k licenci ##### Kdo se počítá jako člověk? Každý, kdo pracuje s kódem nebo soubory frameworku, ručně nebo přes AI nástroj, který sám ovládá. Lidé, kteří jen používají appky, které postavíte, se nepočítají. ##### Platím za aktualizace znovu? Ne. Každá licence obsahuje doživotní aktualizace: každá nová verze přijde do stejného repozitáře, dokud framework vyvíjíme. ##### Může klient appku dál rozvíjet? Ano. Klient může appku, kterou mu dodáte, provozovat, udržovat i měnit, včetně kódu frameworku. Na další appku postavenou na frameworku je potřeba licence, vaše nebo jeho. ##### Jak funguje vrácení peněz? Napište na hello@meadowstack.com do 14 dnů od nákupu. Polar vám vrátí celou částku a licence i přístup do repozitáře skončí. Důvod uvádět nemusíte. ##### Kdo licenci prodává? Polar Software, Inc., náš prodejce (merchant of record): přijme platbu, vyřeší DPH a vystaví fakturu. My licenci udělujeme a framework dodáváme. Podrobnosti najdete v obchodních podmínkách. ##### Co přidává Enterprise? Víc než deset lidí, nebo podmínky, které vaše firma potřebuje. Napište nám o svém týmu ve formuláři a pošleme nabídku, od 2 490 $. ### Bezpečnost: Bezpečné už od prvního řádku Ve zveřejněných testech appek vygenerovaných AI nebyly nejčastější chybou SQL injection ani XSS, které moderní frameworky blokují samy. Byla to chybějící autorizace a rozbitá logika procesů: uživatel čte záznamy jiné firmy, akce proběhne bez kontroly oprávnění. Přesně na to míří výchozí nastavení Meadowstack 3.0. https://meadowstack.com/cs/bezpecnost/ #### Co dostane každá appka V Meadowstack 3.0 build neprojde, když chybí kontrola oprávnění, a ostatní výchozí nastavení platí už ve chvíli, kdy váš AI nástroj píše první obrazovku. - Oprávnění: Jeden soubor s pravidly pro každou appku určuje, kdo smí co číst a měnit. Vzniknou z něj pravidla řádkového zabezpečení v databázi i kontroly v rozhraní a test selže, když tabulka, role nebo akce pravidlo nemá. - Vstupy: Jedno schéma pro každý formulář nebo endpoint: používá ho klient a server podle něj všechno zkontroluje znovu. - Přihlášení: E-mail s magickým odkazem nebo heslem, dvoufázové přihlášení přes TOTP a passkeys, vypršení relace a odhlášení ze všech zařízení. - Auditní stopa: Přihlášení, změny oprávnění, exporty a mazání se zaznamenají: kdo, co, kdy a odkud, bez osobních údajů ve zprávě. - Hlavičky: Content Security Policy, HSTS, frame-ancestors 'none', nosniff, přísná referrer policy a minimální permissions policy. - Tajné klíče: Jen v proměnných prostředí. Kontrola selže, když se tajný klíč dostane do repozitáře nebo do kódu pro prohlížeč. - Závislosti: npm audit při každém spuštění standardních kontrol a CycloneDX SBOM ke každému vydání. - Chyby: Lidé uvidí, co dělat dál, a ID požadavku. Výpisy chyb (stack trace) zůstávají v logu. Meadowstack 3.0 dostane každá licence jako aktualizaci. Dnes má verze 2.1 to, co žije v rozhraní: oprávnění v jedné tabulce pro každý modul, skryté akce, které člověk udělat nesmí, potvrzení před nevratným krokem, důvod u každého zamítnutí a historii každé změny. Její startovní appka přihlašuje jen pro vývoj; skutečné přihlášení, serverová část, hlavičky a tajné klíče jsou na vás. #### Čím se musí řídit lidé i AI nástroje Pravidla jsou v AGENTS.md, takže si je Claude Code, Cursor i Codex přečtou dřív, než napíšou první řádek. - Přístup k datům přidávejte a měňte jen přes soubor s pravidly. Nikdy se nedotazujte na tabulku bez pravidla pro aktuální roli. - Každý vstup ověřte na serveru sdíleným schématem, i když to už udělal klient. - Tajné klíče, tokeny ani osobní údaje nikdy nedávejte do kódu pro prohlížeč, do adres URL, logů ani chybových hlášek. - Nikdy nepoužívejte dangerouslySetInnerHTML, eval ani SQL skládané z řetězců. Používejte query builder a vykreslování v Reactu. - U každé akce se záznamem ověřte vlastnictví: záznam patří do organizace uživatele a role uživatele akci dovoluje. - Bezpečnostní události zapisujte přes pomocnou funkci auditní stopy, ne přes console.log. - Závislost přidejte, jen když to standardní knihovna ani kit neumí, a zkontrolujte ji přes npm audit. - Než práci dokončíte, spusťte standardní kontroly. Spouštějí i ty bezpečnostní. #### Navržené tak, aby podpořilo technická opatření podle článku 21 NIS2 NIS2 ukládá povinnosti organizacím, ne softwaru, takže soulad za vás žádný framework nezajistí. U každého opatření z článku 21 odst. 2 tabulka ukazuje, co dodá framework a co zůstává na vás; použijte ji jako podklad pro vlastní analýzu rizik. Stejná opatření požaduje i zákon č. 264/2025 Sb., o kybernetické bezpečnosti. - a) Analýza rizik a bezpečnostní politiky. Co dodá framework: Poznámky k hrozbám u každého archetypu obrazovky v dokumentaci a výchozí nastavení popsané výše. Co uděláte vy: Sepište vlastní politiku a registr rizik. - b) Zvládání incidentů. Co dodá framework: Auditní stopa bezpečnostních událostí, šablona pro incident, ID požadavku v chybách. Co uděláte vy: Proces provozujte a hlaste do 24 hodin, 72 hodin a jednoho měsíce (článek 23). - c) Kontinuita provozu a zálohy. Co dodá framework: Postup zálohy a obnovy databáze v průvodci nasazením. Co uděláte vy: Naplánujte zálohy, vyzkoušejte obnovu a připravte krizové kontakty. - d) Bezpečnost dodavatelského řetězce. Co dodá framework: CycloneDX SBOM ke každému vydání, pevné verze závislostí, npm audit v kontrolách. Co uděláte vy: Posuďte svůj hosting a zpracovatele dat. - e) Bezpečný vývoj a řešení zranitelností. Co dodá framework: Standardní kontroly, test pokrytí pravidel, sdílená validační schémata, postup pro hlášení zranitelností frameworku. Co uděláte vy: Framework aktualizujte a opravte, co kontroly najdou. - f) Hodnocení účinnosti opatření. Co dodá framework: Výstup kontrol a test pokrytí pravidel jako opakovatelný doklad. Co uděláte vy: Výstupy pravidelně procházejte. - g) Kybernetická hygiena a školení. Co dodá framework: Pravidla bezpečného kódu pro lidi i AI nástroje v AGENTS.md. Co uděláte vy: Proškolte své lidi. - h) Kryptografie a šifrování. Co dodá framework: Jen TLS s HSTS, hashování hesel a tokeny řeší poskytovatel přihlášení, žádná vlastní kryptografie. Co uděláte vy: Vyberte hosting, který šifruje uložená data. - i) Řízení přístupu a správa aktiv. Co dodá framework: Role a oprávnění v jednom souboru s pravidly, odhlášení ze všech zařízení, změny oprávnění v auditní stopě. Co uděláte vy: Odebírejte přístup lidem, kteří odešli, a kontrolujte role. - j) Vícefaktorové ověřování. Co dodá framework: TOTP a passkeys, dvoufázové přihlášení můžete vyžadovat podle role. Co uděláte vy: Vyžadujte ho aspoň u administrátorů. Který režim se na vaši organizaci vztahuje a jaké povinnosti z něj plynou, ať vám potvrdí právník. #### Mapované na OWASP ASVS 5.0 Úroveň 1 pro každou appku, úroveň 2 pro appky s osobními nebo finančními údaji. Kde se která kapitola řeší, včetně mezer: - V1 Kódování a sanitizace: Escapování v Reactu, lint zakazuje dangerouslySetInnerHTML a eval, query builder místo SQL z řetězců - V2 Validace a logika procesů: Sdílená schémata kontrolovaná na serveru, limity hromadných akcí a exportů - V3 Bezpečnost webového rozhraní: Bezpečnostní hlavičky a CSP v konfiguraci nasazení, noopener u externích odkazů - V4 API a webové služby: Každý endpoint kontroluje vstup i pravidla, chyby bez vnitřních detailů - V5 Práce se soubory: Povolené velikosti a typy, úložiště mimo doménu appky, podepsané odkazy s omezenou platností - V6 Autentizace: Poskytovatel přihlášení s pravidly pro hesla, magickými odkazy, TOTP a passkeys - V7 Správa relací: Relace poskytovatele s vypršením, obnova při přihlášení, odhlášení ze všech zařízení - V8 Autorizace: Soubor s pravidly převedený na řádkové zabezpečení a kontroly v rozhraní, s testem pokrytí - V9 Samostatné tokeny: JWT poskytovatele ověřené na serveru, krátká platnost - V10 OAuth a OIDC: OAuth poskytovatele s PKCE, když je zapnuté přihlášení přes sociální sítě - V11 Kryptografie: Žádná vlastní kryptografie, jen primitiva poskytovatele a platformy - V12 Bezpečná komunikace: Jen HTTPS, HSTS - V13 Konfigurace: Tajné klíče v proměnných prostředí, hledání tajných klíčů v kontrolách, ladicí režim v produkci vypnutý - V14 Ochrana dat: Pole s osobními údaji označená ve schématu, ve výchozím stavu vynechaná z logů a exportů - V15 Bezpečné programování a architektura: npm audit, SBOM, pevné verze, standardní kontroly - V16 Bezpečnostní logování a zpracování chyb: Pomocná funkce auditní stopy, ID požadavků, žádné výpisy chyb pro uživatele - V17 WebRTC: Nepoužívá se #### Nahlásit zranitelnost Napište na hello@meadowstack.com: dotčenou verzi, kroky, jak chybu vyvolat, a dopad, který vidíte. Prosíme, nezakládejte veřejné issue. - Do 2 pracovních dnů: Potvrdíme, že jsme hlášení dostali. - Do 10 pracovních dnů: Pošleme vám naše posouzení. - Oprava: Kritické a závažné chyby dostanou opravu nebo zmírnění v poslední verzi tak rychle, jak to jde bezpečně udělat, a každý kupující dostane bezpečnostní upozornění. Doživotní aktualizace přinesou opravu všem. - Aktivně zneužívané: Hlásíme je, jak to žádá evropské nařízení o kybernetické odolnosti (Cyber Resilience Act): včasné varování do 24 hodin, oznámení do 72 hodin a závěrečnou zprávu do 14 dnů od chvíle, kdy je oprava k dispozici. Kdo o to stojí, toho po vydání opravy uvedeme jako nálezce. Hlášení se týká repozitáře frameworku, startovní appky, MCP serveru a tohoto webu. Za bezpečnost appek, které na frameworku postavíte, odpovídáte vy; výchozí nastavení výše vám s ní pomůže. ### Figma: Stejný systém, ve Figmě Soubor je framework nakreslený: tokeny, komponenty a archetypy obrazovek, ze kterých staví váš AI nástroj, pod stejnými jmény. Obrazovka navržená ve Figmě odpovídá kódu jedna k jedné. Je součástí každé licence, i s aktualizacemi. https://meadowstack.com/cs/figma/ #### Stránku po stránce - Read me: Jak je soubor uspořádaný a jak jeho názvy odpovídají kódu. - Foundations: Proměnné jedna k jedné s tokeny v kódu, ve světlém i tmavém režimu: barvy, mezery, zaoblení, typografie, hustota, efekty a ikony, s poznámkami k pohybu. - Components: 126 komponent s variantami a stavy, pojmenovaných jako v kódu. - Archetypes: 9 archetypů obrazovek, každý v pěti stavech obsahu. - Objects: Věci, které firemní appky ukazují: účtenka, vozidlo, propustka, produkt, půdorys, podpis, razítko. - Example apps: Pro každou ukázkovou appku stránka se šesti až deseti klíčovými obrazovkami, ve světlém i tmavém režimu a na telefonu. - Patterns: Postupy přes víc obrazovek, nakreslené jednou. - Changelog: Co se v které verzi souboru změnilo. #### Co přijde jako první První vydání obsahuje základy, komponenty a tři ukázkové appky: Stonebridge, Foldline a Juniper. Další stránky přijdou jako aktualizace, které má v ceně každá licence. #### Otázky k souboru ##### Potřebuji k frameworku i soubor? Ne. Kód funguje i bez něj. Soubor slouží k navrhování obrazovek dřív, než je postaví váš AI nástroj, a ke spolupráci s lidmi, kteří navrhují ve Figmě. ##### Jak ho dostanu? S licencí: soubor si stáhnete ve své objednávce a každá jeho nová verze přijde stejnou cestou. ##### Můžu ho použít pro klienty? Ano, podle stejné licence jako kód, včetně návrhů pro klientské projekty. Soubor ale nesmíte dál prodávat ani ho vydat jako vlastní kit. ### Studio: aplikaci postavíme za vás Appku vám postavíme. Studio, které stojí za Meadowstack, vám navrhne a postaví firemní appku na frameworku za pevnou cenu a pak ji dál vylepšuje. Odpovídá za ni jeden konkrétní člověk. https://meadowstack.com/cs/studio/ Mezi krabicí a prázdnou stránkou: Hotový software je levný, protože každý dostane totéž. Agentura je drahá, protože každý klient začíná od prázdné stránky. My stojíme mezi: základy jsou hotové ve frameworku, takže platíte za to, co je vaše. #### Appky na míru: Od problému k fungující appce Nejdřív zjistíme, jak vaše práce běží a co ji brzdí. Appku navrhneme a vy si ji proklikáte dřív, než se cokoli postaví. Pak dostanete pevnou cenu, postavíme ji na ověřeném frameworku a kód je váš. - Nejdřív návrh: Obrazovky, role a data, ještě než se cokoli postaví. - Prototyp k proklikání: Na skutečném frameworku, takže co vidíte, to dostanete. - Pevná cena: Nezmění se, pokud se nezmění rozsah. - Appka je vaše: I s kódem a licencí na framework. #### Care: Část, kterou většina studií vynechá Appka začne stárnout v den spuštění. Care ji drží v kondici, platí na ni záruka a každý měsíc ji zlepšujeme podle toho, jak ji váš tým opravdu používá. - Záruka a opravy: Za appku ručíme a každou opravu před nasazením zkontroluje člověk. - Měsíční report: Se třemi změnami, které by pomohly nejvíc. - Aktualizace frameworku: Jsou v předplatném Care. Nejdřív vyzkoušené, pak nasazené postupně. - Kód, když ho chcete: Chcete appku rozvíjet vlastními vývojáři? Předáme kód, data i příručku. #### Rescue: Appka z AI, nebo starý systém, na kterém závisíte? Appky z Lovable nebo Boltu se rychle dostanou k první verzi a starší systémy roky slouží, ale nikdo se jich nechce dotknout. Rescue je převede na framework: audit, opravy podle rizika a přestavba. Co funguje, zůstane. - Nejdřív audit: Co je rizikové teď, co počká a kolik to stojí. - Prověřená data a přístupy: Kdo smí co číst a měnit, až po databázi. - Opravy podle rizika: Nejdřív data a přístupy, pak obrazovky. - Převod na framework: Role, historie, stavy a kontroly při každé změně. #### Ceny studia Nová appka začíná Solverem, staví se v Buildu a drží ji naživu Care. Rescue je pro to, co už existuje. - Solver: 14 900 Kč. UX návrh, klikací prototyp a pevná nabídka na váš Build. Odečte se z ceny Buildu; Prototyp se stane zadáním. - Build: od 49 000 Kč. Vaše appka na frameworku, za cenu, kterou určil Solver. 1 modul a 1 role; Libovolně obrazovek; 3 měsíce Care Start v ceně; Appka i kód jsou vaše. - Care Start: V ceně Buildu. První tři měsíce po spuštění. Na jejich konci doporučíme úroveň podle toho, jak se appka opravdu používá. Všechno z Lite; UX revize po 30 dnech skutečného používání; 6 hodin drobných úprav; Měsíční report; Naše doporučení, jaká úroveň se hodí. - Care Lite: 2 490 Kč měsíčně. To podstatné, aby appka běžela. Záruka, hlídání provozu, zálohy a aktualizace frameworku; Opravy kontroluje člověk; Odpověď do jednoho pracovního dne; Údržba napojení. - Care Basic: 5 900 Kč měsíčně. Pro appku, která se čas od času mění. Všechno z Lite; UX revize každé čtvrtletí. - Care Standard: 9 900 Kč měsíčně. Pro appku, ve které tým pracuje celý den. Všechno z Basic; UX revize každý měsíc; 4 hodiny úprav měsíčně. - Care Plus: 19 900 Kč měsíčně. Pro appku, bez které firma nejede. Všechno ze Standard; Odpověď do 4 pracovních hodin; 10 hodin úprav měsíčně. - Audit Rescue: 14 900 Kč. Zjištění srozumitelnými slovy a plán podle rizika. Odečte se z ceny Rescue; Pevná cena za opravu. - Rescue: od 34 900 Kč. Opravy podle rizika a převod na framework za cenu, kterou určil audit. Nejdřív data a přístupy; Co funguje, zůstane; Role, historie a testy z frameworku; Appka i kód jsou vaše. - Modul navíc: 14 900 Kč - Role navíc: 4 900 Kč - Napojení na nástroj přes API: od 9 900 Kč. Jednoduché. Obousměrné, nebo s ERP či účetnictvím od 24 900 Kč; přesnou cenu určí Solver. - Hosting: 490 Kč měsíčně. Provozujeme appku i její databázi za náklady. Appku si můžete hostovat i sami, zdarma. - AI chat: 2 490 Kč měsíčně. Ptejte se dat v appce běžnými slovy, pro 10 lidí; každý další člověk 149 Kč, zřízení zdarma. Fair use: 300 otázek na člověka měsíčně. Modul je oblast práce, třeba Výroba nebo Faktury. Role je typ uživatele s právy, třeba vedoucí nebo účetní. Ceny „od“ platí před Solverem. Po Solveru dostanete pevnou cenu a ta se nezmění, pokud se nezmění rozsah. Ceny jsou bez DPH. #### Otázky ke studiu ##### Proč ne prostě Notion, Airtable nebo AI builder? Používejte je, kde sedí. Hotové nástroje jsou levné, ale proces se ohýbá podle nich a skutečná práce skončí v tabulce vedle. AI buildery rychle rozjedou první verzi a pak se zaseknou na rolích, skutečných datech a na tom, kdo za appku ručí. My stavíme přesně to, co váš proces potřebuje, na frameworku, který už řeší ty těžké, neviditelné části. ##### Jak můžete být levnější než agentura? Je toho míň k postavení. Agentura začíná u každého klienta od prázdné stránky a znovu vám účtuje tabulky, formuláře, role a schvalování. U nás jsou hotové ve frameworku a vyzkoušené v každé appce, kterou předáváme, takže platíte jen za to, co je jedinečné pro vaši firmu. Velkou část kódu píše AI; appku navrhuje člověk, každou změnu kontroluje a za appku odpovídá. ##### Proč „od“? Ceny „od“ platí před Solverem. Po Solveru dostanete pevnou cenu a ta se nezmění, pokud se nezmění rozsah. Co cenu ovlivňuje: kolik stojí aplikace na míru. ##### Co je modul a role? Modul je oblast práce, třeba Výroba nebo Faktury. Role je typ uživatele s právy, třeba vedoucí nebo účetní. Build zahrnuje po jednom, další se platí zvlášť. ##### Komu patří kód? Vám. Appka i její kód jsou vaše. Framework pod ní zůstává náš a vaše appka má licenci ho používat, dokud běží, i kdybyste od nás odešli. Aktualizace frameworku dostáváte s předplatným Care. ##### Jak dlouho to trvá? Nejdřív je Solver a končí pevnou nabídkou, ve které je i termín vašeho Buildu. Během stavby sledujete postup na náhledovém odkazu. ##### Napojí se na nástroje, které už používáme? Ano, pokud má nástroj API. Každé napojení postavíme jednou a otestujeme, jednoduché od 9 900 Kč, obousměrné nebo s ERP či účetnictvím od 24 900 Kč. Udržet ho v chodu i po změnách na druhé straně je součástí Care. ##### Kde budou naše data a jsou v bezpečí? Na vašich účtech, pokud chcete mít klíče u sebe, nebo appku provozujeme my jako doplněk Hosting ke Care, s denními zálohami. Kdo smí co číst a měnit, hlídá i databáze, nejen obrazovka. ##### Potřebujeme Care? Každý Build má tři měsíce Care Start v ceně. Potom si vyberete úroveň Care, nebo appku převezmete sami; bez Care končí záruka a aktualizace frameworku, kód a licence vám zůstávají. ##### Převezmete appku postavenou s AI, nebo starý systém? Ano, na to je Rescue: nejdřív audit, pak opravy podle rizika a převod na framework. Co funguje, zůstane. ##### Jak začít? Popište problém ve formuláři nebo na hello@meadowstack.com. Stačí pár vět. Odpovíme otázkami nebo návrhem Solveru. ### Příklady oborů (smyšlené firmy v ukázkách) Firmy jsou vymyšlené, appky fungují. https://meadowstack.com/cs/ukazky/ - Studia a služby (Brightpath Studio): Kapacity na osm týdnů dopředu proti hodinám, které projekty prodaly, úkoly v seznamu nebo na tabuli, stopky a výkazy, peníze a marže každého projektu a kanál s každým klientem. Jedna appka místo tří. Z čeho je appka složená: Kapacity, Úkoly, Čas, Finance, Kanály. https://meadowstack.com/cs/ukazky/kapacity-studia/ - Pražírny a e-shopy (Fernhill Coffee): Plán pražení se počítá z objednávek kaváren, předplatného a e-shopu, každá šarže zelené kávy se dohledá až k zákazníkům a zaplacená objednávka sama vystaví fakturu a objedná kurýra. Asistent zná sklad. Z čeho je appka složená: Pražení, Zelená káva, Obchod, Velkoobchod, Scénáře. https://meadowstack.com/cs/ukazky/prazirna-kavy/ - Účetní kanceláře (Kestrel Accounting): Doklady klientů se kontrolují hned, jak dorazí, s údaji vyčtenými z každého z nich, platby z banky se párují s fakturami, měsíční uzávěrka je seznam toho, co chybí, a úřední dopisy dostanou termíny odpovědí. Kancelář zachytí podvodnou fakturu dřív, než ji klient zaplatí. Z čeho je appka složená: Doklady, Účetnictví, Datovka, Fakturace. https://meadowstack.com/cs/ukazky/ucetni-kancelar/ - Restaurace a provozovny (Juniper Kitchen): Tři bistra plánují směny proti tržbám dne, s pravidly odpočinku a výměnami ke schválení. Receptury nesou cenu a alergeny, kuchyně odškrtává kontroly hygieny a noví lidé začínají s příručkou a plánem zaučení. Z čeho je appka složená: Směny, Kuchyně, HACCP, Lidé, Příručka. https://meadowstack.com/cs/ukazky/smeny-v-restauraci/ - Sportoviště (Riverside Sports Club): Rezervace kurtů na časové ose, které posunete přetažením, jedna schránka pro všechny zprávy od členů, permanentky a platby na recepci, lekce trenérů, půjčovna raket a uzávěrka pokladny. Recepce řídí kurty, déšť i hladinu řeky z jedné obrazovky. Z čeho je appka složená: Recepce, Kurty, Klub, Trenéři, Půjčovna. https://meadowstack.com/cs/ukazky/rezervace-sportoviste/ - Stavební firmy (Stonebridge Construction): Všechny stavby na jedné mapě, harmonogram proti počasí na celý týden, stavební deník, vady připíchnuté na výkresech a mobilní pohled pro stavbyvedoucího. Když mráz ohrozí betonáž, majitel přesune práce jedním potvrzením. Z čeho je appka složená: Stavby, Harmonogram, Party, Stroje, Deník, Výkresy, Telefon mistra, Rozpočet. https://meadowstack.com/cs/ukazky/rizeni-staveb/ - Autodoprava (Ridgeway Freight): Plán jízd, který při každém přetažení hlídá doby řízení, živá mapa kamionů, zpáteční náklady, doklady řidičů a nafta a mýto po vozech. Dispečink vidí, kdo nestihne okno, a přeplánuje bez porušení pravidel; zákazník sleduje zásilku s časem příjezdu. Z čeho je appka složená: Doprava, Řidiči, Náklady, Přehledy. https://meadowstack.com/cs/ukazky/dispecink-autodopravy/ - Obaly a tisk (Foldline Packaging): Zakázka od prvního e-mailu po paletu: nabídky, pošta u každé zakázky, tisková data zkontrolovaná ve 3D dřív, než dojdou do stroje, náhledy, které zákazník schválí ve svém portálu, a týden strojů dopředu. Z čeho je appka složená: Zakázky, Editor, Kalkulace, Nástroje, Barvy. https://meadowstack.com/cs/ukazky/obalova-tiskarna/ - Pro jednotlivce (Martin Kovář): Ne každá appka je pro firmu. Martin, fitness tvůrce, má v jedné appce spolupráce se značkami a jejich licenční práva, kalendář obsahu, faktury a limity příjmů i své tréninky. Přihlásí se i jeho trenérka a vidí jen tréninky. Z čeho je appka složená: Spolupráce, Obsah, Peníze, Trénink. https://meadowstack.com/cs/ukazky/aplikace-pro-jednoho/ ### Průvodci Kolik stojí aplikace na míru, kdy ještě stačí tabulka, jak udržet jednotné obrazovky psané AI nástroji a co patří do AGENTS.md. Užitečné, i když od nás nikdy nic nekoupíte. https://meadowstack.com/cs/pruvodce/ #### Jak udržet jednotné UI, když aplikaci píše AI nástroj https://meadowstack.com/cs/pruvodce/jednotne-ui-z-ai-nastroju/ (2026-11-11) AI nástroj píše každou obrazovku z toho, co má v danou chvíli před sebou, a bez společného zdroje pokaždé vymyslí novou tabulku, formulář i odsazení. Lepší prompty to nespraví, spraví to struktura. Dejte nástroji jedno místo, odkud bere komponenty, krátká pravidla, která přečte před každým úkolem, kontroly, které selžou při porušení pravidla, a pevnou sadu typů obrazovek. Všechno z toho jde v jakémkoli React repozitáři. ##### Proč deset promptů dá deset různých obrazovek Každý prompt je nové rozhodnutí. Požádejte v pondělí Claude Code, Cursor nebo Codex o seznam objednávek a ve čtvrtek o seznam dodavatelů a dostanete dvě tabulky, které samy o sobě vypadají rozumně, ale k sobě nepasují. Jedna má řádek s filtry, druhá vyhledávání v hlavičce. Jedna otevírá záznam v dialogu, druhá na nové stránce. Liší se odsazení, prázdný stav i formát data. Nástroj není lajdák. Každou mezeru, kterou mu necháte, vyplní nejpravděpodobnější odpovědí ze všeho, co kdy viděl, a pro tabulku jsou těch odpovědí tisíce. Obrazovku z minulého týdne si navíc nepamatuje, pokud ji zrovna nemá před sebou, a v rostoucím repozitáři ji před sebou často nemá. Rozdíly tedy nevznikají v modelu, ale v mezerách. Pomůže je zavřít tam, kam se nástroj dívá nejdřív: v kódu, který importuje, v pokynech, které čte, a v kontrolách, které běží po něm. ##### Co opravdu pomůže ###### Jeden zdroj komponent Když jde tabulku napsat od nuly, napíše se od nuly. Mějte jednu složku nebo balíček, který vlastní všechny stavební prvky (tlačítko, pole formuláře, tabulku, boční panel, prázdný stav), a import z něj ať je jediný povolený způsob, jak obrazovku postavit. Nástroj pak obrazovky skládá, místo aby je kreslil, a oprava tabulky se projeví ve všech seznamech najednou. Zdroj musí jít snadno najít. Krátký přehled toho, co existuje, s jednou větou o tom, kdy který prvek použít a co nahrazuje, ušetří situace, kdy si nástroj napíše vlastní dialog, protože o vašem nevěděl. ###### Pravidla, která nástroj čte Nástroje pro psaní kódu čtou před začátkem práce soubor se stálými pokyny: většina `AGENTS.md`, Claude Code `CLAUDE.md`. Pravidla v něm přečte u každého úkolu, takže mají větší váhu než jakýkoli prompt. Dobrá pravidla jsou krátká, konkrétní a dají se zkontrolovat: - Barvy jen sémantickými třídami z kitu; nikdy hex, rgb ani hsl v komponentě. - Každý seznam načítá data jedním hookem a má čtyři stavy: načítání, chybu s možností zkusit znovu, prázdný stav a data. - Hlavička obrazovky má název, jednu hlavní akci a nejvýš dvě vedlejší; zbytek patří do menu. - Tabulka se na telefonu nikdy neposouvá do strany; méně důležité sloupce se skryjí a jejich hodnoty se složí do prvního. Každé pravidlo napište jednou. Když stejné pravidlo leží ve třech souborech ve třech zněních, nástroj se řídí tím, které četl naposledy. Samotnému souboru se věnuje průvodce co patří do AGENTS.md. ###### Kontroly, které zastaví build Pravidlo, které nic nekontroluje, je jen doporučení. Nástroj se jím většinou řídí a výjimky se hromadí. Každé pravidlo, které jde zkontrolovat, proměňte ve skript, který selže: - Kontrola tokenů, která v komponentách hledá barvy zapsané napřímo a zastaví commit, když nějakou najde. - Pravidlo lintu (`no-restricted-imports`), které zakáže importovat podkladovou UI knihovnu jinde než v balíčku komponent. - Kontrola stavů, která najde data načtená bez větve pro načítání, chybu a prázdný stav. - End-to-end testy s kontrolou přístupnosti a screenshoty v šířce telefonu i počítače, na které se opravdu podíváte. Nástroj si chybu přečte a ve stejné session ji opraví. Rychlé kontroly pouštějte po každé úpravě (Claude Code na to má hook), pomalejší před tím, než úkol prohlásíte za hotový. ###### Typy obrazovek Nejvíc rozdílů vzniká v rozvržení celé obrazovky: jak je široká, co je v hlavičce, co se posouvá a jak se otevírá záznam. Pojmenujte malou sadu typů obrazovek a každému dejte komponentu, která tato rozhodnutí drží. Seznam je seznam, formulář je formulář a nástroj vybírá typ, místo aby vymýšlel stránku. My jich používáme devět; popisuje je průvodce typy obrazovek. ##### Co můžete udělat hned, bez nákupu 1. Vyberte jednu knihovnu komponent a do `AGENTS.md` napište, že se z ní staví každá obrazovka a kde leží. 2. Přidejte čtyři nebo pět pravidel výše, na kterých vaší aplikaci záleží nejvíc, každé jednou větou. 3. Přidejte `no-restricted-imports` pro knihovny, které komponenty obalují, a desetiřádkový skript, který selže na hex barvě v komponentách. 4. Zapište, co znamená „hotovo“: které příkazy musí projít a na jaké velikosti obrazovky se díváte. 5. Když nástroj opravujete dvakrát kvůli stejné věci, přidejte pravidlo. Když potřetí, přidejte kontrolu. Nic z toho nepotřebuje framework. Potřebuje to, aby se jednou rozhodlo, zapsalo na jedno místo a skript to hlídal. ##### Jak to řeší Meadowstack Framework Framework je přesně tohle nastavení, hotové a průběžně udržované. Obsahuje kit komponent s přehledem, k čemu který prvek slouží, `AGENTS.md` a `CLAUDE.md` s jedním zněním každého pravidla, skills pro Claude Code na opakované úkoly (nová obrazovka, nový modul, schvalování, závěrečná kontrola), pravidla pro Cursor generovaná ze stejného souboru a MCP server, který odpoví „jakou komponentu na tohle použít“ dřív, než si nástroj napíše vlastní. Obrazovky jsou `` a dalších osm typů; slot, který daný typ nemá, je chyba typu. Kontroly tokenů, kontrastu, stavů obrazovek, typů sloupců, markupu a pohybu běží v `npm run check` a hook v editoru po každé úpravě spustí formátování a kontrolu tokenů. Výsledek uvidíte v ukázkových appkách: 9 oborů, jeden vzhled. ##### Spraví nejednotné UI lepší prompty? Jen pro obrazovku, kterou máte zrovna před sebou. Prompt se do dalšího úkolu nepřenese. Pravidla v souboru, který nástroj čte pokaždé, a kontroly, které zastaví build, ano. ##### Funguje to i s Cursorem a Codexem, nejen s Claude Code? Ano. Pravidla jsou v obyčejných souborech a kontroly jsou npm skripty, takže se jimi řídí každý nástroj, který čte soubor s pokyny a spouští příkazy. Claude Code k tomu přidává hooky a skills. ##### Je to totéž co design systém? Design systém dává prvky a důvody. Jednotnost s AI nástrojem potřebuje navíc pravidla v souboru, který nástroj čte, a kontroly, které změnu zastaví, protože nástroj na design review nepřijde. #### Co patří do AGENTS.md u firemní aplikace v Reactu https://meadowstack.com/cs/pruvodce/agents-md-pro-firemni-react-aplikaci/ (2026-11-11) AGENTS.md je obyčejný soubor v Markdownu v kořeni repozitáře, který AI nástroje pro psaní kódu čtou jako stálé pokyny před prací. U firemní aplikace v Reactu má obsahovat pět věcí: mapu repozitáře, příkazy, co znamená „hotovo“, pravidla každé v jednom znění a odkaz, kde leží delší pravidla. Držte ho tak krátký, aby se dal přečíst za dvě minuty, a každé pravidlo pište tak, aby ho mohl zkontrolovat skript nebo test. Šablona na konci průvodce je výchozí bod ke zkopírování. ##### Co ten soubor je a kdo ho čte `AGENTS.md` je zvyklost, ne produkt: jeden soubor v Markdownu v kořeni repozitáře, psaný pro AI nástroj, ne pro nového kolegu. Nástroje, které ho podporují, si ho přečtou na začátku úkolu a berou ho jako stálé pokyny, takže pravidlo zapsané v něm platí pro každý prompt, aniž byste ho opakovali. Codex čte `AGENTS.md` tak, jak je, a přibývají další nástroje a editory, které to umí. Claude Code čte `CLAUDE.md`, který si druhý soubor načte jediným řádkem `@AGENTS.md` a doplní jen to, co používá Claude Code (hooky, skills). Cursor čte `AGENTS.md` také a vedle něj má vlastní složku pro pravidla, která platí jen pro některé soubory. Jde o to mít jeden soubor, který čtou všechny. Čtou ho i lidé. Dobrý `AGENTS.md` je zároveň krátké zaškolení pro nového vývojáře. ##### Části, které si své místo zaslouží ###### Mapa repozitáře Vyjmenujte složky a co v nich je, každou jedním řádkem: kde jsou komponenty, kde obrazovky, kde se načítají data, kam patří testy. Jinak nástroj stráví první minuty hledáním a někdy se zastaví u první složky, která vypadá správně. Mapa také říká, na co nesahat: generované soubory, převzatý kód, výstup buildu. ###### Příkazy Tabulka příkazů pro práci, kterou nástroj bude dělat: instalace, spuštění aplikace, všechny kontroly, end-to-end testy, formátování. Přesné příkazy, ne popisy. Pokud úkol potřebuje krok předem (naplnění databáze, vygenerovaný soubor), napište to k příkazu. ###### Co znamená „hotovo“ Nejužitečnější část a nejčastěji chybí. Vypište, co musí platit, než nástroj řekne, že skončil: kontroly projdou, projdou testy obrazovek, na které sáhl, nové chování má test, prohlédli jste si screenshoty v šířce telefonu i počítače, nezůstalo žádné TODO. Bez toho „hotovo“ znamená „přeložilo se to“. ###### Pravidla, každé v jednom znění na jednom místě Krátká, konkrétní a ověřitelná pravidla, seskupená podle témat: vzhled a rozvržení, data a stavy, oprávnění, formuláře, přístupnost, texty. Každé pravidlo je jedna věta, kterou člověk ověří na obrazovce. „Každý seznam ukazuje stav načítání, chyby, prázdný stav a data“ je pravidlo; „pište čistý, udržovatelný kód“ není. Každé pravidlo se objeví jednou. Když je stejné pravidlo i ve skillu, v komentáři v kódu a v README, kopie se rozejdou a nástroj se řídí tou, kterou četl naposledy. ###### Kde leží pravidla Jak aplikace roste, některá pravidla potřebují víc než větu: jak postavit novou obrazovku, jak funguje schvalování, proč padlo nějaké rozhodnutí. Dejte je do vlastních souborů a v `AGENTS.md` mějte krátkou tabulku, která na ně ukazuje. Hlavní soubor zůstane krátký a podrobnosti jsou o krok dál, když je úkol potřebuje. ##### Časté chyby - Eseje. Odstavce o filozofii týmu odsunou pravidla z dohledu. Nástroj čte celý soubor pokaždé; každá věta by měla měnit to, co udělá. - Zdvojená pravidla. Stejné pravidlo na třech místech ve třech zněních. Vyberte jedno místo a ostatní smažte. - Pravidla, která nic nekontroluje. Pravidlo bez skriptu, pravidla lintu nebo testu tiše eroduje. Když nástroj opravujete dvakrát kvůli stejné věci, přidejte kontrolu. - Zastaralé údaje. Přejmenovaná složka, příkaz, který už neexistuje. Nástroj věří souboru víc než kódu, takže špatná mapa nadělá skutečnou škodu. Projděte ho při každé změně struktury. - Klíče a osobní údaje. Soubor čtou nástroje a obvykle je v repozitáři. Klíče patří do prostředí, sem nikdy. ##### Šablona ke zkopírování Obecná kostra o zhruba čtyřiceti řádcích pro firemní aplikaci v Reactu. Cesty a příkazy nahraďte svými a smažte, co nepotřebujete. ```markdown ## Project instructions (all coding agents) An internal web app for [what the company does]. React, TypeScript, Vite. Each rule has one wording, in this file or in the file it points to. ### Layout - src/components: the only place UI building blocks live. Screens import from here. - src/screens: one folder per area of work; each screen is a list, record, form or dashboard. - src/data: loading and saving; screens never call the network directly. - src/permissions.ts: every rule about who may do what. - e2e: end-to-end tests. Never edit dist or generated files. ### Commands | Task | Command | | ----------- | -------------- | | Install | npm install | | Run the app | npm run dev | | All checks | npm run check | | End to end | npm run e2e | | Format | npm run format | ### Definition of done 1. npm run check passes. 2. The e2e tests of every screen you touched pass. 3. New behaviour has a test. 4. You looked at screenshots at 390px and 1440px, light and dark. 5. No TODOs, no commented-out code. ### Rules - Build screens from src/components; never add a new table, dialog or form field elsewhere. - Colours only through the design tokens; no raw colour values in components. - Every data view shows four states: loading, error with retry, empty, success. - Ask permissions through can(action, record); never compare roles in a component. - Every change of state writes an audit entry. - Every input has a visible label; one h1 per screen; everything works with a keyboard. - Tables never scroll sideways on a phone. - Messages say what to do next, in the app's language. ### Where the rules live | What | Where | | ------------------------- | --------------- | | How to build a new screen | docs/screens.md | | Why a rule is what it is | docs/decisions/ | ``` ##### Jak to dělá Meadowstack Framework Vlastní `AGENTS.md` frameworku má přesně tenhle tvar, vyplněný pro firemní aplikaci: mapu kitu, starteru a ukázkových appek, příkazy, definici hotového a pravidla pro vzhled, stavy dat, oprávnění, přístupnost, formuláře a texty, s tabulkou, kde leží delší pravidla. Každé pravidlo, které jde zkontrolovat, má za sebou skript a rychlý start ukazuje první prompt, který ho uvede do práce. Kontroly vysvětluje průvodce jak udržet jednotné UI. ##### Čte Claude Code soubor AGENTS.md? Claude Code čte CLAUDE.md. Dejte na jeho začátek řádek @AGENTS.md a přečte oba, takže společná pravidla zůstanou v jednom souboru a v CLAUDE.md bude jen to, co je specifické pro Claude Code. ##### Jak dlouhý má AGENTS.md být? Tak krátký, aby se dal přečíst za dvě minuty. Všechno delší než pár vět přesuňte do vlastního souboru a odkažte na něj z tabulky na konci. ##### Patří AGENTS.md do repozitáře? Ano. Popisuje repozitář, mění se s ním a má projít kontrolou jako kód. Klíče a osobní údaje do něj nepatří. #### Devět typů obrazovek, ze kterých se skládá každá firemní aplikace https://meadowstack.com/cs/pruvodce/devet-typu-obrazovek-firemni-aplikace/ (2026-11-11) Skoro každá obrazovka firemní aplikace patří k jednomu z devíti typů: seznam, pracovní fronta, záznam, formulář, přehled, pracovní plocha, schránka, nastavení nebo plátno. Každý typ odpovídá pokaždé stejně na čtyři otázky: jak je obrazovka široká, co je v hlavičce, co se posouvá a jak se otevírá záznam. Když typ určíte dřív, než obrazovku postavíte, aplikace zůstane jednotná a AI nástroj vybírá z devíti známých odpovědí místo otevřené otázky. Níže je, k čemu který typ slouží, i s fungující ukázkou. ##### Proč typy obrazovek vůbec pojmenovávat Firemní aplikace má desítky obrazovek, ale lidé na nich dělají pár věcí: najdou záznam, projdou frontu, přečtou a změní jeden záznam, vyplní formulář, zjistí, jak věci stojí, plánují na tabuli nebo mapě, odpovídají na zprávy, mění nastavení, upravují dokument. Když každá z těch prací dostane jedno rozvržení, naučí se lidé aplikaci jednou. Když se každá obrazovka navrhuje od nuly, učí se ji znovu na každé stránce. Typ obrazovky určuje právě ta rozhodnutí, která se nejvíc rozjíždějí: šířku obsahu, co patří do hlavičky (název, jedna hlavní akce, nejvýš dvě vedlejší a zbytek v menu), která část obrazovky se posouvá a kde se otevře záznam. Ve Meadowstack Frameworku je obrazovka `` a typ tato čtyři rozhodnutí drží; slot, který daný typ nemá, je chyba typu. | Typ | Šířka | Co se posouvá | Kde se otevře záznam | | --------------- | --------------------------------------- | ------------------------------ | ------------------------------ | | Seznam | celá, zleva | obsah | v panelu vedle seznamu | | Pracovní fronta | celá, zleva | seznam i položka, každý zvlášť | v trvale rozděleném zobrazení | | Záznam | na střed, se sloupcem vlastností | obsah | záznam je stránka | | Formulář | na střed, úzký | obsah, s lepicí patičkou | nikde | | Přehled | na střed | obsah | odkazy do seznamu nebo záznamu | | Pracovní plocha | celá | uvnitř plochy | v panelu nad plochou | | Schránka | celá, seznam a vlákno | seznam i vlákno | ve vlákně | | Nastavení | na střed, navigace vlevo | obsah | v dialogu | | Plátno | celá pro plátno, text v šířce pro čtení | plátno | nikde | ##### Seznam: najít jeden záznam z mnoha Tabulka záznamů s řádkem filtrů nad ní a hromadnými akcemi. Vede přes celou šířku, protože seznam svoje sloupce potřebuje. Klik na řádek otevře záznam v panelu vedle seznamu, takže seznam zůstane na očích; tlačítko v rohu panel rozbalí na celou stránku. Ukázka: seznam vozidel v dispečinku autodopravy. ##### Pracovní fronta: projít, co čeká Pro práci, která přichází a vyřizuje se po jedné položce: doklady ke kontrole, žádosti ke schválení. Seznam a otevřená položka jsou trvale vedle sebe a posouvají se zvlášť, takže další položka je vždy na krok. Ukázka: schránka dokladů v účetní kanceláři. ##### Záznam: jedna věc celá Stránka jednoho záznamu: v nadpisu to, jak mu lidé říkají, nad ním drobně jeho číslo, uprostřed obsah a vedle sloupec vlastností. Když záznam čeká na rozhodnutí, je rozhodnutí kartou nahoře v tom sloupci, ne barevným pruhem. Ukázka: zásilka v dispečinku autodopravy. ##### Formulář: něco vytvořit nebo změnit Na střed a úzký, protože formulář se čte shora dolů. Akce zůstávají v lepicí patičce, takže tlačítko Uložit se pod dlouhým formulářem neztratí; formulář se souhrnem dostane širší rozvržení se souhrnem vedle. Ukázka: nová faktura v účetní kanceláři. ##### Přehled: jak věci stojí Dashboard, který začíná titulkem, jednou větou s čísly, na kterých záleží, a pod ní ukazateli a grafy. Sám záznamy nedrží; každé číslo vede do seznamu nebo záznamu, který za ním stojí. Ukázka: přehled nákladů v dispečinku autodopravy. ##### Pracovní plocha: plánovat na ploše Tabule, rozpis směn, časová osa nebo mapa, kde lidé věci přesouvají. Plocha zabere celou obrazovku a posouvá se uvnitř sebe; záznam se otevře v panelu nad ní, takže plán zůstane, kde byl. Ukázka: mapa vozidel v dispečinku autodopravy. ##### Schránka: konverzace Seznam vláken vedle otevřeného vlákna, každé se posouvá samo, a pod vláknem pole pro odpověď. Hodí se na zprávy se zákazníky nebo členy, ne na schvalování, to je pracovní fronta. Ukázka: zprávy na recepci sportoviště. ##### Nastavení: jak se aplikace chová Na střed, vlevo vlastní navigace nastavení, vpravo oddíly s řádky. Změna, která potřebuje víc než přepínač, se otevře v dialogu. Ve frameworku má každá aplikace stejné čtyři stránky nastavení: Obecné, Tým a role, Propojené aplikace a MCP a AI. Ukázka: nastavení obalové tiskárny. ##### Plátno: upravit dokument nebo kresbu Plátno zabere obrazovku a jako jediné se posouvá; nástroje jsou v liště a v inspektoru vedle něj, text drží šířku pro čtení. Záznamy se tu neotevírají, tady se něco tvoří. Ukázka: editor tiskových dat v obalové tiskárně. ##### Jak s devíti typy pracovat Než obrazovku postavíte, zapište, kdo ji otevírá, jakou jednu práci na ní dělá, a tím i její typ. Když se zdá, že obrazovka potřebuje dva typy, jsou to obvykle dvě obrazovky: seznam a záznam, nebo přehled, který vede do pracovní fronty. Když nesedí žádný, podívejte se znovu, než vymyslíte desátý: ukázkové appky, od tiskárny a autodopravy po účetnictví, rezervace, směny a stavby, stojí právě na těchto devíti. ##### Co je typ obrazovky? Pojmenovaný druh obrazovky, který určuje její šířku, hlavičku, co se posouvá a jak se otevírá záznam. Každá obrazovka toho typu se chová stejně, ať ji postaví kdokoli nebo cokoli. ##### Stačí devět typů na celou aplikaci? Naše ukázkové appky ve velmi různých oborech stojí právě na nich. Nový typ má smysl přidat, jen když nějaká práce opravdu nesedí do žádného. ##### Můžu typy obrazovek používat i bez Meadowstack Frameworku? Ano. Zapište si devět typů s pravidly pro šířku, hlavičku, posouvání a otevírání záznamu a pro každý udělejte jednu komponentu rozvržení. Framework tu komponentu i pravidla dodává hotové. #### App builder, nebo framework v kódu: co zvolit pro aplikaci, kterou budete udržovat https://meadowstack.com/cs/pruvodce/app-builder-nebo-framework/ (2026-11-11) Builder, který staví aplikaci z promptu, vám nejrychleji dá fungující prototyp na své platformě a je správnou volbou pro ověření nápadu nebo malý nástroj, na kterém skoro nic nestojí. Aplikace, se kterou tým bude léta pracovat každý den, klade jiné otázky: komu patří kód, jestli padesátá obrazovka pořád odpovídá první, kde aplikace běží a kdo ji za rok změní. Vlastní repozitář s AI nástrojem a frameworkem je první den pomalejší a od třetího měsíce stabilnější. Mnoho týmů dělá obojí: prototyp v builderu, skutečnou aplikaci v kódu. ##### Dvě kategorie, obě s AI Obě cesty nechávají aplikaci psát AI, proto se srovnávají. Liší se tím, kde aplikace žije a co AI řídí. Buildery aplikací z promptu (příklady kategorie jsou Lovable, Bolt a v0) vezmou popis v chatu a vyrobí běžící aplikaci na své platformě: editor, náhled a obvykle i hosting jsou na jednom místě. Řídíte ji prompty a strukturu určuje builder. Framework v kódu s AI nástrojem znamená vlastní repozitář, v něm framework, který už obsahuje komponenty, typy obrazovek a pravidla, a nástroj jako Claude Code, Cursor nebo Codex, který v tom repozitáři pracuje. I tady řídíte prompty, ale většinu struktury určí pravidla a kontroly frameworku dřív, než nástroj napíše první řádek. ##### Výhody a nevýhody, poctivě ###### Rychlost prvního prototypu Jasně vyhrávají buildery. Od prázdné stránky k něčemu, na co se dá klikat, vedou minuty a nic se neinstaluje. S frameworkem nejdřív naklonujete repozitář a spustíte ho a první obrazovka se objeví později. Pokud je otázka „dává ten nápad vůbec smysl“, builder odpoví dřív. ###### Komu patří kód S frameworkem je kód váš od prvního commitu, ve vašem repozitáři a pod vaší správou verzí. S builderem žije aplikace na platformě; mnoho builderů umí kód exportovat nebo synchronizovat do repozitáře a tím export začíná další otázka: kdo ho bude mimo builder udržovat. ###### Jednotnost v průběhu měsíců Tady se cesty rozcházejí nejvíc. Builder generuje každou obrazovku jako odpověď na prompt a po pár desítkách promptů má aplikace obvykle několik způsobů, jak dělat totéž: tabulky, které se chovají různě, formuláře s různou validací, oprávnění kontrolovaná někde ano a jinde ne. Framework tyto mezery zavře předem: jeden zdroj komponent, pravidla, která nástroj čte před každým úkolem, a kontroly, které selžou při porušení pravidla. Padesátá obrazovka se staví stejně jako první. Jak na to, popisuje průvodce jak udržet jednotné UI. ###### Hosting a data Buildery aplikaci obvykle hostují a často přinášejí vlastní databázovou službu. Je to pohodlné a zároveň to aplikaci váže na jejich platformu a ceník. Aplikace v kódu je běžná webová aplikace: hostujete ji, kde chcete, napojíte ji na firemní přihlašování a data a v případě potřeby ji přestěhujete. ###### Kdo ji později změní Aplikaci z builderu nejsnáz změní ten, kdo ji postavil, a to v builderu. Aplikaci v kódu na frameworku změní každý vývojář, který zná React, s AI nástrojem i bez něj, a pravidla v repozitáři řeknou dalšímu člověku i dalšímu nástroji, jak se tu věci dělají. U aplikace, na které firma stojí, je to důležitější než to, jak rychle vznikla. ##### Kdy je builder správná volba - Chcete ještě tento týden ověřit nápad se skutečnými lidmi. - Nástroj je malý, používá ho pár lidí a nevadí, když se později postaví znovu. - Potřebujete proklikávací ukázku pro prezentaci nebo zadání. - Nikdo se o kód starat nebude a omezení platformy vám nevadí. Prototyp z builderu je zároveň dobré zadání. Ukáže, co lidé potřebují, lépe než většina dokumentů. ##### Kdy se vyplatí kód na frameworku - Aplikaci bude tým používat každý den a léta. - Potřebuje role, schvalování a historii změn, kterou jde zpětně dohledat. - Musí se napojit na firemní přihlašování, data nebo další systémy. - Bude na ní v čase pracovat víc lidí nebo víc AI nástrojů. - Chcete kód vlastnit a sami určit, kde poběží. ##### Častá cesta Prototyp v builderu, potom skutečná aplikace v kódu. Pokud se aplikace z builderu už stala něčím, na čem lidé závisí, audit řekne, co z ní ponechat: přesně to dělá Rescue našeho studia a aplikaci přitom převede na framework. Pokud ji postavíte sami, Meadowstack Framework je repozitář, ze kterého začnete, a srovnání ho staví vedle UI kitů, starterů a builderů podle kategorií. ##### Stačí builder na interní nástroj? Na malý nástroj pro pár lidí často ano. Jakmile nástroj potřebuje role, schvalování, záznam změn nebo napojení na firemní data a lidé na něm denně závisí, aplikaci v kódu je snazší udržet správně. ##### Můžu aplikaci z builderu později převést do vlastního kódu? Obvykle ano, pokud builder kód exportuje. Počítejte s tím, že ho bude potřeba přestavět: export běží, ale nevznikl podle pravidel, která jste si zvolili. Berte ho jako podrobné zadání pro novou verzi. ##### Musím být vývojář, abych stavěl na frameworku s AI nástrojem? Musíte číst kód natolik, abyste zkontrolovali, co nástroj změnil, a uměli spustit kontroly. Velkou část kontroly za vás udělají pravidla a kontroly frameworku, ale za výsledek musí někdo odpovídat. #### Kolik stojí aplikace na míru a co určuje její cenu https://meadowstack.com/cs/pruvodce/kolik-stoji-aplikace-na-miru/ (2026-11-11) Cenu firemní aplikace na míru určuje pět věcí: kolik oblastí práce pokrývá, kolik druhů uživatelů má, se kterými systémy musí mluvit, kolik se navrhuje od nuly a kdo se o ni postará po spuštění. Počet obrazovek hraje menší roli, než se čeká; pravidla, role a napojení větší. Pevná cena potřebuje krátkou placenou fázi, která nejdřív ujasní rozsah, kdežto hodinová sazba se hýbe s každým překvapením. Připravte si popis toho, jak práce běží dnes, kdo se jí účastní a jaké systémy používáte, a každá nabídka, kterou dostanete, bude blíž skutečnosti. ##### Co cenu opravdu určuje ###### Oblasti práce Oblast práce je jedna část toho, co firma dělá a co aplikace převezme: zakázky, výroba, faktury, rozpis směn, vozový park. Každá přináší vlastní záznamy, seznamy, formuláře a pravidla. Dvě oblasti stojí víc než jedna a tři víc než dvě, zhruba úměrně, protože každá potřebuje stejnou hloubku: co se se záznamem může stát, kdo to smí udělat a co se musí zkontrolovat. Tohle je největší jednotlivý faktor. ###### Role Role je druh uživatele s vlastními právy: vedoucí, který schvaluje, účetní, který vidí náklady, zákazník, který vidí jen své objednávky. Každá role přidává pravidla, která je potřeba navrhnout, postavit a otestovat, a každá obrazovka musí sedět každé roli, která ji vidí. Aplikace s jednou rolí je mnohem jednodušší než aplikace s pěti. ###### Napojení na další systémy Propojení aplikace s dalšími systémy (účetnictvím, e-shopem, kalendářem, rozhraním dopravce) se často podceňuje. Čtení dat jedním směrem je ten jednodušší případ. Zápis zpět oběma směry nebo napojení na ERP či účetní systém znamená řešit konflikty, výpadky a zvláštnosti druhého systému a stojí znatelně víc. ###### Navrženo od nuly, nebo postaveno na ověřených základech Základy, které potřebuje každá firemní aplikace (přihlášení, role, schvalování, historie změn, tabulky, které fungují v telefonu, stavy načítání a chyb, přístupnost), jsou v každé aplikaci stejné. Když se pro každého klienta staví od nuly, tvoří velkou část účtu. Když se postaví jednou a používají znovu, klienta stojí málo a rozpočet jde do toho, co je pro jeho firmu specifické. ###### Péče po spuštění Aplikace, kterou lidé používají, se mění: posunou se pravidla, nový kolega potřebuje roli, připojený systém změní rozhraní. Někdo ji musí udržet v chodu, bezpečnou a aktuální. To je měsíční náklad, menší než samotná stavba, a je dobré ho znát předem. ###### Co hraje menší roli, než se čeká Počet obrazovek. Seznam, záznam a formulář pro jednu oblast práce je pár obrazovek; přidat čtvrtý pohled na stejná data je levné, jakmile jsou správně pravidla pod ním. ##### Pevná cena, nebo hodinová sazba Při hodinové sazbě platíte za odpracovaný čas a celková částka je známá až na konci. Hodí se na práci, jejíž rozsah předem znát nejde, a riziko každého překvapení nesete vy. Pevná cena přenáší riziko na dodavatele, což je férové jen tehdy, když je rozsah nejdřív ujasněný. Proto práce za pevnou cenu začíná krátkou placenou fází: rozebrat problém, navrhnout řešení, které si můžete proklikat, a dát nabídku přesně na to. Cena platí, dokud nezměníte rozsah. Pevná cena bez takové fáze je buď nafouknutá, aby pokryla neznámé, nebo se bude znovu vyjednávat. ##### Náš ceník jako jeden příklad Ceny se mezi dodavateli hodně liší, proto tu je náš ceník jako jeden příklad toho, jak se cena skládá, bez DPH: | Část | Cena | Co pokrývá | | ------------------------------- | ------------------------ | ------------------------------------------------------------------------------------- | | Solver | 14 900 Kč | Rozbor problému, prototyp k proklikání a pevná nabídka; odečte se z Buildu | | Build | od 49 000 Kč | Jedna oblast práce a jedna role, libovolně obrazovek, tři měsíce Care Start | | Další oblast práce | 14 900 Kč | Další modul, třeba Výroba nebo Faktury | | Další role | 4 900 Kč | Další druh uživatele s vlastními právy | | Napojení, jednoduché | od 9 900 Kč | Jeden nástroj přes jeho API | | Napojení obousměrné nebo na ERP | od 24 900 Kč | Přesnou cenu určí Solver | | Care | od 2 490 Kč měsíčně | Lite, Basic za 5 900 Kč, Standard za 9 900 Kč, Plus za 19 900 Kč měsíčně | | Hosting | 490 Kč měsíčně | Za náklady; hostovat appku sami můžete zdarma | Aplikace pro dvě oblasti práce, tři role a jedno jednoduché napojení tedy začíná na Buildu a k němu jedna oblast práce navíc, dvě role navíc a napojení: 49 000 Kč + 14 900 Kč + 2 × 4 900 Kč + 9 900 Kč, přičemž Solver se odečte. Po třech zahrnutých měsících následuje Care v úrovni, kterou si vyberete, nebo appku převezmete sami. Kód je v obou případech váš. Cena je nižší než při stavbě od nuly, protože základy popsané výše pocházejí z našeho frameworku, hotové a otestované. Tuhle část účtu už neplatíte. ##### Co si připravit, než požádáte o nabídku 1. Jak práce běží dnes. Kde leží data (tabulky, e-maily, papír, starý systém), kdo s nimi pracuje a v jakém pořadí. Snímek obrazovky tabulky řekne víc než stránka popisu. 2. Lidi. Kdo bude aplikaci používat, kolik jich je a co který druh uživatele smí a nesmí vidět a dělat. Z toho vzniknou role. 3. Systémy. Ze kterých nástrojů musí aplikace číst nebo do nich zapisovat a jestli mají API, ke kterému získáte přístup. 4. Co bolí nejvíc. Jeden nebo dva problémy, kvůli kterým jste začali hledat. Určí, co patří do první verze. 5. Co bude po spuštění. Jestli máte někoho, kdo se o aplikaci postará, nebo to chcete nechat na dodavateli. S tímhle se dají dvě nabídky od dvou dodavatelů porovnat. Bez toho každý dodavatel naceňuje jiný odhad. ##### Kolik stojí aplikace na míru? Záleží na oblastech práce, rolích a napojeních. Náš Build začíná na 49 000 Kč za jednu oblast práce a jednu roli s libovolným počtem obrazovek a přesná cena se určí po Solveru. ##### Proč se nabídky na stejnou aplikaci tolik liší? Protože každý dodavatel naceňuje jiný odhad rozsahu a někdo staví základy od nuly, zatímco jiný je používá znovu. Když nejdřív ujasníte rozsah a zeptáte se, co se používá znovu, nabídky půjde porovnat. ##### Je pevná cena dražší než hodinová sazba? Ne, pokud je rozsah nejdřív ujasněný. Pevná cena přenáší riziko překvapení na dodavatele, hodinová ho nechává vám. #### Krabicový software, tabulka, nebo aplikace na míru? https://meadowstack.com/cs/pruvodce/krabicovy-software-tabulka-nebo-aplikace-na-miru/ (2026-11-11) Tabulka vyhrává, dokud jednoduchá data sdílí pár lidí, kteří si navzájem věří. Krabicový software vyhrává, když je váš postup v oboru běžný a nevadí vám pracovat podle něj. Aplikace na míru vyhrává, když je způsob, jakým pracujete, součástí toho, co dělá vaši firmu dobrou, a stávající nástroje lidi nutí je obcházet. Mezi krabicí a prázdnou stránkou leží třetí možnost: aplikace na míru postavená na hotovém frameworku, která cenou míří ke krabici a sedí jako stavěná od nuly. ##### Tři možnosti, tři různé sliby Tabulka slibuje volnost: každý může hned a zadarmo přidat sloupec. Krabicový software slibuje hotové řešení: postup za vás promyslel někdo jiný a produkt udržuje v chodu. Aplikace na míru slibuje, že sedne: software se řídí tím, jak vaše firma pracuje, ne naopak. Každý slib platí a každý má cenu, která se ukáže později. Rozhodujete se vlastně o tom, kterou cenu zaplatíte raději. ##### Kdy vyhraje tabulka Tabulka je správný nástroj, dokud platí tři věci: používá ji pár lidí, data jsou jednoduchá a všichni si věří s každou buňkou. Ceník, malá inventura, plán jednoho projektu. Nic nestojí, každý ji umí a přizpůsobí se každému nápadu za minutu. Tabulku, která funguje, nenahrazujte. Nahraďte tu, která vás začala stát peníze. ##### Podle čeho poznáte, že jste z tabulky vyrostli - Existuje několik verzí. Vedle sdílené leží „Zakázky finál 3 (Pavel).xlsx“ a nikdo neví jistě, která je správná. - Někdo se jí bojí dotknout. Vzorcům rozumí jeden člověk, a když je na dovolené, soubor stojí. - Lidé potřebují různé pohledy a různá práva. Sklad nemá vidět marže, zákazník jen své objednávky. Tabulka to od sebe neudrží. - Schvaluje se v e-mailech. Někdo se zeptá, někdo ve vlákně odpoví „OK“ a za tři týdny nikdo nedohledá, kdo co schválil. - Nikdo neví, kdo co změnil. Číslo je jiné a žádná historie neřekne kdy, kdo ani z čeho. - Nefunguje v telefonu. Lidé v dílně, na cestě nebo na stavbě opisují čísla na papír a doma je přepisují. Dvě nebo tři z těchto věcí najednou jsou dobrý důvod hledat něco lepšího. ##### Kdy vyhraje krabicový software Krabicový software vyhrává, když je váš postup v oboru běžný a rádi se jím budete řídit: účetnictví, mzdy, e-mail, standardní e-shop. Tisíce firem mají stejné potřeby, takže produkt je vyzrálý, levnější než cokoli stavěného pro vás a aktuální ho drží někdo jiný. Přizpůsobit vlastní práci dobrému standardnímu produktu bývá správné rozhodnutí. Přestává vyhrávat, když je způsob, jakým pracujete, součástí toho, co dělá vaši firmu dobrou, nebo když produkt pokryje většinu potřeb a zbytek se přestěhuje do tabulek vedle něj. V tom zbytku mizí čas. ##### Skrytá cena softwaru, který lidé obcházejí Software, který nesedí, platíte dvakrát: poprvé při nákupu, podruhé každý den, kdy skutečná čísla žijí v tabulce vedle něj. V průzkumu mezi 3 750 lidmi ve 14 zemích uvedli lidé v kanceláři, že kvůli softwaru, který překáží, ztratí 7,9 hodiny týdně, a že mají správné nástroje, si myslí 88 % manažerů, ale jen 21 % průměrných zaměstnanců (WalkMe, The State of Digital Adoption 2026). Tenhle rozdíl stojí za to ověřit ve vlastní firmě. Zeptejte se lidí, kteří se systémem pracují každý den, ne těch, kdo ho koupili, kde si vedou kopii dat bokem. ##### Kdy vyhraje aplikace na míru Aplikace na míru se vyplatí, když má práce vlastní pravidla, na kterých záleží: kdo smí co schválit, jakými kroky zakázka prochází, co smí vidět zákazník. Vyplatí se i tehdy, když jeden proces nesou dohromady tabulky a e-mailová vlákna a nikdo ho nevidí celý. Interní systém z takového procesu udělá jedno místo s rolemi, schvalováním, historií každé změny a obrazovkami, které fungují v telefonu. Klasickou cenou je peněženka a čas: když ji agentura staví od prázdné stránky, trvá to měsíce a stojí to rozpočet, který většina malých firem nemá. ##### Mezi krabicí a prázdnou stránkou Existuje prostřední cesta. Většina toho, co potřebuje každá firemní aplikace, je všude stejná: přihlášení, role, schvalování, historie změn, tabulky, které fungují v telefonu, přístupné obrazovky. Když se tyto části postaví jednou ve frameworku a používají znovu, stojí málo a práce jde jen do toho, co je specifické pro vaši firmu. Tak pracuje naše studio: každou aplikaci stavíme na Meadowstack Frameworku, takže sedí jako aplikace na míru a cenou je blíž krabicovému softwaru, od 49 000 Kč, s pevnou cenou po krátké fázi návrhu. Jak se cena skládá, ukazuje průvodce kolik stojí aplikace na míru a ukázkové appky předvádějí 9 oborů na stejném základu. ##### Jednoduchý postup, jak se rozhodnout 1. Sepište práci, kterou má nástroj nést, a lidi, kteří ji dělají. 2. Označte, co je ve vašem oboru standard a co je váš vlastní způsob práce. 3. Pokud je skoro všechno standard, hledejte nejdřív krabicový software. 4. Pokud jednoduchá data sdílí pár lidí, nechte si tabulku a udělejte v ní pořádek. 5. Pokud je jádrem váš vlastní způsob práce a lidé už stávající nástroje obcházejí, proberte s někým aplikaci na míru. Začněte návrhem, ne kódem. ##### Kdy má firma nahradit tabulku aplikací? Když existuje několik verzí, lidé potřebují k týmž datům různá práva, schvaluje se v e-mailech nebo nikdo nedohledá, kdo co změnil. Jedna z těchto věcí se dá spravit; dvě nebo tři najednou jsou dobrý důvod. ##### Je aplikace na míru vždy dražší než krabicový software? Na pořízení obvykle ano. Za pár let může vyjít levněji, pokud krabice nechává část práce v tabulkách a lidé ztrácejí čas jejím obcházením. Aplikace na míru postavená na hotovém frameworku začíná mnohem blíž cenám krabicového softwaru. ##### Můžeme začít v malém? Ano. Začněte jednou oblastí práce, která bolí nejvíc, s jedním druhem uživatele, a zbytek přidejte, až poběží. První verze je nejlevnější způsob, jak zjistit, co aplikace opravdu potřebuje. ### Blog Blog Meadowstack: měření, opravy a postupy pro firemní aplikace. Co jsme naměřili, co se rozbilo a jak jsme to opravili, vždy s čísly a zdroji. https://meadowstack.com/cs/blog/ ### Časté otázky ##### Co je Meadowstack? Framework pro firemní appky: React UI kit, Figma soubor, archetypy obrazovek a pravidla, kontroly a bezpečné výchozí nastavení, kterými se řídí Claude Code, Cursor a Codex. Co s nimi postavíte, vypadá jako od designéra a na každé obrazovce se chová stejně. ##### Co dostanu, když si ho koupím? Pozvánku do soukromého repozitáře na GitHubu s kitem, startovní appkou, ze které vyroste ta vaše, pravidly a skills pro AI nástroje, postupy, kontrolami a ukázkou s 9 ukázkovými appkami, k tomu Figma soubor. Podívejte se, co je uvnitř. ##### Co potřebuji k používání? Node.js, editor a AI nástroj na psaní kódu, který čte AGENTS.md, třeba Claude Code, Cursor nebo Codex. Appky jsou běžný React a TypeScript, takže se hodí s nimi mít zkušenost. První hodinu krok za krokem popisuje Začínáme. ##### Můžu ho použít pro klienty? Ano. Každá licence pokrývá práci pro klienty, bez licence na každého klienta. Klient může appku, kterou mu dodáte, provozovat i udržovat. Samotný framework dál prodávat nesmíte. ##### Můžu dostat peníze zpátky? Ano, do 14 dnů od nákupu a bez udání důvodu. Napište na hello@meadowstack.com a Polar, který licenci prodává, vám vrátí celou částku. Vrácením končí licence i přístup do repozitáře. ##### Bude moje appka díky němu bezpečná? Od verze 3.0 začíná vaše appka s bezpečným výchozím nastavením: oprávnění v jednom souboru s pravidly, vstupy kontrolované na serveru, přihlášení, auditní stopa a přísné hlavičky. Do té doby má verze 2.1 oprávnění v jedné tabulce pro každý modul a historii každé změny, serverová část je na vás. Framework je navržený tak, aby podpořil technická opatření podle článku 21 NIS2; soulad organizace ale sám nezajistí. Více na stránce Bezpečnost. ##### Postavíte appku za nás? Ano. Studio, které za Meadowstack stojí, navrhuje a staví firemní appky na frameworku za pevnou cenu a s Care je dál vylepšuje. ### Kontakt - E-mail: hello@meadowstack.com - Hlášení zranitelností: hello@meadowstack.com - Formulář: https://meadowstack.com/cs/kontakt/ - Zakladatel: Bohuslav Poláček, https://bpolacek.com ## Meadowstack resources ### Screens from real business apps Each page shows one screen the way an app built on Meadowstack draws it, rendered from the kit's own components rather than a mock-up. Beside it: the screen type it belongs to, the rules that type follows, and the example apps where you can open it. https://meadowstack.com/screens/ - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/): A change order form that prices its bill of quantities as it is typed, then goes to two approvals in turn - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/): A Gantt chart of one site that holds the week's forecast against the work and proposes moving a pour out of the frost - [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/): A month of posts by state, paid posts checked for their ad label, and a queue by day on a phone - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/): Trucks by hours over three days, an order tray, and a driving-hours check before every drop - [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/): Clients' invoices checked as they arrive, a changed bank account marked on the paper itself - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/): Hours left, five documents with their ends, card downloads and the next step as a decision card - [A fleet cost report that ranks every truck](https://meadowstack.com/screens/fleet-costs/): Diesel, AdBlue and tolls against last month, the fills to resolve and two rankings of the trucks - [A kanban task board for an agency's client work](https://meadowstack.com/screens/task-board/): Five states as columns, cards with priority, labels and due dates, and moves that save at once and can be undone - [A kitchen's food safety day, kept by the clock](https://meadowstack.com/screens/food-safety-checks/): Today's checks by the clock, sensor temperatures, deviations held until answered, and a log that keeps every entry - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/): Where a lot came from, the batches roasted from it and who got them, with the sack's tag and its EUDR state - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/): One client's close as nine steps that wait for each other, with who and when and the next step as a card - [A packaging quote that works out its price as you type](https://meadowstack.com/screens/quote-form/): The brief beside its price, worked out on every keystroke, and a margin floor that needs a second person's yes - [A print shop's jobs on one board, from enquiry to dispatch](https://meadowstack.com/screens/print-job-pipeline/): Seven phases from enquiry to dispatch, four figures over them, and only two moves made by hand - [A proof the customer approves in their own portal](https://meadowstack.com/screens/proof-approval/): The customer's side of a proof: one decision card, the versions they were sent, comments on the flat, a short history - [A recipe with its cost and its allergens](https://meadowstack.com/screens/recipe-with-allergens/): The dish, its allergens traced to ingredients, the portion cost at today's prices and the food cost - [A resource capacity plan for an agency](https://meadowstack.com/screens/capacity-planning/): Eight weeks per person against holidays and time off, a bar per project, and budgets that warn before they run out - [A restaurant rota planned against the takings](https://meadowstack.com/screens/staff-rota/): A week of shifts by person and day, with rest rules, weekly hours and labour against takings - [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/): Batches by day worked out backwards from the orders, with the missing batch and the short green coffee named - [A site diary day, prefilled and signed by the right person](https://meadowstack.com/screens/site-diary/): One day's record of a site, prefilled from attendance and the machine log, signed by the site manager - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/): The request, who else is away on those days, and a decision that needs a reason for a no - [A usage rights tracker for a creator](https://meadowstack.com/screens/usage-rights/): Organic use, paid usage and exclusivity per brand deal on a timeline, with collisions and ends to watch - [A weekly timesheet for an agency](https://meadowstack.com/screens/timesheet/): One person's week by project and day, totals on both edges, a quiet dash for empty cells and a list of days on a phone - [A workflow canvas where a test run walks the steps](https://meadowstack.com/screens/workflow-canvas/): A scenario's steps on a canvas with a paid and an unpaid branch, and test runs played back step by step - [An invoice form that shows its totals as you type](https://meadowstack.com/screens/invoice-form/): Client, dates and lines with live totals and VAT per rate, messages that say what to fix and a sticky save - [An order record with its decision](https://meadowstack.com/screens/order-record/): The customer as the title, the decision card and the history beside it - [Bank lines matched to the documents they paid](https://meadowstack.com/screens/bank-reconciliation/): Payments matched to documents with the reasons in words, part payments and one action for the certain ones - [Closing the till at the end of a shift](https://meadowstack.com/screens/till-close/): What should be in the drawer worked out from the sales, only the count typed, and a reason before any difference - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/): Every court a row, every booking a block you drag, draw or move with the keys, refused where it would overlap - [Defects pinned on the drawing, carried across revisions](https://meadowstack.com/screens/defects-on-drawings/): A floor plan with numbered defect pins in their state colours, the list beside it, and revisions that carry open pins - [One inbox for every member's message](https://meadowstack.com/screens/shared-inbox/): Email, web form and SMS in one list, the booking above the thread, and replies written for the desk to send - [Team and roles, with the rules in code](https://meadowstack.com/screens/roles-and-permissions/): The team page with its people and roles, and the permission tables per module that decide what each role sees #### A change order that shows its price before anyone approves it The change order form takes the type of change, a name, a description, the delay in days and a bill of quantities, and prices the change while it is typed, next to the contract price after it. A saved proposal goes to the client's supervisor and then to the investor, and nobody decides on a change they prepared. On a public contract the form also shows how much of the limit for changes the proposal would use, and approval stops at the limit. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/change-order-form/ *Proposal CO-005 of Vinery Court flats open for editing, as the managing director sees it, rendered from the kit's components with the demo's data on 2 December 2026.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/change-order-form/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/stonebridge/rozpocet/zmenove-listy/zl-vinice-5/upravit From the example app [An app for a construction company](https://meadowstack.com/examples/construction-site-management/). ##### What the screen shows - **About the change**: the site, fixed once the change exists, the type of change (Extra work, Omitted work or Material substitution), the name, the description ("What changes, why, and who asks for it.") and the delay in days ("By how many days the completion date moves."). - **Bill of quantities**: one row per item with its code, description, unit, quantity and unit price. "Add item" adds a row and the bin removes one, except the last. - **Effect** beside the fields: the price change excluding VAT in large figures, the contract price after the approved changes and the price once this change is approved, worked out again on every keystroke. - **The footer**: Cancel and Save proposal at the foot of the screen. On a phone the Effect card moves under the fields, so the price of the change stays in the footer beside Save. ##### The sign carries the meaning The type decides what the sum must be. Extra work needs a positive price; omitted work takes its quantities with a minus, so its price comes out negative; a material substitution takes the old material out with a minus and puts the new one in. The rules and their messages live in one zod schema, and every message says what to do: "Omitted work needs a negative price. Enter the quantities with a minus." Errors appear after the first try to save and then follow the fields as they change, and leaving with unsaved changes asks first ("Leave without saving?"). See the [form pattern](https://meadowstack.com/patterns/form/) and [Field](https://meadowstack.com/components/field/). ##### Two approvals, then the contract price moves Save proposal keeps the change as a proposal, and only a proposal can be edited: by the managing director, the site manager of that site or the estimator. When it is ready, it goes to the client's supervisor and then to the investor, whose answer the managing director records with a note on how it came. Each step is a decision card at the top of the change's side column ([ApprovalPanel](https://meadowstack.com/components/approval-panel/) is the kit's plain version), and rejecting always asks for a written reason. Nobody decides on a change they prepared. Only an approved change moves the contract price; the list of change orders keeps the waiting ones in their own view, and on 2 December 6 of the 18 changes in the demo were waiting for approval ([approval flow](https://meadowstack.com/patterns/approval-flow/)). ##### The limit on a public contract On a public contract the Effect card adds a meter with the share of the limit for changes the proposal would use. The demo sets the limit at 15 % of the original price and counts the size of every change, so cuts use it up as well as extras (`domain/calc.ts`). At the investor's step a change that would pass the limit cannot be approved: in place of the button, the card says how far the change would take the total and that such a change needs a new procurement procedure. ##### What AI coding tools get wrong here - **A total typed by hand.** A generated form asks for the amount of the change. Here the amount is the sum of the rows, shown beside them while they are typed, so it cannot disagree with the bill of quantities the supervisor checks line by line. - **Approval as a status field.** A select with "Approved" in it lets anybody approve anything, their own change included. Here the decision is a card shown only to the person whose turn it is, asked through `usePermission`, and the api asks again before it saves ([permissions pattern](https://meadowstack.com/patterns/permissions/)). - **Messages that blame.** "Invalid value" leaves people guessing. Every message in the schema names the fix, down to the minus sign. - **The price after saving.** A form that shows the effect only on the record makes people save to find out. The Effect card answers before anything is saved. ##### Who prepares a change and who approves it *The change order rules of the demo's budget module. decidesFor is the site's supervisor, or the managing director when the supervisor has no account; own is a change the person prepared, so nobody approves their own.* From `apps/demo/src/modules/budget/domain/permissions.ts` in the Meadowstack repository: ```ts case "budget.change.create": return owner || manages || role === "estimator"; case "budget.change.edit": case "budget.change.submit": return (owner || manages || role === "estimator") && (!record?.status || record.status === "draft"); case "budget.change.decide": return decidesFor && !own && (!record?.status || record.status === "supervisor"); case "budget.change.investor": return owner && !own && (!record?.status || record.status === "investor"); ``` ##### Questions ###### Does the foreman see the prices in change orders? No. The foreman and the crew see nothing of the money module. The client's supervisor sees the change orders of his own sites only, without the budget or the invoices. ###### Can a change order be edited after it has been sent? No. Only a proposal can be edited. Once it is with the supervisor or the investor it waits for their decision, and the form says so if somebody opens it. ###### How does the form handle omitted work? Omitted work is entered with negative quantities, so its price comes out negative and lowers the contract price. If an omission ends up with a positive price, the form says how to fix it: enter the quantities with a minus. ###### Who approves a change order? The client's supervisor first, then the investor, whose answer the managing director records with a note. Nobody approves a change they prepared, and rejecting always needs a written reason. ###### What if the client's supervisor does not use the app? Then the managing director decides at that step in his place and writes down the supervisor's answer, with a note on how it came. ##### Related - [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) (Example app) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A packaging quote that works out its price as you type](https://meadowstack.com/screens/quote-form/) (Screens) - [A site diary day, prefilled and signed by the right person](https://meadowstack.com/screens/site-diary/) (Screens) - [Defects pinned on the drawing, carried across revisions](https://meadowstack.com/screens/defects-on-drawings/) (Screens) - [A proof the customer approves in their own portal](https://meadowstack.com/screens/proof-approval/) (Screens) #### A construction schedule that reads the weather The schedule shows one site at a time as a Gantt chart: work grouped by building, linked finish to start, with today's line and the weekly site meeting. The week's forecast is held against each kind of work, so when a night of frost falls on a slab pour, its bar turns to the warning tone and a notice above the chart leads to a proposal to move it. Nothing moves until a person who may change the schedule confirms, and every move can be undone. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/construction-schedule/ *The schedule of Vinery Court flats as the managing director sees it, rendered from the kit's components with the demo's data on 2 December 2026.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/construction-schedule/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/stonebridge/harmonogram From the example app [An app for a construction company](https://meadowstack.com/examples/construction-site-management/). ##### What the screen shows - **The header**: the site, picked one at a time, and Add work, which the app's shell sets quietly in the top bar. - **Saved views** under the title: All 36, In progress 8, Overdue 0 and At risk from weather 1, the same page with another query ([ViewPills](https://meadowstack.com/components/view-pills/)). View beside them holds the scale (day, week, month) and the legend. - **The site's facts** in one line: the end of the site against the contract date, the weekly site meeting and who is on site today. - **The notice**: when the forecast threatens work that has not started, one [Notice](https://meadowstack.com/components/notice/) above the chart names it, with Move proposal as its action. - **The chart** ([GanttChart](https://meadowstack.com/components/gantt-chart/)): groups by building that fold, bars in the hue of their trade (structure blue, earthworks orange, roofing yellow, inspections violet), progress inside the bar, milestones as diamonds, finish-to-start links, today's line and the site meetings along the top. Work on the critical path has a firmer edge, and the slab pour that the frost threatens takes the warning tone. ##### The forecast against the plan Every task has a kind of work, and every kind has its limits: concrete needs an overnight minimum of at least +5 °C, outdoor render and façade insulation the same and no more than 2 mm of rain, roofing no more than 1 mm of rain and wind up to 25 km/h (the table below). The demo holds the site's 7-day forecast against each task that has not started yet. On 2 December the forecast for Vinery Court has an overnight minimum of −4 °C on Monday 7 December, the day of the slab pour over the second floor. So the pour's bar takes the warning tone, At risk from weather counts it, and the notice above the chart says "Weather threatens 1 task that has not started". Work already under way is left alone: it cannot be moved out of the frost, only protected. ##### A proposal to move it, decided by a person Move proposal opens Weather against the plan, a page of its own in the sidebar, where each threatened task gets a card. The demo looks for the smallest move inside the forecast that clears the limits: never before today or before the work it follows, a Saturday shift only when no working day fits, and when nothing in the seven days fits, the first working day after them, with a note to decide again with the next forecast. The card says the new dates, which following work moves with it and where the end of the site goes. Move it writes the change: the bar moves, the task's history gets a line and a toast offers Undo. Leave it keeps the plan and remembers the answer until the task's dates change. Open in the schedule draws the moved bars as ghosts at their new dates, with a line above the chart saying where the end of the site goes, and nothing is written until the person confirms. The site assistant proposes the same move as a card waiting for a yes, and people who may not move work see on the card who decides. ##### Changing the plan by hand The schedule is an editor, not a picture ([planning editor](https://meadowstack.com/patterns/planning-editor/)). A bar moves by dragging, or with Alt and the arrow keys, and snaps to working days. A task opens in a side panel beside the chart, where its dates and progress are edited. Every change shows at once, writes a line into the task's history and offers Undo; Add work does the same for a new task. A move that would start work before the work it follows asks first. "Move the following work too?" says how far the end of the site goes; "Keep as it was" puts the bar back. Where nothing follows to move, the person may move it anyway, and the link stays red until the dates are fixed. The whole screen is a [workspace](https://meadowstack.com/patterns/workspace/): one control row above the chart, and the chart is the one region that scrolls. ##### Who may do what - **Everybody on the staff** reads the schedule of every site. The client's supervisor reads only the sites he supervises. - **The managing director and the site managers** move, stretch, add and remove work on every site, and decide the weather proposals. - **The foreman** records how far the work has got on his own sites, and the header tells him so: "You record progress". His bars do not move. - **Everybody else** sees "Read only" in the header. The rules live in one place, the module's permissions, and the screen only asks them ([permissions pattern](https://meadowstack.com/patterns/permissions/)). The other Stonebridge screens follow the same rules: the [site diary](https://meadowstack.com/screens/site-diary/), [defects on drawings](https://meadowstack.com/screens/defects-on-drawings/) and the [change order form](https://meadowstack.com/screens/change-order-form/), all in the [Stonebridge example](https://meadowstack.com/examples/construction-site-management/). ##### What AI coding tools get wrong here - **A timeline drawn by hand.** A generated schedule is a stack of divs placed by percentages, without links, today's line or a keyboard. GanttChart draws the links, milestones, progress, markers and the critical path, and moves bars by dragging and from the keyboard. - **One colour for two meanings.** The trade is a hue and the threat is a tone on the bar. A generated chart paints the threatened bar red and loses its trade. - **A red banner across the page.** The warning is one Notice above the chart: white, a hairline, colour only in the glyph, and an action that leads to the decision. - **Views in the sidebar.** In progress and At risk from weather are the same page with another query, so they are pills under the title, not new sidebar items. - **Moving the plan for the user.** A generated "smart reschedule" writes new dates at once. Here the proposal is drawn first, with the ghosts and the new end of the site, and nothing is written until a person who may change the schedule says yes. ##### What each kind of work needs from the weather *The limits the demo holds each kind of work against, day by day across the site's 7-day forecast (domain/weather.ts). For concrete the demo cites BS EN 206 and BS EN 13670; the roofing limits stand for a manufacturer's rule.* | Work | Coldest night allowed | Most rain allowed in a day | Strongest wind allowed | | --- | --- | --- | --- | | Concreting | +5 °C | Not checked | Not checked | | Outdoor render | +5 °C | 2 mm | Not checked | | Façade insulation | +5 °C | 2 mm | Not checked | | Roofing | Not checked | 1 mm | 25 km/h | | Façade paint | +10 °C | 2 mm | Not checked | | Earthworks | Not checked | 10 mm | Not checked | ##### Questions ###### Can the foreman use the schedule on a phone? Yes. On a phone the chart keeps its height and scrolls sideways inside itself, and the less urgent facts fold away. The foreman records how far his work has got; moving it is for the site manager. ###### Does the client's supervisor see the schedule? Yes, read only, and only for the sites he supervises. He cannot move or add work. ###### What happens when the weather turns? When the forecast breaks the limit of work that has not started, its bar takes the warning tone, the At risk from weather view counts it and a notice above the chart leads to a proposal to move it. Nothing moves until a site manager or the managing director confirms. ###### Can a move be undone? Yes. A move by dragging, from the keyboard or from a proposal ends with a toast that offers Undo, and the task's history keeps a line for it. ###### What does the schedule do with the links between tasks? Work is linked finish to start. A move that would start work before the work it follows asks first whether to move the following work too and says how far the end of the site goes; if the person moves it anyway, the link stays red until the dates are fixed. ##### Related - [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) (Example app) - [A site diary day, prefilled and signed by the right person](https://meadowstack.com/screens/site-diary/) (Screens) - [Defects pinned on the drawing, carried across revisions](https://meadowstack.com/screens/defects-on-drawings/) (Screens) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) - [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/) (Screens) - [A resource capacity plan for an agency](https://meadowstack.com/screens/capacity-planning/) (Screens) #### A content calendar for a creator's posts and brand deals The calendar answers what goes out when and what still stands in its way: a creator's month of posts as one-line chips with the state's glyph, the time and the title, and today in an ink pill. A post that needs something before it can go out, a missing caption, an ad label or a clash with another brand's exclusivity, turns its title amber, and the queue says what in words. On a phone the same posts become that queue by day, with counts for what is upcoming, waiting for a brand, still a draft, unlabelled or published. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/content-calendar/ *Martin Kerr's December as the demo showed it on Wednesday 2 December 2026, rendered from the kit's components: the month in the ScheduleGrid that MonthCalendar draws, or the queue by day in a narrow frame.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/content-calendar/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/martin/obsah?pohled=mesic From the example app [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/). ##### What the screen shows - **One row above the month**: previous, This month and next, the month's name, Channel to show one network, and View, which switches between the week, the month and the queue. View carries a dot because the week is the default; the month lives in the address (`?pohled=mesic`, another month as `?mesic=2027-01`). - **The month**: the kit's [MonthCalendar](https://meadowstack.com/components/month-calendar/), weeks as rows with their ISO numbers and weekdays as columns. Days outside the month are shaded, weekends a little, and today is an ink pill. Each post is one line: the state's glyph, the time and the title. A day shows four, and the rest fold into "+2 more", which opens that week. - **The states**: the same three layers fill from the bottom as a post moves on. All three empty for an idea, the bottom one outlined and the two above it faint for a draft, one filled in amber while a paid post waits for the brand, two in blue once the brand approved it, and one block with an arrow when it is scheduled or a check when it is out. The chips carry no network's or brand's colour. - **What needs doing**: a title turns amber when the post cannot go out as it is. Here the giveaway's winners, which PeakNutri approved without a caption yet, the indoor bike reel for Pedalo with its ad label missing, and an inquiry from ProteoMax that falls inside another brand's exclusivity. - **On a phone**: the month gives way to the queue, with pills for upcoming, waiting for a brand, drafts, label missing and published, each with its count, then the posts by day under headings that stay on top: Tomorrow, Friday 4 Dec. What needs doing moves into the line under the title. Nothing scrolls sideways. ##### The ad label is checked as it is typed A paid post in Martin's app must say it is an ad where people read first. The caption opens with #ad or the words "Paid partnership with" and the brand, and the platform's own paid label is switched on: Paid partnership on Instagram, Branded content on TikTok, Paid promotion on YouTube. "#spon" or "in collaboration with" alone does not count, and #ad among the hashtags at the end counts as hidden. The check is one function in the module's domain, plain string work that runs on every keystroke. The calendar, the post's panel and the api call the same function, so they refuse the same post for the same reason in the same words, and a paid post that fails it cannot be scheduled. Each problem comes as a sentence that says what to do ("The ad label is hidden among the hashtags at the end. It belongs at the start of the caption."), and one click moves the label to the start. In the calendar the post reads "Label missing", or "Platform label off" when only the switch is wrong, and the queue counts such posts in a pill of their own. ##### What AI tools get wrong here Asked for a content calendar, a code generator draws a month in a calendar library, paints every post in its network's colour and adds a "sponsored" checkbox. What goes missing: - **Colour for what needs doing.** A month painted by network makes every day equally loud. In Meadowstack the chips are neutral; colour is the state's glyph and an amber title for a post that cannot go out as it is. - **Disclosure as a rule, not a tick.** A checkbox anyone can tick proves nothing. The check reads the caption itself and the platform's switch, says what is wrong in a sentence, and the api asks it again before a paid post is scheduled. - **Deals and posts in one place.** A deal's deliverables appear in the calendar once they are written down, and a post that would break another brand's exclusivity says so with the brand and the date. The exclusivities themselves have a screen of their own, the [usage rights](https://meadowstack.com/screens/usage-rights/) timeline. - **A month that refuses in words.** A post moves to another day at its own time by drag, or with Space, the arrows and Space from the keyboard. A published post and a time that has passed refuse before the drop ("A published post cannot be moved.", "That time has passed."), a move saves at once, and the toast that confirms it can undo it. ScheduleGrid carries the drag, the keyboard and the announcements ([planning editor pattern](https://meadowstack.com/patterns/planning-editor/)). ##### Who sees it Martin and Ellie Howard, who runs his partnerships, plan the calendar: they add and move posts, write captions, send paid posts to the brand for approval, write down the brand's answer, schedule and publish. Only Martin publishes a paid post, because an ad goes out under his name. Daniel Reed, the videographer and editor, reads the calendar to know what is shot when: the posts open, but nothing moves and no button offers it. The accountant, the coach and Martin's partner see nothing of the content. The rules are one table asked through `can()` by the pages and again by the api ([permissions](https://meadowstack.com/patterns/permissions/)). ##### How a paid post's label is checked *The demo's one check for a paid post: the label must open the caption, a label among the closing hashtags or a collaboration that does not say it is paid is a problem of its own, and the platform's switch is checked apart. The calendar, the post's panel and the api all call it.* From `apps/demo/src/modules/content/domain/label.ts` in the Meadowstack repository: ```ts export type LabelProblemId = "missing" | "hidden" | "vague" | "platform"; export type LabelCheck = { /** The caption starts with the label. */ atStart: boolean; /** A label is in the caption, but not at the start (among the hashtags at the end). */ hidden: boolean; /** It starts with a collaboration that does not say it is paid. */ vague: boolean; /** The platform's paid label is switched on. */ platform: boolean; /** What is wrong, first the caption, then the switch: each a sentence that says what to do. */ problems: { id: LabelProblemId; text: string }[]; ok: boolean; }; /** The check for a paid post's caption and the platform's switch (`platformName` is the switch's own name). */ export function checkLabel(caption: string, partnerLabel: boolean, platformName: string): LabelCheck { const text = plain(caption.trim()); const atStart = tagAt(text, 0) || (lang === "en" ? spelledEn.test(text) : spelledCs.test(text)); let hidden = false; if (!atStart) { for (let index = text.indexOf("#"); index !== -1; index = text.indexOf("#", index + 1)) { if (tagAt(text, index)) { hidden = true; break; } } } const vague = !atStart && (lang === "en" ? vagueEn.test(text) : vagueCs.test(text)); const problems: LabelCheck["problems"] = []; ``` ##### Where else the MonthCalendar runs *The example apps whose code renders the kit's MonthCalendar, and in which modules, read from the demo's source.* | Example app | Modules that render it | | --- | --- | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Content | Read from the demo's source when the site was built: 1 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### Questions ###### Can a post be moved to another day? Yes, by drag or from the keyboard: Space picks a post up, the arrows move it and Space drops it, at the same time of day. A published post and a time that has passed refuse in words before the drop, and the toast that confirms a move can undo it. ###### Why does a post's title turn amber? Because the post cannot go out as it is: a paid post the brand approved has no caption yet, its ad label is missing or the platform's label is off, its time has passed, or it would clash with another brand's exclusivity. The queue says which in words. ###### How does the calendar check an ad label? With one function the calendar, the post's panel and the api share, on every keystroke. A paid post's caption must open with #ad or the words Paid partnership with and the brand, and the platform's paid label must be on; #spon or in collaboration with alone does not count. ###### How does the content calendar work on a phone? It shows the queue instead of the month: pills for upcoming, waiting for a brand, drafts, label missing and published, each with its count, then the posts by day with what needs doing in amber. Nothing scrolls sideways. ###### Who can change the calendar? Martin and his partnerships manager plan it, and only Martin publishes a paid post. The videographer reads it without buttons, and the accountant, the coach and the partner see nothing of it. ##### Related - [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) (Example app) - [A usage rights tracker for a creator](https://meadowstack.com/screens/usage-rights/) (Screens) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A resource capacity plan for an agency](https://meadowstack.com/screens/capacity-planning/) (Screens) - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens) - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens) #### A dispatch plan that checks driving hours on every drag The plan shows today and the next two days with the tractors as rows, their trips as blocks and the orders without a truck in a tray beside them. While an order is in the hand, every row says whether its driver could take it under the drivers' hours rules, and the row under the pointer draws the drives and rests the trip would need. A drop that breaks the rules is refused with the reason in words and the trucks where it fits, best first. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/dispatch-plan/ *Ridgeway's plan rendered from the kit with the demo's data, Spinning Top Toys held over Tractor 07, whose driver would have to take the 11-hour daily rest halfway.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/dispatch-plan/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/ridgeway/doprava/plan From the example app [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/). ##### What the board shows - **The tray**: the orders without a truck, each with its customer, kind of cargo, route, load and its loading and unloading slots. - **The rows**: one tractor each, its trailer, its driver and the driving the driver has left today, read from the tachograph counters. - **The hours**: 24px an hour across three days, nights from 22:00 to 6:00 shaded, a line every three hours and the now line with its time. The board opens two hours before now. - **The blocks**: each trip in the hue of its kind of cargo, dashed while only accepted, solid on the road, with a check once delivered. The workshop is hatched, and a trip that already breaks the rules carries a warning dot that says why. ##### What every row says during a drag The check runs for every tractor the moment an order leaves the tray, so the dispatcher sees the answer before letting go, not an error after it. The row under the pointer draws what the check plans for that driver: the drives, the 45-minute breaks and the rests. | The row says | Why | | --- | --- | | Fits, arrives 17:00 | The trip keeps to the rules; the time is when it reaches the customer. | | Wrong trailer | Chilled loads need a reefer, oversized ones a low-loader; the rest go on a curtain-sider or a mega. | | In the workshop | The truck is booked in for service during the trip. | | Has another trip | Another trip overlaps it, with an hour's margin either side. | | Daily rest halfway | The 11-hour daily rest falls inside the trip, so it misses its slot. | | Weekly rest | The 45-hour weekly rest starts during the trip. | | Misses the slot | The driving alone would bring it in after the unloading slot. | | 56 h a week used | The week's driving would run out. | | 90 h in two weeks used | The fortnight's driving would run out. | | Delays another trip | The driver's next trip would then miss its own slot. | ##### After the drop A trip that fits is assigned at once, written into the shipment's and the truck's history, and the toast offers Undo. One that does not is not made: the card goes back to the tray with a nudge and a dialog names the reason, such as "The 11-hour daily rest falls in the middle of the trip", with the tractors where it fits, best first. An accepted block can be dragged to another truck or back to the tray. Enter or Space on any card opens the same choice of tractors, so the plan works without a mouse, and on a phone it becomes a list: the orders first, then each truck's three days. It is a workspace screen, one of the kit's 9 screen types ([the screen types](https://meadowstack.com/guides/screen-archetypes-for-business-apps/)). ##### What AI coding tools get wrong here Asked for a dispatch board, a coding tool draws a timeline that checks only whether two blocks overlap, then lets the drop happen and shows a red banner. The hard part is the reason under the pointer, and it needs the driver's counters, the trip's driving time and the rules in one place. Here one module, `domain/hours.ts`, answers "may this trip go to this truck?" for the board, the keyboard dialog, the api that saves and the finder of loads back, so all four give the same reason in the same words. The kit's `ResourceTimeline` moves its own blocks but takes no drop from outside and says only that a spot is taken, so this board is the app's own, built on the kit's tokens, hues and status glyphs. Who may do what is a rule too: dispatch, the warehouse and management open the board (`plan.read`), only dispatch assigns on it (`shipment.assign`). ##### The rules the check plans by *The limits every verdict on the board comes from, the same ones the driver's record and the route finder read.* From `apps/demo/src/shared/companies/ridgeway-hours.ts` in the Meadowstack repository: ```ts export const drivingRules = { dailyDrive: 9 * HOUR, extendedDailyDrive: 10 * HOUR, extendedDaysPerWeek: 2, weeklyDrive: 56 * HOUR, fortnightDrive: 90 * HOUR, driveBeforeBreak: 4.5 * HOUR, break: 45 * MINUTE, dailyRest: 11 * HOUR, /** 24 h minus the daily rest: the longest a duty may run. */ dutySpan: 13 * HOUR, weeklyRest: 45 * HOUR, /** Six 24-hour periods from the end of one weekly rest to the start of the next. */ weeklyRestWithin: 6 * PERIOD, /** Regulation (EU) No 581/2010: the driver card at least every 28 days, the vehicle unit every 90. */ driverCardDownloadDays: 28, vehicleUnitDownloadDays: 90, } as const; ``` ##### Questions ###### Does the board stop a plan that breaks the driving hours? Yes. A drop on a row that cannot take the trip is refused, and the dialog says why and offers the tractors where it fits. A trip planned before a change that now breaks the rules keeps a warning dot with the reason. ###### Which rules does the check use? Regulation (EC) No 561/2006 as GB and EU hauliers plan by it: 9 hours of driving a day or 10 on two days a week, a 45-minute break after 4 hours 30, an 11-hour daily rest, a 45-hour weekly rest, 56 hours a week and 90 in two weeks. The reduced rests are left to the dispatcher. ###### Can a dispatcher plan without dragging? Yes. Enter or Space on an order opens the choice of tractors, best first, each with its verdict, and the same check decides. ###### What does the plan look like on a phone? A list: the orders without a truck first, each opening the choice of tractors, then every truck with its driving left and its trips of the three days. ###### Can the customer follow the delivery? Yes. A customer signs in to their firm's shipments with the route, the state, the unloading slot, the ETA and the haulier's messages, and never sees the driver's phone, the plate or the price. ##### Related - [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) (Example app) - [The planning editor](https://meadowstack.com/patterns/planning-editor/) (Patterns) - [A restaurant rota planned against the takings](https://meadowstack.com/screens/staff-rota/) (Screens) - [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens) - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens) - [GanttChart: a project schedule with its links and key dates](https://meadowstack.com/components/gantt-chart/) (Components) #### A document inbox that catches a changed bank account Clients' documents wait in one queue, possible frauds first, then those with findings, then the clean ones. The open document is drawn as paper from the fields read off it, and each finding marks the value it is about with its number. When a supplier's bank account has changed, Return to client becomes the main action and accepting needs a written reason. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/document-inbox/ *Kestrel's inbox rendered from the kit's own components when the site was built: the queue beside the brewery's invoice that asks to be paid to a new account.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/document-inbox/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/kestrel/doklady?nahled=d-02 From the example app [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/). ##### What the screen shows - **The queue**: the clients' documents sorted by what the check found. A possible fraud says Suspicion in the danger colour, a document with findings says how many in ink, a clean one is Checked beside a neutral glyph. Each row is two cells, the supplier over the client and the amount over the findings ([DataTable](https://meadowstack.com/components/data-table/) with `CellStack`), so a phone keeps every fact without scrolling sideways. - **The decision**: a card at the top of the open document, and first on a phone too. It says what was found and what to do, with Return to client and Accept with a reason. - **The paper**: the kit's `Paper` draws the invoice from the fields read off the PDF, in the order they sit on the page. A finding's number sits on the value it is about, here the IBAN, and pointing at a finding in the list under the paper lights up its value. ##### A check that flags, a person who decides The check is a set of pure functions over what was read off the document, the client and what the office already knows: the VAT register, the supplier's earlier invoices, the client's other documents. The api runs it on every read, so a field corrected in place (a pencil, Enter saves) runs it again and a finding never outlives the data behind it. The table below lists what it compares. It leaves one thing to a person on purpose: whether a finding is a reason to send the document back. A changed bank account changes the card. Return to client becomes the ink action and opens a message for the client, started from what the check found and edited by the accountant, which goes by e-mail with a link to the client's portal and into the document's history ([audit trail](https://meadowstack.com/patterns/audit-trail/)). Accepting instead takes a written reason, kept in the same history. The decision works from the keyboard too: Cmd+Enter (Ctrl+Enter off a Mac) accepts and adding Shift returns, with the keys shown on the buttons from 1024px. Every shortcut has a modifier, because the framework allows no single-key shortcuts (WCAG 2.1.4). ##### What AI tools tend to get wrong here Asked for an invoice capture review screen, a code generator tends to put the extracted fields in a form beside a picture of the scan, give each field a confidence score and colour every row green, amber or red. The person then compares two lists by eye and learns to ignore the colours. Three rules of the framework keep this screen from going that way: - The paper is drawn from the fields, so a finding points at the value itself. - A row that is fine stays quiet and colour goes to what needs doing: a word beside a glyph, never a row of coloured pills ([StatusLabel](https://meadowstack.com/components/status-label/)). - The screen is the kit's worklist ([work queue](https://meadowstack.com/patterns/work-queue/)): one row of controls above the list and the decision as a card, never a coloured banner. The audit's `control-rows` rule fails a screen with a second row of controls, and this inbox is the worklist sample that `e2e/screens.spec.ts` opens at 1440 and 390, light and dark. ##### What the check reads and what it flags *The checks the documents module runs on every document, with the words the inbox shows for each finding (domain/checks.ts and meta.tsx in the demo).* | Read off the document | Checked against | What the inbox says | Severity | | --- | --- | --- | --- | | VAT number | Its shape for the country, then the VAT register (VIES for EU suppliers) | The supplier's VAT number is missing; The VAT number has the wrong shape; The supplier is not in the VAT register | Warning | | Supplier | The unreliable payers of the Czech VAT register | The supplier is listed as an unreliable payer | Warning | | VAT rate of each line | The rates that exist and the rate the item calls for, the reverse charge included | VAT rate … does not exist; Rate … does not fit the item; This falls under the reverse charge | Warning | | Lines and total | The lines added up, VAT rounded once per rate | The total does not add up | Warning | | Supplier, number and amount | The documents the office already has | We already have this document | Danger | | Supplier, number and amount | The same supplier and amount within 7 days under another number, or the same number with another amount | Possible duplicate | Warning | | IBAN | Its check digits (ISO 13616, mod 97) | The IBAN fails its check digits | Warning | | IBAN | The supplier's earlier invoices | The supplier's account has changed | Danger | | IBAN | The accounts the supplier published in the VAT register | The account is not published in the VAT register | Danger | | Tax point | The period being processed | Tax point outside the period | Warning | | Currency | An exchange rate for a foreign currency | The exchange rate is missing | Warning | | Total and payment | The office's limits for a simplified document and for cash (Czech rules) | Simplified document over the limit; Cash payment over the limit | Warning | ##### Questions ###### How does the inbox spot a possibly fraudulent invoice? It compares the bank account on the document with the supplier's earlier invoices and with the accounts published in the VAT register. A changed or unpublished account is a danger finding: the row says Suspicion, it sorts to the top of the queue, and the paper marks the IBAN with the finding's number. ###### Does the check reject documents by itself? No. It says what it found and how serious it is, and whether that is a reason to return the document is the bookkeeper's call. A suspected fraud is accepted only with a written reason, which stays in the document's history. ###### What does Return to client send? A message for the client, started from what the check found in plain words and edited by the accountant. It goes by e-mail with a link to the client's portal, where the returned document is the first thing the client sees, and into the document's history. ###### What happens to a clean document? It waits in the queue as Checked, and its decision card sends it into the client's accounting program with one click. ###### Which checks run on every document? The VAT number and the VAT register, the rates against the items, the totals, duplicates, the IBAN's check digits and history, the tax point, the exchange rate and the office's limits for simplified documents and cash. The table on this page lists each one with what it flags. ##### Related - [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) (Example app) - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens) - [Bank lines matched to the documents they paid](https://meadowstack.com/screens/bank-reconciliation/) (Screens) - [A print shop's jobs on one board, from enquiry to dispatch](https://meadowstack.com/screens/print-job-pipeline/) (Screens) - [A recipe with its cost and its allergens](https://meadowstack.com/screens/recipe-with-allergens/) (Screens) - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/) (Screens) #### A driver record that says what expires next A driver opens as a record titled by name, with the tractor and its plate as the eyebrow and what the driver is doing now beside it. The side column starts with the one thing to do next, here the ADR certificate that ends in 24 days, then the phone, the infringements and the history. The content holds the driving left against 9, 56 and 90 hours, the five documents with their ends and the driver card's downloads. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/driver-record/ *Jeremy Newton's record rendered from the kit with the demo's data on 2 December 2026; the what-if planner between the hours and the documents is left out.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/driver-record/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/ridgeway/ridici/d-07 From the example app [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/). ##### What the record shows - **The header**: the driver's name as the title, the tractor and its plate as a small eyebrow, and what the driver is doing now as a glyph and a word: Driving. - **The next step**: the first thing that needs doing, with its button. For Jeremy Newton it is the ADR certificate, so the card says that without it there are no dangerous goods, and Record renewal opens the date of the new one. - **Driving hours**: three meters of the driving left today, this week and in two weeks, read from the tachograph at a named time, and the deadlines that follow: the next break, the latest start of the daily and the weekly rest. - **Documents**: the driving licence C+E, the Driver CPC with its periodic training, the driver card, the D4 medical and the ADR certificate, each with its end and the rule it renews by. - **Card downloads**: the last one, the next due date and the downloads before, with Download the card remotely through the truck's telematics. - **Infringements and history**: what the last download found, waiting for the driver, and every download and change with who made it. ##### When something turns to a warning The same rules feed the drivers list's Attention pill (11 of the 24 drivers on 2 December) and the record's next step. Expired and overdue are danger, the rest a warning, and a driver with none of these is quiet: the next step then says the documents are valid and when the card was last downloaded. | What | Warns | Danger | | --- | --- | --- | | A document's end | 30 days before | once it has expired | | The driver card's download, every 28 days | 7 days before it falls due | once it is overdue | | Driving left for a driver on duty | under an hour left | | | A planned trip the driver's hours rule out | always, with Re-plan in Freight | | Days left are counted from the app's clock, never typed, and the documents that are fine stay plain text: colour goes only to what needs doing. ##### The rules behind it It is a record screen, one of the kit's 9 screen types ([the record pattern](https://meadowstack.com/patterns/record/)). From the drivers list it opens beside the list first ([the record side panel](https://meadowstack.com/patterns/record-side-panel/)) and the corner button expands it to this page; both use one view component. From 1024px the next step heads the side column, and on a phone it comes before the name. The next step is a card, never a coloured banner. A document's state is a glyph beside its words, "in 24 days" ([StatusLabel](https://meadowstack.com/components/status-label/)), never a pill, and the history entries are labels without a subject: "Card downloaded" and who did it ([AuditTimeline](https://meadowstack.com/components/audit-timeline/)). ##### What AI coding tools get wrong here Asked for a driver page, a coding tool draws every document as a table row with a red or green pill, puts "expires soon" in a banner across the page and types the 30 days into each component, so the list and the record soon disagree. Here the thresholds are constants in one file (`DOCUMENT_WARN_DAYS`, `CARD_WARN_DAYS`, `HOURS_WARN`), the one thing to do becomes the next step with its own button, and everything else stays quiet. The history names a machine as a machine: a download by the telematics shows the download icon and "Telematics" (`actorKind: "system"`), not the initials of a person who does not exist. Who sees what is a rule, not a hidden button: the fleet technician runs card downloads but never reads a driver's documents. ##### When a document starts to warn *The thresholds the drivers list's Attention pill and the record's next step both read, so the two never disagree.* From `apps/demo/src/modules/drivers/domain/meta.tsx` in the Meadowstack repository: ```tsx export type DocumentState = "valid" | "soon" | "expired"; /** Days before the end when a document starts to warn (the brief's 30 days). */ export const DOCUMENT_WARN_DAYS = 30; /** Days before a card download falls due when it starts to warn. */ export const CARD_WARN_DAYS = 7; /** Days before a vehicle unit download falls due when it starts to warn. */ export const UNIT_WARN_DAYS = 14; /** Driving left below which a driver on duty needs dispatch's eye. */ export const HOURS_WARN = 60 * MINUTE; export function documentState(daysLeft: number): DocumentState { if (daysLeft < 0) return "expired"; return daysLeft <= DOCUMENT_WARN_DAYS ? "soon" : "valid"; } ``` ##### Who sees which part *One table asked by the screens and by the api before every change; a backend holds the same rules.* From `apps/demo/src/modules/drivers/domain/permissions.ts` in the Meadowstack repository: ```ts const rules: Record = { // A driver's record: everyone's for dispatch and the director, one's own for a driver. "driver.read": ["dispatcher", "manager", "driver"], // The list of all 24 drivers. "driver.all": ["dispatcher", "manager"], "driver.documents": ["dispatcher", "manager"], "driver.tachograph": ["dispatcher", "manager", "mechanic"], "driver.download": ["dispatcher", "manager", "mechanic"], // The three-day "co kdyby" plan is a sandbox: nothing is saved, so a driver may try their own. "driver.plan": ["dispatcher", "manager", "driver"], "driver.infringement.read": ["dispatcher", "manager", "driver"], "driver.infringement.discuss": ["dispatcher", "manager"], "driver.infringement.acknowledge": ["driver"], }; ``` ##### Questions ###### Does the record warn before a document expires? Yes. A document turns to a warning 30 days before its end and to danger once it has expired. The first of them becomes the next step at the top of the side column, with the action that fixes it, such as Record renewal. ###### How often must the driver card be downloaded? At least every 28 days under Regulation (EU) No 581/2010. The record shows the last download and the next due date, quiet until 7 days before it, and dispatch can read the card remotely through the truck's telematics. ###### Who can see a driver's documents? Dispatch and the director. The fleet technician runs card downloads but does not read documents, a driver sees their own hours and infringements, and billing and the warehouse do not see the module at all. ###### What happens to an infringement found in a download? It lands on the driver's record and in the history. Dispatch talks it through with the driver, and the driver then confirms they have read it; until then it waits for the driver. ###### Where does the next step go on a phone? Above the driver's name. From 1024px it heads the side column beside the record. ##### Related - [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) (Example app) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) - [A site diary day, prefilled and signed by the right person](https://meadowstack.com/screens/site-diary/) (Screens) - [A fleet cost report that ranks every truck](https://meadowstack.com/screens/fleet-costs/) (Screens) - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens) - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/) (Screens) #### A fleet cost report that ranks every truck The costs overview opens with one sentence: what a kilometre of fuel and tolls costs against the same days last month, and how many fills wait to be resolved. Under it sit the month's diesel, AdBlue and tolls, the fills that look wrong, the tolls by network and two rankings of the trucks against the fleet's average. A truck that burns more than 12% over its own average, or costs more than 25% over the fleet per kilometre, says so in words. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/fleet-costs/ *Ridgeway's costs overview rendered from the kit with the demo's data on 25 November 2026, its two rankings cut to the first seven trucks.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/fleet-costs/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/ridgeway/naklady From the example app [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/). ##### What the overview shows - **The headline**: one sentence with the numbers, the cost of a kilometre against the same days last month and the fills that wait. - **The figures**: diesel as the one large figure, then AdBlue, tolls and fuel and tolls per kilometre, each with its litres or kilometres and the change against last month. A cost that rose is red and one that fell is green, always with the arrow and the percentage. - **To resolve**: the fills that look wrong, newest first, each with the truck, the station and why: far from where the truck was, more litres than the tank holds, consumption far from the truck's own average, or a card and plate that belong to no truck. - **The cards**: fuel and tolls by month, the tolls by network with the cost per tolled kilometre, and the two rankings of the trucks. Each mark leads into its list: a truck to its fuel, a network to its statement lines, a fill to its side panel beside the fuel list. ##### How a truck gets flagged Every figure covers the days the imported statements cover, named beside the title, and a truck's kilometres come from the fleet list. Both rankings draw the fleet's average as a dashed line down every row, so each truck reads against it at a glance. | Ranking | Measured over | Flagged when | | --- | --- | --- | | Consumption by truck | litres per 100 km fill to fill, the last 30 days | more than 12% over the truck's own average | | Fuel and tolls per km by truck | the days the statements cover | more than 25% over the fleet | A flagged row takes the warning wash and says why under the name, "23% over the truck's average"; a quiet row stays plain. The month chart draws the running month light with an outline, so it never reads as a drop. ##### The rules behind it It is an overview, one of the kit's 9 screen types ([the overview pattern](https://meadowstack.com/patterns/overview/)): it must open with its `headline`, a sentence with numbers, and its figures are one `StatGroup` with a single display figure ([StatGroup](https://meadowstack.com/components/stat-group/)). Charts sit in cards that they fill, and the months are columns (`ColumnChart`). A fill's state is a glyph beside its words: to resolve, waiting for the driver once someone asked, unmatched, explained. Who sees what is a rule too: billing imports the statements, billing and dispatch resolve, the director reads, and drivers and the warehouse do not see the module. ##### What AI coding tools get wrong here Asked for a fleet cost dashboard, a coding tool lines up a row of equal cards, draws a pie chart of cost by truck and colours every truck in the ranking. Here the overview starts with the sentence a manager would say, one figure is large, and colour goes only to the trucks past their threshold, each with the reason in words. The kit's `BarList` has no reference line yet, so the rankings are the app's own `RankedList`, built on the kit's `ChartFigure`, which keeps the title and a table for screen readers. The thresholds are two constants at the top of the page (`OVER_OWN`, `OVER_FLEET`), so the technician's headline, the figure "Over their own average" and the ranking's flags count the same trucks. ##### Who sees the money *The costs module's rules: the fleet technician reads litres per 100 km and nothing that costs money, and only billing imports statements.* From `apps/demo/src/modules/costs/domain/permissions.ts` in the Meadowstack repository: ```ts const rules: Record = { "cost.consumption": ["dispatcher", "accounts", "manager", "mechanic"], "cost.read": ["dispatcher", "accounts", "manager"], "cost.import": ["accounts"], "cost.explain": ["accounts", "dispatcher"], "cost.assign": ["accounts", "dispatcher"], "cost.ask": ["accounts", "dispatcher"], "cost.reopen": ["accounts", "dispatcher"], }; ``` ##### Questions ###### Can I see fuel and tolls per truck? Yes. One ranking gives each truck's fuel and tolls per kilometre over the days the statements cover, by the fleet list's kilometres, and another its litres per 100 km fill to fill over the last 30 days, both against the fleet's average. ###### Which fills does it ask someone to resolve? A fill far from where the truck was, more litres than the tank holds, consumption far from the truck's own average, and a fill whose card and plate belong to no truck. Billing or dispatch explains it, assigns it to a truck or asks the driver about it. ###### Who can see the costs? Billing, dispatch and the director see everything. The fleet technician sees only litres per 100 km per truck, with no money and no transactions, and drivers and the warehouse do not see the module. ###### Where do the numbers come from? From the fuel card and toll network statements imported into the app. The days they cover are named beside the title, and a truck's kilometres come from the fleet list. ###### Why is the current month lighter in the chart? It is still running. The kit draws a partial period light with an outline, never hatched, so a month that has not ended does not read as a drop. ##### Related - [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) (Example app) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A kitchen's food safety day, kept by the clock](https://meadowstack.com/screens/food-safety-checks/) (Screens) - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens) - [Bank lines matched to the documents they paid](https://meadowstack.com/screens/bank-reconciliation/) (Screens) - [Closing the till at the end of a shift](https://meadowstack.com/screens/till-close/) (Screens) #### A kanban task board for an agency's client work The board answers what the studio is working on and what waits, in five columns from the backlog to done, with the number of tasks beside each state. Each card carries the task's key and the face of whoever has it, the title on two lines, the priority as stacked chevrons, at most two labels and the due date, in red with the word once it has passed. A card moves by drag or from the keyboard, saves at once, and the toast that confirms the move can put it back. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/task-board/ *Brightpath's board on Wednesday 2 December 2026, rendered from the kit's components with the demo's 60 tasks: the FilterBar over the SortableBoard, with the columns stacked in a narrow frame.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/task-board/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/brightpath/ukoly?pohled=tabule From the example app [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/). ##### What the screen shows - **One row above the board**: the scope pills (All, Mine), the project filter, the search for a title or a task number, and View. The board is the task list in another presentation, so it sits behind View, with a dot because the list is the default, at the same address with `?pohled=tabule`. It is never a second item in the sidebar. - **Five columns**: Backlog, To do, In progress, In review and Done, each with its StatusGlyph, three layers that fill from the bottom: the bottom one outlined and the others faint for the backlog, all three empty to do, one filled in amber while someone works on it, two in blue while it waits for review, and one green block with a check cut out when done. Cancelled tasks stay in the list. The number beside each title counts the column: 12, 14, 9, 6 and 19 here. - **The card**: the key as a small eyebrow and the assignee's face, the title clamped to two lines, the priority as stacked chevrons with only urgent in colour, at most two neutral labels, and the due date. A date that has passed turns red and says "Overdue 30 Nov", so colour never carries it alone. - **On a phone**: the columns stack, each a full-width list under its title and count, and the search moves under the pills. Nothing scrolls sideways. ##### What happens when a card moves A drop changes the task's state at once: the board reorders on the spot and the store confirms behind it. If the store refuses, a toast says the move could not be saved and the board reloads to what the store holds. A move into another column raises a toast with the key and the new state, "BRI-141: Done", the title under it and Undo, which puts the card back at the top of the column it came from. The same move works without a mouse. Space picks a card up, the arrow keys move it within a column and across columns, Space drops it, Escape cancels, and Enter opens the task in the panel beside the board. Every step is announced, and on a touch screen a long press picks the card up, so scrolling never drags one by mistake. ##### What AI tools get wrong here Asked for a kanban board, a code generator reaches for a drag library, colours every card by its labels and saves a drop behind a spinner. What goes missing: - **The keyboard and the announcements.** A board built on pointer events shuts out anyone who does not use a mouse. In Meadowstack drag and drop goes only through SortableBoard and SortableList, which carry the keyboard, the announcements and the touch delay, so no app writes its own. - **A quiet board.** Labels are neutral chips (LabelChip ignores a hue since 25 October 2026), priority is grey chevrons with only urgent in red, and colour is kept for what needs doing: an overdue date with its word, the state of each column. A rainbow of labels makes every card equally loud. - **The move is the save.** The card lands where it was dropped and the toast can undo it. No spinner, no confirm dialog, no move lost without a word when the network fails. - **A board is a view, not a page.** The same address, filters and search as the list, switched in the View menu ([view pills](https://meadowstack.com/components/view-pills/) are for saved filters, not for presentations). ##### Who sees it The studio plans and moves the work: the project lead and every member create, edit, move and comment on tasks, and the lead plans the cycles. A client's guest sees none of it and reports a bug in her channel, where the studio answers. For anyone who may not move a task, the board is read-only: cards open but never move. The rules live in one table asked through `can()` ([permissions](https://meadowstack.com/patterns/permissions/)). The hours behind the tasks are planned in the [capacity plan](https://meadowstack.com/screens/capacity-planning/) and logged in the [timesheet](https://meadowstack.com/screens/timesheet/). ##### What a move does *The demo's handler for a card dropped in another place: the board changes at once, the store confirms behind it, and the toast's Undo puts the card back at the top of the column it came from.* From `apps/demo/src/modules/tasks/pages/issues.tsx` in the Meadowstack repository: ```tsx const onMove = ({ id, to, index, from }: { id: string; from: string; to: string; index: number }) => { if (!loaded) return false; if (!editable) return false; const issue = loaded.issues.find((item) => item.id === id)!; const status = to as IssueStatus; // Optimistic: reorder locally, then confirm with the store. void save( (data) => ({ ...data, issues: placed(data.issues, id, status, index) }), () => moveIssue(company.slug, id, status, index, person.id), tx("Přesun se nepodařilo uložit.", "The move could not be saved."), ); if (from !== to) { toast(`${issue.key}: ${statusMeta[status].label}`, { description: issue.title, action: { label: tx("Vrátit", "Undo"), // Back to the top of the column it came from, at once like the move, on the board as it is by then. onClick: () => void save( (data) => ({ ...data, issues: placed(data.issues, id, from as IssueStatus, 0) }), () => moveIssue(company.slug, id, from as IssueStatus, 0, person.id), tx("Přesun se nepodařilo vrátit. Zkuste to znovu.", "The move could not be undone. Please try again."), ), }, }); } }; ``` ##### Where else the SortableBoard runs *The example apps whose code renders the kit's SortableBoard, and in which modules, read from the demo's source.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Jobs | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Tasks | | [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | Roasting | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals, Content, Training | Read from the demo's source when the site was built: 4 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### Questions ###### Can the cards be moved without a mouse? Yes. Space picks a card up, the arrow keys move it within a column and across columns, Space drops it and Escape cancels. Enter opens the task, and every step is announced to a screen reader. ###### What happens when a move cannot be saved? The card lands at once and the store confirms behind it. If the store refuses, a toast says the move could not be saved and the board reloads to what the store holds. ###### Why are the labels grey? Labels sort the work but rarely need doing. They are neutral chips, and colour is kept for what needs attention: an overdue date, an urgent priority and the state of each column. ###### How does the board work on a phone? The five columns stack one under another, each a full-width list with its title and count, so nothing scrolls sideways. A long press picks a card up. ###### Is the board a separate page from the task list? No. It is the same list in another presentation, at the same address with a query, switched in the View menu. The filters and the search stay as they were. ##### Related - [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) (Example app) - [A resource capacity plan for an agency](https://meadowstack.com/screens/capacity-planning/) (Screens) - [A weekly timesheet for an agency](https://meadowstack.com/screens/timesheet/) (Screens) - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens) - [A print shop's jobs on one board, from enquiry to dispatch](https://meadowstack.com/screens/print-job-pipeline/) (Screens) - [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens) #### A kitchen's food safety day, kept by the clock The screen opens on today at one branch: a sentence with how many checks are done and which device has a deviation, then the day's checks by kind, each with its time and one button, the deliveries with their temperatures and what was recorded today. A check turns amber in the hour before it is due and counts as missed once its time passes, and a reading outside its limit keeps asking for a corrective action until somebody writes down what was done. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/food-safety-checks/ *Today at the demo's Hackney branch, where a freezer deviation from Sunday night still waits for its corrective action, rendered from the kit's components when the site was built.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/food-safety-checks/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/juniper/haccp?pobocka=karlin From the example app [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/). ##### What the screen shows - **The day in one sentence**: "3 of 15 checks for today are done, with a deviation to resolve on 1 device." Someone who covers all three branches sees a strip under it with each branch's own count, and a branch behind its plan says how: "2 overdue", "1 deviation". - **The next step**: one card names what comes first and offers its action. Here it is the freezer, whose −16.0 °C on Sunday night has no corrective action yet: "Record the action". - **The checks**: temperatures, operations (date labels on prepared food, the fryer oil) and cleaning, each row with its time and one button, Record for a temperature and Done for the rest. A row due within the hour says so in amber, "By 10:30, in 6 min"; a row that is done names who did it and when. - **Deliveries and the record**: each delivery with its receipt temperature, the product and who took it in. The side column holds the wireless sensors with their last report and everything recorded today, newest first. ##### The clock decides, not a tick box Every check has a time: fridges and freezers are read in the morning and in the evening, hot holding at the lunch and the evening service, a cleaning task falls due on its day. The page works out each check's state from the time it shows, so a check turns amber in the hour before it is due and becomes missed once its time passes, while somebody watches and without asking the server. A check ticked after its time stays on file as done late. A cleaning task done a day late is still that day's task, done late, and one nobody did stays open until somebody does it. The next step follows one order: a device still outside its limit, then a deviation nobody answered, then the earliest check that is not done. ##### A deviation waits for its answer Wireless sensors report every 15 minutes, and a reading outside the device's limit opens a deviation (in the demo's plan, 4 °C or less for a fridge and −18 °C or less for a freezer). While the device is still out of its limit it heads the page. Once it is back, the deviation keeps asking for a corrective action until somebody writes down what was done: moved the goods, called the service, threw goods away and how much, fixed the unit on the spot, with a note. When somebody records a value out of its limit by hand, the same fields open inside the reading dialog, so the action is written at once rather than later. The record for an inspector lists each deviation with its corrective action beside it. ##### A record nobody can quietly change Everybody who works at a branch records its checks, newcomers included, because the check nobody dares to write down is the one an inspector finds missing. A reading is never deleted: its writer may give it back within ten minutes, for a typing error, and a manager the same day, and it stays on file marked as given back. The branch manager and the operations director also change the plan, the devices and the cleaning tasks, and export the record for an inspection: the gaps first, a missed reading listed as missed, then the deviations with their corrective actions and every device's readings day by day. The rules are one table in the module's permissions, asked by the page and again by the server, as [the permissions pattern](https://meadowstack.com/patterns/permissions/) describes. ##### What generated food safety apps usually get wrong Asked for a HACCP log, coding tools tend to build a list of tick boxes without times, so a missed check looks the same as one not yet due. They let anyone edit or delete an entry, which is exactly what an inspector cannot trust; they store a temperature out of its limit and move on, with nowhere to write what was done; and they colour every row red or green. In Meadowstack the time decides a check's state, colour goes only to what needs doing and always beside its words ("By 10:30, in 6 min", "Corrective action missing"), and every change writes an entry the kit's [AuditTimeline](https://meadowstack.com/components/audit-timeline/) shows. The screen is an overview, which opens with a sentence of figures as [the overview pattern](https://meadowstack.com/patterns/overview/) asks. The same kitchens plan their people on [the staff rota](https://meadowstack.com/screens/staff-rota/). ##### What comes first, decided in one place *How the demo's food safety page picks its next step: a device still out of its limit, then a deviation nobody answered, then the earliest check not done. Each check's state comes from the time the page shows, never from a stored flag.* From `apps/demo/src/modules/haccp/domain/today.ts` in the Meadowstack repository: ```ts export type NextStepKind = | { type: "control"; unit: UnitView; deviation: DeviationView } | { type: "action"; unit: UnitView; deviation: DeviationView } | { type: "check"; item: CheckItem; state: Due } | { type: "none" }; export function nextStepOf(branch: BranchToday, now: Date): NextStepKind { for (const unit of branch.units) { const open = openDeviationOf(unit); if (open) return { type: "control", unit, deviation: open }; } for (const unit of branch.units) { const unanswered = unansweredOf(unit)[0]; if (unanswered) return { type: "action", unit, deviation: unanswered }; } const waiting = branch.items.filter(isCheck).filter((item) => !item.done); const next = waiting.sort((a, b) => a.dueAt.localeCompare(b.dueAt))[0]; return next ? { type: "check", item: next, state: dueState(next, now) } : { type: "none" }; ``` ##### Lead in the kit's manifest *The overview's opening sentence with its figures, as the kit's manifest describes it to people and to coding tools, read when the site was built.* | Manifest field | Lead | | --- | --- | | What it is | The finding of a screen as one large sentence with its figures set in weight. | | Use it for | The top of an overview: what is true this morning, in one sentence, before any block. | | Not for | A page description under a title (PageHeader has none); A notice that needs a decision (Notice) | | It replaces | An h2 with a hand-sized paragraph above the dashboard | | Screen types | Overview; Record | | Import | `import { Lead, LeadFigure } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Questions ###### What does the food safety log record? What a kitchen's HACCP plan asks for: fridge and freezer temperatures twice a day, hot holding at service, deliveries with their temperature, cleaning, frying oil, date labels and pest control, and each deviation with its corrective action. ###### What happens when a fridge goes over its limit? The reading opens a deviation, and the device heads the page while it is still too warm. Once it is back within its limit, the deviation keeps asking for a corrective action until somebody writes down what was done, and the record keeps both. ###### Can a wrong entry be deleted? No. Whoever wrote a reading can give it back within ten minutes and a manager the same day, and it stays on file marked as given back, so the record still shows what happened. ###### Who can record the checks? Everybody who works at the branch, newcomers included. The branch manager and the operations director also change the plan, the devices and the cleaning tasks, and export the record for an inspection. ###### What if a check is done late? It stays on file as done late, at the time it was done, and the record for an inspector shows it that way. A cleaning task nobody did stays open until somebody does it, still counted on the day it fell due. ##### Sources - [Regulation (EC) No 852/2004 on the hygiene of foodstuffs, Article 5: hazard analysis and critical control points](https://www.legislation.gov.uk/eur/2004/852/article/5), checked 2 December 2026 ##### Related - [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) (Example app) - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/) (Screens) - [A recipe with its cost and its allergens](https://meadowstack.com/screens/recipe-with-allergens/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A fleet cost report that ranks every truck](https://meadowstack.com/screens/fleet-costs/) (Screens) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) #### A lot record that traces one step back and one step forward A green coffee lot opens as a record titled by its origin, with the sack's tag and its codes at the top. Beside it stand where the lot came from and its EUDR state, and under it every batch roasted from the lot and every customer who got the coffee, so tracing a lot takes one page, even after it is used up. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/lot-traceability/ *Lot GL-2618 of the demo's roastery, rendered when the site was built from the kit's own components, with the demo's data.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/lot-traceability/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/fernhill/zelena-kava/zk-2618 From the example app [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/). ##### One step back, one step forward The EU's General Food Law asks a food business to name who supplied it and the businesses it supplied (Regulation 178/2002, Article 18). The lot record holds both ends on one page: - **Back**: the producer (Mutovu washing station), the region and country, the variety, altitude, process and harvest, the importer and the day the sacks arrived. - **Forward**: every batch roasted from the lot, green kilos into roasted kilos (15 kg into 12.9 kg for RB-1300), and every customer who got the coffee with their order numbers. The demo lists the online shop's customers as well as the businesses the law asks about. - **What is left**: 46 kg on rack A3, a meter that says it lasts 10 days of a target 21, and the 12 kg the [roast plan](https://meadowstack.com/screens/roast-plan/) takes on Monday 7 December. A lot with nothing left keeps its page and says why: it stays for tracing its batches and its customers. ##### The sack's tag and the EUDR facts The tag leads the record. It is the kit's `Paper` with `variant="label"`: the same facts as the properties beside it, the lot number in a QR code and a barcode drawn as SVG from the number, and a PDF for a sack whose tag has torn off. Because the tag is drawn from the lot's data, the tag and the record cannot disagree. Under the EU deforestation regulation (Regulation 2023/1115), coffee is a relevant commodity, the due diligence statement gives the geolocation of all plots of land where it grew, and the EU's information system returns a reference number for each statement. The record keeps who placed the coffee on the market, the reference and verification numbers, and the plots: 168 plots on 52 ha for this lot, whose reference the importer has not sent yet. ##### The next step is what this person can do `NextStep` heads the side column, and it names one thing: receive a delivery that is on its way, request more when the stock runs low, add a missing EUDR reference, record the arrival cupping, or a quiet line with a check when nothing waits. Each case asks the permission table first. Only the owner and the accountant write EUDR references (`green.eudr`), so the owner sees "Add the reference" on this lot, and the roaster sees "The stock lasts 10 days, nothing is waiting." It is a record screen ([the record pattern](https://meadowstack.com/patterns/record/)): titled by what people call the lot, the lot number a small eyebrow, the stock state a glyph with its word. Under 1024px the next step and the facts come first, then the tag, the batches and the customers. ##### What AI coding tools get wrong here - **A table of lot numbers**: an id, a quantity and a date, with no way to see where the coffee went. Here the trace both ways is part of the record: a roasted batch links to its own page, a customer to their order. - **A tag pasted in as an image**: a picture of a label that drifts from the data the first time a field changes. `Paper` draws the label from the same fields as the properties, and the PDF prints from them too. - **Every action for everyone**: an "Add the reference" button the roaster can press and the save then refuses. In Meadowstack a component asks `` or `useCan`, which read the module's `permissions.ts`; the api asks the same table, and the next step skips what the person may not do ([permissions](https://meadowstack.com/patterns/permissions/)). ##### The sack's tag, drawn from the lot *The demo hands the lot's facts to the kit's Paper label, which draws the QR code and the barcode from the lot number and prints the same tag as a PDF.* From `apps/demo/src/modules/green/components/lot-record.tsx` in the Meadowstack repository: ```tsx const labelFields: PaperField[] = [ { id: "origin", label: tx("Původ", "Origin"), value: `${lot.region}, ${lot.country}` }, { id: "variety", label: tx("Odrůda", "Variety"), value: lot.variety }, { id: "process", label: tx("Zpracování", "Process"), value: lot.process }, { id: "harvest", label: tx("Sklizeň", "Harvest"), value: lot.harvest }, { id: "sacks", label: tx("Pytle", "Sacks"), value: `${bagsLabel(lot.bags)} × ${kg(lot.bagKg)}` }, { id: "received", label: tx("Přijato", "Received"), value: formatDate(lot.receivedAt) }, ]; const sackTag = (
[ `# ${lot.name} ${lot.code}`, "", tx(`${lot.producer}, dovozce ${lot.supplier}`, `${lot.producer}, imported by ${lot.supplier}`), "", ...labelFields.map((field) => `**${String(field.label)}:** ${String(field.value)} `), ].join("\n"), }} /> ``` ##### A next step only for those who may take it *The missing EUDR reference becomes the lot's next step only for people the permission table lets write it: the owner and the accountant.* From `apps/demo/src/modules/green/components/lot-record.tsx` in the Meadowstack repository: ```tsx if (lot.kgLeft > 0 && lot.eudr.state === "missing" && can("green.eudr")) return ( open("eudr", lot)}> {tx("Doplnit referenci", "Add the reference")} } > {tx( `${lot.eudr.operator} ještě neposlal referenční číslo prohlášení o náležité péči. Vyžádejte si ho a zapište.`, `${lot.eudr.operator} has not sent the due diligence statement's reference number yet. Ask for it and write it down.`, )} ``` ##### Questions ###### What does one step back, one step forward mean for a roastery? The EU's General Food Law asks a food business to name who supplied it and which businesses it supplied. For a lot of green coffee that is the producer and the importer on one side, and on the other the batches roasted from the lot and the cafés and shops that got them. ###### Can a used-up lot still be traced? Yes. A lot with nothing left keeps its page and says so: it stays for tracing its batches and its customers. ###### Who can write the EUDR reference number? In the demo, the owner and the accountant. The roaster sees the same lot without the button, and the api refuses the change for anyone the permission table leaves out. ###### What is on the sack's tag? The coffee, the lot number, the producer and the importer, the origin, variety, process and harvest, the sacks and the day they arrived, with the lot number in a QR code and a barcode. It downloads as a PDF for a sack whose tag has torn off. ###### Does the lot record work on a phone? Yes. Under 1024px it is one column: the next step and the facts first, then the tag, the batches and the customers. ##### Sources - [Regulation (EC) No 178/2002, the General Food Law, Article 18 on traceability (EUR-Lex)](https://eur-lex.europa.eu/eli/reg/2002/178/oj), checked 2 December 2026 - [Regulation (EU) 2023/1115 on deforestation-free products, Articles 2, 9 and 33 (EUR-Lex)](https://eur-lex.europa.eu/eli/reg/2023/1115/oj), checked 2 December 2026 ##### Related - [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) (Example app) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A site diary day, prefilled and signed by the right person](https://meadowstack.com/screens/site-diary/) (Screens) - [A workflow canvas where a test run walks the steps](https://meadowstack.com/screens/workflow-canvas/) (Screens) - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens) - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/) (Screens) #### A month close that knows what each step waits for Golden Ear Bakery's November is nine steps in the office's order, from documents in to filed, each done step with who and when and each open one with what it waits for. The next step is a card at the top of the side column with one ink action, and the client's side of the VAT package is a state, not a box to tick. Steps that do not apply are left out, such as payroll for a client without staff. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/month-end-close/ *Golden Ear Bakery's November close in Kestrel, rendered from the kit's own components when the site was built: the client's page on a desktop, the side panel the month list opens on a phone.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/month-end-close/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/kestrel/ucetnictvi/cl-3 From the example app [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/). ##### What the screen shows - **The checklist**: nine steps in the office's order under a bar of how many are done. A done step has a line run across its title and says who did it and when, the next one says Up next, the others say what they wait for. - **Boxes and states**: the office's own steps (bank, books, VAT return, payroll) are boxes for whoever works the client. Documents in and the client's side of the package (sent, approved, filed) are states, set from the next-step card. A box that a later done step stands on stays ticked and locked: the payroll run, once PAYE is paid. - **The next step**: a card at the top of the side column with what to do, the VAT return's deadline in days and one ink action, Confirm the month is booked. - **The VAT return**: a draft from the books so far, box by box, prepared once the month is booked. - **The client's profile**: the form, the numbers, the VAT period, the staff, the accountant, the software the books are kept in and the contact, as a [property list](https://meadowstack.com/components/property-list/). ##### The order lives in one place The steps, what each waits for and when work turns urgent are pure functions in the books module (`close.ts`), used by the api, which enforces them, and by the screens, which show them, so the checklist never offers a box the api would refuse. A done step can be taken back only while nothing after it is done, and filing is final. Work open five days or less before its deadline is a warning and past it danger, in the client's deadlines, on the office's deadlines page and in the month view of every client. Who may tick lives in the module's permissions: the owner works any client's close, an accountant the closes of their own clients, and the assistant reads every close and records missing documents as they come in. Someone who may not work the client reads the same checklist without boxes, because the screen asks `can()` for each step ([permissions](https://meadowstack.com/patterns/permissions/)). ##### What AI tools tend to get wrong here A generated close checklist is usually a flat to-do list: every box tickable in any order, nobody named beside a ticked box, and the client's approval as one more box the office can tick. It lets someone prepare the VAT return before the month is booked. Here a step that waits says what for and its box stays disabled, the client's side is a state the office cannot tick, and each done step keeps its person and time. The kit's [Checklist](https://meadowstack.com/components/checklist/) draws a step as one line, so the module builds this list from the kit's `Checkbox`, `DoneText` and `StatusGlyph` to fit the who-and-when line under each step; the motion stays the kit's (the tick draws, the line runs across the title, the bar fills). The page is the kit's record archetype ([record](https://meadowstack.com/patterns/record/)), and on a phone the month list opens it as a side panel that fills the screen, with the next step right under the title ([record side panel](https://meadowstack.com/patterns/record-side-panel/)). ##### The nine steps and what each waits for *The order and the dependencies as the books module defines them (domain/close.ts and permissions.ts in the demo); the api refuses what the checklist does not offer.* | Step | Waits for | How it is done | | --- | --- | --- | | Documents in | Nothing: it counts the documents still missing | A state: done once every missing document has come in | | Bank matched | Documents in | Ticked by whoever works the client | | Booked | Bank matched | Ticked by whoever works the client | | VAT return prepared | Booked | Ticked by whoever works the client, only when there is VAT to file that month | | Payroll run | Nothing | Ticked by whoever works the client, only for a client with staff | | PAYE paid | Payroll run | Ticked by whoever works the client once the client has paid | | Sent to the client for approval | VAT return prepared | A state, set from the next-step card | | Approved by the client | Sent to the client for approval | A state, recorded by the accountant | | Filed | Approved by the client | A state, set from the next-step card; it cannot be taken back | ##### Questions ###### Can a step be ticked before the one it waits for? No. Its box stays disabled with what it waits for written under it, and the api refuses it too, because both read the same rules. The VAT return is prepared only once the month is booked. ###### Can a done step be taken back? Only while nothing after it is done. The payroll run stays ticked once PAYE is paid, and filing cannot be taken back at all. ###### Who may tick the steps? The owner works any client's close and an accountant the closes of their own clients. The assistant reads every close and records missing documents as they come in, and sees the checklist without boxes. ###### What about a client without staff or without VAT to file? The steps that do not apply are left out and said in one line under the list: no payroll without staff, no VAT package when there is nothing to file that month. ###### When does a client's close turn urgent? When work is still open five days or less before its deadline, it shows as a warning, and past the deadline as danger, in the client's deadlines and in the month view of every client. ##### Related - [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) (Example app) - [Bank lines matched to the documents they paid](https://meadowstack.com/screens/bank-reconciliation/) (Screens) - [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) - [A recipe with its cost and its allergens](https://meadowstack.com/screens/recipe-with-allergens/) (Screens) #### A packaging quote that works out its price as you type The quote form keeps the brief on the left (customer, product, size, material and sheet, runs, print and finishing) and the price on the right, worked out again on every keystroke. Up to three runs sit side by side with the price per piece, the total and the margin, and the run picked under them shows where its price goes: paper, printing, die cutting and tool, overhead and margin. A margin under 18% is marked at once, and somebody other than the author has to approve it before the quote goes out. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/quote-form/ *Foldline's quote QUO-2026-0321 open for editing, rendered from the kit when the site was built with the demo's data on 2 December 2026. The window is cut before the layout on the sheet, which the demo draws itself; on a phone the calculation follows the fields and the footer keeps the price.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/quote-form/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/foldline/kalkulace/q-321/upravit From the example app [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/). ##### The brief and the price side by side The page is a `Screen` with the `form` archetype, and the calculation is its `summary` with `summaryWidth="wide"`: a working result people read while they type, 32rem beside the fields from 1280px and sticky in the screen's one scroll, so the price never leaves the screen while the brief changes. The fields sit in `Section`s, each in a `Field` with a visible label, and a hint says what a choice decides: "The format decides the press: B1 and B2 go to offset, SRA3 to digital, big sheets to flexo." A half-filled brief does not show a wrong price. The column says "The price cannot be worked out yet." and lists what stops it, for example a size that does not fit the sheet. ##### Where the price comes from - **Price by run**: up to three runs in a plain table (run, per piece, total, margin). The price per piece falls with the run; in the window it roughly halves from 500 to 2,000 pieces. - **Details for**: one choice of run for everything under it, a `SegmentedControl`. - **Where the price goes**: a `BarList` of paper, printing, die cutting and tool, overhead and margin, each with its share, then the total excluding VAT. - **Further down**: the layout on the sheet ("2 places (2 × 1), 46% of the sheet used."), the sheets and the waste, the time on each machine. When another sheet of the same material makes the first run at least 3% cheaper, a tip offers it with **Use this sheet**. ##### A margin floor with four eyes A generated quote form usually has a Calculate button, or stores the price when the quote is saved, and from then on the record and the list can drift from the brief. Here the form, the record and the list all call one pure `calculate()` on the brief, and the rule for low margins (the code above) reads its result. Under 18% the margin cell turns to the warning colour and a note under the table says what follows: "somebody other than the author has to approve it before it is sent (production manager, approver or admin)." The permission `quotes.approve` refuses the author's own quote, as every [approval flow](https://meadowstack.com/patterns/approval-flow/) in the kit does. ##### Rules of the form - **Validation**: react-hook-form with zod, and messages that say what to do. - **Unsaved changes**: leaving the form asks first (`useBlocker` with a confirm). - **Only a draft is edited**: the edit address of a quote that went out opens its record instead, and only the author or the production manager, approver or admin edits it. - **Who reads quotes**: sales and customer care write them, prepress and the press read them to see what is coming, and a customer never sees one, since a quote holds the shop's prices and margins. On a phone the calculation follows the fields, and the sticky footer keeps the first run's price beside **Save**. See how [Foldline](https://meadowstack.com/examples/packaging-print-production/) counts the offers out with customers and the margins waiting for a yes over its [job pipeline](https://meadowstack.com/screens/print-job-pipeline/). ##### The margin floor, worked out each time *Whether a quote needs a second yes is derived from its brief by the same calculation the form shows, never stored, so a quote can never state a price its brief does not give.* From `apps/demo/src/modules/quotes/domain/summary.ts` in the Meadowstack repository: ```ts /** The margin is under the floor: sending needs another person's approval. */ export const underFloor = (marginPct: number | null) => marginPct !== null && marginPct < marginFloor * 100 - 1e-9; /** * Where a quote stands on its margin: * ok (no approval needed), needs (under the floor, nobody asked yet), waiting (asked), * approved, refused (asked and turned down: change the price or ask again). */ export type MarginState = "ok" | "needs" | "waiting" | "approved" | "refused"; export function marginState(quote: Quote, marginPct: number | null): MarginState { if (!underFloor(marginPct)) return "ok"; if (quote.status === "approval") return "waiting"; if (quote.approval?.decision === "approved") return "approved"; if (quote.approval?.decision === "rejected") return "refused"; return "needs"; } /** Convenience for the api: the summary of a quote's brief. */ export const summaryOf = (quote: Pick) => summarize(calculate(quote.brief)); ``` ##### Questions ###### Can the price be worked out before the form is complete? Yes, as soon as the brief can be priced. Until then the price column says what stops it, for example a size that does not fit the sheet, instead of showing a number that is not true. ###### Who approves a margin under the floor? The production manager, the order approver or the admin, and never the quote's author. Under 18% the quote waits for that approval before it can be sent. ###### Can a customer see the margin? No. A customer signed in for their proofs has no right to quotes at all, because a quote holds the shop's prices and margins. Prepress and the press read quotes without changing them. ###### Why does the price per piece fall with the run? Part of the cost is paid once per job, such as the cutting tool and the set-up, and a longer run shares it among more pieces. The breakdown under the table shows the parts for the run picked. ##### Related - [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) (Example app) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) - [A print shop's jobs on one board, from enquiry to dispatch](https://meadowstack.com/screens/print-job-pipeline/) (Screens) - [A proof the customer approves in their own portal](https://meadowstack.com/screens/proof-approval/) (Screens) - [An invoice form that shows its totals as you type](https://meadowstack.com/screens/invoice-form/) (Screens) - [DataTable: the table of every list](https://meadowstack.com/components/data-table/) (Components) #### A print shop's jobs on one board, from enquiry to dispatch The pipeline puts every job of a print shop on one board, a column per phase: Enquiry, Quote, Approved, Prepress, Proof, Production and Dispatch. A card is the job as people call it, with the customer and number under it, what it waits for now and the day it leaves. A person drags a card only where the step is theirs, when the customer orders and when the work is finished; the files, the proof and the customer's approval move it the rest of the way. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/print-job-pipeline/ *Foldline's pipeline rendered when the site was built, from the kit's own components and the demo's jobs on 2 December 2026; the board runs on past the window's edge to Production and Dispatch, as the demo's does.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/print-job-pipeline/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/foldline/zakazky From the example app [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/). ##### What a card says - **The job as people call it**: "Soap boxes", never the number. A dot beside it marks an unread e-mail from the customer. - **Who and which**: the customer and the job number on the second line, in the muted grey. - **What it waits for now**: "Proof 1 to check", "File error", "Waiting for print files". Where the phase says it all, the line shows the format, the extent and the run instead. - **When it leaves**: "8 Dec, in 6 days". A late job reads "3 days overdue" in the danger colour, so colour never carries the delay alone. ##### Whose turn it is, at a glance Each column's glyph is a `StatusGlyph` that fills up as a job moves along, an eighth of the way per phase, and its tone says whose turn it is: `info` while the shop waits for the customer (a quote, a proof, a job ready to hand over), `warning` while the work is in the shop (Approved, Prepress, Production). The word stays beside it, as everywhere in the kit ([StatusLabel](https://meadowstack.com/components/status-label/)). The four figures over the board come from two modules. In progress and Dispatching this week are counted from the jobs on the board. Offers with customers and Margins to approve belong to the quotes module (its [quote form](https://meadowstack.com/screens/quote-form/)), which adds them through the `jobs.header` slot, so the print module never imports the quotes module and a person without the right to read quotes never sees them. ##### Which cards a person can move A generated board usually lets every card go to every column. Here `SortableBoard` takes `canMove` and `isLocked`, and both read the table above: a card goes from Quote to Approved when the customer orders and from Production to Dispatch when the work is finished, and only for the roles named there. While a card is dragged, the columns it may not enter fade. The card lands, then a confirm says what the step means ("Customer ordered: Seedling price list 2027?"). Move writes it through the api, which checks the same table and the person's role and adds the history entry; No puts the card back. Prepress and the proof need no drag: when the customer approves the job's proof, the job goes to Production by itself, and a proof returned with a reason sends it back to Prepress. ##### On a phone The columns stack, each with its count, and the figures fold into two rows. The same page has a List view behind the View menu (`DisplayMenu`, one button, never a second sidebar item): a table where the status folds under the job's name with `CellStack` and the specification and status columns hide on a phone (`hideOnMobile`), so it never scrolls sideways. See how [Foldline](https://meadowstack.com/examples/packaging-print-production/) uses both. ##### The steps a person moves by hand *One table says which steps are a person's, who may take them and what the confirm and the history call them; the board and the api both read it.* From `apps/demo/src/modules/print/domain/permissions.ts` in the Meadowstack repository: ```ts export const manualSteps: Partial> = { quote: { to: "prepress", label: tx("Zákazník objednal", "Customer ordered"), done: tx("Objednáno, data jdou do přípravy.", "Ordered, the files go to prepress."), roles: ["sales", "manager"], }, printing: { to: "finishing", label: tx("Vytištěno", "Printed"), done: tx("Vytištěno, zakázka jde na dokončení.", "Printed, the job goes to finishing."), roles: ["press", "manager"], }, finishing: { to: "dispatch", label: tx("Dokončeno", "Finished"), done: tx("Dokončeno, zakázka čeká na expedici.", "Finished, the job is waiting for dispatch."), roles: ["press", "manager"], }, dispatch: { to: "delivered", label: tx("Předáno zákazníkovi", "Handed over to customer"), done: tx("Předáno.", "Handed over."), roles: ["sales", "manager"], }, }; ``` ##### Questions ###### Can a customer see the pipeline? No. The print module lists its pages only for the shop's own people, so a customer's menu has no pipeline; customers sign in to approve their proofs. The jobs are read through the same rules, which give a customer their own jobs only, and the two quote figures need a right to read quotes that customers never have. ###### How does a job get from the proof to the press? The customer approves the proof and the job moves to Production by itself; nobody drags it. A proof returned with a reason sends the job back to Prepress. ###### What happens when a job is late? Its dispatch line says how late it is, for example 3 days overdue, in the danger colour, and the Dispatching this week figure counts the overdue jobs instead of saying all on time. ###### Is the board a screenshot? No. It is rendered when the site is built, from the same kit components the demo imports, with the demo's jobs on a fixed day, and shown as static HTML. ##### Related - [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) (Example app) - [A packaging quote that works out its price as you type](https://meadowstack.com/screens/quote-form/) (Screens) - [A proof the customer approves in their own portal](https://meadowstack.com/screens/proof-approval/) (Screens) - [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/) (Screens) - [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens) - [The work queue screen](https://meadowstack.com/patterns/work-queue/) (Patterns) #### A proof the customer approves in their own portal The proof page opens on the decision: the customer checks the version they were sent and approves it for print or asks for changes, and a return always says what needs to change. Beside it sit the job's facts, the versions sent so far with their notes, and comments pinned to the spot on the flat they are about. A customer sees their own designs only, once the shop has sent one, and never the shop's work in progress or its preflight. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/proof-approval/ *Teresa Moore's proof page on a phone in two states, rendered from the kit when the site was built: the Design tab with her decision, and the Versions tab with comment 1 under it. The 3D pouch and the flat are the demo's own drawing, so they are left out; in the demo the comment card floats on the flat.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/proof-approval/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/foldline/editor/d-etiopie?jako=ik-tereza From the example app [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/). ##### The decision comes first The page is a `Screen` with the `canvas` archetype: the label on its pouch in 3D on the plate, the side column beside it. The decision is the kit's `ApprovalPanel` at the top of that column, and on a phone the column comes before the plate (`inspectorFirst`), so the first thing under the title is what the customer came for. - **What to check**: "Design to approve, version 2", the text, the colours and the shape, and who sent it when. - **Approve for print**: a confirm says what follows ("The print shop makes the plates from it and prints 1,500 pcs. A change after approval means a new proof."). - **Request changes**: no dialog. The flat opens and asks the customer to click the spot they want changed; the comment is pinned there, and the design goes back to the shop with those words as the reason. A return without a reason is refused. See [ApprovalPanel](https://meadowstack.com/components/approval-panel/) and the [approval flow](https://meadowstack.com/patterns/approval-flow/) for the parts every app shares. ##### Versions and comments The Versions tab lists the versions the customer was sent, newest first, each with the note the designer wrote, who saved it and when; the one waiting for an answer carries "With customer". **Compare with version 1** opens both side by side with the changes numbered, so the customer checks the change they asked for instead of the whole label again. A comment is a pin on the flat with a card beside it: who wrote it, when, on which version, the words as a filled bubble, the replies under it. Teresa's "It should be jasmine, not lavender, please." on version 1 has the designer's "Fixed in version 2." under it and is resolved. A customer replies and resolves threads like anybody in the shop. ##### What the customer never sees A portal made by hiding buttons on the staff's screen still sends the staff's data to the browser. Here the api cuts the record down before it leaves: a customer gets a design of their own only once the shop has sent a version (`ownsDesign`), the artwork of the version they were sent and never the work in progress, only the versions sent to them, and four kinds of history entry (sent, returned, approved, withdrawn). The Preflight tab is not there for them at all, and the shop cannot send a design whose preflight still finds errors: the api refuses it. The history under the facts is the kit's [AuditTimeline](https://meadowstack.com/components/audit-timeline/): a return shows its reason in a bubble, so the author of the next version reads the request where the decision was made. ##### When the answer comes by phone Not every customer clicks. Customer care, sales and the manager have the same card with the shop's words ("The customer's decision, version 2", **Record approval**, **Record a return**), and the history names both people: "Teresa Moore (recorded by …)". After approval the design is closed for editing. Prepress or the manager can reopen it, and the history says so: "The approval no longer applies." See how [Foldline](https://meadowstack.com/examples/packaging-print-production/) ties the proof to the job. ##### Who may do what with a proof *The customer reads, comments and decides, and never edits; the shop's insides (preflight, layers, the whole history) stay with the shop's roles. The api asks the same table before it saves.* From `apps/demo/src/modules/editor/domain/permissions.ts` in the Meadowstack repository: ```ts const roles: Record = { "editor.read": ["prepress", "manager", "admin", "care", "sales", "press", "approver", "customer"], "editor.create": ["prepress", "manager", "admin", "care", "sales"], "editor.edit": ["prepress", "manager", "admin"], "editor.editText": ["prepress", "manager", "admin", "care", "sales"], "editor.fix": ["prepress", "manager", "admin"], "editor.version": ["prepress", "manager", "admin", "care", "sales"], "editor.restore": ["prepress", "manager", "admin"], "editor.review": ["prepress", "manager", "admin", "care", "sales"], "editor.send": ["prepress", "manager", "admin", "care", "sales"], "editor.withdraw": ["prepress", "manager", "admin", "care", "sales"], // The customer decides; customer care and the manager write down an answer that came by e-mail or phone. "editor.decide": ["customer", "care", "sales", "manager", "admin"], "editor.reopen": ["prepress", "manager", "admin"], "editor.comment": ["prepress", "manager", "admin", "care", "sales", "press", "approver", "customer"], // The shop's insides: preflight, layers, the whole history. "editor.internal": ["prepress", "manager", "admin", "care", "sales", "press", "approver"], }; ``` ##### Questions ###### Can the customer approve a proof without an account? Not in the portal: the customer signs in, and the portal shows their own designs only. When the answer comes by e-mail or phone instead, customer care, sales or the manager records it on the same card, and the history names the customer and the colleague who wrote it down. ###### What happens after the customer approves? The design is marked approved with the version the customer saw, editing closes and the history records who approved. A change after that means prepress or the manager reopens the design, the history says the approval no longer applies, and a new version goes out. ###### Can the customer ask for changes without writing an e-mail? Yes. Request changes opens the flat, the customer clicks the spot they mean and writes what should change there; that comment becomes the reason the design goes back to the shop. A return without a reason is refused. ###### Is the 3D view part of the kit? No. The pouch in 3D and the flat are drawn by the demo's editor module for packaging. The decision card, the facts, the history, the tabs and the canvas layout they sit in come from the kit. ##### Related - [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) (Example app) - [A packaging quote that works out its price as you type](https://meadowstack.com/screens/quote-form/) (Screens) - [A print shop's jobs on one board, from enquiry to dispatch](https://meadowstack.com/screens/print-job-pipeline/) (Screens) - [ApprovalPanel: the decision card on a record](https://meadowstack.com/components/approval-panel/) (Components) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) #### A recipe with its cost and its allergens A recipe opens as a record titled by the dish: the plate on its stage, the allergens listed with the ingredient each one comes from, and the recipe per portion at today's prices. The side column holds the portion cost, the food cost against its target, the margin and the menu price, and when the dish costs too much, the price that would bring it back to target. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/recipe-with-allergens/ *Garlic prawns from the demo, the one dish on its menu above its food cost target, rendered from the kit's components when the site was built.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/recipe-with-allergens/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/juniper/kuchyne/d-krevety From the example app [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/). ##### What the screen shows - **The dish**: the course as a small eyebrow, the dish as the title, the state "Above the target food cost" with its dot, and who wrote the version cooked today. The plate sits on the kit's `ProductStage`, which steps through up to the last four versions of the recipe, each with its menu price, its portion cost at today's prices and its food cost. - **The allergens, traced**: each allergen with its number from the regulation's list of 14 and the ingredient it comes from: 1 Cereals containing gluten from the sourdough bread, 2 Crustaceans from the prawns, 7 Milk from the butter. - **The recipe per portion**: every ingredient with its supplier and today's price, the amount the kitchen buys, what reaches the plate after peeling or cooking, and the cost of the line; the total per portion under the table. - **The figures and the next step**: the portion cost, the food cost against the dish's target, the margin per portion without VAT and the menu price. Above the target, the next step names the lowest menu price that meets it, or a smaller portion, with one button to set that price. ##### Allergens are worked out, never typed A dish's allergens are the union of its ingredients' allergens. When a supplier changes, every dish that uses the ingredient changes with it, and the dish's history says which allergens were added or removed and how the portion cost moved. A printed menu carries the allergen numbers beside each dish, and the menus page marks a menu "to print" exactly when what it would print now differs from what was printed last. The same data feeds the allergen matrix, every dish against the 14 allergens, which everybody in the kitchen and on the floor can open, newcomers included: waiters answer guests' questions from it. Only the head chef and the operations director change recipes and suppliers, because one change can bring an allergen into several dishes at once. ##### How the money is worked out - **Portion cost**: each line's amount as bought, times today's price, so trimming and cooking losses are paid for. The yield per ingredient says how much reaches the plate; the chef can change it on any line. - **Food cost**: the portion cost as a share of the menu price without VAT. Each dish has its own target, 30% for this starter; the group aims for 28 to 35% across the menu, and the recipe list marks any dish above 35%. - **The price that meets the target**: the portion cost divided by the target, with VAT added back, rounded up the way menus are priced. The record, the list, the edit form, the menus and the allergen matrix all read one file, `costing.ts`, so a figure or an allergen cannot differ between two screens. ##### What generated recipe screens usually get wrong Coding tools tend to store allergens as free tags typed on each dish, so they drift away from the ingredients the first time a supplier changes; they cost a recipe by the weight on the plate rather than the weight bought; and they paint the 14 allergens as 14 coloured badges nobody can read. In Meadowstack the allergens are derived, the colour goes only to what needs doing (the amber dot and the food cost over its target), and the table never scrolls sideways: on a narrow record the yield and the net amount fold under the amount bought. One ink button per record: when the next step has its own action, "Edit recipe" steps back to a quieter button. It is a record screen, like [the order record](https://meadowstack.com/screens/order-record/), and follows [the record pattern](https://meadowstack.com/patterns/record/). ##### Allergens come from the ingredients *How the demo's kitchen finds a dish's allergens: from its ingredients, with the ingredient that brings each one, so the record can say where an allergen comes from.* From `apps/demo/src/modules/kitchen/domain/costing.ts` in the Meadowstack repository: ```ts /** Which ingredients bring each allergen into a dish, in the regulation's order. */ export function allergenSources(lines: RecipeLine[], ingredients: IngredientIndex) { const sources = new Map(); for (const line of lines) { const ingredient = ingredients[line.ingredientId]; if (!ingredient) continue; for (const allergen of ingredient.allergens) { const list = sources.get(allergen) ?? []; if (!list.includes(ingredient.id)) list.push(ingredient.id); sources.set(allergen, list); } } return new Map([...sources.entries()].sort(([a], [b]) => a - b)); } export function allergensOf(lines: RecipeLine[], ingredients: IngredientIndex): Allergen[] { return [...allergenSources(lines, ingredients).keys()]; ``` ##### Questions ###### Where do a dish's allergens come from? From its ingredients. Nobody types them on the dish: the record lists each allergen with the ingredient that brings it in, so a cook can see what to leave out for a guest. ###### What happens when a supplier changes an ingredient? Every dish that uses the ingredient takes on its allergens and its price. Each dish's history says what was added or removed, and the menus whose printed allergen list no longer matches are marked to print. ###### How is the food cost calculated? The portion cost at today's prices as a share of the menu price without VAT. The portion cost counts what the kitchen buys, so the weight lost in peeling and cooking is part of it. ###### Can I compare two versions of a recipe? Yes, once a recipe has more than one. The stage steps through the last four versions with their price and food cost, and Compare versions beside the history puts two of them side by side, both costed at today's prices, with every line that changed. ###### Who can change a recipe? The head chef and the operations director. Everyone else reads the allergen matrix, which is what the floor needs to answer guests. ##### Sources - [Regulation (EU) No 1169/2011, Annex II: substances or products causing allergies or intolerances](https://www.legislation.gov.uk/eur/2011/1169/annex/II), checked 2 December 2026 ##### Related - [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) (Example app) - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/) (Screens) - [A kitchen's food safety day, kept by the clock](https://meadowstack.com/screens/food-safety-checks/) (Screens) - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens) - [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) #### A resource capacity plan for an agency The screen answers two questions for an agency: who has time in the next eight weeks, and which project the plan will overdraw. Each person is a row and each week a cell with a bar per project and its hours, and under the bars the week in words: grey when it fits, amber over capacity, the free hours when under half. Above the grid sit next week's overload and the project budgets, the hours sold less those logged, against the plan from today on. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/capacity-planning/ *Brightpath's plan on Wednesday 2 December 2026, rendered from the kit's components with the demo's data: the warning, the budgets and the ScheduleGrid, or one person's weeks in a narrow frame.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/capacity-planning/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/brightpath/kapacity From the example app [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/). ##### What the screen shows - **Next week's warning**: a Notice named after the project that holds most of the overloaded hours, "Portal: next week the plan overdraws people's hours by 11 h", with the person and the hours. The line under it lists the other weeks over capacity: Teresa Newman in week 49, 44 h of 40 h. - **Project budgets**: one tile per project. Left is the hours sold less the hours logged, planned is the plan from today on, and the bar fills with the plan over what is left. Amber when the plan will overdraw the budget, red when it is overdrawn already (the Sourdough Bakery's shop, 11 h over). An offer that is not signed yet sits under its project behind a dashed line. - **The grid**: the kit's [ScheduleGrid](https://meadowstack.com/components/schedule-grid/), people as rows grouped into the studio team and freelancers, weeks as columns with their bank holidays. Each bar carries the project in its hue, its hours and a thin line for its share of the person's week. Approved time off is hatched; time off still asked for and a reservation for an offer are dashed. - **The week in words**: under the bars, "22 of 40 h" in grey when it fits, "51 of 40 h" in amber with the glyph when it is over, the free hours when the plan is under half. Colour never carries the state alone. - **On a phone**: below 768px a select picks one person and the grid becomes that person's weeks as a list, each with an Edit button; the budgets follow the weeks. Nothing scrolls sideways. ##### How a week's capacity is counted Capacity is never a typed 40. A person's week starts from their weekly hours spread over 8-hour days: 40 h is Monday to Friday, Mark Stone's 32 h is Monday to Thursday. A bank holiday on one of those days takes a day off the week, approved time off takes its share of each day it covers (half a day counts as half), and time off still asked for is drawn dashed but not taken off. A freelancer's capacity is the hours they keep free for the studio that week. So one holiday costs people differently. Christmas Day on Friday 25 December costs Mark nothing, and New Year's week takes 8 h off him and 16 h off everybody else. Kate Bennett takes the three working days between the two holidays off, so her week 53 reads "Off, all week" and holds no bars. How full a week is follows one rule as well (`loadOf`): over 100% warns, from half to full stays quiet, under half says how many hours are free. ##### What AI tools get wrong here Asked for a resource planner, a code generator draws a grid of people and weeks with a percentage in every cell, coloured from green to red, and 40 h for everybody. Three things go missing: - **Capacity is a calculation, not a column.** Bank holidays, part-time days and approved time off change it week by week. In Meadowstack it is one function in the module's domain that the grid, the phone list, the warning and the assistant all call, so they never disagree by a day. - **Colour belongs to the exception.** A week that fits is grey text. Amber and the glyph are kept for a week over capacity and a budget the plan will overdraw, red for a budget already overdrawn. A traffic-light grid makes every cell shout and hides the two that matter. - **A plan is edited where it is read.** Planning views in Meadowstack are editors: drag a bar to another week or person, drag its edge to change the hours, quick add in an empty cell, copy a week onto the next, undo from the toast, the same from the keyboard. ScheduleGrid carries the drag, the keyboard and the announcements, so an app never builds them again ([planning editor pattern](https://meadowstack.com/patterns/planning-editor/)). ##### The warning comes with a fix The app's one action that goes the whole way starts from the same warning. The assistant reads the plan and proposes to move 6 h of Luke Hayes's portal week to Philip Reed, a freelancer who keeps those hours free, and the rest into the week after, with the weeks before and after side by side. While the proposal waits, the notice says so. The project lead says yes, the change runs through the capacity api as him, writes one entry in the plan's history, and Luke's bell says his week changed. ##### Who sees it The project lead plans everyone, decides on time off and sets what the freelancers keep free. Every member of the studio sees the whole plan read-only and asks for their own time off, and nobody decides on their own request. The client's guest sees nothing of the module, nor the assistant's answer about it. The rules live in one file, asked through `can()` by the pages and again by the api ([permissions](https://meadowstack.com/patterns/permissions/)). In the same app, each person's hours are logged in the [timesheet](https://meadowstack.com/screens/timesheet/), and the work itself moves on the [task board](https://meadowstack.com/screens/task-board/). ##### What a person can work in a week *The demo's one function for a week's capacity: bank holidays on working days and approved time off come off, time off that waits is counted apart. The grid, the phone list, the warning and the assistant all call it.* From `apps/demo/src/modules/capacity/domain/capacity.ts` in the Meadowstack repository: ```ts /** What a person can work in a week, and why it is less than usual. */ export function capacityOf(person: PlanPerson, week: string, facts: CapacityFacts): WeekCapacity { if (person.kind === "freelancer") { const hours = facts.availability[person.id]?.[week] ?? person.weeklyHours; return { hours, base: person.weeklyHours, holidays: [], off: 0, pending: 0, requests: [] }; } const daily = dailyHours(person); const requests = facts.timeOff.filter( (request) => request.personId === person.id && (request.state === "approved" || request.state === "pending") && request.from <= addDays(week, 6) && request.to >= week, ); const holidays: WeekCapacity["holidays"] = []; let off = 0; let pending = 0; for (const weekday of person.workdays) { const day = addDays(week, weekday); const holiday = holidayName(day); if (holiday) { holidays.push({ day, name: holiday }); continue; } const share = (state: TimeOff["state"]) => Math.min( 1, requests.filter((request) => request.state === state).reduce((sum, request) => sum + dayShare(request, day), 0), ); const approved = share("approved"); off += approved * daily; pending += Math.min(1 - approved, share("pending")) * daily; } const base = person.weeklyHours; return { hours: Math.max(0, base - holidays.length * daily - off), base, holidays, off, pending, requests }; ``` ##### Where else the ScheduleGrid runs *The example apps whose code renders the kit's ScheduleGrid, and in which modules, read from the demo's source.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Cutting dies | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Capacity | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Crews | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | Shifts | Read from the demo's source when the site was built: 4 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### Questions ###### How is a person's capacity counted for a week? From their weekly hours spread over their working days. A bank holiday on a working day and approved time off come off, while time off still asked for is shown dashed and not taken. A freelancer's capacity is the hours they keep free for the studio that week. ###### When does a week turn amber? When the plan is over the person's capacity for that week. From half to full the week stays grey, and under half it says how many hours are free. ###### What does a project budget compare? The hours sold less the hours logged, against the hours planned from today on. The current week counts only for its working days still ahead, so on a Wednesday two fifths of it. ###### Can the plan be changed on a phone? Yes, by the project lead. Below 768px a select picks one person, each of their weeks is a short list of bars with an Edit button, and the project budgets follow. Nothing scrolls sideways. ###### Is the plan on this page a screenshot? No. It is rendered from the kit's components when this site was built, with the demo's people, holidays and plan on Wednesday 2 December 2026. The live demo opens the same screen with its own today. ##### Related - [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) (Example app) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/) (Screens) - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens) - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens) - [A kanban task board for an agency's client work](https://meadowstack.com/screens/task-board/) (Screens) #### A restaurant rota planned against the takings The rota is a week of people by day: the kitchen and the floor in two groups, each shift a quiet chip with its hours and role, approved time off hatched, and the week's hours at the end of each row. Above the grid the empty places and the short rests are listed in words, and under it each day's labour sits against the expected takings, so a manager plans the week and its cost on one screen. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/staff-rota/ *The Islington branch's week from the demo, rendered from the kit's components when the site was built. Narrower than 48rem it becomes the phone's list by day.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/staff-rota/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/juniper/smeny/rozpis From the example app [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/). ##### What the screen shows - **The week**: people as rows in two groups, Kitchen and Floor and bar, days as columns with today in bold. A shift is a grey chip with its name, its hours and the role, and in the shift templates a 2px bar shows where in the day each one falls. - **What needs doing, in words**: each day's header says "1 missing" or "covered". A shift with less than 11 hours of rest before it carries an amber ring and the hours it has ("8 h"), and a person over 48 hours in the week gets the same ring on their total. A notice above the grid gathers it all, "4 empty places, 2 short rests", with Fill or Show beside each line. - **Time off and the other branches**: leave approved on [the time-off request](https://meadowstack.com/screens/time-off-approval/) fills the person's cells as a hatched "Off" block, the look the kit uses for blocked time. A shift at another branch shows that branch's dot and name, so the head chef's day in Camden does not look like a free day. - **Labour against takings**: under the rows, the day's labour cost, the expected takings and the share. Inside 25 to 35% the share says nothing more, under it a quiet "under 25%", over it the amber ring and the words. Only the people who plan the branch see these rows; the chef and the staff see their shifts without a cost. ##### An editor, not a calendar A rota is a planning view, and the framework's rules make every planning view an editor ([the planning editor pattern](https://meadowstack.com/patterns/planning-editor/)): drag a shift to another day or person, hold Alt to drag a copy, drag a template from the strip into a cell, or add one in an empty cell. From the keyboard, Space picks a shift up, the arrows choose a cell and Space drops it, which is how the kit's [ScheduleGrid](https://meadowstack.com/components/schedule-grid/) works everywhere it is used. A cell that cannot take a shift says why before the shift is let go: "is off that day", "has a shift that day", "Only 8 h between shifts, the law wants 11 h". The grid asks the app through `refuseDrop`, the dialog asks the same functions, and the server asks them again, so the reason is the same wherever the change starts. Changes stay a draft until the manager publishes the week, and the line beside the toolbar says what the staff last saw. ##### The rules behind the numbers Daily rest is 11 hours between the end of one shift and the start of the next, counted across every branch. Weekly rest is 24 hours without a break, and a rest that crosses into the next week counts in full for both. The week's limit is 48 hours, kept week by week, which is stricter than the regulations' average over 17 weeks. The share of labour in takings is each shift's hours times the person's hourly cost with the employer's levies, over the day's expected takings. All of it is derived from the week held on screen, so a figure changes in the same frame as the shift that moved it. ##### What generated rotas usually get wrong Asked for a rota, coding tools tend to draw a calendar of coloured pills, one colour per role, with the rules left for later. Then a manager drags a closing waiter into the next morning and nothing objects, or the check lives only in the form, so a drag goes around it. In Meadowstack the rule is one pure function the grid, the form and the server share, and the grid's `refuseDrop` puts its reason on the cell. Colour carries information only: shifts are neutral chips, amber marks what needs doing next to its words, and people get their identity hue from `Avatar`, never red, orange or yellow. On a phone the week becomes a list by day instead of a table that scrolls sideways. The same screen type, the workspace, is one of the kit's 9 described in [the guide to screen types](https://meadowstack.com/guides/screen-archetypes-for-business-apps/). ##### The rest rule, written once *The daily rest check from the demo's rota: a pure function, so the grid refuses a drop, the shift dialog greys a person out and the server refuses the request with the same words.* From `apps/demo/src/modules/shifts/domain/rest.ts` in the Meadowstack repository: ```ts /** Pairs of neighbouring shifts of one person with less than 11 hours between them. */ export function dailyBreaks(shifts: Shift[], personId: string): RestBreak[] { const spans = spansOf(shifts, personId); const found: RestBreak[] = []; for (let index = 1; index < spans.length; index += 1) { const before = spans[index - 1]!; const after = spans[index]!; const hours = after.start - before.end; if (hours < DAILY_REST_HOURS) found.push({ kind: "daily", personId, shift: after.shift, other: before.shift, hours }); } return found; ``` ##### ScheduleGrid in the kit's manifest *The kit's planner table as its manifest describes it to people and to coding tools, read when the site was built.* | Manifest field | ScheduleGrid | | --- | --- | | What it is | A planner's table: people or machines by day, with things dragged between cells, templates and copies. | | Use it for | A rota, a machine plan or visits by day: an editor, from the keyboard too. | | Not for | For hours within a day (TimeGrid, ResourceTimeline) | | It replaces | A hand-built rota table with drag and drop | | Screen types | Workspace | | Import | `import { ScheduleGrid } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Questions ###### Does the rota warn when a shift breaks the rest rules? Yes. A shift with less than 11 hours of rest before it shows an amber ring and the hours it has, and a week without 24 hours of unbroken rest marks the person's total. Dragging a shift into a cell that would make a new break is refused with the reason, and the server refuses the same change. ###### Can staff swap shifts themselves? They offer their own shift, one that is still ahead, to a colleague. The swap shows on the rota as a dashed card until the branch manager or the operations director decides, and nobody decides on a swap they are part of, so a manager's own swap goes to the director. ###### Who sees the labour cost under the rota? The people who plan the branch: the operations director for every branch and a branch manager for their own. The chef and the staff see the same rota without the cost rows. ###### Can it be planned from the keyboard? Yes. Every shift and template is a button: Space picks it up, the arrow keys choose a cell, Space drops it and Alt with Space drops a copy. Each step and each refusal is announced, so the grid works with a screen reader too. ###### What does the rota look like on a phone? Seven days of people do not fit a phone, so the week turns into a list by day: who works in the order of the day, who is off, who is at another branch, with the day's labour share beside its date. ##### Sources - [The Working Time Regulations 1998, regulation 10: daily rest](https://www.legislation.gov.uk/uksi/1998/1833/regulation/10), checked 2 December 2026 - [The Working Time Regulations 1998, regulation 11: weekly rest period](https://www.legislation.gov.uk/uksi/1998/1833/regulation/11), checked 2 December 2026 - [The Working Time Regulations 1998, regulation 4: maximum weekly working time](https://www.legislation.gov.uk/uksi/1998/1833/regulation/4), checked 2 December 2026 ##### Related - [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) (Example app) - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens) - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens) - [GanttChart: a project schedule with its links and key dates](https://meadowstack.com/components/gantt-chart/) (Components) - [ScheduleGrid: a rota you edit by drag or from the keyboard](https://meadowstack.com/components/schedule-grid/) (Components) - [The planning editor](https://meadowstack.com/patterns/planning-editor/) (Patterns) #### A roast plan worked out from the orders The roast plan is a board with one column per roasting day, and every batch on it says who it is for. The plan is worked out backwards from the orders, the standing orders, the subscriptions and the shelf's minimum, and above the board it names what is still missing: a batch nobody planned, or green coffee that will not stretch. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/roast-plan/ *The roast plan of the demo's roastery on Wednesday 2 December, rendered when the site was built from the kit's own components, with the demo's data.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/roast-plan/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/fernhill/prazeni From the example app [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/). ##### What the screen shows - **Four figures**: the batches planned and the green coffee they take (22 batches, 301.5 kg until Wednesday 9 December in the demo), what has been roasted today, the batches the plan still lacks and the green coffee it is short of. Colour goes only to the two names that need a person. - **What the plan needs**: a `NoticeList` above the board. A missing batch comes with Plan it and Change, a lot the plan runs short of with the way to it. When nothing is missing, it is one quiet line with a check. - **Batches by day**: one column per roasting day, today first, with each day's count and kilos under its title. A card names the coffee, the green kilos and the roast, then who the batch is for: the two biggest customers and how many more. A roasted batch says when it came out, how much and its batch number instead. ##### How the plan is worked out The plan is a set of pure functions of the data (the demo's `fernhill-plan.ts`), run again on every move: 1. Demand comes from five places: orders still short of coffee, the cafés' standing orders, the subscriptions, the online shop's week and the shelf's minimum. 2. Roasted coffee rests before it ships: 2 days for the Ethiopian and Kenyan filter coffees, 4 or 5 for the espressos. A missing batch goes on the latest roasting day that still lets it rest, so it leaves as fresh as it can. When no day is early enough, it goes on the first day and is marked late. 3. Green coffee is the roasted coffee divided by one minus the coffee's expected loss, and a batch is 12 to 15 kg, 80 to 100 % of the drum. 4. Planned batches take their green coffee in day order, from the oldest lot of each origin. A batch the lots cannot cover is short, in kilos: the plan needs 42 kg of the Ethiopian, the store room has 34, so the batch on Wednesday 9 December is 8 kg short. What it leaves to a person on purpose: the order of the batches within a day (light before dark is the habit, the roaster decides), a batch under 80 % of the drum, and what to do about a late or short batch. The short lot opens as a [traceable lot record](https://meadowstack.com/screens/lot-traceability/). ##### An editor, not a report Planning views are editors in Meadowstack ([the planning editor pattern](https://meadowstack.com/patterns/planning-editor/)). The owner and the roaster, the two roles `roast.plan` allows in the roastery's `permissions.ts`, drag a batch to another day or to another place in its day through the kit's [SortableBoard](https://meadowstack.com/components/sortable-board/). The keyboard does the same: Space picks the card up, the arrows move it, Space drops it, and a screen reader hears each step. A roasted batch stays where it is, because `canMove` lets only planned batches go. Every move is in the plan's history, and its toast has Undo. People who only read the plan (the online shop, wholesale, quality, the accountant) get the same columns as a static `Board`, so nothing pretends to move. ##### What AI coding tools get wrong here - **The plan as a report**: a table of batches nobody can move, or a calendar where each batch is typed by hand. The framework's rule is that planning views are editors: drag, a quick add under each day, live feedback, the same from the keyboard. - **Drag and drop without the keyboard**: a drag library wired in by hand, mouse only. An app built on Meadowstack cannot import `@dnd-kit` (ESLint stops it with "Use the kit's sortable board and list."), so every drag goes through `SortableBoard` or `SortableList`, which carry the keyboard and the announcements. - **Coloured banners and pills**: a red bar across the page for the short coffee, a green pill for each roasted batch. Here what needs a person is a [Notice](https://meadowstack.com/components/notice/) row with colour only in its glyph, and a batch's state is a `StatusGlyph` beside its name: empty while planned, filled once roasted. ##### The rules the plan is worked out by *The drum's limits, the days the plan looks at and the latest day a batch can be roasted and still rest, from the demo's plan module.* From `apps/demo/src/shared/companies/fernhill-plan.ts` in the Meadowstack repository: ```ts /** One load of the Giesen W15: at most 15 kg of green coffee, at least 80 % of it. */ export const DRUM_KG = 15; export const DRUM_MIN_KG = 12; /** How far ahead the plan looks: today and the next seven days. */ export const PLAN_DAYS = 7; const round1 = (value: number) => Math.round(value * 10) / 10; const EPSILON = 0.05; /** The roasting days from `from` through `through`: Monday to Friday, Saturday too when the roastery works it. */ export function roastingDays(from: string, through: string, saturdays = false) { const days: string[] = []; for (let day = from; day <= through; day = addDays(day, 1)) { const weekday = weekdayOf(day); if (weekday <= 5 || (saturdays && weekday === 6)) days.push(day); } return days; } /** The days the plan shows: the roasting days from today through a week from today. */ export const planDays = (today: string, saturdays = false) => roastingDays(today, addDays(today, PLAN_DAYS), saturdays); /** The last roasting day that lets coffee rest `restDays` before `shipOn`, or null when none of `days` is early enough. */ export function latestRoastDay(shipOn: string, restDays: number, days: readonly string[]) { const by = addDays(shipOn, -restDays); let latest: string | null = null; for (const day of days) if (day <= by) latest = day; return latest; ``` ##### How the board is called *The demo hands the batches to the kit's SortableBoard: one column a day, and only a planned batch may move, to a day the plan shows.* From `apps/demo/src/modules/roastery/components/plan-board.tsx` in the Meadowstack repository: ```tsx if (editable) { return ( ({ id: day, title: columnTitle(day, today), meta: meta(day), footer: footer(day) }))} items={byDay} getId={(batch) => batch.id} getLabel={label} canMove={(batch, _from, to) => batch.status === "planned" && days.includes(to)} onMove={onMove} onOpen={onOpen} showCounts={false} renderCard={(batch) => } ``` ##### Questions ###### How does the roast plan decide what to roast? It works backwards from the demand: orders still short of coffee, the cafés' standing orders, the subscriptions, the online shop's week and the shelf's minimum. Each coffee has its rest days and its expected roast loss, so a missing batch lands on the latest roasting day that still lets it rest, in green kilos the drum can take. ###### Can batches be moved without a mouse? Yes. Space picks up a card, the arrow keys move it to another place or another day, Space drops it, and a screen reader hears each step. Only planned batches move; a roasted one stays where it was. ###### Who can change the roast plan? In the demo, the owner and the roaster. Everyone else, from the online shop to the accountant, sees the same board without the drag, and the api checks the same rule before it saves a move. ###### What happens when the green coffee will not stretch? The batch that will go without gets a red line with the kilos missing, the figure at the top says how much is short, and a notice names the lot with a button to open it. In the demo the plan needs 42 kg of the Ethiopian and the store room has 34. ###### Does the plan put the batches of a day in order by itself? No. It proposes what is missing and on which day, and leaves the order within a day to the roaster: light before dark is the habit, not a rule in the code. ##### Related - [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) (Example app) - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens) - [SortableBoard: a kanban board that works from the keyboard](https://meadowstack.com/components/sortable-board/) (Components) - [The planning editor](https://meadowstack.com/patterns/planning-editor/) (Patterns) - [The workspace screen](https://meadowstack.com/patterns/workspace/) (Patterns) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) #### A site diary day, prefilled and signed by the right person The site diary lists a site's working days, newest first, and opens one day's record in a side panel beside the list. The record starts prefilled from the forecast, the attendance and the machine log, so the people who run the site only describe the work, and only the site manager of that site may sign it. A signed record is locked: it can be supplemented, never changed. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/site-diary/ *The site diary of Vinery Court flats with today's draft open beside the list, as the managing director sees it, rendered from the kit's components with the demo's data on 2 December 2026.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/site-diary/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/stonebridge/denik From the example app [An app for a construction company](https://meadowstack.com/examples/construction-site-management/). ##### What the screen shows - **The days**: one site's working days, newest first, each with its state as a glyph and a word and the first lines of the work done. Four views sit above them with their counts: All days, To sign, Waiting for a reply and Missing. - **Today's record** above the table: the day, its state, the weather, the people and the machines on site, and one button whose label follows the person. The site manager gets "Finish and sign", the managing director "Open the record". - **The record** in the side panel: the page and job number as a small eyebrow, the day as the title, then the work done, the weather and the state of the site, the people by trade, deliveries with their delivery notes, machinery with engine hours, inspections, photos, the signature, the supervisor's entries and the history. ##### Filled in before anyone types A working day's record starts from what the app already knows: the weather from the forecast, the people from the attendance on the site, the engine hours from the machine log. The history names the prefill as its own actor, shown as the system and not as a person: "Record created" by Record prefill, "Prefilled from the forecast, the attendance and the machine log." What is left for people is what only they know: the work done, the state of the site, deliveries, inspections and photos. Today's record at Vinery Court reads "38 m³ C25/30 XC1, 4 mixer trucks and a pump", with the supervisor's take-over of the reinforcement at 7:40 written beside it as his own entry. ##### One record, a different next step for each person The rules in the excerpt above decide what each person sees on the same draft: - **Robert Brooks**, the managing director, reads "The record is not signed yet. Lucy King will sign it." and nothing to click. - **Lucy King**, the site manager, can edit the draft and reads "Check the record and sign it by the next evening at the latest." with the Sign the record button. - **Joe Vaughan**, the foreman, can edit the draft and reads "Lucy King signs the record. Add the description of the work and save the draft." - **Martin Dale**, the client's supervisor, reads "The record is not signed yet. You can add your entry now." with the Add an entry button. The next step is the kit's `NextStep`: a calm line when there is nothing to do, a panel with one button when there is. Signing goes through a confirm that says what it means: "A signed record cannot be changed any more, only supplemented." See [the permissions pattern](https://meadowstack.com/patterns/permissions/) for the rule behind it. ##### The day's state and the next evening A record is due on every working day, the same day or the next day at the latest. One vocabulary serves the list, the month view and the record (`domain/status.tsx` in the demo), drawn as a [StatusLabel](https://meadowstack.com/components/status-label/): the glyph in the state's colour with the word beside it. | State | When | Tone | | --- | --- | --- | | Waiting for a reply | the supervisor wrote an entry nobody has answered; it comes first, because somebody else waits | warning | | Draft | started and not signed | neutral, warning once past the next evening | | Signed | signed and locked | success | | No record yet | nobody started the day | neutral, then Record missing in danger once past the next evening | ##### What AI coding tools get wrong here - **A diary as one big form.** A generated diary is usually a form anybody can edit at any time. Here the record has a life: a draft, a signature behind a confirm, then supplements under the work with their author and time, and every step in an [AuditTimeline](https://meadowstack.com/components/audit-timeline/). - **Roles compared in the markup.** A check like `role === "manager"` in a component drifts from what the server allows. The kit keeps one permissions file per module, asked through `usePermission` or ``, and a backend enforces the same rules. - **The record on its own page.** Opening a day that replaces the list loses the week. The record opens in a [RecordPeek](https://meadowstack.com/components/record-peek/) beside the list (`?nahled=` and the date), steps through the days with Alt and the arrows, and expands to the full page, where the record sits beside its A4 page for the paper diary ([record side panel](https://meadowstack.com/patterns/record-side-panel/)). ##### Who may write, sign and answer *The diary's rules in the demo, one function per module. Every button asks it through usePermission with the site as the subject; no component compares roles.* From `apps/demo/src/modules/diary/domain/permissions.ts` in the Meadowstack repository: ```ts export function canDiary(person: Person, action: string, subject?: unknown) { if (!action.startsWith("diary.")) return false; const site = siteOf(subject); const manages = site ? site.managerId === person.id : person.role === "manager"; const foremans = site ? site.foremanId === person.id : person.role === "foreman"; switch (action as DiaryAction) { case "diary.read": return person.role !== "supervisor" || !site || site.supervisor === person.name; case "diary.write": case "diary.respond": return person.role === "manager" ? manages : person.role === "foreman" && foremans; case "diary.sign": case "diary.supplement": return person.role === "manager" && manages; case "diary.entry": return person.role === "supervisor" && (!site || site.supervisor === person.name); default: ``` ##### Questions ###### Can the foreman fill in the site diary on a phone? Yes. The foreman may write the record of his own site, and on a phone the record opens as a full-screen sheet over the list. Signing stays with the site manager of that site. ###### Can the client's supervisor see other sites? No. The supervisor reads only the sites he supervises, and his entry box is there only. He writes as the client's supervisor; the people who run the site answer him. ###### What happens to a record after it is signed? It is locked. Signing asks first, because a signed record can only be supplemented. A supplement shows under the work with its author and time, and the history keeps every step. ###### Where do the people and the machine hours come from? From data the app already holds: the attendance on the site and the machine log, with the weather from the forecast. The history names the prefill as the system, not as a person. ###### What if nobody writes a record for a day? The day shows No record yet and counts in the Missing view. Once the next evening has passed it turns into Record missing in red, and a draft nobody signed turns to a warning. ##### Related - [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) (Example app) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) - [Defects pinned on the drawing, carried across revisions](https://meadowstack.com/screens/defects-on-drawings/) (Screens) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) #### A time-off request waiting for a decision A time-off request opens as a record titled by the person who asked, with its number as a small eyebrow and its state beside the name. The decision card at the top of the side column shows the days and the dates, names who else from the branch is away at the same time, and offers Reject and Approve; a rejection always asks for a reason the requester will read. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/time-off-approval/ *Request LV-2026-0114 from the demo as the operations director sees it, rendered from the kit's components when the site was built.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/time-off-approval/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/juniper/lide/volno/lv-114 From the example app [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/). ##### What the screen shows - **The request as a record**: the person who asked is the title, the number LV-2026-0114 a small eyebrow, the state a half-filled amber glyph with the words "Waiting for approval". - **The decision card**: the number of days large, the dates under it, and the line that makes the decision quick: "Also away at the same time: David Cooper." The demo works it out from the branch's approved absences over the same dates, and says so when nobody else is away. Reject and Approve sit side by side under it. - **The facts**: the type of time off (annual leave, sick leave, time off in lieu or unpaid leave), the dates, the number of days, the branch with its dot, the requester's note and when it was submitted. - **The history**: "Submitted" with the person and the time. A decision adds its own entry, with the reason when it is a rejection. ##### Who decides on whose request Nobody decides on their own request. A branch manager decides on the waiters, the bar and kitchen staff and the new hires of their branch; the operations director decides on the managers and the chef and may step in for any branch; her own time off is written down without a decision, because nobody is above her. That rule is one function, `decidesOn` below, which the page and the server both ask. It also lets the page name the deciders to anyone who cannot decide, "Decided by branch manager Tom Bennett or operations director Laura Marlow.", instead of showing a button that is greyed out with no reason. ##### What the decision card keeps for you The card is the kit's [ApprovalPanel](https://meadowstack.com/components/approval-panel/), and its rules come with it: a rejection always needs a written reason, which goes into the history; an approval asks for a confirmation, so a stray click approves nothing; people who cannot decide see the state and who can. From 1024px the card heads the side column; on a phone it comes before everything else, because the decision is what a manager opened the request for. The whole flow, from submitting to the decision, is [the approval flow pattern](https://meadowstack.com/patterns/approval-flow/). ##### What generated approval screens usually get wrong Coding tools tend to put Approve and Reject on every row of a table, the manager's own request included, mark the state with a coloured pill or a yellow banner, and let a rejection go out without a word. Nothing on the screen says who else is away that week, so the manager opens the rota in another tab. In Meadowstack the permission is asked with the record (`usePermission("leave.approve", leave)`), never by comparing roles in a component, and a backend repeats the rule: the [Supabase recipe](https://meadowstack.com/integrations/supabase/) shows four-eyes enforced by the database itself. The state is a glyph beside a word, the decision a card rather than a banner, and the overlap sits in the card where the decision is made. ##### The four-eyes rule in one function *Who may decide on a time-off request, from the demo's people module: the pages show or hide the decision by it, and the server asks it again before it changes anything.* From `apps/demo/src/modules/people/domain/permissions.ts` in the Meadowstack repository: ```ts /** Whether this person may decide on this request: the four-eyes rule lives here, not in the pages. */ export function decidesOn(person: Person, leave: Requester) { if (person.id === leave.personId) return false; if (person.role === "owner") return true; return ( person.role === "manager" && approverKind(leave.personRole) === "branch" && sharesBranch(person, leave.branchIds) ); } ``` ##### ApprovalPanel in the kit's manifest *The kit's decision card as its manifest describes it to people and to coding tools, read when the site was built.* | Manifest field | ApprovalPanel | | --- | --- | | What it is | The decision card at the top of a record's side column: approve, or reject with a reason; nobody approves their own record. | | Use it for | A record that needs someone else's sign-off. | | Not for | As a coloured banner across the page | | It replaces | Hand-built approve and reject buttons with a reason dialog | | Screen types | Record; Index; Worklist | | Import | `import { ApprovalPanel, approvalCopyCs } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Questions ###### Can a manager approve their own time off? No. Nobody decides on their own request: a branch manager's request goes to the operations director, and the director's own time off is written down without a decision. ###### Does the manager see who else is away on those days? Yes. The decision card names everyone from the branch whose approved time off overlaps the dates, or says that nobody else is away. ###### What happens when a request is rejected? The manager has to write a reason. The requester reads it and can suggest other dates, and the history keeps the rejection with the reason and the name of whoever decided. ###### Does approved time off show on the rota? Yes. Approved leave fills the person's days on [the staff rota](https://meadowstack.com/screens/staff-rota/) as a hatched Off block, and the rota refuses a shift on those days with the words "is off that day". ###### Can someone cancel a request they made? Yes, their own, while it is waiting or approved and its last day has not passed. ##### Related - [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) (Example app) - [A kitchen's food safety day, kept by the clock](https://meadowstack.com/screens/food-safety-checks/) (Screens) - [A recipe with its cost and its allergens](https://meadowstack.com/screens/recipe-with-allergens/) (Screens) - [The approval flow](https://meadowstack.com/patterns/approval-flow/) (Patterns) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) #### A usage rights tracker for a creator The screen answers one question for a creator: which brand may use which content, where and until when. Each brand deal is a group on a timeline with its windows of organic use, paid usage and exclusivity, from the first post to the last day, with today as a line. Above it a short list names what needs doing: a deal that collides with another brand's exclusivity, rights that end within 14 days and rights that ended without anybody checking. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/usage-rights/ *Martin's rights on Wednesday 2 December 2026, rendered from the kit's components with the demo's data: the watch list over the GanttChart, or a list by deal in a narrow frame.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/usage-rights/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/martin/spoluprace/prava From the example app [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/). ##### What the screen shows - **To watch**: only what needs doing, one line each. A collision gets the warning icon in red, a right that ends within 14 days an amber dot, a right that ended in the last 14 days and nobody checked a grey dot and the button "The brand took it down". Everything else stays quiet. - **The timeline**: the kit's [GanttChart](https://meadowstack.com/components/gantt-chart/) in months. One group per deal, one bar per window, today as an ink line with its date and the end of the exclusivity a deal collides with as a dashed marker. The darker fill runs up to today; amber means it ends soon, red means a collision. - **Words on every bar**: "running, 80 days left", "from 6 Dec", "planned, to 3 Feb 2027", "ended 29 Nov". Colour never carries the state alone. - **On a phone**: below 768px the chart becomes a list by deal, each window a row with its dates and the same words as its bar. Nothing scrolls sideways. ##### How the windows are counted Every post carries its own days, so a deal's window runs from its first post to the last day of its last post's days: 30 days from a post on the 1st hold through the 30th. A deal has up to three windows: organic use on the brand's own channels, paid usage when the brand runs ads through the creator's profile, and exclusivity in a category. A deal that is not out yet, from the inquiry to the brand's approval, collides when its brand's category falls inside another brand's running exclusivity. The overlap counts from its first post to the exclusivity's last day, both included, so it tells how far the dates have to move: ProteoMax's first post on 22 December against PeakNutri's protein exclusivity to 26 January is 36 days. A release the holder grants ends the collision. ##### What AI tools get wrong here Asked for a rights tracker, a code generator draws a table of contracts with an end date column and a red badge on every row that ends this month. Three things go missing: - **Exclusivity is a relation between deals**, not a field of one. The check needs every deal, including those the person may not open, and it must ignore deals that are already out. - **The rule lives in the component**, so the timeline, the record and the api count days differently and disagree by one. In Meadowstack the windows, their states and the collision check are one domain file, called by the screen and by the api before it saves. - **The chart reads the clock.** The kit's GanttChart takes `today` as a prop and never reads the time itself, so a test, a screenshot or this page shows the same day every time. The screen follows the [planning editor pattern](https://meadowstack.com/patterns/planning-editor/): a bar opens the deal's rights, and a change runs the collision check again over every row before the server answers. ##### Who sees it Martin and his assistant read and change the rights. His accountant reads only the deals that were invoiced or paid, without the rights, and his coach, his partner and his videographer see nothing of the deals. The rules live in one table in the module, asked through `can()` by the screens and again by the api ([permissions](https://meadowstack.com/patterns/permissions/)). The posts these rights cover are planned in the [content calendar](https://meadowstack.com/screens/content-calendar/), which marks a post that would break an exclusivity. ##### The collision check *How the demo decides that a deal collides with a running exclusivity and by how many days. The timeline, the deal's record, the list and the api all call this one function.* From `apps/demo/src/modules/brands/domain/rights.ts` in the Meadowstack repository: ```ts /** Stages in which the dates of a deal can still be judged against an exclusivity: not out yet, not declined. */ const beforePublication = new Set(["inquiry", "brief", "offer", "contract", "production", "approval"]); /** * The running exclusivities a deal collides with. `brandOf` gives each deal's brand (the category is the brand's), and * `all` are every deal of the store, so the check sees the holder even when the person may not. */ export function conflictsOf( deal: Deal, all: Deal[], brandOf: (id: string) => KovarBrand | undefined, today: Day, ): Conflict[] { if (!beforePublication.has(deal.stage)) return []; const category = brandOf(deal.brandId)?.category; if (!category) return []; const span = postSpan(deal); return all.flatMap((holder): Conflict[] => { if (holder.id === deal.id || holder.brandId === deal.brandId) return []; if (!isSigned(holder.stage) || holder.exclusivity?.category !== category) return []; const window = windowsOf(holder).find((item) => item.kind === "exclusivity"); if (!window || window.end < today) return []; if (deal.release?.holderId === holder.id && deal.release.grantedOn) return []; if (span && (span.first > window.end || span.last < window.start)) return []; const from = span ? laterDay(span.first, window.start) : laterDay(today, window.start); const brand = brandOf(holder.brandId); return [ { holderId: holder.id, holderNumber: holder.number, holderBrand: brand?.name ?? holder.brandId, holderContact: brand?.contact ?? "", category, end: window.end, firstPost: span?.first, overlapDays: daysBetween(from, window.end) + 1, requestedOn: deal.release?.holderId === holder.id ? deal.release.requestedOn : undefined, }, ]; }); ``` ##### Where else the GanttChart runs *The example apps whose code renders the kit's GanttChart, and in which modules, read from the demo's source.* | Example app | Modules that render it | | --- | --- | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Schedule | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals | Read from the demo's source when the site was built: 2 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### Questions ###### What counts as a collision between two brand deals? A deal that is not out yet, from the inquiry to the brand's approval, whose brand's category falls inside another brand's running exclusivity. The overlap is counted from its first post to the exclusivity's last day, both days included, and a release from the holder ends it. ###### When does a right turn amber? When it ends within the next 14 days. A right that ended in the last 14 days stays on the watch list until somebody confirms the brand took the content down. ###### How does the timeline work on a phone? Below 768px it becomes a list by deal. Each window is a row with its dates and the same words as its bar, so nothing scrolls sideways. ###### Who can change the rights of a deal? The creator and his assistant. The accountant reads only invoiced and paid deals, and the coach and the partner see nothing of the deals. The same rules are asked again by the api before it saves. ###### Is the timeline a screenshot? No. It is the kit's GanttChart rendered when this site was built, with the demo's deals and the day fixed at 2 December 2026. The live demo opens the same screen with its own today. ##### Related - [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) (Example app) - [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/) (Screens) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A resource capacity plan for an agency](https://meadowstack.com/screens/capacity-planning/) (Screens) - [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens) - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens) #### A weekly timesheet for an agency The screen answers where one person's week went: projects down, days across, the time in hours and minutes, and totals on both edges for whoever asks on Friday. Empty cells are a quiet dash, so the filled ones stand out, and today's column is shaded. On a phone the same week becomes a list of days, because a table never scrolls sideways there. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/timesheet/ *Luke Hayes's week 48, 23 to 29 November 2026, rendered from the kit's components with the demo's hours: the table, or a list of days in a narrow frame.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/timesheet/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/brightpath/cas/vykaz?jako=bp-lukas From the example app [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/). ##### What the screen shows - **The header**: "Timesheet" with the week beside it, "Week 48, 23 Nov to 29 Nov", and View, which switches between the timer, the timesheet and the calendar of the same hours. View carries a dot because the timer is the default. - **The week buttons**: previous, "This week" and next, as the one row above the table. The week lives in the address (`?tyden=2026-11-23`), so a sheet can be linked, and "This week" is disabled while the current week is on screen. - **The table**: one row per project with time that week, the client in ink, the project in grey and its identity dot; one 80px column per day, right-aligned in tabular figures; the row's total at the right edge, the day's total at the foot and the week's in the corner, 36:45 here. Today's column is shaded. - **Empty cells**: a quiet dash, which a screen reader hears as 0:00. The filled cells stand out without any colour. - **On a phone**: below 768px the table gives way to a list of days, each with its total and the projects under it, then the week's total. Nothing scrolls sideways. ##### Why the sheet is read, not typed The sheet has no inputs. Time is tracked with the timer, one bar that says what you work on and for whom and then starts, and the calendar draws the same entries block by block. The sheet adds those entries up per project and day, so the three views of a week can never disagree. Every value goes through one formatter: hours and minutes, the way people read time, in tabular figures so the columns line up. A project without time that week has no row at all, and a day without time keeps its column with a dash, so the week always reads Monday to Sunday. ##### What AI tools get wrong here Asked for a timesheet, a code generator draws a spreadsheet: an input in every cell, 0:00 in every empty one, and a table that scrolls sideways on a phone. Three things go missing: - **One source for the hours.** A grid of inputs beside a timer keeps two records of the same week, and they drift apart. In Meadowstack the sheet is computed from the time entries the timer writes and the calendar draws. - **Quiet emptiness.** A sheet full of zeros hides the few numbers that matter. An empty cell is a dash in the subtle grey with 0:00 for a screen reader, and the totals are set in medium weight. - **No sideways scrolling on a phone.** The kit's rule is that a table never scrolls sideways there. Seven day columns cannot fit 390px, so the same rows become a list of days: the table carries `max-md:hidden`, the list `md:hidden`. For tables with more columns, [DataTable](https://meadowstack.com/components/data-table/) hides the less important ones with `hideOnMobile` and folds their values into a visible cell. ##### Who sees it Everyone at the studio tracks their own time and sees the project budgets, a studio that shows the numbers to the people who spend them. A client's guest sees neither. The sheet shows the signed-in person's own week, so the demo link signs in as Luke Hayes to open his. The rules are one function asked through `can()` by the pages and again by the api ([permissions](https://meadowstack.com/patterns/permissions/)). The same people's weeks ahead are planned in the [capacity plan](https://meadowstack.com/screens/capacity-planning/). ##### How the sheet is added up *The demo builds the sheet from the time entries: seconds per project and day, rows only for projects with time, a total for each day and the week, and the quiet dash that a screen reader still hears as 0:00.* From `apps/demo/src/modules/time/pages/timesheet.tsx` in the Meadowstack repository: ```tsx const cell = (projectId: string, day: Date) => entries .filter((entry) => entry.projectId === projectId && dayKey(entry.start) === dayKey(day)) .reduce((sum, entry) => sum + entrySeconds(entry), 0); const rows = projects .map((project) => ({ project, values: days.map((day) => cell(project.id, day)) })) .filter((row) => row.values.some(Boolean)); const dayTotals = days.map((_, index) => rows.reduce((sum, row) => sum + row.values[index]!, 0)); const total = dayTotals.reduce((sum, value) => sum + value, 0); const today = days.findIndex((day) => dayKey(day) === dayKey(now)); const value = (seconds: number) => seconds ? ( formatDuration(seconds) ) : ( <> 0:00 ); ``` ##### Where else the index screen type runs *The example apps that render index screens like this one, read from the demo's source when the site was built.* | Example app | Modules | Side panel first | Decision card | History | | --- | --- | --- | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | 5 | Yes | Yes | Yes | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | 5 | Yes | Yes | Yes | | [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | 4 | Yes | No | Yes | | [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | 5 | Yes | No | Yes | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | 5 | Yes | Yes | Yes | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | 8 | Yes | Yes | Yes | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | 4 | Yes | Yes | Yes | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | 5 | Yes | Yes | Yes | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | 4 | Yes | No | Yes | Read from the demo's source when the site was built: 9 of 9 example apps render a . Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline. ##### Questions ###### Can hours be typed straight into the timesheet? No. The sheet adds up the time entries the timer records, so the timer, the sheet and the calendar always agree about a week. ###### How does the timesheet show a day without time? As a quiet dash in each cell and in the day's total, which a screen reader hears as 0:00. The days with time stand out without any colour. ###### Why is time written as 6:45 and not as a decimal? Hours and minutes are how people read time. Every value goes through one formatter in tabular figures, so the columns line up and can be compared. ###### How does the timesheet work on a phone? Below 768px the table becomes a list of days with their totals and the projects under each, then the week's total. Nothing scrolls sideways. ###### Can a week be linked? Yes. The week lives in the address as the date of its Monday, so a link opens the same week, and This week brings back the current one. ##### Related - [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) (Example app) - [A kanban task board for an agency's client work](https://meadowstack.com/screens/task-board/) (Screens) - [A resource capacity plan for an agency](https://meadowstack.com/screens/capacity-planning/) (Screens) - [AsyncState: every data view has four states](https://meadowstack.com/components/async-state/) (Components) - [DataTable: the table of every list](https://meadowstack.com/components/data-table/) (Components) - [FilterBar: the one row above a list](https://meadowstack.com/components/filter-bar/) (Components) #### A workflow canvas where a test run walks the steps An online shop order runs as steps on a canvas: a trigger, a Yes or No branch on whether the order is paid, then the invoice, the stock, the carrier and a message to the shipping channel, each step named with its system. A test run plays the steps back one by one and leaves its path on the canvas with the skipped branch dashed, and on a phone the same steps read as lists. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/workflow-canvas/ *The scenario Online shop order of the demo's roastery with its newest run on the canvas at 100 % (the demo first fits the whole scenario to its window), rendered when the site was built from the kit's own components, with the demo's data.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/workflow-canvas/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/fernhill/scenare/objednavka-z-eshopu From the example app [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/). ##### What the screen shows The roastery's scenario for an online shop order, as the owner sees it: - **The trigger**: every new order from the shop. - **The branch**: "Paid in advance?" with two outputs. Yes issues the invoice, reserves the coffee from the roasted shelf, books a pickup with the carrier and posts what to pack to #shipping. No sends the payment details, waits 3 days and sends a reminder when the payment has not arrived. - **The systems**: each step carries its system's name, icon and identity hue (Online shop, Invoicing, Stock, Carrier, Slack, Email); a condition and a wait name no system. Systems are named, never drawn with a vendor's logo. - **The header**: the eyebrow "Scenario", the scenario's name and its state as a glyph with a word. "Run test" is the primary action; the switch and the display menu (Canvas or Steps) are the two secondary ones. - **The runs and the history**: the newest runs, each named by the order that started it, and the history with who edited, switched on and created the scenario. ##### A test run walks the canvas A test asks the server once, and the answer holds every step's result. The page then plays the run back one step at a time: each step shows for its real time, at least 450 ms so the eye can follow and at most 1.1 s so a slow carrier call does not stall the show. The run then stays on the canvas, the path it took in ink and the branch it skipped dashed, until another run is chosen from the list. When the last run failed, the scenario opens on that run, so the failed step is the first thing seen. In the demo's data, the run for order FH-2026-1039 stopped at "Book a pickup", and its note says what to do: the carrier did not respond within 30 seconds, book the pickup by hand. ##### The rules the canvas keeps The canvas is the kit's `FlowCanvas` inside a `Screen` with the canvas archetype and a full plate ([the canvas pattern](https://meadowstack.com/patterns/canvas/)): - **Zoom from 25 % to 200 %**: the first view fits the whole scenario but never above 100 %, and it keeps fitting as the window changes until someone moves the view. Cmd or Ctrl+0 fits it again. - **Steps snap to 8px** when they are moved, and only people the permission table lets edit may move them: the owner and operations. The same two switch a scenario on or off, wholesale may also run a test, and everyone else reads ([permissions](https://meadowstack.com/patterns/permissions/)). - **The switch answers at once**: it changes before the server does and takes its turn, so a quick off and on lands as the last one. Switched off, the toast says "The scenario is off. Its trigger will not start it now." - **Under 768px the steps are lists** (`FlowOutline`): the same nodes and links, branch under branch, with the same statuses. On a wider screen the display menu offers the same lists as Steps. ##### What AI coding tools get wrong here - **A diagram library pulled in**: React Flow or another library, restyled to look like the app, with its own handles, minimap and colours. The kit's manifest names `FlowCanvas` as what replaces it, so a tool that reads the manifest draws with the kit. - **Runs in a separate log**: a table of runs on another page, where nobody sees which branch an order took. Here a run is drawn on the steps it walked. - **A canvas a phone cannot read**: a diagram to pan with a finger at 390px. Here a phone gets the steps as lists. - **A fit without a ceiling**: fit to view that blows a short scenario up to fill the screen. Here the first view stops at 100 %. ##### The canvas, the steps and the side column *The demo draws the steps on the kit's FlowCanvas, or as FlowOutline lists for the Steps view and on a phone, with the runs and the history in an aside beside the canvas from 1024px and under it below. Moving a step is passed only to people who may edit.* From `apps/demo/src/modules/scenarios/pages/scenario-detail.tsx` in the Meadowstack repository: ```tsx
) : ( {/* On a phone the failure comes first: it is what the person came for. */} {!desktop && !step && shownRun?.status === "failed" ? (
) : null} select(id === stepId ? null : id)} className="max-w-2xl" />
)} ``` ##### What the kit's manifest says about FlowCanvas *The entry an AI coding tool reads through the kit's MCP server before it draws a canvas.* | Manifest field | FlowCanvas | | --- | --- | | What it is | A scenario drawn as steps on an endless canvas that pans and zooms; FlowOutline gives the same as lists. | | Use it for | Workflows and automations with branches. | | Not for | For a straight list of steps (WorkSteps, Checklist) | | It replaces | React Flow or another diagram library; A hand-built canvas | | Screen types | Canvas; Workspace | | Import | `import { FlowCanvas, FlowOutline } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Questions ###### Does the workflow canvas use React Flow? No. It is the kit's FlowCanvas, made for workflows with branches: steps as cards, links with Yes and No outputs, pan, zoom and snapping. The kit's manifest names it as the replacement for React Flow or another diagram library, so an AI coding tool that reads the manifest reaches for it. ###### How does a test run show on the canvas? The page plays the run back step by step, each step for its real time between 450 milliseconds and 1.1 seconds. Afterwards the path it took stays in ink and the skipped branch dashed, until another run is chosen. ###### What happens when a run fails? The scenario opens on the failed run, so the failed step is the first thing seen, with its note and a way to open the step. In the demo, one order's run stopped at the carrier step because the carrier did not respond within 30 seconds, and the note says to book the pickup by hand. ###### Who can change a scenario? In the demo, the owner and operations switch scenarios on and off and move their steps, and wholesale may also run a test. Everyone else at the roastery sees the scenarios and their runs without those controls. ###### Can the workflow canvas be used on a phone? Yes. Under 768px the steps read as lists, one branch under the other, with the same statuses; on a wider screen the display menu offers the same lists as Steps. ##### Related - [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) (Example app) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) - [Defects pinned on the drawing, carried across revisions](https://meadowstack.com/screens/defects-on-drawings/) (Screens) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A proof the customer approves in their own portal](https://meadowstack.com/screens/proof-approval/) (Screens) #### An invoice form that shows its totals as you type The form holds the client and dates, the lines and a note, with the base, the VAT per rate and the total to pay in a summary beside them that changes as you type. Choosing the client fills in its usual payment terms, and the due date is spelled out under the number of days. A draft has no number yet: an accountant gives it one when the invoice is issued. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/invoice-form/ *Kestrel's invoice draft opened for an edit, rendered from the kit's own components when the site was built: two lines, the summary beside them and Save draft in the sticky footer.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/invoice-form/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/kestrel/fakturace/inv-60/upravit From the example app [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/). ##### What the screen shows - **Client and dates**: the client picker with the company number, the address and the usual payment terms under it, New client below it, then the issue date and the payment terms in days with the due date spelled out under them. - **Lines**: description, quantity, unit, unit price, VAT rate and the line's total without VAT, a button to remove the line, and Add line under the list. - **The summary**: the base, the VAT per rate and the total to pay, in a card beside the fields from 1024px, changing as you type. - **The footer**: Cancel and Save draft, sticky under the form. On a phone the summary moves under the fields and the total to pay sits beside the buttons, so the amount stays in view. ##### The rules behind the fields One zod schema holds every rule and its message, and react-hook-form shows the errors after the first submit, then live as each one is fixed. A message says what to do ("Enter the quantity."), never "Invalid value". Required fields carry no asterisk and the one optional field, the note, is marked optional, because nearly everything here is required: [Field](https://meadowstack.com/components/field/) takes `requiredMark={false}` and `optional` for exactly this case, and sets `aria-required` either way. Choosing a client sets the payment terms, unless the person already typed their own. Leaving with unsaved changes asks first (Leave without saving?, with Leave and Stay) through the router's blocker and the kit's confirm, and a reload or a closed tab gets the browser's own question. A client who is not there yet is added in a dialog from the form and chosen at once. ##### Where the layout comes from It is the kit's form archetype (`Screen archetype="form"`, the [form pattern](https://meadowstack.com/patterns/form/)). Given a `summary`, the frame widens to 960px and the summary becomes the side column. The fields, the summary and the footer are separate regions, so Save reaches the form element through its `form` attribute, and the only scroll is the Screen's. The new invoice form is the form sample that `e2e/screens.spec.ts` opens at 1440 and 390, light and dark: the page itself never scrolls on a desktop, no scrolling region sits inside another, and axe finds nothing serious or critical. ##### What AI tools tend to get wrong here A generated invoice form tends to put the total at the bottom of a long page, mark every field with a red asterisk, validate from the first keystroke and drop the lines when someone clicks away. It also tends to move the submit button into a sticky footer outside the form element, where it does nothing. Here the total stays in view on a desktop and on a phone, the messages wait for the first submit, the one optional field is the one marked, leaving asks first, and the button outside the form is tied to it with `form`. ##### The form's rules and their messages *The rules of the form's zod schema with the messages the demo shows (modules/invoicing/pages/invoice-form.tsx).* | Field | Rule | Message | | --- | --- | --- | | Client | Required | Choose a client. | | Issue date | Required | Enter the issue date. | | Due in (days) | A whole number from 0 to 120 | Enter the number of days. Enter a whole number. The payment terms cannot be negative. At most 120 days. | | Note on the invoice | Optional, up to 500 characters | The note can have at most 500 characters. | | Description | Required, up to 200 characters | Enter what is being invoiced. The description can have at most 200 characters. | | Quantity | More than zero, up to 10,000 | Enter the quantity. Enter a quantity greater than zero. At most 10,000. | | Unit | One of pcs, hrs, mo. and staff | Choose a unit. | | Unit price | More than zero | Enter the price. Enter a price greater than zero. | | VAT | One of the rates that exist | Choose a VAT rate. | | Lines | At least one | Add at least one line. | ##### Questions ###### When do the error messages appear? After the first press of Save, then live as each field is corrected. Each message says what to do, such as Enter the quantity. ###### Why do the required fields have no asterisk? Nearly every field is required, so the form marks the exception instead: the note is marked optional. The kit's Field hides the asterisk with requiredMark set to false, shows the word with optional, and tells screen readers which fields are required either way. ###### What happens when I leave with unsaved changes? The app asks first, Leave without saving?, with Leave and Stay. A reload or a closed tab gets the browser's own question. ###### Why does the draft have no number? The number is given when an accountant issues the invoice, so a draft says No number yet in its header and in the crumbs. ###### How does the form work on a phone? The summary moves under the fields and the total to pay sits in the sticky footer beside Cancel and Save draft, so the amount stays in view while you type. ##### Related - [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) (Example app) - [The form screen](https://meadowstack.com/patterns/form/) (Patterns) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) - [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens) - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens) - [A packaging quote that works out its price as you type](https://meadowstack.com/screens/quote-form/) (Screens) #### An order record with its decision An order opens as a record: the customer is its title, the order number a small eyebrow above it, the status a glyph with its word. Beside it sit the decision card with Reject and Approve and the history with every change and comment. Checked 1 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/order-record/ *The order detail rendered when the site was built, from the kit's own components, with the demo's data.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/order-record/ ##### What the screen shows - **The record**: a tile for what it is, the order number as a small eyebrow, the customer as the title, the status, then the properties. - **The decision**: Reject and Approve on a card at the top of the side column. Rejecting always asks for a reason, and nobody approves their own record. - **The history**: every change with the person who made it, and a comment as a filled bubble. Entries are labels without a subject: "Approved" and the person beside it. ##### How it opens From its list, an order opens beside the list first, in a side panel (`RecordPeek`); the corner button expands it to the full page and back. Both use one view component, so the panel and the page never drift apart. From 1024px the decision heads the side column. On a phone it comes before the title, because the decision is what a person opened the order for. ##### The rules behind it It is a record screen, one of the kit's 9 screen types: [the record pattern](https://meadowstack.com/patterns/record/) has its anatomy and rules. A decision is a card, never a coloured banner, and the status is a glyph beside a word, never a coloured pill ([StatusLabel](https://meadowstack.com/components/status-label/)). ##### Where to open a record screen *The example apps whose code renders a record screen, read from the demo's source.* | Example app | Modules | Side panel first | Decision card | History | | --- | --- | --- | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | 5 | Yes | Yes | Yes | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | 5 | Yes | Yes | Yes | | [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | 4 | Yes | No | Yes | | [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | 5 | Yes | No | Yes | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | 5 | Yes | Yes | Yes | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | 8 | Yes | Yes | Yes | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | 4 | Yes | Yes | Yes | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | 5 | Yes | Yes | Yes | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | 4 | Yes | No | Yes | Read from the demo's source when the site was built: 9 of 9 example apps render a . Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline. ##### Questions ###### Is the order screen a screenshot? No. It is rendered when the site is built, from the same kit components an app imports, and shown as static HTML with the demo's data. ###### Where does the decision card go on a phone? Above the title. On a phone the decision a person came for comes first; from 1024px it heads the side column beside the record. ###### Can someone approve their own order? No. Nobody approves their own record, and rejecting always needs a reason. The [Supabase recipe](https://meadowstack.com/integrations/supabase/) enforces the same rule in the database. ##### Related - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/) (Screens) - [AuditTimeline: a record's history and comments](https://meadowstack.com/components/audit-timeline/) (Components) - [The approval flow](https://meadowstack.com/patterns/approval-flow/) (Patterns) - [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) #### Bank lines matched to the documents they paid Each line of this morning's bank statements carries the document it most likely paid, how sure the match is in a word and the reasons behind it. A payment smaller than what is left to pay is a part payment, and the line says what will stay open. One action in the header confirms the certain matches, and the rest are confirmed line by line. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/bank-reconciliation/ *Kestrel's bank lines rendered from the kit's own components when the site was built: six payments waiting for a confirmation, each with its suggestion.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/bank-reconciliation/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/kestrel/doklady/banka From the example app [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/). ##### What the screen shows - **The lines that wait**: To confirm, the first of four views (To confirm, No document, Handled, All), with the payments from the statements imported this morning, newest first. Each shows the counterparty as the bank wrote it, the client, the day, the account, the reference and the amount with a real minus. - **The suggestion**: the document the payment most likely paid, a glyph and a word for how sure the match is (certain, likely, possible) and the reasons in plain words, such as "same payment reference, account from the document and supplier's name". - **Part payments**: the line says how much of the document it pays and what will be left; a payment of the rest says what was left before it. - **The actions**: Confirm on each line, and the menu beside it for the rest: match by hand from the client's open documents, turn the suggestion down, or say that no document will come, for a fee or a private payment. The header's one action confirms every certain match and says how many there are. ##### Why a part payment is never certain The rules are one pure function in the module's domain (`matching.ts`) that the api and the page share. The signals, strongest first: the same payment reference, the account the document asks to be paid to, the amount still to pay, the supplier's name in the bank's text. A certain match needs the reference plus the amount or the account. A part payment stops at likely, because somebody should see that the document stays open for the rest, and a suggestion somebody turned down is not offered again. Every confirmation changes the list at once, goes into the history of the line and of the document ([audit trail](https://meadowstack.com/patterns/audit-trail/)), and its toast has Undo. With one client chosen, the client's account stands above the lines: the bank, the masked IBAN to reveal or copy, this morning's closing balance and how many lines still wait. ##### What AI tools tend to get wrong here A generated reconciliation screen usually sets two tables side by side, bank lines and invoices, gives each pair a match score in percent and offers a button that matches everything above a threshold. A percentage does not say why, and a threshold confirms part payments as if they were whole. Here the suggestion sits on the bank line with its reasons in words, the level comes from named signals, and the one bulk action takes only the certain matches. The screen is the kit's index archetype ([list](https://meadowstack.com/patterns/list/)): one primary action in the header and the views in the one row under it, since the audit's `segmented-in-header` rule fails a `SegmentedControl` inside a screen's header. Bank statements are for the people who keep the books: the assistant, who records the documents that come in, sees `NoAccess` under the title ([permissions](https://meadowstack.com/patterns/permissions/)). ##### How sure a suggestion is *The levels as the documents module computes them (domain/matching.ts in the demo). The supplier's name is shown among the reasons but never changes the level.* | Suggestion | When the rules give it | What a person does | | --- | --- | --- | | Certain match | The payment reference, plus the amount still to pay or the account the document asks to be paid to | Confirms it on its line, or with every other certain match through the header's action | | Likely match | The amount still to pay and the account without the reference, or a part payment with the reference | Confirms it on its line | | Possible match | The amount still to pay without the reference or the account, or a part payment with only the account | Confirms it on its line | | No suggestion | Neither the amount still to pay nor a part payment with the reference or the account behind it | Matches it by hand from the client's open documents, or marks it as a payment no document will come for | ##### Questions ###### Does the app confirm matches by itself? No. Every match waits for a person: Confirm on its line, or the header's action, which confirms every certain match at once and says how many there are. ###### How is a part payment handled? A payment smaller than what is left to pay, with the payment reference or the account behind it, is a part payment. It is never a certain match, the line says what will be left, and the document stays open for the rest. ###### What if a payment has no document? The menu beside Confirm matches it by hand from the client's open documents, turns the suggestion down, or marks it as a payment no document will come for, such as a bank fee. A line still without a document leads to the client's reminders. ###### Who can see the bank lines? The people who keep the books. The assistant, who records documents as they come in, sees a no-access notice under the title, and a client sees in their portal only the payments of their own account that still need a document. ###### Where do the bank lines come from? From the clients' bank statements, imported every morning as ABO or CAMT.053 files. The header says which format came and when. ##### Related - [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) (Example app) - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens) - [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A fleet cost report that ranks every truck](https://meadowstack.com/screens/fleet-costs/) (Screens) - [A kitchen's food safety day, kept by the clock](https://meadowstack.com/screens/food-safety-checks/) (Screens) #### Closing the till at the end of a shift At the end of a shift the app works out what should be in the drawer from the shift's own sales: the starting cash, cash sales and hire fees, cash deposits taken, less cash deposits given back. The person at the desk types only the count, sees the difference at once, and gives a reason before a shift that is off can close. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/till-close/ *The demo's open shift at 10:24 with a count typed short, rendered from the kit when the site was built: the difference shows and the reason field has appeared.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/till-close/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/riverside/pujcovna/uzaverka From the example app [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/). ##### What the screen shows - **The headline**: what the shift took and how many hires are still out, the sentence every overview opens with. - **The open shift**: who opened it and when, then four figures: takings with the number of sales, cash, card with what is held on cards (a hold is not takings), and the deposits in the drawer for the hires still out. - **Count the cash** beside **Cash in the drawer**: one field for the count, what should be there, the difference, and Close the shift. - **Shifts**: every shift with its takings and its difference, the running one on top, and the shift's history beside them. ##### Worked out, not typed The drawer is arithmetic nobody at the desk has to do: | Line | Why it is there | | --- | --- | | Starting cash | The float the shift opened with. | | plus cash sales and hire fees | Card payments never touch the drawer. | | plus cash deposits taken | A deposit is not takings, but its cash sits in the drawer until the things come back. | | less cash deposits given back | Less the part kept for damage, which became takings. | | Should be in the drawer | What the count is compared with. | A deposit paid by card is a hold, released when the things are back, and a sale cancelled in its own shift never happened for the till. These rules are pure functions in the rentals module's `domain/till.ts`, shared by the sale screen, the stock page, the close and the api, and pinned by unit tests in `apps/demo/test/rentals-till.test.ts`. Every sum is rounded to the penny (`cents()`), because to a float three times 0.6 is not 1.8. ##### The count and the close - The only thing typed is the count. The field's placeholder is the expected amount, and the difference shows as it is typed: Matches, Short by or Over by. - A count that is off brings up "Reason for the difference", and the shift does not close without it. - Close the shift is the form's ink button. After it nothing can be sold or hired in that shift, and the closed shift keeps its report: counted, expected, the difference, the reason and who closed it. - Only the site manager opens a closed shift again (`rental.shift.reopen`). The front desk opens and closes shifts but never reopens one; `e2e/riverside-rentals.spec.ts` closes a shift as the desk with a difference and a reason, then reopens it as the manager. ##### Who sees which shifts The front desk sees its own shifts, and the table says so; the site manager sees every cashier's (`rental.shift.all`), so the table gains a Cashier column. The [data table](https://meadowstack.com/components/data-table/) hides columns by its own width, not the screen's: beside the count form the expected and counted amounts give way and the difference stays, and where it is narrower the cashier folds under the shift's name. On a phone the count comes first and the history after it, because the count is what the person came for. ##### What AI coding tools get wrong here Asked for a cash-up screen, a coding assistant tends to give the cashier an Expected field to fill in, add card payments to the cash, count deposits as takings, add money as floating point and round it only on screen, and let anyone press Close whatever the count says. In Meadowstack the figures come from one domain file that the screen, the api and the tests share; a drawer keeps its pence whatever the amount (the rentals module's `money()`, where a price list may drop them); the screen asks `can()` and the rules live in `domain/permissions.ts`; and an [overview](https://meadowstack.com/patterns/overview/) cannot leave out its headline, a required prop of the screen type, so the screen opens with what the shift took. The close itself is a [form](https://meadowstack.com/patterns/form/) with one field and one ink button, and every change of a shift lands in its [history](https://meadowstack.com/patterns/audit-trail/). ##### The drawer, worked out *From the demo's till rules: deposits handed back, sales split by payment, and the cash that should be in the drawer, every sum rounded to the penny.* From `apps/demo/src/modules/rentals/domain/till.ts` in the Meadowstack repository: ```ts const returns = sales.filter( (sale) => sale.status === "paid" && sale.hire?.status === "returned" && sale.hire.returnedShiftId === shift.id, ); const charge = (sale: Sale) => sale.hire?.charge ?? 0; const chargesCash = sum(byPayment(returns, "cash"), charge); const chargesCard = sum(byPayment(returns, "card"), charge); const salesCash = sum(byPayment(paid, "cash"), saleFee); const salesCard = sum(byPayment(paid, "card"), saleFee); const depositsInCash = sum(byPayment(paid, "cash"), saleDeposit); const depositsOutCash = sum(byPayment(returns, "cash"), (sale) => saleDeposit(sale) - charge(sale)); const heldNow = sales.filter((sale) => isOutAt(sale, at)); return { salesCash, chargesCash, revenueCash: cents(salesCash + chargesCash), revenueCard: cents(salesCard + chargesCard), revenue: cents(salesCash + chargesCash + salesCard + chargesCard), salesCount: paid.length, cancelledCount: cancelled.length, cancelledTotal: sum(cancelled, (sale) => saleFee(sale) + saleDeposit(sale)), depositsInCash, depositsOutCash, cardHoldsPlaced: sum(byPayment(paid, "card"), saleDeposit), charges: cents(chargesCash + chargesCard), depositsHeld: sum(byPayment(heldNow, "cash"), saleDeposit), cardHolds: sum(byPayment(heldNow, "card"), saleDeposit), float: shift.float, expectedCash: cents(shift.float + salesCash + depositsInCash - depositsOutCash), ``` ##### Where to open an overview screen *The example apps whose code renders an overview screen, read from the demo's source.* | Example app | Modules | Side panel first | Decision card | History | | --- | --- | --- | --- | --- | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | 5 | Yes | Yes | Yes | | [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | 4 | Yes | No | Yes | | [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | 5 | Yes | No | Yes | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | 5 | Yes | Yes | Yes | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | 8 | Yes | Yes | Yes | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | 4 | Yes | Yes | Yes | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | 5 | Yes | Yes | Yes | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | 4 | Yes | No | Yes | Read from the demo's source when the site was built: 8 of 9 example apps render a . Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline. ##### Questions ###### Does the cashier type the expected amount? No. The app works out what should be in the drawer from the shift's sales. The cashier types only what they counted, and the expected amount is the field's placeholder. ###### What happens when the count does not match? The difference shows as soon as the count is typed, short or over, and a field for the reason appears. The shift does not close until the reason is written. ###### Do card payments count towards the cash in the drawer? No. Card takings and deposit holds on cards never touch the drawer. The figures show them apart, and a hold is not counted as takings. ###### Can a closed shift be opened again? Only by the site manager. The front desk opens and closes shifts, and after a close nothing can be sold or hired in that shift until the manager reopens it. ###### Why are the till's sums rounded to the penny? Because floating point does not add money exactly: to a float, three times 0.6 is not 1.8. Every sum in the till's rules is rounded to the penny, and a unit test checks that very case. ##### Related - [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) (Example app) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) - [A fleet cost report that ranks every truck](https://meadowstack.com/screens/fleet-costs/) (Screens) - [A kitchen's food safety day, kept by the clock](https://meadowstack.com/screens/food-safety-checks/) (Screens) - [A month close that knows what each step waits for](https://meadowstack.com/screens/month-end-close/) (Screens) - [Bank lines matched to the documents they paid](https://meadowstack.com/screens/bank-reconciliation/) (Screens) #### Court bookings on a timeline you drag The front desk of a sports club sees the day as a timeline: a row for each court, a block for each booking and a line for the time now. A booking moves by dragging it to another time or court, or with the arrow keys, and the timeline refuses a place where another booking already is. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/court-bookings/ *The Riverside desk's day at 10:24 as the demo shows it, rendered from the kit when the site was built: seven courts, the day's bookings and two closures.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/court-bookings/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/riverside/recepce From the example app [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/). ##### What the screen shows - **The header**: the day and Close a court. The primary action, New booking, sits quiet in the app's top bar, which this frame leaves out. - **One row under it**: the day's arrows, Today, and the Display button that switches between the timeline and a list. - **Four figures**: how full the courts are (of the open court time, closed time left out), the bookings without the cancelled ones, how many still pay at the desk, and how many bookings are on court now. - **The timeline**: a 52px row per court with its surface, 7:00 to 22:00 at 120px an hour, and a block per booking with the member and one word. Confirmed is tinted in the court's colour with a solid edge, unpaid is dashed and pale, a checked-in booking adds a check, a cancelled one is struck through in grey, and closed time (clay maintenance, a lighting repair) is striped grey. The time now is an ink line with its time on it, under the blocks. ##### Every booking is a block you can move The kit's rules ask every planning view (bookings, a rota, machines) to be an editor, not a picture, and this one is: - Drag a block sideways for another time, up or down for another court, or its right edge to make it longer. Its new times are written on it while it moves; over another booking it turns red with the reason and goes back when let go. - Drag in an empty stretch to draw a new booking: the booking form opens with that court and time filled in. A click there makes it an hour. - From the keyboard the blocks are buttons in time order: the arrows move a booking by the 30-minute step, Shift and an arrow by an hour, up and down to another court, and Enter opens it. Every move is announced. - After a move a toast says where the booking went, with Undo. A move shows at once and the server answers later, so a held arrow key sends several moves of one booking before the first answer is back. Written into the day as they arrive, an older answer would put the booking back for a moment. The screen takes a turn for each booking (`useTurns`), so only the newest answer lands; the end-to-end test "moves that come faster than the network answers never step the booking back" in `e2e/desk.spec.ts` holds it there. ##### Who can move what The screen asks `can("desk.book")` before it hands the timeline `onMove` and `onCreate`. Without them the timeline draws nothing to drag, so a booking that cannot move simply has no handler. The site manager and the front desk book and move; the court keeper reads the day, closes a court for maintenance and opens it again, but cannot book, move, take a payment or cancel. The rules live in the module's `domain/permissions.ts`, never in a component, and the court keeper's limits have their own end-to-end test. ##### On a phone A 15-hour timeline does not fit 390px usefully. Under 768px the day is a list by court and time with the same words, a booking opens as a sheet from the bottom, and the Display button goes. The four figures stay on top. The screen above does the same at a phone's width. ##### What AI coding tools get wrong here Asked for a booking calendar, a coding assistant usually draws a grid of absolutely positioned divs and adds a drag library: no keyboard, an overlap found only when the server says no, a block that jumps back when two answers cross, and a page that scrolls sideways on a phone. In Meadowstack the timeline is one kit component, [ResourceTimeline](https://meadowstack.com/components/resource-timeline/), which the kit's manifest names for bookings or machine time across resources within a day, in place of a hand-built timeline grid. The repository's lint stops an app from importing `@dnd-kit` or `motion` itself, and the rule that planning views are editors (drag, quick add, the same from the keyboard) sits in the instructions every coding agent reads. The [planning editor pattern](https://meadowstack.com/patterns/planning-editor/) has the rules; the [workspace pattern](https://meadowstack.com/patterns/workspace/) the screen around them. ##### How the demo calls the timeline *The bookings screen hands the timeline its courts and blocks, and passes onMove and onCreate only to a person who may book.* From `apps/demo/src/modules/desk/pages/bookings.tsx` in the Meadowstack repository: ```tsx ({ id: court.id, label: court.name, hint: court.surface, hue: court.hue, }))} blocks={blocks} day={day} startHour={7} endHour={22} selectedId={selectedId} onSelect={(id) => view.bookings.some((item) => item.id === id) ? setParam("rezervace", id) : undefined } onMove={can("desk.book") ? (id, courtId, start, end) => void move(id, courtId, start, end) : undefined} onCreate={ can("desk.book") ? (courtId, start, end) => setCreating({ courtId, start, minutes: (new Date(end).getTime() - new Date(start).getTime()) / 60_000, }) : undefined } /> ``` ##### What the kit says about the timeline *The component's entry in the kit's manifest, read when the site was built.* | Manifest field | ResourceTimeline | | --- | --- | | What it is | Resources (courts, machines, rooms) as rows with blocks over a day's hours, dragged and resized. | | Use it for | Bookings or machine time across resources within a day. | | Not for | For a project over weeks (GanttChart); For people by day (ScheduleGrid) | | It replaces | A hand-built timeline grid | | Screen types | Workspace | | Import | `import { ResourceTimeline } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Questions ###### Can a booking be moved by dragging? Yes. Drag it sideways for another time, up or down for another court, or drag its right edge to make it longer. Its new times are written on it while it moves, and a toast with Undo says where it went. ###### What stops two bookings on the same court at the same time? The timeline itself. Over another booking the block turns red with the reason and goes back when let go, and an arrow key refuses the same step. Closed time is a block too, so nothing lands on a court that is shut. ###### Can bookings be moved without a mouse? Yes. Every booking is a button: the arrows move it by half an hour, Shift and an arrow by an hour, up and down to another court, and Enter opens it. Each move is announced to a screen reader. ###### What does the booking calendar show on a phone? A list of the day's bookings by court and time, each with the member and one word for its state. A booking opens as a sheet from the bottom of the screen. ###### What happens to the bookings when rain closes the clay courts? In the demo the assistant proposes moving the clay courts' bookings to the indoor court, at the same time where it is free, with a text to each player. The desk confirms, and the moved bookings show on this timeline with their history. ##### Related - [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) (Example app) - [One inbox for every member's message](https://meadowstack.com/screens/shared-inbox/) (Screens) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/) (Screens) - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens) - [A resource capacity plan for an agency](https://meadowstack.com/screens/capacity-planning/) (Screens) #### Defects pinned on the drawing, carried across revisions The drawing screen puts a site's defects, questions for the designer and photos on the sheet as numbered pins, each disc in the colour of its state, with the same pins in a list beside it. When a new revision is uploaded, the open pins move onto it and the closed ones stay behind, greyed. A pin opens in a side panel, so the drawing and the list stay in view. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/defects-on-drawings/ *Drawing A-102 of Halifax health centre at revision C with its ten pins, as the managing director sees it, rendered from the kit's components with the demo's data on 2 December 2026.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/defects-on-drawings/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/stonebridge/vykresy/nac-a1 From the example app [An app for a construction company](https://meadowstack.com/examples/construction-site-management/). ##### What the screen shows - **The header**: the drawing's number as a small eyebrow, its title, "Valid revision C" with a check, then "Add a pin" and "Upload a revision". - **The drawing**: the sheet of the current revision on the kit's `PinBoard`, which pans and zooms, with the revision switch in one corner and the zoom buttons in the other. The sheet marks what revision C changed with a cloud and the letter. - **The pins**: numbered discs on the sheet. The disc takes the tone of the pin's state, the same word the list shows beside it, and a pin that belongs to another revision is grey. - **The list** beside the drawing: tabs for Pins and Revisions with their counts, the kind of pin (All, Defects, Questions, Photos) and the state, then each pin with its number, title, code, state and place, such as "1.03 Paediatric surgery, by axis B/3". On a phone the drawing comes first and the list under it, in the screen's one scroll ([canvas pattern](https://meadowstack.com/patterns/canvas/)). ##### Revisions: open pins move on, closed ones stay behind The newest revision is the valid one. An older revision opens as it was, its pins greyed and nothing added to it, and its header says "Revision B is superseded by revision C". When a revision is uploaded, every open pin is carried onto it: a defect not yet accepted, a question without an answer. Closed pins and photos stay on the revision they belong to and show greyed on the newer ones, so the history stays on the sheet without competing with the work still open. On A-102, pins 1 to 4 (an answered question, a photo and two accepted defects) are grey on revision C; 5 to 7 are being fixed and 8 to 10 are open. ##### Adding a pin and opening one "Add a pin" turns the board into a crosshair: a click drops the pin and a short form opens in the side panel, and Escape stops. A drag that moved the drawing never drops a pin. A pin opens in a [RecordPeek](https://meadowstack.com/components/record-peek/) beside the drawing (`?nahled=` and the pin), so the board and the list stay usable. While the panel is open on a wide screen, the list gives way to a strip of numbered discs beside the board, so no pin hides under the panel. The kind and state filters live in the address too (`?druh=`, `?stav=`) and apply to the list and the board at once. Pins are stored as fractions of the sheet, from 0 to 1, so a pin lands on the same spot at any size, and the discs keep their size at any zoom. Every pin is a button named by its number and title, so the pins can be walked with Tab; the board pans with the arrow keys and zooms with the plus and minus keys when it has focus. ##### Who may do what, and by when The rules sit in the module's `domain/permissions.ts` and the api asks again before it saves ([permissions pattern](https://meadowstack.com/patterns/permissions/)): - The owner and the site managers do everything. - The foreman drops pins and photos and marks a fix done. - The client's supervisor sees the drawings and pins of his own sites only, asks the designer and accepts fixes. - The office and the estimator only read. - Four eyes: a fix is accepted by somebody other than the person who marked it done. The deadlines come from one file, `domain/rules.ts`: a defect found during the build is due in 14 days unless the manager sets another day, a question to the designer is answered within 5 working days, and defects from a handover are removed within 21 days. ##### The snag list behind the pins Defects and snags is the same defects of a site as a table for the handover protocol: the number, the defect and its place on the drawing, the category (Preventing use or Minor), who fixes it, the deadline and the state, built on the kit's [DataTable](https://meadowstack.com/components/data-table/). A summary above it counts the defects by category and state for the protocol. "Hand over" sends the selected open defects to their fixers and says how many of the selection it applies to ([bulk bar](https://meadowstack.com/components/bulk-bar/)). Each row links to its pin on the drawing, and a defect opens beside the list like any record. ##### What AI coding tools get wrong here - **Markers placed in pixels.** A generated plan view puts absolutely positioned markers over an image, which drift as soon as the image scales. `PinBoard` keeps pins as fractions of the drawing and keeps their size at any zoom. - **Colour by kind.** Red for defects and blue for questions says nothing about what needs doing. Here the disc carries the state, the same word as in the list ([StatusLabel](https://meadowstack.com/components/status-label/)), and what is closed turns grey. - **One sheet, no revisions.** Pins stuck on a single image are lost when the drawing changes. Here a pin belongs to the revision it was dropped on, and the open ones move on to the next. - **A pin on its own page.** Opening a pin that replaces the drawing loses where it was. The pin opens beside the board, and from the snag list the panel's corner button takes it to its drawing, which is the pin's full page ([record side panel](https://meadowstack.com/patterns/record-side-panel/)). ##### Which pins a revision shows, and one list for the board and the list *From the demo's drawing screen. A pin shows from the revision it was dropped on, the counts of the kind filter read the same pins, and one filtered list feeds the board, the list beside it and the panel's previous and next, so a filter cannot hide a pin in one and keep it in the other. The pin open in the panel stays shown whatever the filters say.* From `apps/demo/src/modules/drawings/pages/drawing-detail.tsx` in the Meadowstack repository: ```tsx // A pin exists on a revision from the one it was dropped on; the ones that // live on another revision (closed ones left behind, carried ones seen on // an older sheet) are greyed. const onRevision = useMemo(() => pins.filter((pin) => pin.createdRevision <= viewing.letter), [pins, viewing.letter]); const counts = { all: onRevision.length, defect: onRevision.filter((pin) => pin.kind === "defect").length, question: onRevision.filter((pin) => pin.kind === "question").length, photo: onRevision.filter((pin) => pin.kind === "photo").length, }; const shown = useMemo( () => onRevision .filter( (pin) => ((!kindFilter || pin.kind === kindFilter) && matchesState(pin, stateFilter)) || pin.id === peekId, ) .sort((a, b) => a.number - b.number), [onRevision, kindFilter, stateFilter, peekId], ); const isFiltered = kindFilter !== null || stateFilter !== "all"; ``` ##### Questions ###### Can the foreman add defects from a phone? Yes. The foreman may drop pins and photos on his site's drawings and mark a fix done, and on a phone the drawing comes first with the list of pins under it. Accepting the fix is somebody else's step. ###### What happens to the pins when a new revision of the drawing arrives? The open pins move onto the new revision. Closed pins and photos stay on the revision they belong to and show greyed on the newer ones, and an older revision opens as it was, with nothing added to it. ###### Can the client's supervisor see the defects of other sites? No. He sees the drawings and pins of his own sites only, and a pin of another site opened by its address is refused as well. On his sites he asks the designer and accepts fixes. ###### Who confirms that a defect is fixed? Somebody other than the person who marked it fixed: a site manager, the owner or the client's supervisor. The rule sits in the module's permissions file, and the api checks it again before it saves. ###### Do the pins stay in place when the drawing is zoomed or resized? Yes. Each pin is stored as a fraction of the sheet's width and height, so it lands on the same spot at any size, and the discs keep their size at any zoom so they stay easy to tap. ##### Related - [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) (Example app) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A site diary day, prefilled and signed by the right person](https://meadowstack.com/screens/site-diary/) (Screens) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) - [A workflow canvas where a test run walks the steps](https://meadowstack.com/screens/workflow-canvas/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (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. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/shared-inbox/ *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.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/shared-inbox/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/riverside/recepce/zpravy From the example app [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/). ##### 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: `` lays out the list, the thread and the reply box and decides what a phone shows ([the inbox pattern](https://meadowstack.com/patterns/inbox/)). [Composer](https://meadowstack.com/components/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](https://meadowstack.com/components/status-label/)). 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 *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.* From `apps/demo/src/modules/desk/components/conversation.tsx` in the Meadowstack repository: ```tsx { 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.", ), ); }} /> ``` ##### Where to open an inbox screen *The example apps whose code renders an inbox screen, read from the demo's source.* | Example app | Modules | Side panel first | Decision card | History | | --- | --- | --- | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | 5 | Yes | Yes | Yes | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | 5 | Yes | Yes | Yes | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | 5 | Yes | Yes | Yes | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | 5 | Yes | Yes | Yes | Read from the demo's source when the site was built: 4 of 9 example apps render a . 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. ##### Related - [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) (Example app) - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens) - [The inbox screen](https://meadowstack.com/patterns/inbox/) (Patterns) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) #### Team and roles, with the rules in code The team page lists the people with their roles, invites a new one and opens only for administrators. What each role may do lives in code, one permission table per module: the buttons ask it before they show, and the green coffee and wholesale apis ask it again before they change anything. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/roles-and-permissions/ *Settings, Team and roles, of the demo's roastery as its administrator sees it, rendered when the site was built from the kit's own components, with the demo's data.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/roles-and-permissions/ Open it in the live demo: https://meadowstack.com/demo/?lang=en#/fernhill/nastaveni/tym?jako=fh-ondrej From the example app [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/). ##### What the page shows Settings has the same four pages in every app built on Meadowstack: General, Team and roles, Connected apps, and MCP and AI ([the settings pattern](https://meadowstack.com/patterns/settings/)). The last three are for administrators, and at the roastery that is the owner. Team and roles lists the six people with their e-mails, each role a neutral badge. Its one action is Invite: an e-mail and a role, then a row that appears at once marked "Invited, waiting to accept", and a link that stays valid for 7 days. An invitation can be taken back after a confirmation. The roles to pick from are the company's own: Owner, Roaster, Quality and cupping, Operations and e-shop, Wholesale and Accountant. ##### Where the rules live Each module keeps its rules in one file, `domain/permissions.ts`: a table from an action to the roles that may take it, plus rules that need the record, such as an invoice's state. The workspace joins the modules' tables into the one `can` that the kit's `` and `useCan` ask, so a component never compares roles itself ([permissions](https://meadowstack.com/patterns/permissions/)). Opening the settings beyond General asks `settings.read`, which only an administrator has. The green coffee and wholesale apis ask the same table before they change anything, and a real backend does the same in Postgres row-level security ([Supabase](https://meadowstack.com/integrations/supabase/)). ##### A role decides what the data shows - **The roaster** sees the cafés' standing orders, because he roasts for them, and nothing else of wholesale: no prices and no balances. - **The margin** is for the owner and the accountant only. - **Four eyes**: an invoice is sent by the owner or the accountant, and never by the person who prepared it. - **No access** shows the page's header and a quiet note instead of the content. On Team and roles it says "Only administrators see the team.", and the demo adds a hint to switch role in its bar at the bottom. Buttons for actions a role may not take are not drawn at all, so nobody presses a button that the save then refuses. ##### What AI coding tools get wrong here - **Role checks inline**: `if (user.role === "admin")` in a component, with a different list in each file. Here a component asks `can("wholesale.invoice.send", invoice)`, and the answer comes from one table. - **A hidden button with an open api**: the button disappears and the endpoint still takes the request. Here the green coffee and wholesale apis ask the same table and refuse. - **A grid of checkboxes the code never reads**: a roles matrix on the settings page, saved to a table the app does not consult. Here the rules are code, reviewed and tested with the app, and the page shows who has which role. - **Roles that only hide menu items**: the sidebar loses an entry while widgets, search results and notifications still carry prices and margins. The framework's rule asks the role with the record wherever the data appears. ##### Who may do what at the roastery *A selection from the permission tables of the demo roastery's modules (domain/permissions.ts in each) on 2 December 2026, with the roastery's own role names.* | Permission | What it allows | Who may | | --- | --- | --- | | roast.plan | Plan the roast batches | Owner, Roaster | | roast.cupping | Record a cupping | Owner, Quality and cupping | | green.request | Request green coffee from a supplier | Owner, Roaster, Operations and e-shop | | green.eudr | Write a lot's EUDR reference | Owner, Accountant | | shop.order.pack | Pack an online shop order | Owner, Operations and e-shop | | shop.order.pay | Mark an order paid | Owner, Accountant | | wholesale.price.read | See the cafés' prices | Owner, Wholesale, Accountant | | wholesale.margin.read | See what each coffee costs and earns | Owner, Accountant | | wholesale.invoice.send | Send an invoice, never one they prepared | Owner, Accountant | | scenario.toggle | Switch a scenario on or off | Owner, Operations and e-shop | | scenario.run | Run a test of a scenario | Owner, Operations and e-shop, Wholesale | | settings.read | Open Team and roles, Connected apps, MCP and AI | Administrators (the owner) | ##### Rules that read the invoice itself *The wholesale module asks its table first, then the invoice: nobody sends a draft they prepared (four eyes), only a sent invoice is marked paid, an overdue café is reminded up to three times, and a draft is deleted by the person who prepared it or by the owner.* From `apps/demo/src/modules/wholesale/domain/permissions.ts` in the Meadowstack repository: ```ts /** Without a subject the answer is "could, for some record" (a button in a list); with one, for that invoice. */ export function canWholesale(person: Who, action: string, subject?: unknown) { if (!(rules[action as WholesaleAction] ?? []).includes(person.role)) return false; const invoice = subject as InvoiceSubject | undefined; if (!invoice || !action.startsWith("wholesale.invoice.")) return true; switch (action) { case "wholesale.invoice.send": // Four eyes: nobody sends an invoice they prepared themselves. return invoice.status === "draft" && invoice.createdBy !== person.id; case "wholesale.invoice.pay": return invoice.status === "sent"; case "wholesale.invoice.remind": return invoice.state === "overdue" && invoice.reminders < MAX_REMINDERS; case "wholesale.invoice.delete": return invoice.status === "draft" && (person.role === "owner" || invoice.createdBy === person.id); ``` ##### Questions ###### Where are the permissions defined? In code, one table per module (domain/permissions.ts): each action names the roles that may take it, and some rules also read the record, such as an invoice's state. The screens ask the table through the kit's Can and useCan, and in the demo the green coffee and wholesale apis ask it again before a change. ###### Can an administrator change what a role may do on the settings page? No. The page assigns people to roles and invites new ones. What a role may do is a change to the module's permission table in code, so it is reviewed and tested with the rest of the app. ###### What is the four-eyes rule in the demo? Nobody sends an invoice they prepared themselves. The owner, the accountant and the person in wholesale prepare invoices as drafts, and the owner or the accountant sends one, never their own draft. ###### What does a person without access see? The page's header and a quiet note saying who may open it, such as "Only administrators see the team." Buttons for actions their role may not take are not shown at all. ###### Do the rules hold in the database too? A real backend enforces the same rules, for example with Postgres row-level security on [Supabase](https://meadowstack.com/integrations/supabase/). The demo simulates its api in the browser, where the green coffee and wholesale modules ask the same tables. ##### Related - [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) (Example app) - [Permissions](https://meadowstack.com/patterns/permissions/) (Patterns) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) - [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens) - [A workflow canvas where a test run walks the steps](https://meadowstack.com/screens/workflow-canvas/) (Screens) - [The approval flow](https://meadowstack.com/patterns/approval-flow/) (Patterns) ### Components for business apps The kit has 126 components, each in a manifest that says when to use it, when not to, and what it replaces. A page shows one of them live in its states, with its rules and its contrast measured from the kit's tokens. The source code comes with a licence. https://meadowstack.com/components/ - [ApprovalPanel: the decision card on a record](https://meadowstack.com/components/approval-panel/): The decision card on a record: approve with a confirm, reject with a reason, nobody approves their own - [AppShell: the sidebar, the top bar and the page](https://meadowstack.com/components/app-shell/): The frame of every app: one sidebar of modules, the top bar with the bell, the page panel, the assistant's column - [AssistantPanel: the assistant beside the page](https://meadowstack.com/components/assistant-panel/): The assistant as a column beside the page: answers with sources, changes as proposal cards that wait for a yes - [AsyncState: every data view has four states](https://meadowstack.com/components/async-state/): Loading, error with retry, empty and content: the four states of every view that loads data - [AuditTimeline: a record's history and comments](https://meadowstack.com/components/audit-timeline/): A record's history: labels without a subject, glyphs on decisions, comments and reasons as filled bubbles - [BarList: a ranking you read from the top](https://meadowstack.com/components/bar-list/): A ranking with values: names on bars as long as the value, numbers aligned at the right, rows that open the list - [BulkBar: what to do with the selection](https://meadowstack.com/components/bulk-bar/): A dark bar for the selected rows: the count, actions that say how many rows they apply to, and clear - [Checklist: the small steps inside a record](https://meadowstack.com/components/checklist/): The small steps inside a record: tick, add one after another, reorder by drag or keyboard, with its progress - [Composer: writing next to a record](https://meadowstack.com/components/composer/): One box for comments and messages: the send button inside, Cmd or Ctrl+Enter sends, the text survives a failure - [DataTable: the table of every list](https://meadowstack.com/components/data-table/): The table of a list: column kinds set width and alignment, money sits right, a phone gets a fold - [Field: the label, hint and message of every input](https://meadowstack.com/components/field/): Around every input: a visible label, a hint, a message that says what to do, wired for screen readers - [FilterBar: the one row above a list](https://meadowstack.com/components/filter-bar/): Pills left, search right, named filters after: the row above a list, stacking before it scrolls - [GanttChart: a project schedule with its links and key dates](https://meadowstack.com/components/gantt-chart/): A project plan over weeks: phases, links, key dates and the critical path, moved by drag or from the keyboard - [Heatmap: when the work happens, by weekday and hour](https://meadowstack.com/components/heatmap/): Values on a weekday and hour grid in six steps of one hue, empty cells grey, arrow keys and a table for every value - [MonthCalendar: a month of things you move between days](https://meadowstack.com/components/month-calendar/): A month of days with posts or deliveries on them, moved by drag or keys, copied with Alt, a full day folded - [Notice: messages by importance, in one frame](https://meadowstack.com/components/notice/): A message that needs attention: a white frame, the tone in the glyph, an action; info and success close - [NotificationCenter: the bell and its list](https://meadowstack.com/components/notification-center/): The bell in the top bar: unread count, a list grouped by day, actions inside a notification, archive with Undo - [PropertyList: label left, value right](https://meadowstack.com/components/property-list/): A record's facts as label and value, the label column one width everywhere, a wide row for long text - [RecordPeek: open a record without losing the list](https://meadowstack.com/components/record-peek/): A record in a side panel beside its list: its own address, Alt and arrows to step, a button to expand - [ResourceTimeline: bookings across resources, hour by hour](https://meadowstack.com/components/resource-timeline/): Resources as rows over a day's hours: blocks moved, resized and drawn, overlaps refused in words, a now line - [ScheduleGrid: a rota you edit by drag or from the keyboard](https://meadowstack.com/components/schedule-grid/): People by day: shifts dragged between cells, templates, copies with Alt, refusals with a reason, totals under the week - [SortableBoard: a kanban board that works from the keyboard](https://meadowstack.com/components/sortable-board/): A kanban board: cards move by pointer, touch or keyboard, every step announced, a refused move sent home - [StatGroup: the key figures at the top of an overview](https://meadowstack.com/components/stat-group/): An overview's key figures in one row: one in display size, the rest beside it, each with its change and a sparkline - [StatusLabel: a status as a glyph and a word](https://meadowstack.com/components/status-label/): A status as a glyph in the state colour plus the word, never a coloured pill - [TimeGrid: a week of time blocks, moved by drag or keys](https://meadowstack.com/components/time-grid/): Days side by side and hours down: blocks moved, resized and drawn in 15-minute steps, with now and today marked - [UploadDropzone: drop or pick a file](https://meadowstack.com/components/upload-dropzone/): The file input of every form and record: drop or pick, a file too big refused at once, progress in the box - [ViewPills: saved views that are addresses](https://meadowstack.com/components/view-pills/): Saved views of one list as links: one route, another query, a count, the current one marked - [WorkSteps: what a long job is doing](https://meadowstack.com/components/work-steps/): A long job shown step by step, then a quiet summary line that opens the steps and what each found #### ApprovalPanel: the decision card on a record ApprovalPanel is the card at the top of a record's side column where someone else signs the record off: approve after a confirm, or reject with a written reason. The person who filed the record sees who decides instead of the buttons, because nobody approves their own record. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/approval-panel/ *Peter Zane's leave request in the demo's crews module, 14 to 18 December: left as Robert Brooks, managing director, sees it; right as Joe Vaughan, the foreman who filed it. The confirm and the reason dialog open on click and are not drawn here.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/approval-panel/ ##### What it is for A record that needs someone else's sign-off gets one card at the top of its side column: what is being decided, the figure that matters (an amount, a number of days) and two buttons. On a phone the same card comes first, above the record's details, because the decision is what the person came for. The preview shows one record, Peter Zane's holiday in the [Stonebridge example](https://meadowstack.com/examples/construction-site-management/), as the two people who meet it. Robert Brooks may decide, so he sees **Reject** and **Approve**. Joe Vaughan filed the request for his crew, so he sees who decides instead: the kit puts the app's sentence in place of the buttons. Under the title, the card's slot holds what the demo puts there: five working days, the dates, and what approving changes in the crew plan. The card shows only the waiting state. Once someone decides, the record's status and its history carry the outcome, and the app stops rendering the card, as the starter does for any request that is not `submitted`. The whole flow, from draft to decision, is the [approval flow pattern](https://meadowstack.com/patterns/approval-flow/); a leave queue built around it is the [time-off approval screen](https://meadowstack.com/screens/time-off-approval/). ##### The rules and where they live - **A decision is a card at the top of the side column, never a coloured banner.** The root `AGENTS.md` (Look and feel), the manifest's `not`, and `docs/patterns.md` under Lists, boards and records. - **Four-eyes: nobody approves their own record.** `AGENTS.md` (Permissions and audit). The skill `kit-approval` puts the check in the module's `domain/permissions.ts`, never in the page, and the api refuses the same approval. - **Rejecting always needs a reason.** `AGENTS.md`; the card's reject dialog will not go on without it, and `kit-approval` asks the api to refuse an empty reason too. - **Every decision writes a history entry with the person and the time**, and a rejection keeps its reason as the entry's detail, shown by [AuditTimeline](https://meadowstack.com/components/audit-timeline/) (`kit-approval`). - **Hide what the person cannot do.** `AGENTS.md`: the card takes `canDecide` from `can(action, record)` and never compares roles itself. - **The decision card's action is ink**, like a form's submit (`AGENTS.md`, decision 0009), and on a phone the card comes first (`AGENTS.md`, Responsive). - **Checked.** The entity's `contract.ts` sets `approval: true`; the card marks its buttons with `entityAction("approve")` and `entityAction("reject")`, and `e2e/contracts.spec.ts` approves and rejects through them on every entity that says so. The tests `kit-approval` asks for: the approver approves and the history shows the label with the approver's name, a rejection without a reason is refused, and the author never sees the approve button. ##### What AI coding tools write instead The manifest names it: **hand-built approve and reject buttons with a reason dialog**. A tool asked for "an approval screen" usually puts two coloured buttons in the page header or a yellow banner across the page, and checks something like `user.role === "manager"` in the component. Then the person who filed the request is often a manager too and approves it themselves, the reject button sends without a reason, nothing asks before an approval that cannot be undone, and no history entry is written, because the page changed a status field and nothing else. Meadowstack closes those gaps in the component and around it. `ApprovalPanel` cannot be rendered without `canDecide` and `decidedBy`, so the question of who may decide is asked on every record; reject cannot finish without a reason; and the manifest's `replaces` line is what an AI coding tool reads when it asks the kit's MCP server for an approval component. The [guide for AI coding tools](https://meadowstack.com/guides/agents-md-for-react-business-apps/) explains how the rules reach them. ##### How to use it | Prop | What it takes | | --- | --- | | `canDecide` | Whether this person may decide this record: `can("request.approve", request)`, with the four-eyes rule inside the permission. | | `decidedBy` | The sentence for everyone else, shown after the waiting line: who decides, and why not you when the record is yours. | | `onApprove` | Runs after the confirm. | | `onReject` | Gets the written reason. | | `copy` | The card's words: `title`, `waiting`, `waitingFor`, `approve`, `reject`, `approveConfirmTitle`, `approveConfirmDescription`, `rejectConfirmTitle`, `rejectReasonLabel`, `rejectReasonPlaceholder`. | | `children` | The slot under the title: the amount, the days, what approving changes. | Render it only while the record waits, first in the record's `properties` column (`Screen archetype="record"`) so it stays first on a phone. ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | ApprovalPanel | | --- | --- | | What it is | The decision card at the top of a record's side column: approve, or reject with a reason; nobody approves their own record. | | Use it for | A record that needs someone else's sign-off. | | Not for | As a coloured banner across the page | | It replaces | Hand-built approve and reject buttons with a reason dialog | | Screen types | Record; Index; Worklist | | Import | `import { ApprovalPanel, approvalCopyCs } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Where the example apps use it *The example apps and modules that render ApprovalPanel, read from the demo's code when the site builds.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Jobs, Print file editor, Quotes | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Capacity | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | Coaching | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Crews, Drawings | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | Invoicing | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | Shifts, People | Read from the demo's source when the site was built: 6 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### How the starter calls it *The starter's purchase request: canDecide comes from the permission request.approve, the sentence from whether the request is yours, and the amount sits in the card's slot.* From `templates/starter/src/modules/requests/components/request-record.tsx` in the Meadowstack repository: ```tsx const mine = request.requesterId === person.id; const canSubmit = can("request.submit", request); // The step this person can take now, first in the side column. const decision = request.status === "submitted" ? ( move("approve")} onReject={(reason) => move("reject", reason)} copy={approvalCopy} >

{formatMoney(request.amount)}

incl. VAT, needed by {formatDate(request.neededBy)}

``` ##### Questions ###### Can someone approve their own request? No. The four-eyes rule lives in the app's permissions, not in the page: for the person who filed the record the approve permission is false, so the card shows them who decides instead of the buttons, and the api refuses the approval as well. ###### Does rejecting need a reason? Yes. Reject opens a dialog whose reason field must be filled before anything happens, and the reason is stored with the history entry, so the person who filed the record reads why and can try again. ###### Where does the card go on a phone? First. On a record the decision someone came for comes before the properties, so on a phone the card sits at the top of the page, above the record's details. ###### Why does the card have no approved or rejected state? Because the outcome belongs to the record. The app shows the card only while the record waits; after the decision the status at the top and the history at the end say what happened and who did it. ###### Can a manager approve many records at once? Not in the card, which decides one record. A queue of approvals is a worklist screen whose bulk bar approves the ticked rows and says how many it applies to, and the api checks the four-eyes rule for each record. ##### Related - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) - [A lot record that traces one step back and one step forward](https://meadowstack.com/screens/lot-traceability/) (Screens) - [A proof the customer approves in their own portal](https://meadowstack.com/screens/proof-approval/) (Screens) - [A site diary day, prefilled and signed by the right person](https://meadowstack.com/screens/site-diary/) (Screens) - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/) (Screens) - [The approval flow](https://meadowstack.com/patterns/approval-flow/) (Patterns) #### AppShell: the sidebar, the top bar and the page AppShell is the frame of every app built on Meadowstack: the sidebar with its modules, the top bar, the page as an inset panel, the assistant's column and the bell. It goes once at the root of the app, and every screen inside it follows the same navigation rules, on a desktop and in a drawer on a phone. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/app-shell/ *Stonebridge's app in the demo as Robert Brooks sees it on the crews screen. A running app also draws the chip behind the current item, the crumb and the screen's primary action in the top bar, which scripts place and a page built ahead of time leaves out.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/app-shell/ ##### What it is for An internal app needs the same frame on every screen, and AppShell is that frame. The desktop has the sidebar on the frame colour with the page as an inset panel beside it. The sidebar holds the company's name, a search field that opens the palette, one section per module with its items and counts, and at its foot the account, settings and help. The top bar above the page has the crumbs, the screen's primary action, the bell and the assistant's button, and the assistant opens as a column the page makes room for. The preview is the [Stonebridge example](https://meadowstack.com/examples/construction-site-management/) on the crews screen: four modules (Sites, Plan, Site work, Money), the current item with its filled icon, grey counts such as the eight people with expired or missing certificates, and Robert Brooks's bell with three unread beside the site assistant's button. On a phone the same sidebar opens in a drawer from the menu button. The manifest's `when` is short: once at the root of every app. Its `not`: inside a page, or beside a second navigation such as a tab bar or a module rail. ##### What the shell does - The sidebar collapses smoothly and peeks from the left edge when hidden, with a short delay against accidents; Cmd or Ctrl+B hides it, its edge drags, a double-click resets it. - Hover is half a step and the active item a full step on the frame's own state tokens (`nav-hover`, `nav-active`); the active chip slides to the new item and the icon becomes its filled twin. - Modules are sections of one sidebar, and Alt+1 to Alt+9 open the Nth module. - The top bar gets a hairline and a small shadow once the page has scrolled under it. - A side panel open on a wide screen locks the page behind it, so only one thing scrolls. - The assistant's column and the sidebar's edge resize with `ResizeHandle`: free within limits, resisting below the minimum, folding away past it. All of these are rows of `docs/patterns.md`, Shell and navigation, each with the place in the demo to try it. ##### The rules and where they live - **Navigation is one sidebar.** The root `AGENTS.md` (Apps do work, and people never get lost) and `docs/principles.md`: with two or more modules each is a section named after it, all unfolded, and the module rail and the phone tab bar the app once had were removed on 22 Oct 2026. - **Counts are NavBadge, grey, red only when overdue.** `AGENTS.md`. - **Saved views are ViewPills, never sidebar items; another presentation of the same page is one DisplayMenu button.** `AGENTS.md`, so the sidebar never grows a third level. - **The current sidebar item is one of the crumbs or the h1.** `AGENTS.md`; checked on every route of the demo and the starter by the orientation rule `nav-matches-crumbs` (`templates/starter/e2e/orientation.ts`, `docs/audit.md`). - **The active item shows its filled twin.** `AGENTS.md`; the static guard `nav-filled-icon` in `scripts/check-markup.mjs` fails a nav item with `icon` and no `activeIcon`, and the runtime rule `nav-filled` looks at the page. - **The page never scrolls; exactly one region does.** `AGENTS.md`; the runtime rules `page-scroll` and `nested-scroll`, the static rule `own-scroll`, and `sidebar-overflow` for the sidebar itself. - **Settings are the gear at the foot beside help, the account at the foot, the bell in the top bar beside the assistant.** `AGENTS.md`, the same four settings pages in every app. - **Keyboard: Cmd/Ctrl+K the palette, Cmd/Ctrl+B the sidebar, Alt+1 to 9 the modules, Cmd/Ctrl+/ the shortcuts, no single-character shortcuts** (WCAG 2.1.4). `AGENTS.md` and `docs/principles.md`. ##### What AI coding tools write instead The manifest names **a hand-built sidebar, top bar or layout grid** and **a phone tab bar**. A tool asked for "an admin layout" writes a flex row with a fixed sidebar and a header, and the problems follow from there: the whole page scrolls and takes the sidebar with it, or the sidebar and the content each get a scrollbar; saved filters become sidebar items, so a third level appears; the active item is a coloured bar in an accent colour; the breadcrumbs say something else than the sidebar; the phone gets five icons in a tab bar that cannot hold the modules; and a single-key shortcut fires while someone types in a field. Meadowstack keeps all of that in one component and checks the rest on every route: the crumbs against the sidebar, the filled icons, one scroll region, one row under the header. The rules the checks enforce are what the [guide for AI coding tools](https://meadowstack.com/guides/agents-md-for-react-business-apps/) puts in front of the tool before it writes a line. ##### How to use it | Prop | What it takes | | --- | --- | | `brand` | The company or app at the top of the sidebar. | | `modules`, `activeModule` | `NavModule[]`: `id`, `label`, `sections` of `items` (`label`, `href`, `icon`, `activeIcon`, `badge`, `active`), and `group` (`main`, `more`, `footer`). | | `search` | `onOpen` and `shortcut`, usually `"mod+k"`: the field that opens the palette. | | `settings`, `help`, `account` | The foot of the sidebar. | | `notifications`, `topbar`, `create` | The bell, your buttons in the top bar (the assistant's), the create menu. | | `aside` | The column beside the page: `open`, `label`, `content`, `expanded`, `onClose`. | | `banner`, `dock` | A strip above the app and a bar docked at its foot. | | `renderLink`, `scrollKey`, `restoreScroll`, `pending`, `appTitle` | Your router's link, scroll memory per page, the loading line, the window title. | Screens inside use `Screen archetype` and the shell's hooks (`useBreadcrumbs`, `useScreenTitle`, `useTopbarActionSlot`) to fill the top bar. ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | AppShell | | --- | --- | | What it is | The frame of every app: the sidebar with modules, the top bar, the page panel, the assistant column and the bell. | | Use it for | Once at the root of every app. | | Not for | Inside a page; Beside a second navigation (a tab bar, a module rail) | | It replaces | A hand-built sidebar, top bar or layout grid; A phone tab bar | | Screen types | Shell | | Import | `import { AppShell, useBreadcrumbs, usePageLayout, useNavPlacement, useScreenTitle, useTopbarActionSlot, useShellLink } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### How the starter calls it *The starter's root: the modules from the app's registry, the palette on Cmd or Ctrl+K, settings, help and the account at the foot, and the router's link for every item.* From `templates/starter/src/workspace/layout.tsx` in the Meadowstack repository: ```tsx } modules={navModules} activeModule={activeId} settings={{ href: SETTINGS_PATH, label: "Settings", active: inPath(SETTINGS_PATH) }} search={{ onOpen: () => setPaletteOpen(true), shortcut: "mod+k" }} help={} account={} scrollKey={location.pathname} // Back, Forward and a replaced page (a saved form, a deleted record) are not steps forward: the shell's // "‹ previous page" link must not offer the page that is gone from the history. restoreScroll={navigationType !== "PUSH"} pending={navigation.state === "loading"} appTitle={brand.shortName} // viewTransition: the page cross-fades where the browser supports it (the kit's styles). renderLink={(link, { children, ...props }) => ( {children} )} > ``` ##### Questions ###### Which shortcut opens the palette? Cmd+K on a Mac and Ctrl+K elsewhere, from anywhere in the app; the search field at the top of the sidebar opens the same palette. Cmd or Ctrl+B hides and shows the sidebar, and Alt+1 to Alt+9 open the modules in order. ###### What does the shell look like on a phone? The same sidebar opens in a drawer from the menu button, and the header keeps the app's name and the bell. There is no tab bar: one navigation works the same on every screen size. ###### Where do saved views of a list go? Not in the sidebar. Saved views of the same list are pills on the page and entries in the palette; another entity gets its own sidebar item, so the sidebar never grows a third level. ###### Can a module have its own navigation? No second navigation: a module is a section of the one sidebar, named after it, with its items. Another presentation of the same page, such as a board or a calendar, is one display button on the page. ###### Where do settings and the account live? At the foot of the sidebar: the account, the gear for settings and the question mark for help. Settings are the same four pages in every app: General, Team and roles, Connected apps, MCP and AI. ##### Related - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens) - [A restaurant rota planned against the takings](https://meadowstack.com/screens/staff-rota/) (Screens) - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens) - [GanttChart: a project schedule with its links and key dates](https://meadowstack.com/components/gantt-chart/) (Components) - [The planning editor](https://meadowstack.com/patterns/planning-editor/) (Patterns) - [The record side panel](https://meadowstack.com/patterns/record-side-panel/) (Patterns) #### AssistantPanel: the assistant beside the page AssistantPanel is the assistant of an app built on Meadowstack: a column beside the page, opened from the top bar, never a page of its own. It answers from the app's data with sources that link to records, and anything it would change comes as a proposal card that does nothing until someone says yes. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/assistant-panel/ *The site assistant at Stonebridge in the demo: left a new conversation with the four questions the demo's data can answer; right the handover question answered from the snag list, with its source and the proposal waiting for a yes.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/assistant-panel/ ##### What it is for An app's assistant answers questions about the app's own records and proposes changes to them. In Meadowstack it lives in one place: a column beside the page, opened from the top bar and placed in `AppShell`'s `aside`, so the page stays in view while someone asks about it. The preview is the site assistant of the [Stonebridge example](https://meadowstack.com/examples/construction-site-management/). A new conversation opens on its greeting and offers the four questions the demo's data can answer, as buttons. On the right, the handover question has been asked. The answer comes from the snag list, names the three subcontractors with open snags, and links its source. Under it a proposal card, "Remind the subcontractors of their dates", says what it would do and waits for **Yes, do it** or **No**. The line at the foot of the column says what that means: nothing is written until you confirm it. The manifest's `not` is as clear: never a page of its own, never a floating chat bubble. ##### The rules and where they live - **The assistant is a column beside the page, never a page.** The root `AGENTS.md`, Apps do work, and people never get lost. - **One action goes the whole way.** `AGENTS.md`: a proposal with its impact, a confirm, the change through the module's api as the person, then a notification in the bell; the recipe is `docs/recipes/notifications-and-assistant.md`. - **Roles change the data, the assistant's answers included.** `AGENTS.md`, Permissions and audit: an external role never sees internal costs, margins or other clients' records "in assistant answers as on the pages". In the demo every answer and every proposal names the permissions it needs. - **Answers with sources, quick prompts from the data, every change as a card that runs only after a yes.** `docs/patterns.md`, Conversation, after Notion AI and the ElevenLabs agent panel. - **Thinking shows what it is doing**: a twinkling dot matrix and the step's words shimmering, a new step every 1.8 s, then the newest answer writes itself in (`docs/patterns.md`, `thinkingSteps`). - **The assistant's box is `Composer appearance="liquid"`.** `AGENTS.md`; `docs/principles.md`, Conversations: one bar on top in every state, text at a reading measure. ##### What AI coding tools write instead The manifest names **a hand-built chat sidebar or chatbot widget**. A tool asked to "add an AI assistant" writes a bubble in the corner that opens a chat over the content, or a `/chat` page that loses the record someone was looking at. The answers are plain text without sources, the model's reply is written to the database as soon as it arrives, and the feed it reads from ignores permissions, so a client can ask about another client's invoices. `AssistantPanel` takes the place in the shell, the answer as kit content with its sources, and the change as an `action` turn whose status only `onDecide` moves on. What runs after the yes is the module's own api, called as the person, so the permissions, the history entry and the notification are the same as for a click on the page. ##### How to use it | Prop | What it takes | | --- | --- | | `name`, `greeting` | The assistant's name in its header and the first line of an empty conversation. | | `turns` | `AssistantTurn[]`: `user` with `text`, `assistant` with `content` and `sources`, `action` with `title`, `detail` and `status`. | | `quickPrompts` | Questions to offer as buttons on an empty conversation. | | `thinking`, `thinkingSteps` | The answer is on its way, and the steps to show meanwhile. | | `onSend`, `mentions` | A question was sent; the records to offer after @. | | `onDecide` | Yes or no to a proposal, with its id. | | `conversations`, `onNewChat`, `onOpenConversation` | Earlier conversations and a new one. | | `expanded`, `onExpandedChange`, `onClose` | A wider column, and closing it. | | `onDictate`, `voiceMode`, `voiceTranscript` | Dictation into the box, and a voice conversation. | | `renderSource`, `now` | Your router's link for a source, and the clock. | ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | AssistantPanel | | --- | --- | | What it is | The assistant as a column beside the page: conversations, answers as kit cards, the composer. | | Use it for | The app's assistant, opened from the top bar. | | Not for | As a page of its own; As a floating chat bubble | | It replaces | A hand-built chat sidebar or chatbot widget | | Screen types | Shell | | Import | `import { AssistantPanel } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### How the demo calls it *AssistantColumn is the demo's AssistantPanel, loaded the first time the column opens: the turns, the quick prompts while the conversation is empty, onDecide for the proposal cards, sources as the router's links.* From `apps/demo/src/workspace/extras.tsx` in the Meadowstack repository: ```tsx answer.prompt)} onSend={send} onDecide={decide} onNewChat={turns.length ? () => setTurns([]) : undefined} expanded={expanded} onExpandedChange={setExpanded} onClose={close} renderSource={renderSource} ``` ##### What a turn can be *The exported type of turns: a question, an answer with its sources, or an action with its status, from proposed to done or failed.* From `packages/kit/src/components/assistant-panel.tsx` in the Meadowstack repository: ```tsx export type AssistantTurn = | { id: string; kind: "user"; text: string; at: string } | { id: string; kind: "assistant"; content: ReactNode; at: string; sources?: AssistantSource[] } | { id: string; kind: "action"; /** What it would do, as a sentence: "Přesunout betonáž na čtvrtek 23. 10." */ title: string; /** What changes, record by record. */ detail?: ReactNode; status: "proposed" | "approved" | "declined" | "done" | "failed"; at: string; }; ``` ##### Questions ###### Does the assistant change data on its own? No. Anything it would change comes as a proposal card that says what it would do, and only Yes, do it runs it, through the module's api as the person who said yes, so permissions and history apply as for a click. ###### Why a column beside the page and not a chat bubble? A column keeps the page in view while someone asks about it, and the page makes room for it instead of being covered. A bubble in the corner hides content and has no room for answers built from lists and cards. ###### Can the assistant show data the person may not see? No. Its answers follow the same permissions as the pages: in the demo each answer and each proposal names the permissions it needs and is left out for a person without them. ###### What does it show while it thinks? What it is doing: a twinkling dot matrix with the current step's words shimmering, a new step every 1.8 seconds, and then the answer writes itself in. ###### Can people talk to it instead of typing? Yes, when the app passes a dictation handler: a microphone appears in the box and the recording becomes text. There is also a voice mode that shows the conversation as a transcript. ##### Related - [NotificationCenter: the bell and its list](https://meadowstack.com/components/notification-center/) (Components) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) - [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens) - [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/) (Screens) - [A proof the customer approves in their own portal](https://meadowstack.com/screens/proof-approval/) (Screens) - [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens) #### AsyncState: every data view has four states AsyncState renders a view that loads data as exactly one of four things: loading, an error with a way to try again, empty, or the content. Every list and record in an app built on Meadowstack goes through it, so no screen shows a blank page, an endless spinner or a crash when the network fails. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/async-state/ *Kestrel's invoice list in four states, rendered from the kit: loading, an error with a retry, empty with the action that creates the first invoice, and no results for a filter with the way out. The resource is set to each status by hand, the way useResource returns it.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/async-state/ ##### What it is for, and what the preview shows AsyncState takes the resource that `useResource()` returns and renders one branch of it: the `loading` element while the data loads, an error with a retry when it fails, the `empty` element when `isEmpty` says there is nothing, and its children with the data when it succeeds. A list adds one more case inside the content: [DataTable](https://meadowstack.com/components/data-table/) tells a list that is empty because nothing exists yet from one that a filter emptied. The preview is the invoice list of [Kestrel](https://meadowstack.com/examples/accounting-office-documents/), an accounting practice in the demo, in each state: a skeleton with the table's frame while invoices load, the kit's error with a button to try again, the empty list with the action that creates the first invoice, and a filter with no results that offers to clear it. As in Kestrel's code, the two empty states come from the table inside AsyncState's content; AsyncState's own `empty` branch is for views without a table. ##### The rules, and where each one lives - **Four states for every data view.** Load with `useResource()` and render through `AsyncState` (the root `AGENTS.md`, Every data view has four states). `npm run check:states` fails a screen that calls `useResource()` without it, because that screen goes blank when the network fails. - **Empty and no results are different.** Two states with two next steps: empty offers to create the first record, no results offers to clear the filter (`AGENTS.md`; `docs/patterns.md`). - **Skeletons only on first load.** After a save the screen stays and the data swaps quietly; a skeleton shows only on the first load or for a new filter, with the content's frame and widths (`AGENTS.md`, Lightness). - **No wall in the demo.** The runtime audit's `no-wall` fails a demo route where the default visitor meets an empty view (`[data-state="empty"]`); a filter with no results (`data-state="no-results"`) is fine (`docs/audit.md`). - **Null means nothing.** `loading={null}` renders nothing while the data loads: the fallbacks are compared with undefined, so a small inline use, such as a count in the sidebar, never draws a full-width skeleton (the manifest's summary). ##### What AI coding tools write instead The manifest's `replaces`: if-loading and if-error branches written by hand, and a hand-built empty state. Asked for a list, an assistant writes `if (loading) return `, leaves the error out until the first failure, and renders an empty table when the array is empty. Every screen then handles the states a little differently. One spinner sits in the middle of the page, another shifts the layout when the data lands, an error shows a raw message with no way to retry, and an empty list looks the same as a filter with no results, so people cannot tell whether nothing exists or their filter hid it. With AsyncState and DataTable the assistant writes the content and the two empty states, and `check:states` catches a screen that skips them. ##### How to use it The props, from its exported `AsyncStateProps`: - `resource`: what `useResource()` returns: loading, an error, or the data. - `children`: a function of the data that renders the content. - `loading`: the skeleton, such as `LoadingState` with `rows` and a `label`; `null` renders nothing. - `onRetry`: the kit's error with a button that calls it, usually the resource's `reload`; or `error`, a function of the error and the retry for a view's own error. - `isEmpty` and `empty`: for a view without a table, when its data counts as empty and what to show then. Inside the content, a DataTable takes `emptyState`, `isFiltered` and `onClearFilters` for the two empty states of a list. The pattern behind both is [data states](https://meadowstack.com/patterns/data-states/). ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | AsyncState | | --- | --- | | What it is | Renders exactly one of: loading, error, empty, content. Fallbacks are compared with undefined, not `??`: `loading={null}` means "render nothing", which small inline uses (sidebar counts) rely on. With `??` a null fell through to the full-width skeleton and drew it over the nav. | | Use it for | Every view that loads data with useResource: loading, error with retry, empty, content. | | Not for | For data that is already there | | It replaces | If loading and if error branches by hand; A hand-built empty state | | Screen types | Any | | Import | `import { AsyncState, EmptyState, ErrorState, LoadingState } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Where it runs in the example apps *The example apps whose code renders AsyncState, and in which modules, read from the demo's source.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Jobs, Print file editor, Quotes, Cutting dies, Colour | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Capacity, Tasks, Time, Finance, Channels | | [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | Freight, Drivers, Costs, Reports | | [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | Roasting, Green coffee, Shop, Wholesale, Scenarios | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | Front desk, Courts, Club, Coaching, Rentals | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Sites, Schedule, Crews, Machines, Site diary, Drawings, Foreman's phone, Budget | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | Documents, Bookkeeping, Official mail, Invoicing | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | Shifts, Kitchen, Food safety, People, Handbook | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals, Content, Money, Training | Read from the demo's source when the site was built: 9 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### How the starter loads a request *The starter's purchase request: retry from the resource's own reload, a skeleton and an error inside the panel's frame, and the record's view once the data is there.* From `templates/starter/src/modules/requests/components/request-record.tsx` in the Meadowstack repository: ```tsx )} error={(error, retry) => frame()} > {(data) => ( )} ``` ##### Questions ###### What is the difference between empty and no results? Empty means nothing exists yet, so the next step creates the first record. No results means a filter hid everything, so the next step clears the filter. DataTable draws them as two states. ###### Does a save show the loading state again? No. After a save the screen stays and the data swaps quietly. The skeleton shows only on the first load, or when a new filter loads new data. ###### How do I render nothing while something small loads? Pass null as loading. AsyncState compares its fallbacks with undefined, so null means render nothing, which suits a count in the sidebar. ###### What does the error state offer? A short message and a button to try again, which calls the resource's reload. A view can pass its own error element, which receives the error and the retry. ###### Is there a check that every view has its states? Yes. npm run check:states, one of the fast checks, fails a screen that loads data with useResource and does not render it through AsyncState. ##### Related - [Loading, error, empty and no results](https://meadowstack.com/patterns/data-states/) (Patterns) - [A weekly timesheet for an agency](https://meadowstack.com/screens/timesheet/) (Screens) - [BulkBar: what to do with the selection](https://meadowstack.com/components/bulk-bar/) (Components) - [DataTable: the table of every list](https://meadowstack.com/components/data-table/) (Components) - [FilterBar: the one row above a list](https://meadowstack.com/components/filter-bar/) (Components) - [ViewPills: saved views that are addresses](https://meadowstack.com/components/view-pills/) (Components) #### AuditTimeline: a record's history and comments AuditTimeline is the history at the end of every record and side panel in an app built on Meadowstack: each change is an entry with a label, the person and the time. Decisions carry their status glyph, routine changes a dot, and anything someone wrote shows as a filled bubble. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/audit-timeline/ *Left, a change order's history at Stonebridge, rejected with its reason; right, the first changes of a task at Brightpath. Both are the demo's records, with times against Wednesday 2 December 2026.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/audit-timeline/ ##### What it is for Every record in an app built on Meadowstack ends with its history, and every change of state writes an entry there. A side panel follows one order: what the record is, the next step, its properties, its actions, then this timeline. Comments live in the same list, so a question sits beside the change it is about. The preview shows the two kinds of history the demo has. The change order "Relocation of the 11 kV cable" from the [Stonebridge example](https://meadowstack.com/examples/construction-site-management/) went through decisions, so its entries carry status glyphs, and the supervisor's note and the reason for the rejection are bubbles. The [Brightpath](https://meadowstack.com/examples/agency-capacity-planning/) task shows routine changes: created, an assignee set, its status moved, each a label with a dot or a glyph. It is not for a team conversation, which is `ChatMessage`'s job (the manifest's `not`). How the history fits a whole record is the [audit trail pattern](https://meadowstack.com/patterns/audit-trail/) and the [record side panel](https://meadowstack.com/patterns/record-side-panel/). ##### The rules and where they live - **Every state change writes an audit entry, shown with AuditTimeline.** The root `AGENTS.md`, Permissions and audit. - **Entries are labels without a grammatical subject**: "Approved" and the person beside it, never "John approved". `AGENTS.md` (Lightness) and `docs/patterns.md`; `docs/principles.md` gives the reason: in languages whose verbs carry gender, "approved by him or her" is never right. - **Written text is a filled bubble.** `AGENTS.md`, under writing next to a record, and the manifest's summary. - **Routine events get a dot, decisions their status glyph.** The comment over the starter's `eventMeta` (`templates/starter/src/modules/requests/domain/status.tsx`); the demo's modules keep the same split in their own maps, such as `historyMeta` in the budget module. - **A rejection stores its reason as the entry's detail**, with the person and the time (the skill `kit-approval`), which is why the reason in the preview is a bubble under "Rejected". - **The history comes last in a side panel**: `docs/principles.md`, Side panels (Linear's peek). - **Checked.** `kit-approval` asks for a test that the history shows the label with the approver's name beside it, and the labels never need a verb that agrees with a person. ##### What AI coding tools write instead The manifest names two things: **a hand-built activity list** and **comments rendered by hand**. Asked for an audit log, a tool writes sentences such as "Anna approved the order on 3 Oct" into a list, computes "2 days ago" from the clock in the render, and puts comments in a second list under a separate heading. The sentences break as soon as the app speaks a language with gendered verbs, the relative times drift between the server and the browser, and a reader has to match comments to changes by their dates. The other common gap is where the entries come from. A page that writes history only when its own button is clicked misses every change made elsewhere: in bulk, by the assistant, through the api. In Meadowstack the api writes the entry on every transition, the component only shows it, and `now` comes in as a prop, so a screen and a test render the same times. ##### How to use it `AuditTimeline` takes `events`, an optional `now` and a `className`. Each `AuditEvent` has: | Field | What it holds | | --- | --- | | `id`, `title` | The entry and its label without a subject: "Rejected", "Status: In progress". | | `actor`, `actorKind` | The person, or `"system"` for an import or a scheduled check; `actorIcon` and `actorHue` adjust its mark. | | `at` | ISO time, shown relative to `now`. | | `detail` | Written text, drawn as a filled bubble: a comment, a reason, a note. | | `icon`, `tone` | A 16px status glyph in place of the dot, and its tone. | | `subject` | What the entry is about, when one history covers several things. | Keep the labels in one map per module (`historyMeta`, `eventMeta`), so the list, the side panel and the full page always agree, and put the comment box, a [Composer](https://meadowstack.com/components/composer/) in a `Field`, right under the timeline. ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | AuditTimeline | | --- | --- | | What it is | A record's history and comments; written text is a filled bubble. | | Use it for | At the end of every record and side panel; every state change writes an entry. | | Not for | For a team conversation (ChatMessage) | | It replaces | A hand-built activity list; Comments rendered by hand | | Screen types | Record; Index; Worklist; Workspace | | Import | `import { AuditTimeline } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Where the example apps use it *The example apps and modules that render AuditTimeline, read from the demo's code when the site builds.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Jobs, Print file editor, Quotes, Cutting dies, Colour | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Capacity, Tasks, Finance | | [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | Freight, Drivers, Costs | | [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | Roasting, Green coffee, Shop, Wholesale, Scenarios | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | Front desk, Courts, Club, Coaching, Rentals | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Sites, Schedule, Crews, Machines, Site diary, Drawings, Foreman's phone, Budget | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | Documents, Bookkeeping, Official mail, Invoicing | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | Shifts, Kitchen, Food safety, People, Handbook | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals, Content, Money, Training | Read from the demo's source when the site was built: 9 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### How the demo turns events into entries *Brightpath's task events as entries: a label without a subject, the person beside it, a status glyph for a change of status, and a comment's text as the detail, which the timeline draws as a bubble.* From `apps/demo/src/modules/tasks/components/issue-panel.tsx` in the Meadowstack repository: ```tsx function eventToAudit(event: IssueEvent, name: (id: string) => string): AuditEvent { const base = { id: event.id, at: event.at, actor: name(event.actorId) }; switch (event.type) { case "created": return { ...base, title: tx("Založeno", "Created") }; case "status": { const status = Object.values(statusMeta).find((meta) => meta.label === event.detail); return { ...base, title: `${tx("Stav", "Status")}: ${event.detail}`, icon: status?.icon }; } case "priority": return { ...base, title: `${tx("Priorita", "Priority")}: ${event.detail}` }; case "assignee": return { ...base, title: `${tx("Řešitel", "Assignee")}: ${event.detail}` }; case "label": return { ...base, title: tx("Štítky upraveny", "Labels changed") }; case "comment": return { ...base, title: tx("Komentář", "Comment"), detail: event.detail }; ``` ##### Questions ###### Why are history entries labels without a subject? Because a sentence such as approved by him or her is never right in a language whose verbs carry gender. A label such as Approved, with the person beside it, reads the same in every language and for everyone. ###### Where do comments go? Into the same timeline, as Comment entries whose text is a filled bubble, so a question sits beside the change it is about. The box to write one is a Composer in a Field right under the history. ###### Who writes the entries? The api, on every change of state, with the person and the time; a rejection stores its reason as the entry's detail. The component only shows them, so a screen that forgets cannot leave a gap in the history. ###### Can the system be the actor of an entry? Yes. An entry can name a person or the system, for an import or a scheduled check, and the system gets its own mark instead of a person's avatar. ##### Related - [A time-off request waiting for a decision](https://meadowstack.com/screens/time-off-approval/) (Screens) - [An order record with its decision](https://meadowstack.com/screens/order-record/) (Screens) - [The approval flow](https://meadowstack.com/patterns/approval-flow/) (Patterns) - [The audit trail](https://meadowstack.com/patterns/audit-trail/) (Patterns) - [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens) - [A driver record that says what expires next](https://meadowstack.com/screens/driver-record/) (Screens) #### BarList: a ranking you read from the top BarList ranks names by one value, such as the busiest lanes or the clients who owe the most, with a bar behind each name as long as its value and the number at the right edge in tabular figures. The bars stay neutral or take the one data colour, because the length already says how much, and each row can open the records it counts. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/bar-list/ *Two rankings from the demo on Wednesday 2 December 2026: Ridgeway Freight's busiest lanes over the last seven days with their roads, and the clients who owe Kestrel the most, with the overdue part or the number of open invoices.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/bar-list/ ##### What it is for, and what the preview shows A list someone reads from the top: the busiest lanes, the clients who owe the most, the products that sell. The preview holds two rankings from the demo, rebuilt from the kit with its records. On the left, [Ridgeway Freight](https://meadowstack.com/examples/haulage-dispatch-planning/)'s busiest lanes over the last seven days, from Daventry to London with 68 shipments down to Dover to Ghent with 27, each with its roads beside the name. On the right, the clients who owe [Kestrel Accounting](https://meadowstack.com/examples/accounting-office-documents/) the most, The Rudder Inn first with part of its balance overdue, the others with their number of open invoices. The bars are neutral on the left and in the one data colour on the right, as the demo draws them. Each value stands outside the bar's track at the right edge, so a long name is cut short before it reaches a number. In the demo every row opens the list behind it: the shipments on that lane, the client's record. ##### The rules, and where they live - **The manifest**: use it for a ranking with values, such as top customers or top products; not for a time series (`ColumnChart`). It replaces "a table with hand-drawn bars". - **docs/principles.md, Tables**: a ranking people read row by row with more than one figure, such as courts by occupancy, is a `DataTable` in a `Section` beside the charts, not hued bars in a card. - **docs/patterns.md, Data**: a ranked list is the `BarList`, as in Ridgeway's reports; a mark opens the list behind it, a ranking row through its `href`, as in Kestrel's invoicing overview. - **AGENTS.md, Look and feel**: colour carries information only: a status, an identity or a data series, always next to a word or a legend. - **docs/principles.md, Charts**: every chart has a table for screen readers. ##### What AI coding tools write instead A table with hand-drawn bars, as the manifest's `replaces` names it. What goes wrong: - Each bar gets a colour of its own, or a colour by its value, which repeats what the length already says and hints at a meaning that is not there. The kit's bars are neutral, or all in the one data colour, and a hue goes only to an identity, as a dot beside the name and a light wash of its bar. - The number sits on the end of the bar, where it collides with short bars and long names. The kit puts every value outside the bar's track, right-aligned in tabular figures, so the numbers read straight down. - The bars are scaled to the page's width or to a round number. The kit scales them to the largest value in the list. - The rows are boxes of text that a screen reader cannot read as a ranking. The kit's rows are an ordered list with a table of every name and value for screen readers, and a row that leads somewhere is the app's own link. ##### How to use it - `items`: `key`, `label`, `value`, an optional `hint` beside the name, `href` for the list behind the row and `hue` for an identity such as a court or a person. - `bars`: `identity` washes a row's bar in its hue; `data` draws every bar in the one data colour and leaves the identity to the dot. - `renderLink` wraps a row that has an `href` in the app's router link; without it the row stays plain. `formatValue` formats the numbers. - `title` and `description`; `titleHidden` keeps the title for screen readers when a section heading above already names the list. ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | BarList | | --- | --- | | What it is | A ranked list of names with a bar behind each value. | | Use it for | A ranking with values: top customers, top products. | | Not for | For a time series (ColumnChart) | | It replaces | A table with hand-drawn bars | | Screen types | Overview; Record | | Import | `import { BarList } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Where it runs in the example apps *The example apps whose code renders a BarList, and the modules it sits in.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Quotes | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Finance | | [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | Costs, Reports | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | Invoicing | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Content, Money | Read from the demo's source when the site was built: 5 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### How the demo calls it *Kestrel's overview: one row per client with money open, the overdue part or the number of open invoices as the hint, every bar in the data colour, the title left to screen readers under the section's heading, and each row a link to the client.* From `apps/demo/src/modules/invoicing/pages/overview.tsx` in the Meadowstack repository: ```tsx {debtors.length ? ( ({ key: debtor.id, label: debtor.name, value: debtor.open, hint: debtor.overdue ? tx(`${formatMoney(debtor.overdue)} po splatnosti`, `${formatMoney(debtor.overdue)} overdue`) : invoicesLabel(debtor.count), href: invoicingPath(`/klienti/${debtor.id}`), }))} formatValue={(value) => formatMoney(value)} renderLink={barLink} ``` ##### Questions ###### When is a bar list better than a table? When the list ranks names by one value. A ranking people read row by row with more than one figure is a data table in a section beside the charts, as the kit's principles say. ###### Can a row open the records behind it? Yes. Give the item an href and pass renderLink, which wraps the row in the app's router link; only rows that lead somewhere react to the pointer. In the demo a lane opens its shipments and a client opens its record. ###### Why is every bar the same colour? The rows are one series, named by the title, and the length already says how much, so a colour per bar would only repeat it. A hue goes to an identity, such as a court or a person, as a dot beside the name and a light wash of its bar. ###### Is it accessible? The rows are an ordered list, a table of every name and value is there for screen readers, and a row with a link is the app's own link, reached with Tab. The values sit at the right edge in tabular figures, so they read straight down. ##### Related - [A fleet cost report that ranks every truck](https://meadowstack.com/screens/fleet-costs/) (Screens) - [Heatmap: when the work happens, by weekday and hour](https://meadowstack.com/components/heatmap/) (Components) - [StatGroup: the key figures at the top of an overview](https://meadowstack.com/components/stat-group/) (Components) - [Closing the till at the end of a shift](https://meadowstack.com/screens/till-close/) (Screens) - [The overview screen](https://meadowstack.com/patterns/overview/) (Patterns) - [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens) #### BulkBar: what to do with the selection BulkBar appears when rows of a list are selected: a dark bar floating at the bottom of the screen with the count, the actions and a button that clears the selection. It never pushes the table down, and an action that applies to only some of the rows says so, like Send 3 reminders of 4. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/bulk-bar/ *Kestrel's payment reminders with the three invoices that can be reminded selected, then all four, then only the one that cannot be, and Riverside's payments with two court bookings and their total, rendered from the kit. In the app the bar floats at the bottom of the window; here each sits at the foot of its own strip.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/bulk-bar/ ##### What it is for, and what the preview shows BulkBar is what a list shows once rows are ticked in a [DataTable](https://meadowstack.com/components/data-table/). It counts the selection, offers the actions that apply to it, and clears it with one button, while the table above stays where it was. Its actions are `Button variant="inverse"`, the light-on-dark buttons made for the bar. The preview shows the payment reminders of [Kestrel](https://meadowstack.com/examples/accounting-office-documents/), an accounting practice in the demo: four overdue invoices, one of them for a client whose reminders are off. With the other three selected, the action reads Send 3 reminders. With all four, it reads Send 3 reminders of 4. With only that one, the action stays in the bar, disabled, and its tooltip gives the reason. The last bar is from [Riverside](https://meadowstack.com/examples/sports-club-court-bookings/)'s payments, where `summary` adds the total of two court bookings after the count. ##### The rules, and where each one lives - **A bulk action says how many rows it applies to.** "Approve 2 of 5", in the root `AGENTS.md` (Tables) and in `docs/principles.md` (Fewer choices at once), instead of a column of buttons on every row; `docs/patterns.md` names Kestrel's reminders as the example. - **It floats, it never pushes.** The bar is fixed to the bottom of the window, so the table does not move when the first row is ticked (the manifest's summary), and ticking never changes a row's height (`AGENTS.md`; the audit's `row-heights`). - **A row that cannot take part says why.** DataTable's `getRowSelectBlockedReason` puts the reason on a disabled checkbox; `docs/patterns.md` pairs it with BulkBar. - **Every row keeps its checkbox slot.** Each box is 24 by 24px with its label (`AGENTS.md`; the audit's `target-size`). - **Not for one record.** One record's actions belong in its header or behind a `DropdownMenu` (the manifest's `not`). - **Named for screen readers.** The bar is a region with its own name that says how many rows are selected, and its clear button, an icon alone, has a label, as `AGENTS.md` (Accessibility) asks of every icon-only button. ##### What AI coding tools write instead The manifest's `replaces`: a hand-built toolbar for selected rows. An assistant usually renders a row of buttons above the table that appears when something is ticked, or a column of buttons on every row. A toolbar that appears above the table pushes every row down the moment the first box is ticked, so the row under the pointer jumps. Its buttons say Send reminders whatever the selection holds, and a row that cannot take the action fails after the click instead of saying so before it. Buttons on every row multiply the choices on screen and crowd the columns a phone needs. BulkBar keeps the table still, the count in view and each action honest about how many rows it touches. ##### How to use it The props, from BulkBar's signature: - `count`: how many rows are selected; at zero the bar renders nothing. - `onClear`: clears the selection, from the bar's close button. - `summary`: what the selection adds up to, after the count in a quieter weight (a total, hours). - `children`: the actions, `Button size="sm" variant="inverse"`; a disabled one goes inside a `Tooltip` that gives the reason. Take the selection from DataTable with `enableSelection` and `onSelectionChange`, block rows with `canSelectRow` and `getRowSelectBlockedReason`, and change `selectionResetKey` after the action to clear the ticks. Bulk actions are part of the [list pattern](https://meadowstack.com/patterns/list/). ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | BulkBar | | --- | --- | | What it is | Appears when rows are selected: a dark bar floating at the bottom of the screen (Linear's selection bar), so it never pushes the table down. Use Button variant="inverse" for the actions inside it. On a phone the actions that do not fit scroll sideways between the count and the close button. | | Use it for | Actions for the selected rows of a DataTable, saying how many rows they apply to. | | Not for | For one record's actions (DropdownMenu, the Screen header) | | It replaces | A hand-built toolbar for selected rows | | Screen types | Index; Worklist | | Import | `import { BulkBar } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Where it runs in the example apps *The example apps whose code renders BulkBar, and in which modules, read from the demo's source.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Quotes, Cutting dies | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Finance | | [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | Freight, Drivers, Costs | | [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | Shop | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | Club, Coaching, Rentals | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Crews, Drawings, Budget | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | Documents, Bookkeeping, Official mail, Invoicing | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | Kitchen | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals | Read from the demo's source when the site was built: 9 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### How Kestrel's reminders call it *The send action counts only the invoices that can be reminded and adds "of 4" when that is fewer than the selection; with none it stays, disabled, with the reason in its tooltip.* From `apps/demo/src/modules/invoicing/pages/reminders.tsx` in the Meadowstack repository: ```tsx {canRemind ? ( eligible ? ( ) : ( ) ) : null} ``` ##### Questions ###### Why does the bar float instead of sitting above the table? So the table never moves. A toolbar that appears above the rows pushes them down the moment the first box is ticked; the floating bar leaves every row where it was. ###### What should an action say when it applies to only some rows? How many it applies to out of the selection, like Send 3 reminders of 4. When it applies to none, it stays in the bar, disabled, with the reason in its tooltip. ###### Can the bar show what the selection adds up to? Yes. The summary prop puts a total after the count in a quieter weight, such as the amount of the selected bookings or the hours of the selected entries. ###### Is BulkBar for the actions of a single record? No. One record's actions belong in its header or behind its menu. BulkBar is for several rows of a list at once. ##### Related - [DataTable: the table of every list](https://meadowstack.com/components/data-table/) (Components) - [PropertyList: label left, value right](https://meadowstack.com/components/property-list/) (Components) - [Data tables in business apps: kinds, figures, headers, cut text](https://meadowstack.com/blog/data-tables-in-business-apps/) (Blog) - [AsyncState: every data view has four states](https://meadowstack.com/components/async-state/) (Components) - [FilterBar: the one row above a list](https://meadowstack.com/components/filter-bar/) (Components) - [ViewPills: saved views that are addresses](https://meadowstack.com/components/view-pills/) (Components) #### Checklist: the small steps inside a record Checklist is how an app built on Meadowstack keeps the small steps inside a record: the sub-tasks of a task, the loading steps of a delivery, a closing routine. A tick draws itself and a line runs through the finished step, the field to add one stays open after Enter, and steps reorder by drag or from the keyboard. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/checklist/ *Two Brightpath tasks in the demo: left BRI-106, three of five sub-tasks done, for someone who may edit it; right BRI-101, all four done, with only onToggle passed, so there is no field to add one.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/checklist/ ##### What it is for Some records carry a short list of their own steps: the parts of a task, what has to be loaded before a truck leaves, the routine at closing time. They are not records of their own, with an owner and a page; they are lines to tick. `Checklist` is that list, inside the record's panel. The preview shows two tasks from the [Brightpath example](https://meadowstack.com/examples/agency-capacity-planning/). On BRI-106 three of five sub-tasks are done: each finished one has its tick drawn and a line through its words, the progress shows how far the task is, and the field under the list adds the next step. BRI-101 is finished, and it is shown as someone without edit rights gets it: only ticking is passed, so there is no field to add, nothing to remove and nothing to drag. A [task board](https://meadowstack.com/screens/task-board/) shows the same sub-task count on each card. The manifest keeps it inside records (`record` and `index` screens). A list of records, each with its own status and page, is a `DataTable`. ##### The rules and where they live - **A finished item's line runs across it.** The root `AGENTS.md`, Motion: the kit's `DoneText`, one element changing instead of two swapping, reduced motion keeping fades only. - **Drag works from the keyboard too, with announcements.** `docs/patterns.md`, Lists, boards and records (`SortableBoard`, `SortableList`); `AGENTS.md`, Keyboard: arrows in lists, Space picks an item up. - **Rows keep one height; ticking never changes a row's height.** `AGENTS.md`, under rows in a list. - **Checkboxes are big enough to hit.** The runtime audit rule `target-size` (`e2e/audit/rules.ts`, `docs/audit.md`) wants checkboxes 24 × 24 with their label. - **Changes are optimistic.** `docs/principles.md`, Response time: the tick shows at once, the request follows, a toast on failure. - **Hide what the person cannot do.** `AGENTS.md`, Permissions and audit: leave out `onAdd`, `onRemove` and `onReorder` for someone who may only tick. - **No own checkbox in an app.** The static guard `bare-control` in `scripts/check-markup.mjs` fails an app's own `input`. ##### What AI coding tools write instead The manifest names **a list of checkboxes with hand-made adding and reordering**. Typically that is native checkboxes beside text, an "Add item" button that opens a dialog for every step or a field that closes after each one, and reordering with up and down arrows or not at all. A strike-through that wraps makes the row taller, so the list jumps when someone ticks. Dragging, where it exists, needs a mouse, and the controls for adding and deleting show for everyone, whatever they may do. `Checklist` puts those decisions in one place: the tick and the line are the kit's motion, the add field stays open so a routine of five steps is five lines of typing, reordering is `SortableList` with the keyboard and screen reader support it has on boards, and the handlers you leave out decide what a person can change. ##### How to use it | Prop | What it takes | | --- | --- | | `label` | The list's name, such as "Sub-tasks". | | `items` | `ChecklistItem[]`: `id`, `title`, `done`. | | `onToggle` | Gets the item's id and its new `done`. | | `onAdd` | Gets the title of a new step; leave it out and the field disappears. | | `onRemove`, `onReorder` | Removing one, and a move as `{ from, to }`; leave them out for people who may not edit. | | `addLabel`, `className` | The add field's label, and your layout. | ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | Checklist | | --- | --- | | What it is | The small steps inside a record, ticked, reordered and added in one go. | | Use it for | Sub-tasks of a task, the loading steps of a delivery, a closing routine. | | Not for | For a list of records (DataTable) | | It replaces | A list of checkboxes with hand-made adding and reordering | | Screen types | Record; Index | | Import | `import { Checklist } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Where the example apps use it *The example apps and modules that render Checklist, read from the demo's code when the site builds.* | Example app | Modules that render it | | --- | --- | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Tasks | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | Handbook | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Content, Training | Read from the demo's source when the site was built: 3 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### How the demo calls it *The task panel's sub-tasks: anyone who sees the task may tick, while adding, removing and reordering are passed only when the person may edit it. Every change saves the whole list.* From `apps/demo/src/modules/tasks/components/issue-panel.tsx` in the Meadowstack repository: ```tsx saveSubTasks(issue.subTasks.map((task) => (task.id === id ? { ...task, done } : task)))} onAdd={ editable ? (title) => saveSubTasks([...issue.subTasks, { id: `st-${issue.id}-${Date.now()}`, title, done: false }]) : undefined } onRemove={editable ? (id) => saveSubTasks(issue.subTasks.filter((task) => task.id !== id)) : undefined} onReorder={ editable ? ({ from, to }) => { const next = issue.subTasks.slice(); const [moved] = next.splice(from, 1); next.splice(to, 0, moved!); void saveSubTasks(next); } : undefined } /> ``` ##### Questions ###### Can people reorder steps without a mouse? Yes. A step is picked up with Space, moved with the arrow keys and put down again, and each move is announced to screen readers, the same way cards move on the kit's boards. ###### How do you add several steps in a row? Type a step and press Enter: it is added and the field stays open for the next one, so a routine of five steps takes five lines of typing. ###### Can someone without edit rights tick a step? That is the app's choice. The demo lets everyone who sees a task tick its sub-tasks and passes adding, removing and reordering only to people who may edit, so the others never see those controls. ###### When is a checklist the wrong component? When each item is a record of its own, with a status, an owner and a page. That is a list of records, which is a DataTable. ##### Related - [RecordPeek: open a record without losing the list](https://meadowstack.com/components/record-peek/) (Components) - [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens) - [A restaurant rota planned against the takings](https://meadowstack.com/screens/staff-rota/) (Screens) - [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens) - [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens) - [Composer: writing next to a record](https://meadowstack.com/components/composer/) (Components) #### Composer: writing next to a record Composer is the one box an app built on Meadowstack uses for writing next to a record or in a conversation, with the send button inside it. Cmd or Ctrl+Enter sends, the text stays in the box if sending fails, and what was sent appears in the record's history as a filled bubble. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/composer/ *Brightpath's task BRI-106 in the demo: the last two comments of its activity and the comment box, empty; right, a reply typed in, which brings the key cap beside the send button. The reply is an example.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/composer/ ##### What it is for People ask about a record next to the record: "Is this the final quantity?", "I will send the change in Figma." In an app built on Meadowstack that box is always `Composer`: one rounded box with the send button inside, under the record's history, labelled by the `Field` around it. What was sent lands in the history as a filled bubble, so the question and the changes it is about read as one story. The preview is the end of a task panel in the [Brightpath example](https://meadowstack.com/examples/agency-capacity-planning/): two comments from the activity, then the box. On the left it is empty and shows its placeholder; on the right a reply is typed and the key cap for the shortcut appears beside the send button. The box grows with the text, up to ten lines, and then scrolls inside. The manifest sets its range: writing next to a record or in a conversation, and the assistant's box with `appearance="liquid"`. A form's field is an `Input` or `Textarea` in a `Field`, and a long post with formatting is `RichTextEditor`. ##### The rules and where they live - **Writing next to a record is Composer in a Field: the send button inside, Cmd/Ctrl+Enter sends, written text in AuditTimeline a filled bubble.** The root `AGENTS.md`, Look and feel. - **Every input has a visible label.** `AGENTS.md`, Accessibility (WCAG 2.2 AA): the `Field` gives the box its label, the placeholder only hints. - **Shortcuts are chords, never a single character.** `AGENTS.md` and `docs/principles.md` (WCAG 2.1.4): sending is Cmd or Ctrl with Enter, so plain Enter is a new line in a comment. - **One box to write in, mentions with @, files, Cmd/Ctrl+Enter or Enter in chat.** `docs/patterns.md`, Conversation, where the same box runs the chat, the comments and the inbox. - **The composer is as wide as the messages.** `docs/principles.md`, Conversations: text keeps a reading measure, and the box lines up with it. - **No own textarea in an app.** The static guard `bare-control` in `scripts/check-markup.mjs` fails an app's own `textarea` or `button` (`docs/audit.md`), which leads to the kit's box. ##### What AI coding tools write instead The manifest names two: **a textarea above a row of buttons** and **a hand-built chat input**. The first puts a grey "Post comment" button under a bare textarea, often with no label but its placeholder. Enter sends half-written comments, or nothing sends from the keyboard at all. The text is cleared as the request leaves, so a failed send loses it. And the comments end up in a list of their own, apart from the record's history. `Composer` keeps the text until `onSend` succeeds and shows a spinner in the button meanwhile; the demo's task panel adds a toast saying the comment could not be sent and the text is still in the box. Sending is a chord with a visible key cap, the `Field` brings the label, and the comment becomes an entry in [AuditTimeline](https://meadowstack.com/components/audit-timeline/) like any other change. ##### How to use it | Prop | What it takes | | --- | --- | | `value`, `onValueChange` | The text, controlled by you. | | `onSend` | Gets the text; the button spins until it settles, and the text stays if it throws. | | `submitOn` | `"mod+enter"` (the default, for comments) or `"enter"` (for a chat). | | `mentions` | The app's records to offer after @. | | `sendLabel`, `allowEmpty`, `emptyAction` | The button's name, sending without text, and what the empty box offers instead. | | `leading`, `top` | Slots before the text and above it, such as an attachment. | | `layout`, `appearance` | `"inline"` or `"stacked"`; `"box"` or `"liquid"` for the assistant. | Wrap it in a `Field` with the label people see, and put it right under the record's history. ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | Composer | | --- | --- | | What it is | One box for writing a comment, note or message, with the send button inside; Cmd/Ctrl+Enter sends. | | Use it for | Writing next to a record or in a conversation; appearance="liquid" for the assistant. | | Not for | For a form field (Input or Textarea in a Field); For a long post with formatting (RichTextEditor) | | It replaces | A textarea above a row of buttons; A hand-built chat input | | Screen types | Record; Inbox; Worklist; Workspace | | Import | `import { Composer } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Where the example apps use it *The example apps and modules that render Composer, read from the demo's code when the site builds.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Jobs, Print file editor | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Tasks | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | Front desk | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Site diary, Drawings | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals, Content, Training | Read from the demo's source when the site was built: 5 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### How the starter calls it *The comment box under a purchase request's history: a Field with a visible label, and the text cleared only after onSend succeeds.* From `templates/starter/src/modules/requests/components/request-record.tsx` in the Meadowstack repository: ```tsx function CommentBox({ onSend }: { onSend: (text: string) => Promise }) { const [text, setText] = useState(""); return ( { await onSend(value); setText(""); }} /> ``` ##### Questions ###### Which shortcut sends a comment? Cmd+Enter on a Mac and Ctrl+Enter elsewhere; the key cap appears beside the send button once there is text. A chat can send on Enter instead. ###### What happens to the text if sending fails? It stays in the box. The send button shows a spinner until the request settles, the box clears only when it succeeds, and the demo adds a toast saying the text is still there. ###### Why is the send button inside the box? So the box and its action read as one control and no row of buttons sits under the text. The history above it stays calm, and the same box works in a comment, a chat and the assistant. ###### Can people mention a record in a comment? Yes. Pass the app's records as mentions, and typing @ offers them, so a comment links the site, order or task it talks about. ##### Related - [AuditTimeline: a record's history and comments](https://meadowstack.com/components/audit-timeline/) (Components) - [The audit trail](https://meadowstack.com/patterns/audit-trail/) (Patterns) - [From Access or FileMaker to a web app](https://meadowstack.com/from/access-filemaker/) (Moving from) - [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) (Example app) - [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) (Example app) - [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) (Example app) #### DataTable: the table of every list DataTable is the table behind every list in an app built on Meadowstack: each column says what it holds, and that kind sets its width, its alignment and its figures, so money lines up on the right on every screen. On a phone the table keeps its main columns and folds the rest under them, so it never scrolls sideways. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/data-table/ *Kestrel's invoices in the To be paid view, rendered from the kit with the demo's data. Narrow the window: the table keeps the client and the amount and folds the number, the days overdue and the status under them.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/data-table/ ##### What it is for, and what the preview shows DataTable is the table of a list of records: orders, invoices, dies, members. It sorts, groups, sums a column in a footer, selects rows for a [BulkBar](https://meadowstack.com/components/bulk-bar/), marks the row whose record is open beside the list in a [RecordPeek](https://meadowstack.com/components/record-peek/), and draws an empty list and a filter with no results as two different states. The preview is the invoice list of [Kestrel](https://meadowstack.com/examples/accounting-office-documents/), an accounting practice in the demo, in its **To be paid** view: twelve invoices, the client as the title column, the number, two dates, the amount and the status. Four are overdue, and the row says by how many days in the danger colour, beside the word, never as colour alone. ##### The rules, and where each one lives - **Every column says what it holds.** `meta: { kind }` takes one of twelve kinds, and the kind sets the width, the alignment and the figures: `money` is 8rem wide from 768px, right-aligned, with tabular figures; `date` is 7rem; `id` is 8rem with plain figures, because tabular figures widen the hyphens of INV-2026-0049. The widths are the kit's `columnKinds`; `npm run check:columns` fails a column without a kind, and the runtime audit's `column-kinds` rule checks alignment by kind and one width per kind on a screen (`docs/audit.md`). - **A table never scrolls sideways on a phone.** A column with `hideOnMobile` hides, and `CellStack` folds its value into a cell that stays. The root `AGENTS.md` sets it under Responsive; the audit's `table-scroll` and `horizontal-overflow` rules fail a screen that breaks it at 390px. - **The table folds by its own width.** `hideOnMobile` is a container query on the table, so the same list folds beside a side panel at 1440px as it does on a phone. - **One look, one height.** A subtle header band, hairlines between rows, the hovered row a rounded chip, no outer box; rows are one height, and ticking a row never changes it (`AGENTS.md`, Tables; the audit's `row-heights`). - **Selection keeps its slot.** Every row keeps its checkbox slot, each box is 24 by 24px with its label (the audit's `target-size`), and bulk actions say how many rows they apply to. - **Apps import the kit, not the engine.** ESLint stops an app from importing `@tanstack/react-table`, and `npm run check:markup` stops an own `` (`bare-table`). ##### What AI coding tools write instead Asked for an invoice list, a coding assistant writes what the manifest's `replaces` names: a hand-written `
`, a grid of divs, or TanStack Table imported straight into the page, wrapped in an `overflow-x-auto` box. Each of these works on its own screen and drifts across the app: every list picks its own widths, so amounts stop lining up between screens; dates and IDs get whichever figures the font gives them; the phone gets a table to swipe sideways with the client's name scrolled out of view. Selection, the empty list and the filter with no results are rebuilt each time, and usually only one of the two empty states exists. With DataTable the assistant writes columns and kinds, and the checks above catch a column that forgets its kind. ##### How to use it The props that matter, from its exported `DataTableProps`: - `columns`, `data`, `getRowId`, and `label`: the table's accessible name ("Invoices"). - `meta` on each column: `kind`, then `hideOnMobile` (hidden under 42rem of table width) or `hideBelow` (`"sm"`, `"lg"`, `"xl"`: 32, 64 or 72rem) for what hides first, `total` for a sum in the footer, `group` for grouping, `clip` and `fill` for a long name that ends in an ellipsis. - `CellStack` in a cell: `primary`, `secondary`, `secondaryOnMobile` to show the folded value only when the column beside it hides, and `align="end"` under money. - `enableSelection` with `canSelectRow` and `getRowSelectBlockedReason` (the reason shows on the disabled box), `getRowLabel` so a screen reader hears which row a box selects. - `onRowClick` and `activeRowId` for a list that opens records beside it. - `pageSize` (10 unless set), `initialSorting`, `emptyState`, `isFiltered` with `onClearFilters`, and `variant` (`"plain"` or `"card"`). Load the rows with `useResource` and render the table inside [AsyncState](https://meadowstack.com/components/async-state/), which draws the loading and error states around it. ##### Its entry in the manifest *The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.* | Manifest field | DataTable | | --- | --- | | What it is | The table of a list: column kinds set widths, sorting, grouping, selection with BulkBar, empty and no-results states, folding on a phone. | | Use it for | Every list of records. | | Not for | For two or three facts (PropertyList); For a board (Board, SortableBoard) | | It replaces | A hand-written
; A div grid of rows; TanStack Table imported in the app; A table that scrolls sideways on a phone | | Screen types | Index; Worklist; Record; Overview | | Import | `import { DataTable, CellStack, tableRowClass, tableRowHoverClass, columnKinds } from "@meadowstack-studio/kit";` | Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server. ##### Where it runs in the example apps *The example apps whose code renders DataTable, and in which modules, read from the demo's source.* | Example app | Modules that render it | | --- | --- | | [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | Jobs, Print file editor, Quotes, Cutting dies, Colour | | [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | Capacity, Finance | | [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | Freight, Drivers, Costs | | [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | Roasting, Green coffee, Shop, Wholesale | | [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | Club, Coaching, Rentals | | [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Sites, Crews, Machines, Site diary, Drawings, Budget | | [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | Documents, Bookkeeping, Official mail, Invoicing | | [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | Kitchen, Food safety | | [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals, Money, Training | Read from the demo's source when the site was built: 9 of 9 example apps render , in the modules named here as each app's sidebar names them. ##### How the starter declares its columns *The last three columns of the starter's purchase requests: each names its kind, the date and the status hide on a phone, and the status folds under the amount there.* From `templates/starter/src/modules/requests/pages/requests-list.tsx` in the Meadowstack repository: ```tsx id: "neededBy", accessorKey: "neededBy", header: "Needed by", meta: { kind: "date", hideOnMobile: true }, cell: ({ getValue }) => ( {formatDate(getValue())} ), }, { id: "status", accessorKey: "status", header: "Status", meta: { kind: "status", hideOnMobile: true }, cell: ({ row }) => , sortingFn: (a, b) => statusOrder.indexOf(a.original.status) - statusOrder.indexOf(b.original.status), }, { id: "amount", accessorKey: "amount", header: "Amount", meta: { kind: "money" }, // On a phone the status sits under the amount. cell: ({ row }) => ( {formatMoney(row.original.amount)}} secondary={} secondaryOnMobile /> ), }, ], ``` ##### Questions ###### Does the table scroll sideways on a phone? No. Columns marked to hide on a phone disappear below 672px of table width, and CellStack shows their values under the cells that stay, so the client, the number and the days overdue still read in one column. ###### How do I show money in a column? Give the column the money kind. It takes a fixed width, aligns right and uses tabular figures, so amounts line up in every row and on every screen; on a phone the status can sit under the amount in the same cell. ###### Why does the table fold by its own width and not by the window? Because a list is not always the whole window. When a record opens in a side panel beside it, the list gets narrower and hides its less important columns, the same way a phone does. ###### Can I import TanStack Table directly? Not in an app built on the kit: ESLint stops the import. DataTable takes TanStack Table's column definitions, so the API is familiar, and adds the kinds, the fold, selection and the two empty states. ###### What happens when a filter hides every row? The table says there are no results for this filter and offers to clear it. A list that is empty because nothing exists yet shows its own empty state with the action that creates the first record. ##### Related - [BulkBar: what to do with the selection](https://meadowstack.com/components/bulk-bar/) (Components) - [FilterBar: the one row above a list](https://meadowstack.com/components/filter-bar/) (Components) - [Data tables in business apps: kinds, figures, headers, cut text](https://meadowstack.com/blog/data-tables-in-business-apps/) (Blog) - [A packaging quote that works out its price as you type](https://meadowstack.com/screens/quote-form/) (Screens) - [A weekly timesheet for an agency](https://meadowstack.com/screens/timesheet/) (Screens) - [An invoice form that shows its totals as you type](https://meadowstack.com/screens/invoice-form/) (Screens) #### Field: the label, hint and message of every input Field wraps every input, select and picker in an app built on Meadowstack: a visible label above it, a short hint under it, and an error message that says what to do. It wires the label, the hint and the error to the control for screen readers, so no form uses a placeholder as its label or shows an error only as a red border. Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/components/field/ *Juniper's lunch menu after Save with the third main left empty, and the starter's new purchase request without a supplier, rendered from the kit. The chosen day and dishes are written into their selects here; in the app the select fills in its own text.* A live screen, rendered from the kit's components on the page: https://meadowstack.com/components/field/ ##### What it is for, and what the preview shows Field is the frame of one control: its label, the control, a hint under it and the error when there is one. It takes exactly one child, such as an `Input`, `Select`, `NumberField`, `DatePicker`, `Textarea` or `Composer`, and gives it an id, `aria-describedby` pointing at the hint and the error, `aria-invalid` while there is an error, and `aria-required` when the field is required. The preview shows two forms. The lunch menu of [Juniper](https://meadowstack.com/examples/restaurant-staff-rota/), a restaurant in the demo, after Save with the third main left empty: the dish and its price each say what to do ("Choose a dish.", "Enter the dish's price."), and the soup's hint lists its allergens. Beside it, the starter's new purchase request with the supplier missing, a hint under the amount and a date picker. Every field there is required, so none carries an asterisk. ##### The rules, and where each one lives - **Every input sits in a Field with a visible label.** The root `AGENTS.md` (Accessibility, WCAG 2.2 AA). An own ``, `