Documentation · Build the client's app

Build well

The handful of ordering and shape decisions that determine whether an app survives its second change request.

This is not a feature tour. It is the short list of decisions that decide whether your app absorbs its second change request in an afternoon or gets rebuilt.

Everything here costs nothing on day one and a great deal on day thirty.


1. Data shape first. Then screens. Then permissions.

Build in that order, every time.

Screens bind to your record types, so the shape is the thing everything else is pinned to. Reshape a record type later and you are not editing one thing — you are revisiting every screen that read it, every rule scoped to it, and every permission written against it.

The platform will tell you how bad a change is before you make it: adding a field is additive, renaming or retyping one is breaking, and removing one is destructive. Those are not warnings to click past. A destructive change to a shape your client already has data in is a conversation with them, not a save.

The practical test. Before you draw a single screen, write down the things this business talks about and what it knows about each. If you cannot do that without saying “and then on the second tab…”, you are describing a screen, not a shape.


2. Name fields for the business, not for the form

A field key outlives the screen it was created for. status on a form called Intake becomes status everywhere forever — in filters, in rules, in exports your client opens in a spreadsheet, in the columns of a chart.

  • Name it what the business calls it. If they say “site”, do not call it location_2.
  • Do not encode the screen in the name. intake_notes becomes wrong the moment notes are taken somewhere else.
  • Do not encode the type. date_start reads worse than starts_on and tells you nothing extra.

Renaming later is a breaking change. Naming carefully is the cheapest thing on this page.


3. Enums over free text, wherever a value will be counted

If anyone will ever filter by it, group a chart by it, or report on it — make it a defined set of options, not a text box.

Free text guarantees you will eventually have Urgent, urgent, URGENT and urgnet in the same column, and every count of them is wrong. No amount of care by the person typing prevents this; they are typing quickly, into a box, on a phone.

Defined options also pay you back immediately: the platform derives the picker from the options you set, so the edit form and the filter offer the same list without you maintaining either. A value that cannot be typed wrongly does not need cleaning later.

The reverse is also true — do not make something an enum when the set genuinely is not known. A required dropdown that lacks the right answer teaches people to pick the nearest wrong one, and that is worse than free text, because it looks clean.


4. One record type per real-world thing

Not one per screen, and not one per step in a process.

A “Site Visit” and a “Site Visit Follow-Up” are usually one record type with a type field, not two. Two record types means two sets of permissions, two sets of rules, and a report that has to union them forever.

The test: would the business ever hold one of these in their hand and call it a different thing? If not, it is one record type.

Conversely, do not fold two real things into one because they share fields today. If they have separate lifecycles — different people, different timing, different endings — they are separate, and merging them means every rule needs a condition to tell them apart.


5. Let the template map the roles

When you build from a template, it asks you to map its field roles onto your record type. Map every one deliberately.

If a role has nothing sensible to map to, that is information: your record type is probably missing a field. The template is describing a shape that has worked before, and the gap it found is real more often than not. Adding the field is usually the right move; forcing an unrelated field into the role to get past the screen is how an app ends up with a date column called “owner”.

The platform refuses to instantiate a template with unmapped roles, and names each one. That refusal is the feature.

Declare a money field as money. A template carries a format for each role — the Executive Dashboard says currency for its amount — but that is a guess made before anyone knew which of your fields it would land on. Bound to a duration in minutes, a currency guess would show minutes as dollars, so the platform discards the template’s guess and takes the answer from your field instead.

Which means the guess is discarded even when it was right: currency and number are the same field type, so a real money field that says nothing about itself is presented as a plain number. On the field’s row, set how it shows from Plain number to Money and it is honoured everywhere — in the stored page, on the canvas, and in the delivered app. It costs one dropdown at build time and it is the difference between a headline that reads $1,839,772 and one that reads 1,839,772.


“An order belongs to a client” is a Link to one record field on the order — the one way to link. It is enforced: delete a client that orders still point at, and the platform refuses, naming the orders you can open and counting the rest. Nothing is ever left pointing at nothing. Deleting a whole record type follows the same rule: “Can’t delete “Customer”: 1 reference field in 1 other record type still point at it — order — customer_ref.” Repoint or remove those fields, then delete.

A relationship row that came with an AI draft or a starter pack is not enforced, and the Relationships panel badges it No delete protection. Remove it and use a reference field.

If the record type at the other end is archived, the link does not quietly disappear — the canvas draws it in red, dotted, ending in an ✕, and the Relationships panel badges it Target missing.


5b. The builder saves as you go — so “did I save?” is not a question you carry

Everything you author in Build saves itself. There is no Save button to hunt for and no work to lose by clicking away: leaving a tab writes what is outstanding rather than dropping it, and the tab says where your work is — Saving shortly… · All changes saved · Could not save.

The exceptions are the ones that reach outside the builder, and they stay explicit on purpose: a deploy, a publish, a send, and a run that writes records. Those happen when you say so, never on a timer.

If a save fails, the tab says so and keeps your work. That is the half that makes the rest safe — you can stop thinking about saving only because the screen shouts when it could not. A tab whose data failed to load never writes at all, so a blank state cannot overwrite a real one.

