Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Reference
Ratatosk CLI
Roadmap
RFC 0001: make:resource
RFC 0002: live queries
RFC 0003: MCP server
RFC 0004: MCP resource templates
RFC 0005: a Laravel backend
RFC 0006: Laravel broadcasting
RFC 0007: offline and sync
RFC 0008: Laravel notifications
RFC 0009: Files
RFC 0010: Laravel abilities
RFC 0011: an assistant in the app
RFC 0012: @elyra/ui
RFC 0013: the assistant sees the window
RFC 0014: Elyra Inspector
RFC 0015: presence
RFC 0016: capabilities per window
RFC 0017: record invalidation
RFC 0018: the assistant's answer, streamed
RFC 0019: a window from the tray
RFC 0020: an app that stays in the tray
RFC 0021: a server chosen at sign-in
RFC 0022: signed in to more than one server
RFC 0023: private channels a window listens to
RFC 0024: updates from the backend
RFC 0025: commands and configuration
RFC 0026: the running app, for coding agents
RFC 0027: the assistant's code mode
RFC 0028: the tray's icon, and the app's
RFC 0029: installers
RFC 0030: the app's identity on Windows
RFC 0031: a token per workspace
RFC 0032: the microphone
RFC 0033: diagnostics the user can send
RFC 0034: one screen in several states at once
RFC 0035: point at it, and hand it to the agent
RFC 0036: rata check, the app checked as a whole
RFC 0037: Theme Studio
RFC 0038: edit it in its own app
RFC 0039: a write shown at once in every window
RFC 0040: the two halves agree
RFC 0041: Quick Look
RFC 0042: follow a colleague
RFC 0043: every write seen
RFC 0044: composite keys
RFC 0045: bigint all the way
RFC 0046: pivot columns
RFC 0047: relations on any key
RFC 0048: more providers
RFC 0049: OpenAI web search
RFC 0050: integer-keyed arguments
RFC 0051: citations
RFC 0052: open documents
RFC 0053: exit hooks
RFC 0054: the gui feature
RFC 0055: menus that change
RFC 0056: the framework's own words
RFC 0057: rata upgrade
RFC 0058: @elyra/charts
RFC 0059: all of WireCharts
RFC 0060: exporting a chart
RFC 0061: zoom
RFC 0062: printing
RFC 0063: linked charts
RFC 0064: report pages
RFC 0065: marks
RFC 0066: taking a table out
RFC 0067: totals
RFC 0068: columns the user picks
RFC 0069: filters
RFC 0070: saved views
RFC 0071: lists over Laravel
RFC 0072: targets
RFC 0073: every row out
RFC 0074: grouped rows
RFC 0075: pinned columns
RFC 0076: views on the server
RFC 0077: every match selected
RFC 0078: editing in the table
RFC 0079: many cells at once
RFC 0080: a value for the selected rows
RFC 0081: a new row in the table
RFC 0082: a related record in a cell
RFC 0083: a filter by a related record
RFC 0084: one write for many rows
RFC 0085: the keys shown
RFC 0086: many rows in Laravel
RFC 0087: many rows deleted
RFC 0088: the trash
Release notes
Changelog
Elyra
RFC 0082 — A related record in a cell: shown by its name, picked by searching

RFC 0082 — A related record in a cell: shown by its name, picked by searching

Status: implemented (2026-11-30) · Target: 0.66.0 · builds on RFC 0078, RFC 0079, RFC 0081 and RFC 0012 · see Decisions

Summary

An invoice belongs to a customer, a task to a project, a product to a supplier. In a list, that column is a key today: team_id: 3. It shows as "3", it can't be edited in the table (RFCs 0078–0081 left belongs_to out), and a pasted "Acme" can't become one.

This RFC makes such a column a reference: shown by the record's name, and picked by searching, as the form's Combobox already does.

<Table
  page={list}
  bind:query
  columns={[
    "number",
    {
      key: "customer_id",
      label: "Customer",
      ref: {
        search: (term) => api.customers_index({ search: term, per_page: 20 }),
        find: (id) => api.customers_show(id),
        label: "name",
      },
      edit: "ref",
    },
  ]}
  oneditrow={(row, values) => api.invoices_update(row.id, { ...inputOf(row), ...values })}
/>
  • A column's ref says how to find the related record: search(term) (the parent's index command), find(id) (its show command), and which of its fields is the key (value, "id") and the name (label, "name").
  • Shown by name: the table finds the names of the keys on the page, once each, and shows "Acme Ltd" where it showed "3". Copy, the CSV and the search use the name too.
  • edit: "ref" (and create: "ref") edits the cell with a Combobox over search, the key written, the name shown at once.
  • A paste of names finds each by searching, and takes the record whose name is exactly that. The same for Set on the selection (RFC 0080).
  • make:resource writes ref for a belongs_to whose parent has a resource, so a list shows names; with --inline, they're edited too.

Motivation

  • A key is not what a user reads. A list of invoices with "3", "7", "3" in the customer column is a list the user can't use without opening each row. Apps write a format with a lookup of their own, or an index command that joins the name in, for every such column.
  • The table edits everything but these. RFCs 0078–0081 edit text, numbers, dates, booleans and options in place, and paste, fill and set them. A related record is often the very column a bulk change is for: "move these 40 tasks to the new project".
  • The pieces exist. Combobox searches a command and keeps a label for a value (RFC 0012); make:resource already finds a parent's resource (ParentView) and picks it in the form; the detail view already shows the parent's name from its _show.

