Boards: shared infinite canvases you draw on together
Describes Boards 0.8.0. On an older release? The version menu above has this guide as it was then.
A board is an infinite canvas for shapes, text and pictures. Several people can have the same board open at once and see each other’s changes and cursors as they happen.
Where to find it
In the admin sidebar, open Boards (/admin/boards). You need a role with the Manage boards permission (“Open the boards admin pages and every board, in any place, whoever made it”). The base Boards permission alone lets a person use boards on the site’s own pages, but not this list; without Manage boards the page sends you back with You do not have access to the boards admin. The Boards module must be enabled on the Modules page.
Boards: shared whiteboards.
The boards list
Each board is a card with its name, the time it was last Updated, and an Open button. The name opens the board too.
- New board creates a board called “Untitled board” and opens it straight away.
- The trash icon deletes a board after you confirm Delete this board?. The board’s media folder, if it has one, moves to the media trash. Its files are not deleted.
With no boards yet, the page says No boards yet. Create your first one.
The list shows every board on the site, newest change first: the ones made here and the ones people made from quick boards panels on other pages, private ones included. It shows names and dates only.
Working on a board
A board.
A board: paste, draw and arrange together.
The board fills the page. The arrow at the top left goes back to the list.
The board uses the same controls as PhoenixKit’s media viewer, in one dark nav bar. Its View / Annotate switch chooses between looking around the board and drawing on it. In Annotate, the drawing toolbar holds the tools: grabbing and moving, images, rectangles, circles, polygons, lines, freehand drawing, a marker, text, callouts, dimension lines, an eraser and a pointer. The nav bar also shows the zoom with a slider, a button for actual size, Export as PDF, and, behind its ⋯, fullscreen, rotate left and Reset view. Every change is saved as you make it; there is no save button. If a save fails, the page says Could not save the board.
The board remembers your zoom and pan in your browser and puts them back when you return to it.
Export as PDF
Export as PDF in the nav bar downloads the board as a PDF file named after the board. The same action is in the ⋯ menu of a board’s tile in a quick boards panel.
Who is on the board
At the top right, a row of round avatars shows everyone who has the board open, yourself first. Hover an avatar for the person’s name. Next to them, a count says how many are online.
While someone else is on the board you see their cursor move, and their edits appear on your canvas. If two people save at the same moment, both changes are kept. If your connection drops and comes back, the board catches up with what others did meanwhile and keeps what you did while offline. When the same shape was deleted by someone else and edited by you offline, the delete wins.
Images, sound, video and links
Paste or drop a file onto the canvas to add it. Images (PNG, JPEG, GIF, WebP), audio and video files are accepted, up to 256 MB each. They are uploaded to the site’s storage and the board keeps only a link to them. Each board’s files go into a media folder of its own, made on the first upload.
Paste a web address and the site fetches that page’s preview details and draws a link card on the board, stored like any other picture. When a page can’t be previewed, the address simply stays on the canvas as text.
What it doesn’t do
- The board page has no rename. A board made with New board keeps the name “Untitled board” unless it is renamed from a quick boards panel.
- The list has no search, filter, archive or visibility controls. Archived boards and private boards from quick boards panels are listed like any other.
- Uploads need the Storage module with at least one bucket. Without it, an upload fails and the picture is stored inside the board itself, which makes every later change on that board heavier.
- Deleting a board does not delete its files: the folder goes to the media trash.
For developers
-
Two permissions: Boards (the module key
boards) for people using boards on the site’s pages, and Manage boards (boards.manage) for this list and every board. On the first start of 0.8 with the module enabled, every role that held Boards is also given Manage boards. -
config :phoenix_kit, laser_measure: true(the media viewer’s switch) adds a measure tool that turns a Bosch laser meter’s readings into shape labels. -
Raise the LiveView socket’s
max_frame_sizein the host endpoint (the README suggests64_000_000). Edits that carry embedded images can otherwise exceed the default and are lost. -
Optional: mount
socket "/phoenix_kit/board", PhoenixKitBoards.Web.BoardSocket, websocket: trueinendpoint.exto carry cursors and live drags over their own channel. Without it, cursors still work and live drags don’t show. -
Run
mix phoenix_kit.updateafter adding the dependency to create the table.