Skip to content

Boards 0.2.0: Collaborative whiteboards for the PhoenixKit admin

Boards 0.2.0 adds collaborative whiteboards to the PhoenixKit admin: infinite canvases that several people draw on at once, with pasted images kept in storage and pasted links turned into preview cards. It is the first version published on Hex, so 0.1.0’s features arrive with it.

What it gives a site

Turn on Boards on the admin Modules page and a Boards tab appears, at /admin/boards, to create, open and delete boards. A board is an infinite canvas with a drawing layer for shapes, text and images. Everyone on the board sees each other’s edits live, with a list of who is there and their cursors. A board opens ready to edit, with the grab tool selected, so the first drag pans.

Images and links

A pasted, dropped or picked image is uploaded through PhoenixKit’s Storage module, and the board keeps only its address. Before, an embedded screenshot was resent on every edit, and a few of them could make edits fail silently. This needs the Storage module with at least one bucket; without it, the image is embedded so the paste is not lost.

A pasted web address becomes a preview card built from the page’s OpenGraph tags. The fetch only follows http and https, checks every redirect for private addresses, stops at 2 MB and gives up after 12 seconds. A link that can’t be previewed stays as text.

Fixes

  • Moving a shape in front of or behind another is now saved and sent to others.
  • A boards table without a version marker is no longer assumed current; its version is read from its columns.
  • A failed link preview no longer takes the board down, and a timed-out upload no longer gives a later paste the wrong image.

Upgrading

Add {:phoenix_kit_boards, "~> 0.2"} and run mix phoenix_kit.update to create the phoenix_kit_boards table. Boards needs PhoenixKit 1.7 and fresco and etcher 0.10. Raise the LiveView socket’s max_frame_size in your endpoint, as the README shows, to leave room for embedded images.

 

 


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