Current state (0.67)

  • A column shows format(value, row), or the app's cell snippet, or the value. A key shows as the key.
  • edit is "text", "number", "date", "boolean" or { options }; a belongs_to isn't edited in the table, and make:resource --inline leaves its column alone.
  • The form's Combobox searches {parent}_index({ search, per_page: 20 }) and shows the parent's first text field; the detail view finds the name with {parent}_show(id), live.
  • A paste, a fill and Set read a value by its column's kind (pastedValue), synchronously.

Design

A column's ref

ref?: {
  search: (term: string, { signal }) => Promise<Row[] | Page<Row>>,
  find?: (id) => Promise<Row>,          // one record by its key
  value?: string,                         // its key's field: "id"
  label?: string | ((row) => string),     // its name: "name"
}

Shown by name

  • The names on the page: for the keys in a ref column that the table has no name for, it calls find(id), once for each key, at most six at a time. Until a name comes, the cell shows the key, muted; a key that can't be found stays shown as it is.
  • Kept by the table: the names are kept for as long as the table is there, for every page. A record picked or found by a search adds its name. A live page's re-run doesn't fetch them again.
  • A row that has the name already (an index command that returns customer: { id, name } next to customer_id) can say so with the column's format or cell, which still win; ref then only edits.
  • Copy, CSV, search, sort: Copy and the CSV have the name, and a rows table searches and sorts by it. A live page's sort is the command's, as it is today.

Edited

edit: "ref" (or create: "ref" for the new row only) makes the cell's editor a Combobox with options={ref.search}: typing searches, ↓/↑ move, Enter picks and saves, Esc leaves it as it was. The key is written (onedit(row, "customer_id", 7)); the name shows at once, from the pick. Emptying the text writes null.

A ValidationError for the column opens the editor again with the message, as for any cell (RFC 0078).

Pasted, filled and set

  • Paste: a cell's text is a name. The table searches it with search(text), and takes the one record whose name is the same text (case and surrounding space aside). None, or more than one: the value doesn't read, and the paste is refused, as RFC 0079 has it ("Row 4, Customer: no Acme found" / "two found"). The names are looked up before anything is written, at most six at a time, the same name once.
  • A key pasted (a cell copied from this table's own key) is taken as the key when find finds it.
  • Fill down copies the key, and the name with it.
  • Set (RFC 0080) gives the panel the Combobox.
  • The new row (RFC 0081) picks it the same way.

make:resource

  • A belongs_to whose parent has a resource gets ref: { search, find, label } in the list, from the parent's _index and _show and its first text field (as the form uses), so the list shows the parent's name, with or without --inline.
  • With --inline, it gets edit: "ref"; the first column's create stays as it is.

Words

refNotFound(name), refMany(name), refLoading (the muted key's description), in words.js and en/nb.

Implementation plan

  1. ui/src/internal/refs.js: a column's ref with its defaults, the names kept by key, finding the missing ones (six at a time, once each), and a name looked up by search (the one exact match).
  2. Table.svelte: the name in the cell, Copy, CSV, search and sort (plainOf, display), the Combobox as the cell's editor, the name kept from a pick, and a paste, fill and Set that look names up before writing.
  3. Words, in words.js and en/nb.
  4. rata make:resource: ref for a parent with a resource, and edit: "ref" with --inline; tests and the smoke.
  5. Tests: names found once and kept across pages, a key not found, the editor's search, pick and Esc, emptying, a ValidationError, a paste of names (found, not found, two found, the same name twice), a key pasted, fill down, Set and the new row with a ref, format winning, Copy and CSV with names.
  6. Docs: table.md ("A related record"), a gallery example, the skills, resources.md, CHANGELOG.

Open questions

  1. Names by find(id) one at a time, or a findMany(ids)? Recommendation: find, with an optional findMany(ids) used when it's given. A page has few distinct parents, _show is what every resource has, and a findMany is an optimization an app can add.
  2. A paste with a name that matches more than one record? Recommendation: refused, as a value that doesn't read. Picking the first would write the wrong customer to 40 invoices without a word.
  3. make:resource lists show names without --inline? Recommendation: yes. A key in a list is never what a user wants, and it changes nothing the app relies on: the row's value is still the key.
  4. Live names? Recommendation: not in this RFC. A parent renamed while the list is open shows its old name until the table is opened again; the detail view keeps its live name.

Decisions

Accepted 2026-11-30, with the open questions' recommendations:

  1. Names by find(id), once a key, six at a time, and by an optional findMany(ids) when the app gives one.
  2. A pasted name that matches more than one record is refused, as a value that doesn't read.
  3. make:resource lists show names without --inline too; with it, the column is edited.
  4. No live names in this RFC.

As built

As designed, with these differences:

  • A key waiting for its name is shown as it is, not muted: a cell has no style of its own for it. A key that isn't found stays as it is.
  • Typing on a related record's cell doesn't start its editor: Enter, F2 or a double click opens the search, from the cell's name. A typed character can't be handed to the Combobox as its first.
  • refLoading (the muted key's description) isn't a word: nothing says a key is waiting.
  • make:resource's lists render a parent's column with the table's text (cell(row, col, text)), so the name shows in the generated cell snippet too.

Not in this RFC

  • Filtering a list by a related record (a ref filter with search).
  • Sorting a live page by the related record's name (the command's own join).
  • Many-to-many (belongs_to_many) in a cell.
  • Live names, updated when the parent is renamed.

Alternatives considered

  • The index command joins the name in. Every resource's command and its Laravel counterpart written again for each parent, and the edit still needs a search.
  • edit: { options } with every parent. Fine for five teams, not for 3,000 customers.
  • A format that looks the name up. Synchronous: it can't call a command, so every app writes its own cache, as ref does once.