Skip to content

Boards 0.7.0: Paste to make a whiteboard, private boards and real-time editing that holds

Boards 0.7.0 turns PhoenixKit’s collaborative whiteboards into something you can drop into any page of your Phoenix LiveView app: a grid of boards for a place, a paste to make a new one, private or shared boards, and real-time editing that no longer loses anyone’s changes.

Boards anywhere in your app

A new widget, boards_panel/1, shows the boards of one place in your app (a project, a customer, a room) as square tiles, with a last tile that makes a new one: an empty canvas, a canvas with a note, or one with a photo from the camera or a file. Each tile’s menu renames, pins, archives, deletes or switches the board between private (only its creator) and shared. Your app decides who may see a place through an optional authorize hook, and people who are not admins open boards at /dashboard/boards/:id. Every upload on a board is filed in a media folder of its own.

The Boards widget on a project page: square tiles for each board, one with pasted screenshots, notes, and a last tile to make a new board from text or a photo The Boards widget on a project page: square tiles for each board, one with pasted screenshots, notes, and a last tile to make a new board from text or a photo

The Boards widget on a host page: one board made from pasted screenshots, note boards, and the tile that makes a new one.

Paste to make a board

Click into the widget and paste: text makes a note board, and images make one board holding all of them, with any text across the top. Dropping or choosing several pictures does the same, up to eight. Each paste shows a notice with Undo. The widget listens only while it has focus, so pastes elsewhere on the page are untouched. A board also reopens at the zoom and position where you left it.

A PhoenixKit board made from one paste: a note across the top and three screenshots laid out in a grid under it A PhoenixKit board made from one paste: a note across the top and three screenshots laid out in a grid under it

One paste of three images and a line of text makes one board: the note across the top, the pictures in a grid.

Real-time editing you can trust

Several people can edit a board at once, and this release fixes how their changes meet:

  • Two people saving at the same moment no longer overwrite each other. Each edit is saved as what it changed, applied under a lock, and sent to the others in the order it was stored.
  • A page that loses its connection catches up when it comes back and keeps what was done offline; a peer’s delete still wins.
  • Someone whose connection dies no longer lingers as a ghost cursor.
  • Pasting a link no longer freezes your board while the linked page loads.
  • People on a board are shown by display name, never by email address.

Upgrading

Boards 0.7.0 needs PhoenixKit 2.64.1 or later, fresco 0.15 or later and etcher 0.23. Run mix phoenix_kit.update for the V2 migration, which only adds columns; existing boards become shared and belong to no place. Version 0.6.0 was never published, so its changes arrive with this release.

Full release notes: Boards 0.7.0

0.7.0 · 11 November 2026

Includes everything listed under 0.6.0, which was never published to Hex.

Added

  • Paste to make a board. Click into the widget (or tab to it) and paste: text makes a note board, and images, with any text that came with them, make ONE board holding all of them (a note across the top, the pictures in a grid under it). It listens only while the widget has focus and never while you are typing in one of its fields, so a paste elsewhere on the page is untouched. The new-board tile shows “Paste text or an image” while it is listening, a short notice with Undo follows each paste, and the board stays on the page so several pastes in a row work. paste={false} turns it off; script_nonce covers a Content-Security-Policy. Choosing or dropping several pictures at once now makes one board of them too (up to eight), where it used to take one.
  • A board reopens where you left it. The zoom and pan are remembered per board in the browser and put back when you return.

Fixed

  • Opening an old board with embedded images tells everyone already on it. The images are moved into storage when a board opens, and nobody else on the board was told, so they kept the heavy embedded copies and wrote them back the next time they touched one of those shapes.
  • A viewer whose connection dies no longer lingers on the board. The “who is online” list relied on a goodbye sent when a page closed cleanly, which a killed connection, a crash or a lost node never sends, leaving a ghost avatar and cursor until everyone reloaded. Each peer’s process is now watched from the moment it is heard of.
  • Pasting a link no longer holds your board. The page was fetched inside the LiveView, so for as long as a slow site took (up to 12 seconds) your edits, your cursor and what your peers sent you all waited. It is fetched in a task and answered with an event paired to the paste; at most three run at once.
  • A tile’s menu is no longer cut off. It opened inside its tile and, on a small screen, went behind the tiles after it. It now spans the tile and sits above its neighbours while open.
  • The LiveView cursor fallback only relays numbers, as the channel path already did.
  • Two people saving at once no longer overwrite each other. An edit used to be saved as the editor’s whole shape list, so a save made from a list that was a moment stale erased whatever a peer had saved in between, and each editor replaced their own list with whichever list arrived last. The edit is now saved as what it changed, applied to the stored board under a row lock, and peers are told that change after it is stored (and in the order it was stored), not the whole list before it is written.
  • A page that reconnects catches up, and keeps what was done offline. A reconnect starts a new LiveView from the stored board while the page still shows the board from before its line dropped, so it missed every peer change until its next edit — and that edit wrote the peers’ shapes back to their old versions. The page now reports its board and what it changed since the drop; those changes go on top of the stored board (a peer’s delete wins over an offline edit of the same shape), and the page is sent what it lacks. The cursor channel is also re-established on reconnect.
  • Applying a peer’s edit no longer reverts part of it. When one edit both deleted a shape and changed another, the receiving page reported the board mid-update with the old version of the changed shape, and that was stored.
  • Someone opening a board while another person saves no longer misses that save. The page subscribes before reading the board and hands the browser any change that arrived while its scripts were still loading.
  • Edits arriving out of order no longer roll a viewer back, and an ordinary edit made from a slightly stale list keeps the stored layering.
  • Peers are shown by display name, never by email address. Since the user route, people sharing a board are not all admins.
  • A widget with no place lists admin-only boards to admins only, matching who may open them.
  • Pasting is turned off when the widget loses permission to create, and any pending pasted images and caption are dropped rather than carried into the next board. Pending clipboard content also no longer crosses into a widget showing a different place or user.

