Build the tree
Once a connector has a menu attached (see Make a connector an app), the tree editor on the right is where you compose the navigation: folders that group, leaves that open screens / endpoints / dashboards / routes.
The model is a flat list of items linked by parent — but the editor lets you work with it as a tree. Drag operations mutate the underlying flat order; the tree on screen always reflects what's saved.
The toolbar
In the page header:
| Button | What it does |
|---|---|
| + Folder | Adds a folder at the top level. The folder is the only item kind without a type. |
| + Item | Adds a leaf at the top level — set its type and target in the panel on the right. To add under a folder, use the row's + (Add child item). |
| Discard / Save | Revert or write the whole menu. |
| Reload config | Re-reads the configuration files. |
On the panel of the picked entry, next to its kind:
| Button | What it does |
|---|---|
| Clone | Duplicates the entry (subtree included). Prompts for a new id. |
| Find usages | Lists every place this menu entry is referenced (e.g. another connector's home field). Helps before a rename / delete. |
| Find dependencies | Lists what the entry relies on — its connector and its target (a screen, a query, an endpoint, a dashboard or a job) — and what they rely on in turn. |
The tree rows
Each row carries:
| Element | What it shows |
|---|---|
| Indent | Visual depth — each level is 16 pixels in. |
| Chevron | ▾ for an expanded folder, ▸ for collapsed; a double click on the folder's row toggles it too. |
| Icon | The kind of the entry: an open or closed folder, a screen, a dashboard, a job, a query, an endpoint, a page. The item's own icon is the one the application's sidebar draws. |
| Label | The label field. |
| Id | Monospace, muted, after the label. Fades out on hover to make room for the actions. |
| Per-row actions (hover) | Move up (↑), Move down (↓), Indent (→), Outdent (←), Add child item (+), Delete (🗑). |
Click anywhere on the row to select the item — the Inspector on the right loads its full form.
Drag and drop
A row is dragged onto another: above it, below it, or into it when it is a folder — with everything under it. A line or a highlight shows where it will land. Dragging is off while the tree is filtered.
Each row carries the icon of what it opens — folder, screen, dashboard, job, query, endpoint, page. The tree and the picked entry are two panels side by side; the entry's own actions — Clone, Find usages, Find dependencies — are on its panel, and Folder, Item, Discard and Save are in the page header.
The per-row actions
The icons that appear on hover, left to right:
| Action | What it does |
|---|---|
| ↑ Move up | Swap with the previous sibling. Disabled when the item is the first child of its parent. Moves the whole subtree together — child links follow. |
| ↓ Move down | Swap with the next sibling. Disabled at the end. |
| → Indent | Reparent the item under the previous sibling. The previous sibling becomes the new parent. Disabled when there's no previous sibling. |
| ← Outdent | Move the item up one level — its grand-parent becomes the new parent. Disabled when the item is already at the top level. |
| + Add child item | Adds an item as a child of this row. |
| 🗑 Delete | Removes the item — with its whole subtree, after a confirmation, when it has children. |
The icons are intentionally compact and only show on hover — the tree stays scannable in steady state.
Building a tree from scratch
A typical flow for a new app's menu:
Step 1 — Add the top-level folders
Click + Folder to add a folder. The default id is something like folder_1; the Inspector lets you rename it.
| Top-level pattern | Examples |
|---|---|
| One folder per domain. | security, pipeline, reports, admin. |
| One folder per workflow phase. | setup, daily-ops, month-end, audit. |
| One folder per audience. | for-managers, for-operators, for-analysts. |
Pick the convention that maps to how your users think — not how the data is shaped.
Step 2 — Add the leaves under each folder
On the folder's row, click + (Add child item). The new item appears under the folder. Set its type, connector, target in the Inspector — see Item types.
Step 3 — Reorder
Use ↑ / ↓ on each row to put items in the order the user should see. The order in the tree = the order in the rendered sidebar.
Step 4 — Nest where needed
Use → (Indent) to push an item under the previous sibling — useful when a folder grows long and you need a sub-folder. Use ← (Outdent) to pull it back out.
Step 5 — Save
The page-level Save first checks the menus: an entry that opens nothing, two entries with the same id, an entry under a folder that does not exist. Each one is listed above the tree — crm › Menu entry "Late orders" opens nothing: pick what it opens — with Open, which selects the entry in its tree (folders unfolded, application switched when needed), and nothing is sent. Then the server validates the whole menu (no cycles…) and writes menus.toml; a refusal is listed the same way — see A refused save. The hot reload picks up the changes; the user's next page load shows the new tree.
The application line
The line above the tree names the application — its name, else its id — with the number of its entries. A click on it shows the application's own settings beside the tree:
| Field | Notes |
|---|---|
| Application name | The name shown for the application in the list at the top of the menu. Blank shows its id. |
The Inspector form
Click a row → the panel on the right loads the form of the entry, in three tabs — General, Advanced and Translations. Each field carries one short sentence of help, the longer explanation behind more. The fields adapt to what the entry opens:
| Field | Tab | Notes |
|---|---|---|
| Id | General | A short name for the entry, unique in its application. Renaming here updates every child's folder reference automatically. Cross-file references (e.g. another connector's home pointing at this item) need a manual fix — use Find usages first. |
| Label | General | The sidebar text. |
| Icon | General | One of the sidebar icons. |
| What it opens | General | Screen (designed view), Query (raw table view), Endpoint (API call), Dashboard (widget grid), Page (frontend route), Job (run it, follow its log), Link (an address, opened in a new tab) — see Item types. Blank = folder. Switching from leaf to folder clears what it opens and its fixed values. |
| Application | General | For a query or endpoint: the application that holds it. Blank = this one. |
| Opens | General | Picked among the valid targets for what it opens and its application. |
| Folder | Advanced | The folder the entry sits in, picked among the folders; blank for the top of the menu. The tree's indent / outdent actions change it too. |
| Fixed values | Advanced | Values given to what is opened — a filter already filled in. One line per value: its name, picked among the filters of the screen it opens or the parameters of the query it opens (or typed), and the value. A line left without a name is not saved. |
| Only for the roles | Advanced | Shows the entry to these roles only. See Permissions and roles. |
| Screens the page works through | Advanced | For an entry that opens a page an application ships: the screens of the application the page reads and saves through. Whoever is given the entry is given what those screens need — see A page an application ships. |
| Keep on upgrade | Advanced | An upgrade of the application leaves this entry as saved here. |
| Translations | Translations | The label in the other languages. See Translations and icons. |
Edits are live in memory — the tree row updates as you type. Page-level Save is what writes to disk.
Renaming an item
Renaming an Id is more involved than other fields because every reference must update:
- Children: the children's Folder updates automatically.
- Cross-file: a connector's
homefield, or another menu's item that references this one, doesn't update. Use Find usages (on the entry's panel) before renaming to see every place that references the item.
For a heavy rename, the safe pattern is Find usages → Clone → fix references → delete the old one — the new id can take over while every reference is updated.
Cloning an item
Clone, on the panel of the picked entry, duplicates it:
- The whole subtree is cloned (a folder with children clones every descendant).
- The new ids are prompted from a modal — the default is the old id with a suffix.
- Cross-file references are not rewritten — the clones are brand-new items nobody references yet.
Useful when:
- You're building a variant of a section (e.g.
reportsfor managers,reports_adminfor admins). - The same shape applies to two apps and you copy-pasted the tree.
- You want a sandbox version to experiment with.
Deleting an item
The row's 🗑 icon removes the item. When it has children, a confirmation asks first, and confirming removes the whole subtree.
There's no soft delete — the item disappears immediately from memory. The page-level Save is what persists. Until you Save, you can Discard to revert.
For cross-file references (a home field pointing at the deleted item), the connector's home becomes invalid — the app falls back to the first visible top-level item on next load. Use Find usages before deleting heavy items.
Filtering long trees
A search box above the tree narrows the visible items by id / label substring. Useful when a menu grows past 30-40 entries.
The filter is case-insensitive and matches anywhere in the id or label. Folders whose children match are kept (with the matching descendants visible).
Common pitfalls
| Mistake | Symptom | Fix |
|---|---|---|
| Two items with the same id in the same menu. | Save lists has the same id as another entry and sends nothing. | Pick a unique id. |
| An entry under a folder that doesn't exist. | Save lists sits under a folder that does not exist. | Pick a folder from the dropdown — only existing folders are listed. |
| Parent cycle (A → B → A). | Save validation fails ("parent cycle"). | The tree editor's indent/outdent never creates a cycle; only direct TOML edits do. |
| A leaf that opens nothing. | Save lists opens nothing: pick what it opens. | Set Opens in the Inspector. |
| Folder with Opens set. | Save validation fails ("folder cannot carry target"). | Either remove the target or set a non-folder type. |
| Dashboard or page leaf with an Application. | Save validation fails. | These two leaf types don't carry a connector; leave the field blank. |
| Renaming an item without checking Find usages. | Another connector's home or another menu's reference breaks silently. | Always check Find usages before renaming. |
What's next
- Item types — what
query/endpoint/dashboard/pageopen and the fields they take. - Permissions and roles — the
rolesfilter and how the menu prunes for each user. - Translations and icons —
l.fr,l.de, icon picking.