The admin console: sidebar and top bar
v0.0.3
The admin console of Mishka CMS has two parts that stay on every screen: the sidebar at the left and the top bar above the page. The core draws their frame, and each extension fills in what it knows. This page says what each part shows, what the status card means and what an extension can add. For the steps of an admin task, start from Get started.
The status card
The card at the bottom of the sidebar says what the parts of the CMS checked. Each part counts its own problems, so the card never says something no part counted.
| Card | What it means |
|---|---|
| A green All systems operational, with a line such as Checked 1 min ago | At least one check ran for you and found nothing. |
| A blue 1 note | The only lines are notes. The first line's words sit under the title. |
| An amber or red 2 issues | Warnings or errors, in the colour of the worst. The worst line's words, such as 27 failed jobs, sit under the title. |
| No card | No check ran for you, and there is nothing to say. |
With one line, the card opens that line's page. With several, it opens the list of the lines, each linking to its page, beside the sidebar on a wide screen and as a sheet on a phone. A site admin sees the lines of their own site. A master sees every site's, and a line of another site carries that site's name.
The core counts one thing itself: the background jobs that failed for good in the last hour. It is shown to whoever may open the activity log, and it links to the log filtered to failed jobs. A job you skip stops counting at once. See Check the activity log. The counts are kept for 30 seconds. A host can turn the card off, set how far back the plugins count and choose which levels show with config :mishka_cms_core, :sidebar_status, using enabled:, window: and levels:.
The top bar
From left to right, the top bar holds the search box, the items extensions add, the status chip, the theme toggle, the bell with its badge and the account chip. The account chip shows your avatar and your email, and it opens your menu.
- Search. The box reads Search pages, posts, people… until an extension names what it searches, such as products and orders. It asks after you stop typing for a quarter of a second. Results come in groups, and each group shows its first eight rows. The core answers nothing itself, so the groups come from the extensions you installed.
- The bell. It lists What needs you above your notifications, under one folding header per group with its total. The CMS group holds the failed jobs, for whoever may open the activity log. An extension adds its own items, such as open disputes. The badge counts those items and your unread notifications. A click on an item opens its page. Mark all read clears the unread notifications on the inbox and on the account's other open tabs.
- The status chip. An extension tells the admin about a state of the site, such as a sandbox that charges nothing. One chip shows the worst line's dot, and it opens a panel with every line, worst first, each with a link. With no line, no chip is drawn.
- Bands. A band sits full width between the top bar and the page, for what holds on every page of an extension while a condition is true, such as you are looking at every site.
Below 640px the top bar is a phone's, 60px tall: the menu button, the heading of the open page and the bell. The search is an icon that opens a sheet over the whole screen, with its own input focused, and its back arrow and Esc close it. The user's menu stays in reach, so Sign out is still there.
What an extension can add
Each part is a plugin event, so the core names no extension. A plugin answers only for the users, sites and pages it has something to say about. See Plugin events for the payloads.
| Event | What it adds |
|---|---|
sidebar:menus | Groups and entries of the sidebar. |
sidebar:status and sidebar:status:card | Lines of the status card, and a change to the card itself. |
topbar:items | Items at the right of the top bar, before the theme toggle. |
topbar:search | Search results, and the placeholder of the box. |
topbar:needs | Items under What needs you. |
topbar:status | Lines of the status chip. |
topbar:bands | Bands under the top bar. |
settings:panels | A tab of the Settings screen. |
An entry of an extension that has its own design can switch off the Powered by line under its pages with credit_footer: false. Every other page draws it as before.