Skip to content

Document Creator 0.2.6: A Trash tab with restore

Document Creator 0.2.6 adds a Trash tab next to Active on the templates and documents pages, so a deleted file can be brought back.

Deleted files appear under Trash, where each one can be restored. The tab row stays hidden while nothing is in the trash. Since deleting can now be undone, the confirmation popup on delete is gone. A spinner covers a card while its delete or restore runs, and the New Template and New Document buttons are disabled while they work.

Lists are now sorted with the newest file first. PDF downloads also work in Firefox again, and an unexpected message no longer crashes the page.

Full release notes: Document Creator 0.2.6

0.2.6 · 15 April 2026

Added

  • Trash tab in DocumentsLive with Active/Trash status toggle (auto-hidden when empty)
  • Restore from trash — restore_template/2, restore_document/2, and list_trashed_*_from_db/0
  • Pending spinner overlay on cards during async delete/restore (layout-stable)
  • phx-disable-with on New Template / New Document buttons

Changed

  • Sort document/template lists by inserted_at DESC (workaround; see AGENTS.md TODO for drive_modified_at)
  • Remove delete confirmation popup — soft delete is recoverable from Trash
  • Refactor delete flow into data-driven action_spec/2 shared with restore

Fixed

  • PDF download: anchor now appended to DOM before .click() (fixes Firefox)
  • Catch-all handle_info/2 to avoid crashes on unexpected messages

Document Creator 0.2.6. Install or update: {:phoenix_kit_document_creator, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.