Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ version and its date. Versions follow semantic versioning: a major version
when people have to change their setup, a minor one for new skills or
abilities, a patch for fixes.

## 1.1.25 - 2026-11-29

- `ironflock-templates`: the interview settles which boards an app gets (desktop, mobile or both), proposed as a conclusion and confirmed by the user, one board by default; the two boards are designed and changed independently, each for the people who use it (`board-mobile.md`, "Two boards, two kinds of use"). "Designing for a phone" names the phone patterns and the widget settings that make them: big job buttons (navbutton `fillTile`), a bottom bar (navbar `labels`, `indicator`), a drawer for rare pages (sidenav `presentation: drawer`), a list in place of a wide table (table `rendition`, `listRole`, `rowAction`), photos as a strip (image `multiImageLayout`, `enlargeOnTap`), and dialogs and menus that open as sheets on a phone.
- `ironflock-widgets`: the host contract describes the screen a board is shown on, which is not always the window (`--re-screen-left`, `-top`, `-width`, `-height`): a drawer, a bottom sheet or a full-screen view places itself inside it and takes its width from it.
- Apps can ship a board for phones: `.ironflock/mobile-board-template.yml`, next to `board-template.yml`, with the same schema and its own pages, widgets, layout and style. It is a board like the desktop board with other defaults: 48 columns × 96 rows, a `cell_size` of 8 px (desktop: 96 × 64 and 12 px), and pages that scroll. `ironflock-templates` has a new reference, `board-mobile.md`: when to ship one, its grid, bars and buttons that stay on the screen, which board a user gets and how links behave on both boards, designing for a phone, and looking at it with the image tools' `mobile` page. `example-mobile-board.yml` is a complete one. The board schema's descriptions give the mobile defaults.
- Pages can scroll one by one: a page of a board's layout may set `overflow: true` (it scrolls) or `false` (it is fitted onto the screen). Without it the style's `overflow` applies, which is now the default for the board's pages, and without that a desktop board's pages are fitted and a mobile board's scroll.
- Tiles can be pinned: a position with `pin: top` or `pin: bottom` stays at that edge of the screen while the page scrolls, `h × cell_size − grid_gap` pixels high. Across the full width it reserves a band (a bottom navigation bar, a filter bar), narrower it floats over the page (a floating action button). `board-layout-style.md` describes both features for every board.
- The board validator checks the mobile board with the same checks as the desktop board, on its defaults, and decides per page whether it scrolls: a page that scrolls has no row bound, need not be filled and needs no `fixedHeight`, only enough rows; a fitted page is bounded and must be filled by its unpinned tiles. Pinned tiles are not bounded by the rows, and the validator warns about `fixedHeight` or `fixedWidth` on them. Routes, navigation, bindings, forms and filters are checked on each board by itself, and every finding names the board's file. `widget.py` prints a fixed-size widget's cell count for both boards. A fixed-size widget whose tile spans the whole width (or height) of the grid is no longer asked for `fixedWidth` (or `fixedHeight`).
- The board validator refuses a URL parameter named `editor`, `chrome`, `share` or `ticket` in a filter, switch, toolbar, table edit column, form, binding or route: Studio keeps these names for itself in a board's address. `edit`, the usual name for an edit dialog's parameter, stays free.

## 1.1.24 - 2026-11-28

