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 0069 — Filters: a column's own

RFC 0069 — Filters: a column's own

Status: implemented (2026-11-28) · Target: 0.63.0 · builds on RFC 0012, RFC 0067 and RFC 0068 · see Decisions

Summary

The search box finds "Ada" anywhere in a row. It can't say "the open invoices", "over 10,000", "due this month": the questions a list of records is asked all day. Today an app that wants them builds its own controls over Table, writes them into query by hand, and adds the WHEREs to the resource's index command itself; each app's look and keys differ, and the generated resources have none.

This RFC gives a column a filter, the table the controls, and make:resource the backend half:

<Table
  page={invoices}
  bind:query
  columns={[
    "number",
    { key: "customer", filter: "text" },
    { key: "status", filter: { options: [["open", "Open"], ["paid", "Paid"], ["overdue", "Overdue"]] } },
    { key: "due", filter: "dates" },
    { key: "amount", align: "end", filter: "range", total: "sum" },
  ]}
/>
  • filter on a column: "text" (contains), { options } (one or more of them), "range" (a number from, to) or "dates" (a day from, to). "options" alone takes the values the rows have (for rows).
  • The control opens from a funnel on the column's header: a popover with the field, Apply and Clear. An active filter shows as a chip over the table ("Status: Open, Overdue ×"), and Clear filters takes them all off.
  • query.filters is where they go: { status: ["open", "overdue"], amount: { min: 10000 }, due: { from: "2026-11-01", to: "2026-11-30" } }. A rows table filters itself; a live page's command gets them, as it gets the search and the sort.
  • make:resource writes filters into the index command: a FILTERABLE allowlist per column and kind, and the WHEREs, so no filter from the frontend reaches SQL unchecked.
  • The totals (RFC 0067), the export (RFC 0066) and the summary are over what's filtered.

Motivation

  • Lists are filtered more than they're searched. "Overdue", "this month", "over a limit" are a filter each; a search can't say them.
  • The backend has to do it. A live page of 4,000 invoices can't be filtered in the window; the command must, and safely.
  • One way for every list. Each app building its own filter bar is each app's keys, chips and words, and an assistant that can't tell what a list is filtered by.
  • The generated resources are the first lists an app has. If they can't filter, every app writes the same code after make:resource.

Current state (0.63, with RFCs 0066–0068)

  • Table: search (a box, query.search), sortable (query.sort, query.direction), paging (query.page); rows does them itself, a live page's command does them from query.
  • make:resource's index command: {Ty}Query { search, sort, direction, page, per_page }, SORTABLE and SEARCHABLE allowlists, paginate.
  • The query builder has where_in, where_gte, where_lte, where_between, where_like, when_some.

Design

A column's filter

filter The control query.filters[key] Matches
"text" a field "ada" contains, ignoring case
{ options: [[value, label], …] } checkboxes ["open", "overdue"] one of them
"options" checkboxes of the values in rows the same the same
"range" two number fields, from and to { min?, max? } at least, at most
"dates" a DateRangePicker { from?, to? } (ISO days) on or after, on or before

An empty filter is no filter (and isn't in query.filters).

The controls

A sortable header is a button that sorts; a filterable one gets a second, small button beside its label: a funnel, filled when the column is filtered, named "Filter Status" (and "Status, filtered" when it is). It opens a Popover under the header with the control, Apply (Enter) and Clear; Esc closes it, focus back on the funnel.

Over the table, beside the search, a chip a filter, said as what it is: "Status: Open, Overdue", "Amount: 10,000 or more", "Due: Nov 1 – Nov 30". A chip's × clears it; Clear filters clears every one. The chips are a list named "Filters", and each change is said ("3 of 412 shown" for rows, the page's total for a live one).

Where they go

query.filters is written with page: 1, as a search is. A rows table filters before it searches and sorts; a live page re-runs its query with them. The totals (RFC 0067) and the export (RFC 0066) are of the filtered rows; the table's summary for the assistant says the filters.

The backend: make:resource

The index command's query gets filters:

pub struct InvoiceQuery {
    pub search: Option<String>,
    pub filters: InvoiceFilters,
    // sort, direction, page, per_page as before
}

/// The list's filters, one a filterable column: anything else is ignored.
pub struct InvoiceFilters {
    pub status: Option<Vec<String>>,
    pub amount: Option<Range<f64>>,
    pub due: Option<Dates>,
    pub customer: Option<String>,
}

