What a Code Tile Is
A Code tile runs code you write and draws its result inside the dashboard. It is the tile for the charts and tables the built-in types do not cover, a waterfall against a target, a cohort grid, a shape a client asks for by name.
Who Can Add One
Code tiles is a feature permission, and it starts granted to nobody, super users included. Until a super user grants it, the tile type is not in the New tile menu and an existing code tile shows its drawing without the editor.
The permission sits with the others in Users & groups under Edit permissions. Grant it to a group rather than to a person, the same as every other permission.
Writing and Running
Add the tile, then write the code in the tile’s sidebar. An empty tile says so. The code runs in a sandbox, separate from the app and from the other tiles, and it reads the model through the API with your own permissions, so a code tile never shows a reader more than they may see.
The tile redraws when the data behind it changes, the same as a sheet or chart tile, so a code tile on a dashboard is not a snapshot.
In Exported Images
A code tile is left out of Export to image and a placeholder takes its place, because the export renders the dashboard without running tile code.
Letting an Agent Build One
The CLI ships a farseer-code-tiles skill, so an agent writing a Code tile follows the same house rules as the dashboards skill. It covers reading the model before writing anything, following the filter bar, writing cells after a click, and drawing in the Farseer look. It also runs the saved code once against made-up data and clicks every button, so a tile that would crash fails before anybody opens the dashboard.
