Skip to content

ADR-0235: An estate level above the clusters has its own sidebar ​

Context ​

The sidebar existed only inside a cluster (ADR-0034, ADR-0188 item 4). Pages about the whole installation (Administration, the inbox, approvals, the account) had no navigation of their own and a single line back to the last cluster view. Settings was a cluster's page although every Rahdar setting is installation-wide, so an operator with ten clusters saw the same settings under each. An operator with several brokers, often of different systems, had no place to stand that was not a cluster, and the planned estate dashboard, plugin estate pages, search across clusters and an estate audit page had nowhere to go. ADR-0188 rejected a sidebar outside a cluster because it "would only hold a cluster picker"; that is no longer true once the estate has pages of its own.

Decision ​

  1. Two levels, one shell. Every signed-in page has a sidebar. On a cluster's pages it lists that cluster's views (ADR-0034, ADR-0070); on every other page it lists the estate's entries. A navigation entry belongs to one level, never both. The shell chooses by the address; there is no estate layout route.
  2. Closed estate headings. Overview (Dashboard, Clusters, Alerts), Messaging, Activity (Inbox, Approvals), Plugins, Administration (Administration, Settings). A heading with no entry is not shown. Adding a heading is a kernel change, like a cluster navigation group.
  3. estateNav is the contribution point. A feature contributes estate entries with estateNav, separate from a cluster's nav. A plugin's estate entries are always listed under Plugins, inside its namespace, without a keyboard letter.
  4. The breadcrumb and the switcher replace the back line. The breadcrumb starts at Estate on every page (Estate › cluster › group › view, or Estate › group › page). The cluster switcher heads both sidebars and reads "All clusters" outside a cluster; choosing a cluster from the estate returns to the view last left on it. g e opens the estate from anywhere; a cluster's Events view moves to g v.
  5. Administration is two rows. Administration keeps its grouped section list (ADR-0185, ADR-0188 items 1–3) and Settings is a page beside it. Neither is in the user menu.
  6. Settings splits. Rahdar's categories, plugin categories and installation-wide sections are the estate's Settings page. A cluster's Settings holds only what is about that cluster. The slot settings.sections is a cluster's; estate.settings.sections is the estate's and is never scoped to a broker system.
  7. No estate permission scope. An estate entry is gated by a global permission, disabled with its reason when refused; what an estate page lists is filtered per cluster by the server, as the estate Alerts page is.

Consequences ​

  • Installation-wide pages have one home, and 39 (dashboard), 40 (plugin estate pages), 42/43 (search) and the estate audit page add entries and slot contributions without changing the shell.
  • Contract 19: home.estate became estate.dashboard, SETTINGS_GROUPS split into CLUSTER_SETTINGS_GROUPS and ESTATE_SETTINGS_GROUPS, and estateNav was added. Plugin authors move Rahdar-wide settings sections to estate.settings.sections.
  • Pages outside a cluster lose some width to the sidebar; the rail is what a narrow window gets.
  • g e changed meaning; operators used to it for Events use g v.

Alternatives considered ​

  • Keep pages outside a cluster bare (ADR-0188 item 4). The estate has pages of its own now; a line back is not navigation.
  • One nav with a scope flag. Every consumer of cluster navigation (groups, current view, hotkeys, palette, plugin validation) would need a filter, and one miss lists an estate page inside a cluster.
  • A pathless estate layout route. The navbar is chosen in the shell anyway, and a new parent route would change RouteContributions for plugin authors for nothing.
  • A sidebar row per Administration section. Thirteen or more rows without icons for the rail, and every admin.tabs contribution would need an icon and a permission.

Apache-2.0. Apache Kafka, Apache ActiveMQ and Apache ActiveMQ Artemis are trademarks of the Apache Software Foundation. RabbitMQ is a trademark of its owner. Rahdar is an independent project, not produced by, endorsed by, or affiliated with the ASF or the owner of RabbitMQ.