One behaviour on every tab, Appearance included. Leaving Appearance — the tab most often open in front of a client — writes the look you were working on rather than discarding it.

6. Deploy early, and often

A draft nobody has deployed has not been tested. It has been looked at.

Deploy the moment there is anything to see, then keep deploying. Two reasons, and the second is the one people learn the hard way:

  1. The gap between what you built and what your client sees is where surprises live. Closing it daily makes each surprise small.
  2. Your first deploy will surface configuration you did not know you owed — readiness checks run before an app can go out, and finding those on day two costs an hour. Finding them the morning of a demo costs the demo.

Deploying is not the same as showing. Deploy freely; choose separately when to point your client at it.


7. Permissions last — but never “later”

Do permissions after the shape and the screens settle, because writing them against a moving shape means writing them twice.

But do them before anyone real signs in, because nothing is granted implicitly. A role with no explicit grant on an entity sees nothing at all — not a filtered list, not an empty state you can explain. That is deliberate: the alternative is a role quietly seeing more than intended, which is the failure you cannot detect by looking.

An app user in that position sees “You don’t have access to this data — ask your administrator for read access to entity” on each widget, rather than a failure message. That is a deliberate distinction: a denial is a normal state for a restricted app user, and dressing it as breakage sends the client’s staff to you with a bug report instead of an access request.

A deploy REFUSES while a role can read nothing at all, naming the role — to staging and to production alike. It still never grants anything for you: give the role read access in Build ▸ Permissions. An app whose app users only submit forms is a legitimate design, so there is a way through — “Deploy anyway — nobody will hold “‹role›””, naming the roles it acknowledges — and taking it is recorded against the deploy; the check then stays amber. (Admin roles are not counted, and an app with no record types yet is never refused.)

It refuses rather than warning because a record type is created with no grants at all, so every new app starts blind — nobody chooses that. Refusing until you either grant access or say that nobody will hold the role is what makes it a choice.

Sign in as the role and look. Do not read the permission matrix and conclude it is right. The matrix is what you meant; the session is what you did.

8. Bringing in data from somewhere else

Sooner or later a client’s records come from outside the app: a spreadsheet someone has kept for years, another system’s export, or a model an analyst runs elsewhere and pushes in on a schedule (see Get data in and out). The mechanics are covered there. These five checks are what decide whether the data that lands is right, and each one takes minutes.

Ask whether the references resolve there — not whether the rows are valid. A row that points at a deal, a site or a person by an identifier is only meaningful where that identifier exists. Rows built in one place and loaded into another can be perfectly well-formed and point at nothing at all. A table full of rows that each point at nothing is worse than an empty one: an empty table says “no data yet”, while a broken link looks fine and says nothing. Before you load, count how many of the references find their target on the receiving side. If the answer is not all of them, find a business key both sides share — a reference number, a name plus a date — and map on that. If it identifies every row exactly once, the mapping is a lookup, not a guess.

Count your update key against the source before you send anything. An import or an inbound endpoint updates a row it has seen before instead of adding it again, by matching on the key you choose. The obvious key — who did what, and when — is often not unique: two notes logged by the same person on the same record in the same minute share it, and the second silently replaces the first on the next run. Count the distinct values of your key in the source. If that number is not the number of rows, it is not a key; add fields until it is. Then send the whole load a second time and confirm the count does not move.

Use the address the endpoint gives you. When you create an inbound endpoint, the builder shows its address and its secret (“Endpoint created. Give the sender this address and secret…”). Copy that address rather than writing one out from the pattern you expect — an address built by hand is the most common reason a first delivery is refused. And map each reference to a key the sender actually holds (“the Deal whose Reference is this”): a sending system knows its own identifiers, never the ones your app generated.

Check it as an ordinary app user, never as an app admin. An app admin is not limited by the permission matrix at all, so an app admin’s screen proves nothing about what your client’s staff will see. Sign in as one of the people who will actually use the page. It is also where you notice what a row count cannot tell you: a table can be full and still not be readable — a column showing an identifier where a person expects a name is data, but it is not an answer.

Look at what you are about to send. The builder is a working space, and working spaces collect scratch rows: a test record, an experiment you meant to delete. They travel with everything else and land in front of your client. One look at the source before it goes is cheaper than removing them from both sides afterwards.


The shape of a build that ages well

Do thisBecause
Write down the business’s nouns before drawing screensscreens bind to shapes, not the other way round
Name fields the way the client speaksthe key outlives every screen it appears on
Define the options for anything countablefree text becomes four spellings of one value
One record type per real thingtwo record types is two of everything, forever
Map every template role, or add the missing fieldan unmappable role is a gap in your shape
Deploy on day one and every day aftera draft has been looked at, not tested
Sign in as each role before handoverdeny-on-unset means a missing grant is invisible from the matrix
Count references that resolve before loading dataa row that points at nothing looks fine and is wrong
Count distinct key values before choosing an update keya key that is not unique loses rows quietly on every re-run
Copy the endpoint’s own addressan address built by hand is refused
Check loaded data as an ordinary app useran app admin never consults the permission matrix
Look through the source before it goesscratch rows travel with real ones