Quick boards: notes, pictures and sketches on any page
Describes Boards 0.7.0.
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 see it; someone who isn’t signed in sees Sign in to see boards here. Whether a person may see the boards of a given place is decided by the site (see “For developers”). A board opened from the panel opens at /dashboard/boards/<id>, so people who are not admins can use it too.
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. 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.
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 Boards admins 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.
- 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 Boards admins 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 Boards admin permission can still open any board from /admin/boards. 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={…} />. 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?}. With no hook, any signed-in user may view and create. A hook that fails or returns anything but true or false denies.