Range { min, max } and Dates { from, to } are elyra::db::filter's, with apply helpers (where_gte, where_lte, where_in, where_like with % and _ escaped). The struct is typed from the model's fields, so a filter on a field the model doesn't have, or of the wrong kind, doesn't compile and can't be sent: serde drops unknown keys, and the generated TypeScript types say what's there. make:resource makes a filter for each field by its type (an enum or a string with few values: options; a number: range; a date: dates; other text: text), and the generated list's columns have filter to match.

Words

elyra.table.filter ("Filter :column"), filtered (":column, filtered"), apply, clearFilter, clearFilters, filters ("Filters"), atLeast, atMost, between, shown (":count of :total shown"), in English and Norwegian.

Testing

  • Each kind over rows: text, options (given and from the rows), range, dates; empty ones dropped; with the search and the sort.
  • The popover's keys and focus; the chips and their ×; Clear filters; the live region.
  • A live page: query.filters written with page: 1.
  • Totals and the export over the filtered rows.
  • The generated command: each kind's WHERE, % and _ in a text filter, an unknown key ignored, a model test over SQLite (and the MySQL/Postgres job).
  • A browser check in the docs: filter a status and a range, clear one.

Implementation plan

  1. internal/filters.js: matching rows, a filter's text for its chip, held by tests without a DOM.
  2. Table's funnels, popovers and chips; query.filters; the words.
  3. elyra::db::filter (Range, Dates, the helpers), with tests.
  4. make:resource: the filters struct, the WHEREs, the columns' filter; its tests and the rata new smoke test.
  5. Docs (docs/ui/table.md, docs/resources.md), CHANGELOG.

Open questions

  1. Funnels on the headers, or a filter bar over the table? Recommendation: funnels, with the chips over the table. The filter sits on the column it filters, the chips say what's on, and a table with ten filterable columns doesn't grow a bar of ten fields.
  2. "options" from the rows' values, for rows? Recommendation: yes, for rows only; a live page has a page of the values, not all of them, so it needs { options }.
  3. A typed filters struct, or a map of column to filter? Recommendation: typed. It's the allowlist and the types at once, and the TypeScript side gets it from codegen; a map needs both written by hand.
  4. Kept with persist, as the columns are? Recommendation: no. A filter is a question asked now; a list that opens filtered by last week's question hides rows. (Saved views are a later RFC.)
  5. Filters in the Laravel package's resources too? Recommendation: not in this RFC. The table sends query.filters to any backend; the Laravel side is its own change, if apps ask.

As built

  • ui/src/internal/filters.js: kindOf, optionsOf, isEmpty, activeFilters, filterRows and chipText, plain functions. A row's day is its value's first ten characters, so a time on the last day is in; a range passes numbers only.
  • The panel is the table's own, not a Popover: that one is a button of its own (32 px, with a chevron), too big for a header. The funnel is a 20 px button beside the label, and the panel is placed under it with the same place, onOutside and focusables the popovers use. Esc and a click outside close it without applying.
  • query.filters holds only the filters that filter something; with none, it's null. A range is written with both ends ({ min, max }, the unset one null).
  • The chips are over the table, under the search and the Columns menu; Clear filters shows with two or more. The live region says "3 of 412 shown" for rows, and the total for a live page.
  • where_contains is LOWER(col) LIKE LOWER(?) ESCAPE '!': ! is the escape, because a backslash means different things in MySQL's string literals and the others'. Query::filter_* leave a None, empty or blank filter out; filter_dates drops a day that isn't an ISO day and makes to "before the next day".
  • make:resource: a field's filter by its kind and format: text (contains), a date field's days, an integer's or a float's range (Range<i64>, Range<f64>), a bool's yes and no; none on a reference, a file or a JSON cast. The struct's fields are renamed to their columns where they differ, so the list's keys are the columns. A model with nothing to filter has no filters. Its tests filter by the first text field.
  • The smoke test (scripts/smoke-resource.sh) generates a resource, runs its tests, clippy and fmt, and in Chrome sets a filter on the list and checks the live query's filters and page: 1, and the chip's ×.
  • Checked against MySQL and Postgres by model_servers.rs in CI (filters on each), and SQLite locally.

Decisions

  1. Funnels on the headers, and chips over the table; no filter bar.
  2. "options" from the rows' values, for rows only.
  3. A typed filters struct in the generated command.
  4. Filters aren't kept with persist.
  5. No filters in the Laravel package in this RFC.

Not in this RFC

  • Saved views (a named set of filters, columns and sort).
  • Filters joined by OR, or on related records.
  • Filters in the Laravel package.

Alternatives considered

  • A filter bar of fields over the table: always there, and as wide as the columns that filter.
  • Only the search, with a syntax (status:open amount:>10000): fast for some, unknown to most, and nothing for the keyboard to land on.
  • A map of filters in the command: an allowlist and a type per key by hand, in every resource.