Quick boards: notes, pictures and sketches on any page
Describes Boards 0.8.0. On an older release? The version menu above has this guide as it was then.
A quick boards panel is a grid of boards that belong to one place on the site, such as a project or an order. People use it to jot a note, drop in a picture or start a sketch right where they are working.
Where to find it
The panel appears wherever the site’s developer has placed it, often in a section of a record’s page. It is not in the admin sidebar. Signed-in users whose role holds the Boards permission see it; someone who isn’t signed in sees Sign in to see boards here., and a signed-in person without the permission sees nothing at all. Whether a person may see the boards of a given place is decided by the site (see “For developers”). People with Manage boards see every place’s boards.
The Boards module must be enabled on the Modules page.
Starting a board
The last tile is the new-board tile. With no boards yet, it is the only tile, shown larger.
- The big + makes an empty board and opens it over the page. It is named “Board” with the date and time.
- Text opens a small note box (Jot a note…). Save makes a board with the note on it; Cancel closes the box. The board is named after the note’s first line. A note can hold up to 2,000 characters.
- Image lets you take a photo or pick image files; you can also drop files on the tile. Up to eight images at a time make one board holding all of them, up to 25 MB each.
- The small menu under the buttons chooses who can see the new board: Only me or Everyone here. It shows only when both choices are allowed on this panel.
Text and image boards stay on the page as tiles. The empty board opens, since there is nothing on it to see yet.
Pasting
Click into the panel and paste. Text makes a note board. Images make one board with all of them, plus any text that came with them as a note across the top. The tile shows Paste text or an image while the panel is listening. It listens only while it has focus, and not while you type in one of its own fields.
After a paste, a notice says Board created: with the board’s name. Undo deletes that board again; the cross dismisses the notice.
Opening a board
Clicking a tile opens the board in a window over the page, the same board page with its viewer, live editing and export. Its top bar shows the board’s name, a button to open it in a new tab and a close button (Close (Esc)). Escape closes it too, also from inside the board, unless the board uses that key (to cancel a stroke, deselect or close a menu) or you are typing in a field. Closing leaves you where you were on the page.
If the board is deleted, made private or closed to you while it is open, the window says Board not found. A failed save shows Could not save the board. inside the window.
A board opens over the page it belongs to.
A board’s tile
A tile shows the board’s picture or the start of its note, and its name. A bookmark icon marks a pinned board, a lock a private one. The ⋯ button opens its actions:
- Rename: type a new name and press the check mark, or Escape to cancel. The board’s creator and people with Manage boards can rename.
- Pin to front / Unpin: keeps a board at the front of the grid. Anyone who can see the board may pin it.
- Make private / Share with everyone here: only for the board’s creator, and only when the panel offers both choices.
- Export as PDF: downloads the board as a PDF named after the board. The board is drawn out of sight for the export and taken down again. Only one export runs at a time; if it fails, the panel says Could not export the board as a PDF.
- Archive: hides the board from the panel without deleting it. Creator only.
- Delete: asks Delete this board? Its files move to the media trash. The creator and people with Manage boards can delete.
The panel shows up to 11 tiles; Show all with the total shows the rest. It refreshes itself every few seconds, so other people’s new boards appear without reloading.
Who sees what
A private board is its creator’s alone. People with the Manage boards permission can still open any board, in any place, from /admin/boards. Taking that permission away closes the admin list and a board they have open at once. A shared board is visible to everyone the site lets see that place.
What it doesn’t do
- The panel has no way to bring back an archived board.
- It doesn’t manage the places themselves. Deleting the project or order a panel belongs to does not delete its boards or their folder.
- Only images can be added from the panel. Sound and video go onto a board from inside the board.
For developers
- Place the widget with
<PhoenixKitBoards.Web.Components.boards_panel id=… scope={{"project", @project.uuid}} current_user={@current_scope.user} return_to={…} />.openis:overlayby default;:navigategoes to the board page at/dashboard/boards/<id>instead, and:new_tabopens it in a new tab. A site whose Content-Security-Policy forbids framing its own pages (frame-ancestors 'none') gets an empty overlay and should use:navigate. Options such asfolder,visibility_options,default_visibility,actions,paste,limit,openandpollare described in thePhoenixKitBoards.Web.BoardsPaneldocs. - Decide who may see a place with
config :phoenix_kit_boards, :authorize, {MyApp.Boards, :can?}. The hook is asked only for people who hold Boards; with no hook, any signed-in user holding it may view and create. The hook is not asked for holders of Manage boards. A hook that fails or returns anything but true or false denies.