Your dashboards: create, share, clone and delete them
Describes Dashboards 0.8.0.
A dashboard is a page you put together from widgets: a clock, a note, module numbers, or widgets other modules offer. The Dashboards page lists every dashboard you can see and is where you create new ones.
Where to find it
In the admin sidebar, open Dashboards (/admin/dashboards). The Dashboards module must be turned on in Modules. You need the Dashboards permission. Creating, editing and deleting a shared dashboard needs the extra permission Manage shared dashboards and places; the Owner always has it.
Dashboards.
Reading a dashboard card
Each card shows:
- The dashboard’s title. Click it to open the dashboard.
- A badge with who can see it: personal (only you), shared (everyone who can open Dashboards) or role (members of one role).
- Its type, Grid or Pixel, and how many widgets it holds.
- Shown in: the places where it appears, such as the admin home. nowhere yet means it isn’t placed anywhere. Click a place to go to the Places page.
Open opens the dashboard in the builder. The ⋮ menu holds the rest:
- Edit: change the title and visibility. Shown only if you may manage this dashboard.
- Clone: make a private copy for yourself, named after the original with “(copy)” added, and open it in the builder. You can clone any dashboard you can see. The original stays as it was.
- Delete: asks Delete this dashboard? and then removes it. Shown only if you may manage this dashboard.
You may manage your own personal dashboards. A shared or role dashboard can only be managed with Manage shared dashboards and places.
With no dashboards yet, the page says No dashboards yet. and offers Create your first dashboard.
Creating a dashboard
Click Create dashboard. The New dashboard form asks for:
-
Title. Left empty, the dashboard is called “Untitled Dashboard”.
-
Layout type:
- Grid (responsive): widgets sit on a grid of cells, and you can design several layouts for different screens.
- Pixel (free canvas): widgets sit at exact pixel positions and may overlap.
The type is Fixed once the dashboard is created.
-
Visibility: Personal, or Shared if you have Manage shared dashboards and places. Only shared dashboards can be shown in a place. A personal one is yours alone.
Create saves it and opens the empty dashboard in the builder.
A new dashboard.
Changing title and visibility
Edit in the card menu, or the pencil next to the title in the builder, opens Dashboard settings. You can change the Title and the Visibility. Layout type is shown but locked.
If the dashboard is shown in a place, a warning names those places and says that making it personal removes it from there. Making a shared dashboard personal makes you its owner.
A dashboard that is already role-scoped keeps a By role option and a Role picker. New role dashboards can’t be created from this form.
Save returns to the list with Dashboard updated. If someone else saved the same dashboard a moment earlier, you see This dashboard was just edited elsewhere — please try again.
What it doesn’t do
- You can’t change a dashboard’s type after creating it. Clone doesn’t change it either; make a new dashboard instead.
- There’s no undo for Delete.
- The form doesn’t add widgets. That happens in the builder.
- Turning the module off doesn’t delete any dashboards, and removing the module from the app keeps them in the database.
For developers
Other modules, and the host app, add widgets to the catalog through phoenix_kit_widgets/0. A host app lists its provider modules in config:
config :phoenix_kit_dashboards, widget_providers: [MyAppWeb.Widgets]