0.6.0 - 2026-10-30 (not published)

Boards can now belong to a place inside a host app, be private or shared, keep their files in a media folder of their own, and be made from a drop-in widget.

Added

  • A quick-board widget, PhoenixKitBoards.Web.Components.boards_panel/1 (the PhoenixKitBoards.Web.BoardsPanel LiveComponent). A grid of square tiles, one per board, and a last tile of the same size that makes one: the big + makes an empty canvas and opens it, Text makes a canvas with a note already on it, Image (camera or file, and a drop target) makes a canvas with the picture already on it. A tile’s menu renames, pins, makes private or shared, archives or deletes. With no boards yet the new-board tile is alone and centred. It does not manage places or projects — the host chooses what place it is for. Attributes: scope, label, show_label, folder, visibility_options, default_visibility, actions, limit, open, return_to, poll, class. It re-reads itself on a timer; hosts wanting instant updates use Boards.subscribe_scope/1 and BoardsPanel.refresh/2.
  • Places. A board optionally belongs to a place, {scope_type, scope_id}: strings, integers or atoms, stored as strings. A place with a missing id shows nothing — never the boards that belong nowhere. Boards.list_for_scope/3, count_for_scope/3, normalize_scope/1, scope_topic/1.
  • Private and shared boards. visibility is private (the creator only) or shared; Boards.set_visibility/3, pin/2, unpin/2, archive/2, unarchive/2. Existing boards become unscoped and shared.
  • Who may see a place is the host’s call: an optional config :phoenix_kit_boards, :authorize, {Mod, :can?}, called as can?(:view | :create, user, scope). A hook that raises, exits or answers anything but a boolean denies. It can narrow access, never widen a private board. Admins with the boards permission still open anything. PhoenixKitBoards.Access.
  • Boards open for people who are not admins at /dashboard/boards/:id (a hidden user-dashboard tab, from which core generates the route), with a validated return_to back link. A missing board and a forbidden one answer the same “Board not found.”
  • A media folder per board. Every upload on a board is filed in the board’s own folder, made on its first upload, so one folder holds exactly one board’s files. Default Boards / <place> / <board>; override per widget with folder={{:under, uuid}}, {:path, [...]}, :root or a function, or for the whole app with the :attachments_parent_folder / :attachments_folder_name hooks. The folder follows a rename of the board (unless it was renamed by hand or named by the hook), may sit in any storage library, and is trashed with the board; files are never deleted. PhoenixKitBoards.MediaFolders, PhoenixKitBoards.Uploads.
  • Quick capture. PhoenixKitBoards.Quick makes a board from nothing, a note or an image, sized for the canvas a board starts with.
  • Migration V2 (additive; every column nullable or defaulted): scope_type, scope_id, visibility, kind, folder_uuid, folder_parent_uuid, preview, pinned_at, archived_at. Hosts run mix phoenix_kit.update.
  • Database tests — a DataCase, a bare endpoint for Phoenix.LiveViewTest and integration tests for all of the above (the module had none).

Changed

  • The core floor is now >= 2.64.1 (was >= 2.0.0; the ceiling is unchanged). The new code calls Storage.ResourceFolders, Libraries.media?/1, Storage.create_folder/1, trash_folder/1, store_file_in_buckets’s :library_uuid, Auth.merge_user_custom_fields/3, Scope.can?/2 and TimeDisplay, none of them guarded; all exist from 2.64.1.
  • Saving a board stores a small preview (first text, first image, shape count) and announces {:boards_scope_changed, board_uuid} on the place’s topic when it changed. The message carries no name, so a private board does not leak.
  • The fresco and etcher floors move to fresco >= 0.15.0 and etcher ~> 0.23, the releases core pins now, and the locked bandit is updated (the old one failed mix hex.audit). With etcher 0.24 a pasted image comes in at a usable size, once core’s pin allows it.

Fixed

  • The editor’s preferences were never saved. The etcher:prefs-changed clause sat below the "etcher:" <> _ catch-all, which swallowed it. It is now above it, and capped at 8 KB since the report comes from the browser.

Boards 0.7.0. Install or update: {:phoenix_kit_boards, "~> 0.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.