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 0088 — The trash: soft-deleted rows seen, restored, and a delete undone

RFC 0088 — The trash: soft-deleted rows seen, restored, and a delete undone

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

Summary

A model with soft_deletes keeps a deleted row, with deleted_at set: with_trashed() reaches it, restore() brings it back. Nothing a user sees does. RFC 0087's Delete says "They can be restored", and then there's nowhere to restore them from, and ⌘Z doesn't take it back.

This RFC gives a soft-deleting list its trash:

  • A view of the deleted: the list's Trash (a view in RFC 0070's Views menu, query.trashed = "only"), the rows with when they were deleted, the command answering only_trashed().
  • Restore: in the trash, the selection bar's Restore (onrestoremany(ids)), 500 keys a call, as RFC 0087's Delete.
  • Undo a delete: with onrestoremany, a delete of the selection is a step for ⌘Z (RFC 0079): undone by restoring the rows it deleted.
  • make:resource writes {p}_restore_many(ids), the index's trashed ("with", "only"), and over a backend the package's elyraRestoreMany and elyraList's trashed.

Motivation

  • "It can be restored" should be true for the user. RFC 0087 says it, for a model that keeps its rows; today only a developer can.
  • A delete of 340 rows is the change most worth undoing, and the one RFC 0079's history leaves out.
  • The pieces exist: with_trashed(), only_trashed() and restore() in elyra::db, Eloquent's SoftDeletes, the views menu, the selection bar and its chunks.

Current state (0.66)

  • #[model(soft_deletes)]: queries leave trashed rows out unless with_trashed() / only_trashed(); a query's restore() clears deleted_at. make:resource deletes softly for such a model.
  • The selection bar has Delete with ondeletemany and softDeletes (RFC 0087). A delete isn't a step for ⌘Z.
  • The Views menu (RFC 0070) has the app's views and the user's; a view is a query (filters, search, sort, columns).

Design

The trash, a view

  • trash on the Table (with onrestoremany, or true): the Views menu gets Trash after the app's views. Choosing it sets query.trashed = "only"; leaving it unsets it. A plain array's table shows the rows whose deleted_at is set.
  • In the trash: the list is read-only (no grid, no new row), a deleted_at column is shown ("Deleted"), the selection bar has Restore instead of Set and Delete, and a callout says "Deleted rows. Restore them to use them again."

Restore

onrestoremany(ids) => Promise<{ restored, failed }>: the selection's Restore, without a question, 500 keys a call with progress and Cancel; the restored leave the trash and the selection, the failed stay selected and are said.

Undo a delete

With onrestoremany, RFC 0087's delete of the selection is a step: ⌘Z restores the rows it deleted (the ones the answer said were), and ⇧⌘Z deletes them again. The confirm doesn't change; the toast after a delete says "Deleted 338 invoices. ⌘Z to undo."

make:resource (for a model with soft_deletes)

  • {p}_index's query takes trashed: Option<String> ("with", "only"), applied with with_trashed() / only_trashed(), and its rows carry deleted_at.
  • {p}_restore_many(ids) with the update ability: only_trashed() rows among them restored in one statement, {Model}Updated for each; answers { restored, failed }.
  • Over a backend: trashed is sent as the list's query; the package's elyraList reads it ('trashed' => true in its options lets it, for a model using SoftDeletes); POST {path}/restore with { ids }, answered by ->elyraRestoreMany($request) with each row's restore policy.
  • The list with select passes trash and onrestoremany.

Words

trash, trashCallout, restoreSelected, restoring(done, total), restoringLabel, restoredRows(n), notRestored(n), undoHint, deletedAt, in words.js and en/nb.

Implementation plan

  1. ui: Trash in the Views menu, query.trashed, the read-only trash with its column and callout, Restore with chunks, the delete as a step with onrestoremany; words.
  2. ratatosk: trashed in the index, {p}_restore_many local and over a backend, the hints; tests and the smoke (a soft-deleting resource).
  3. The Laravel package: elyraList's trashed, elyraRestoreMany; the test app's customers with SoftDeletes, a restore policy, and framework/tests/laravel_trash.rs.
  4. Docs: table.md, resources.md, backend.md, the skills, CHANGELOG.

Open questions

  1. The trash a view, or a toggle above the list? Recommendation: a view. The Views menu is where a list's other questions are, a view keeps its own columns and sort, and it's a link (?view=Trash).
  2. Restore asked first? Recommendation: no. It's the safe way back, and undoable by deleting again.
  3. Undo a delete without soft deletes? Recommendation: no. Without a restore there's nothing to undo with; the question says "This can't be undone", and means it.
  4. Emptying the trash (deleting for good)? Recommendation: not in this RFC. It's a different, destructive command (forceDelete), worth its own question and ability.

Decisions

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

  1. The trash is a view in the Views menu.
  2. Restore isn't asked first.
  3. No undo of a delete without soft deletes.
  4. No emptying the trash (forceDelete) in this RFC.

As built

As designed, with these differences:

  • The trash is an item of the Views menu, after the app's views; its label is the menu's while it's on. All or another view leaves it.
  • When a row was deleted reads deleted_at as unix seconds (an Elyra model's) or a date (Laravel's), in the user's locale.
  • The undo hint names the platform's key ("⌘Z to undo." on a Mac, "Ctrl+Z" elsewhere).
  • The delete and the restore share one runner for their chunks, its progress and Cancel.
  • The words are trash, trashCallout, restoreSelected, restoring, restoringLabel, restoredRows, notRestored, undoHint(key) and deletedAt.
  • Tested against the test app the Laravel CI job builds: its customers have SoftDeletes, elyraList its 'trashed' => true, a POST /api/customers/restore route and a CustomerPolicy::restore, and framework/tests/laravel_trash.rs is a step of its own. The other Laravel tests stay green with soft deletes on.

Not in this RFC

  • Deleting for good (forceDelete), and emptying the trash.
  • Restoring a row's children with it.
  • A trash across resources.

Alternatives considered

  • A separate trash page per resource. It repeats the list (search, filters, columns) for one more where.
  • Undo by keeping the deleted rows in the table's memory. They'd be written back as new rows, with new keys, losing what points at them; a restore keeps the row.