- The `alarms` table has a `deleted` column: a deleted alarm keeps a last row with `deleted` true, as in any entity table. The board validator knows the column, and the skills say to filter on it. The causes of an alarm event are `data`, `reset`, `stopped` and `deleted`.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.24
1.1.25
2 changes: 1 addition & 1 deletion plugins/ironflock-appliance/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ironflock-appliance",
"displayName": "IronFlock Appliance",
"version": "1.1.24",
"version": "1.1.25",
"description": "Add a direct connection from Claude Code to your IronFlock appliance. Configure the appliance’s HTTPS MCP address and sign in to that installation.",
"author": {
"name": "IronFlock",
Expand Down
2 changes: 1 addition & 1 deletion plugins/ironflock-dev/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ironflock-dev",
"displayName": "IronFlock Dev",
"version": "1.1.24",
"version": "1.1.25",
"description": "Build on IronFlock: design and scaffold edge apps that keep their state in the app's tables and embed their devices' web UIs in the board, write and validate their .ironflock templates (boards and widgets, data tables, app parameters, remote-access ports, AI agents), and create, change and check the board widgets themselves (@ironflock/widget-* Lit components). Needs the ironflock plugin, which Claude Code installs with it.",
"author": {
"name": "IronFlock",
Expand Down
15 changes: 13 additions & 2 deletions plugins/ironflock-dev/skills/ironflock-templates/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ files. Each file is optional and independent:
|---|---|
| `data-template.yml` | Creates the app's tables in the project's database. The app fills them through the SDK. |
| `board-template.yml` | Installs the app's board (dashboard): widgets bound to those tables, laid out on pages. |
| `mobile-board-template.yml` | Installs the app's board for phones, next to that board: pages, widgets and layout of its own on a finer grid ([references/board-mobile.md](references/board-mobile.md)). |
| `env-template.yml` | Renders a parameters form per device or device group. Values reach the app as environment variables. |
| `port-template.yml` | Lists the ports the app serves. A production install opens a remote-access tunnel for each. |
| `ai-template.yml` | Registers the app's AI agents with the IronFlock assistant. |
Expand Down Expand Up @@ -121,6 +122,13 @@ in it is described.
page, into `design/board.md`, and their short form into the board's comment
header ("Designing a board" in
[references/board-template.md](references/board-template.md) shows both).
The interview decides which boards the app gets: a desktop board, a
mobile board or both, confirmed by the user, one by default. A mobile
board has a brief and a route tree of its own for the jobs people do on a
phone, and the entity pages at the same routes:
[references/board-mobile.md](references/board-mobile.md). The two boards
are designed and changed independently, each for the people who use it
(board-mobile.md, "Two boards, two kinds of use").
Every entity users manage gets the shape that
[references/board-assets.md](references/board-assets.md) describes (read it
before a board gets a list, a form or a detail page of one): its list (a
Expand Down Expand Up @@ -152,6 +160,7 @@ in it is described.
| A SCADA page | "SCADA pages" in board-template.md, board-layout-style.md, board-bindings.md, board-navigation.md |
| A filter dropdown or a date range | board-bindings.md for wiring, board-layout-style.md for placement and the tile background |
| Show a device's web UI | board-bindings.md ("Embedding a web UI the app serves"), board-navigation.md |
| Build or change the board for phones (`mobile-board-template.yml`) | board-mobile.md and [references/example-mobile-board.yml](references/example-mobile-board.yml), then the references of the task as for the desktop board, and board-look.md with a `mobile` page |

All of them are in `references/`; "Which file to read" in board-template.md
says what each one holds. Choose widgets with
Expand All @@ -168,7 +177,8 @@ in it is described.

It checks every template against its schema, the rules the platform otherwise
reports only at install time, and each board widget against the widget's
published schema. Each finding names the file, line and path. If it reports a
published schema. It checks both boards, the mobile one on its own grid.
Each finding names the file, line and path. If it reports a
missing module, run it as `uv run ${CLAUDE_SKILL_DIR}/scripts/validate.py <app-dir>`,
or install `pyyaml` and `jsonschema`. Warnings are judgment calls. Read each one
and fix it unless it is deliberate. The validator has its own test suite, so a
Expand All @@ -177,7 +187,8 @@ in it is described.
chose and why, which tables and widgets connect, which design documents you
wrote or changed, and anything the app's code still has to do. Tell the user
they can open the board in IronFlock's board editor to adjust it visually. The
editor reads and writes the same `board-template.yml`. For a new app, add how
editor reads and writes the same `board-template.yml`, and
`mobile-board-template.yml` for the board for phones. For a new app, add how
to get it running: push it to the app's repository in IronFlock and run it on
a device from the IDE. That development run gets a tunnel for each port. Its
http(s) tunnels are private to its developers, who open them from the IDE's
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ An app runs on many devices at once, typically industrial PCs next to machines:
| SDK | The program's only link to the platform: tables, realtime feeds, device functions, files | the `ironflock` package (Python, JavaScript, Go) |
| Tables | The app's state, in the project's own database | `.ironflock/data-template.yml` |
| Board | The app's central UI: widgets bound live to the tables, for all devices | `.ironflock/board-template.yml` |
| Mobile board | Optional: the app's UI on phones, with pages of its own for the jobs people do there | `.ironflock/mobile-board-template.yml` |
| Parameters | Settings of one device or device group, made in its app settings | `.ironflock/env-template.yml` |
| Remote access | Tunnels to ports the containers serve, such as a web UI | `.ironflock/port-template.yml` |
| AI agents | Agents for the IronFlock assistant, with device functions as tools | `.ironflock/ai-template.yml` |
Expand Down Expand Up @@ -115,6 +116,12 @@ only what the request leaves open, and wait:
- who uses the app, where and on what (an operator at a wall screen, a
technician on a tablet, a manager at a desk), which is the board's brief
in board-design.md;
- **which boards the app gets: a desktop board, a mobile board, or both.**
Ask it as a conclusion from the answers, never as a bare menu: "the
technicians report at the machine on their phone and the planner works at
a desk, so a board for phones and one for the desk?" The user confirms or
drops one. One board is the default; two boards are twice the board work,
so never build both unasked (board-mobile.md, "When to ship one");
- where the data comes from: the machine, sensor or system, its protocol,
the sample rate, what is read and what is computed;
- what users set or change while the app runs, and what differs per device
Expand Down Expand Up @@ -147,7 +154,7 @@ its example, and every new app keeps these documents:
| `design/README.md` | The index, and the app's purpose: its users, the goal, the value, what this version leaves out |
| `design/architecture.md` | The parts (containers, the board, web UIs), what runs where, every table with its kind and its one writer, the data flows between devices and board, parameters, ports and tunnels, device functions and topics, the failure behaviour |
| `design/entities.md` | The entity model (below): each entity, its key, its table, who writes it, what users do with it on the board, and the relations |
| `design/board.md` | The board's design: the brief, the route tree with what each page shows and offers, the band plan of each page, the look and the state colours |
| `design/board.md` | The board's design: the brief, the route tree with what each page shows and offers, the band plan of each page, the look and the state colours; the same for the mobile board, when the app has one |
| `design/decisions.md` | The decisions, newest first, dated: what was decided between which alternatives, why, and what was left out |

Further documents join when the app needs them (a protocol, a data source's
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ Filter widgets set URL parameters for other widgets to read:
filter needs `timeStartParam` and `timeEndParam` with those names, plus a
complete time window, which serves as the default range.

Studio keeps four URL parameter names for itself in a board's address: `editor`
(what the board editor has open), `chrome`, `share` and `ticket`. No widget
may read or set a parameter of those names; the validator refuses them.

## Embedding a web UI the app serves

A device's own web page (a live view, a machine's HMI) reaches the board through
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ prefixes (`$str:`, `$num:`, `$bool:`) from board-template.md, "Anatomy" and
The grid is `style.columns` × `style.rows`, by default 96 × 64. Positions are given
in cells: `x`, `y` from 0, and `w`, `h`. Without `overflow`, the whole grid is
scaled onto the screen, so the grid is the screen. The exception is a widget with a
fixed width or height (see below).
fixed width or height (see below). The board for phones,
`mobile-board-template.yml`, follows the same rules with other defaults:
48 × 96 cells, a `cell_size` of 8 px, and pages that scroll
(board-mobile.md, "The mobile grid").

- **Fill every page completely.** Any cell no widget covers shows as empty screen,
and users read that as unfinished. Plan bands whose heights add up to `rows` and
Expand Down Expand Up @@ -69,6 +72,48 @@ fixed width or height (see below).
- **Layering is allowed.** A small widget (a date picker, a button) may sit on top
of a big one. `z` orders them, higher in front.

### Pages that scroll

A page scrolls or is fitted onto the screen. Its own `overflow` decides,
next to its `gridLayout`; without it the style's `overflow` does, and without
that a desktop board's pages are fitted and a mobile board's scroll. On a page
that scrolls every row is `cell_size` pixels high, the page is as long as its
tiles reach, it need not be filled, and a fixed-height widget needs only
enough rows, no `fixedHeight`. The rules above for filling the grid and
keeping inside its rows hold for fitted pages.

```yaml
layout:
gridLayout: [...] # fitted, as the board's style says
subRoutes:
log:
overflow: true # this page scrolls
gridLayout: [...]
```

### Pinned tiles

A position with `pin: top` or `pin: bottom` stays at that edge of the screen
while the page scrolls, on fitted and scrolling pages and on both boards. It
keeps its columns (`x`, `w`), its height is `h × cell_size − grid_gap` pixels
on any page, and its `y` only orders the tiles pinned to the same edge (top
to bottom). `fixedHeight` and `fixedWidth` mean nothing on it; the validator
warns about them. A pinned tile is neither bounded by the rows nor counted
when the page is checked for filling.

- **Across the full width** (`x: 0`, `w` the board's columns) it reserves a
band at its edge, and the page lies between the bands: a fitted page fits
its grid into the space between them, a scrolling page scrolls between
them. A filter bar pinned to the top of a long scrolling page stays in
reach:

```yaml
- {id: filters, x: 0, y: 0, w: 96, h: 6, pin: top} # 6 rows of 12 px less the gap
```

- **Narrower**, it floats over the page at its edge and reserves nothing: a
floating action button.

## Style

`style` applies to the whole board. Every key is optional:
Expand Down Expand Up @@ -134,8 +179,9 @@ on any board, and one with a transparent `tile_background_color` has no frame. S
the borderless buttons from "Let navigation blend in" (Layout, above) look the same under every
`tile_style`.

`overflow: true` makes the board scroll (cells are then `cell_size` pixels) instead
of scaling to the screen.
`overflow: true` makes the board's pages scroll (cells are then `cell_size` pixels)
instead of scaling to the screen. It is the default for the pages; a page's own
`overflow` wins ("Pages that scroll", above).

A style that names only a theme takes its four colours from the theme (its
background, title text and axis line colours), so `theme: {theme_name: dark}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ four times a minute. The key needs the scope to read data.
- **An installed board:** `get_dashboard_image` with `swarm_key` and
`dashboard_key` (from `list_dashboards`).
- `page` names the page to show (home without it), `full_page` shows the
page's whole height, `width` and `height` set the window.
page's whole height, `width` and `height` set the window. A `page` that
starts with `mobile` shows the board for phones (`mobile`,
`mobile/machines/press-1`), at 390 × 844 when no size is given; one that
starts with `desktop` shows the desktop board. Without either, the window
decides which board is shown: at the default size the desktop board.
board-mobile.md, "Looking at it", has more.

**When.** After you built a new board, after a change of layout or style that
affects a whole page, and when the user asks how it looks or says that
Expand Down
Loading