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 sidebar

The sidebar groups the admin screens and shows only the entries the signed-in account may open. An entry can hold child entries, up to two levels deep.

  • Only the group of the open page starts open. A branch under an entry starts closed on every load unless it holds the open page. Click the entry's arrow, or its own link, to fold or open it.
  • While a page under an entry is open, the entry's top row is drawn in the open page's colours, and every nested row begins with a dot, filled for the open page and the rows above it.
  • An entry can show a count chip beside its label, such as the waiting items of an extension. The chip counts for your own site, and a master reads the sum of every site. It follows changes live, at most once a second, and a count of zero hides it.
  • Below 980px the menu shows one level at a time, with a back row.

You can reorder entries and hide them in the Sidebar tab of Settings. See Settings.

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.

CardWhat it means
A green All systems operational, with a line such as Checked 1 min agoAt least one check ran for you and found nothing.
A blue 1 noteThe only lines are notes. The first line's words sit under the title.
An amber or red 2 issuesWarnings or errors, in the colour of the worst. The worst line's words, such as 27 failed jobs, sit under the title.
No cardNo 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.

EventWhat it adds
sidebar:menusGroups and entries of the sidebar.
sidebar:status and sidebar:status:cardLines of the status card, and a change to the card itself.
topbar:itemsItems at the right of the top bar, before the theme toggle.
topbar:searchSearch results, and the placeholder of the box.
topbar:needsItems under What needs you.
topbar:statusLines of the status chip.
topbar:bandsBands under the top bar.
settings:panelsA 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.