Skip to content

Manual Sidebar by Domain: One Block, Five Owners, Five Sections

Adityo Guni Waluyo

A generated admin manual mixed eight modules from five domains into one sidebar block. The fix: split along the ownership map and bound each group visually.

TL;DR

The admin manual sidebar lumped modules from five different domains into one block, so staff couldn't find their section. Splitting navigation by domain using the admin panel's existing ownership map as the source of truth made grouping match how readers think. Adding labels and borders follows common-region and accessibility principles so each group is visually clear.

A tourism staff member opened the KotaPortal admin manual, looked at the sidebar, and scrolled. Then scrolled again. The "Modul Bidang" block listed eight modules: wisata, wisata-kategori, budaya, olahraga, organisasi, kepemudaan, pemuda-pelopor, ekraf. She asked: where is my part?

The section was there. But the block mixed five different business domains under one label, and her eye could not pick out which items belonged to tourism.

I first assumed the problem was ordering or a clearer label. But reordering would not help when the block itself held modules from five owners, and a nicer label would still point at one confused pile. The real issue was structure: one bucket for everything marked "bidang," regardless of who owned what.

Ownership determines the grouping

The fix was already declared elsewhere. The admin panel's layout.tsx has a MODULE_ITEMS map that assigns each module to its owning domain: wisata and wisata-kategori to Bidang Pariwisata, budaya to Bidang Kebudayaan, olahraga and organisasi to Bidang Olahraga, kepemudaan and pemuda-pelopor to Bidang Kepemudaan, ekraf to Bidang Ekonomi Kreatif. I split the sidebar's NAV_SECTIONS to follow that ownership:

const NAV_SECTIONS = [
  ["Utama", ["dashboard", "login", "hero-slider", "halaman", "halaman-kategori"]],
  ["Bidang Pariwisata", ["wisata", "wisata-kategori"]],
  ["Bidang Kebudayaan", ["budaya"]],
  ["Bidang Olahraga", ["olahraga", "organisasi"]],
  ["Bidang Kepemudaan", ["kepemudaan", "pemuda-pelopor"]],
  ["Bidang Ekonomi Kreatif", ["ekraf"]],
];

The generator keeps a fail-soft "Lainnya" fallback. Any module in the manifest that is not mapped to a section lands there, so no link can vanish. New modules stay reachable even before someone updates the ownership map, and the manual never ships a menu with a missing entry.

A boundary that reads as a group

Splitting sections is not enough. Readers need to see the boundary. Nielsen Norman Group's principle of common region states that items within a boundary are perceived as a group [1], and a clear boundary outweighs proximity as a grouping cue.

I wrapped every section in a .side-sect container and gave the bidang sections the extra .bidang class: a 2px accent left rule and an underlined accent label. The CSS uses color-mix() to soften the accent so the rule does not dominate:

.side-sect.bidang {
  border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 0 0 0.45rem 0.55rem;
}

.side-sect.bidang .side-label {
  color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}

The left rule, the label, and the underline mean the grouping is not conveyed by color alone, which is exactly what WCAG 2.2 SC 1.4.1 asks for [3]. The color-mix() function has been widely available since May 2023 [4]. Dark mode works automatically because the tokens are CSS variables.

Mental models decide where people look

Users come with a belief about the system shaped by their daily work [2]. A tourism staff looks for tourism first. When the navigation matches that expectation, the manual works the way readers already think.

Splitting the sections along ownership aligned the sidebar with how readers divide their work. After regeneration, five sections appeared; the accent label and the left rule made each block read as its own group, and the hierarchy was clear when the manual was opened in a browser.

The ownership map in the admin panel stays the single source of truth for the manual sidebar structure. If a module ever moves to another domain, exactly one place needs to change. The broader lesson: generated documentation navigation should follow the product's ownership model instead of one type-based bucket, and any group worth naming deserves a visible boundary built from label, rule, and text.

Sources

  1. Aurora Harley, Nielsen Norman Group: The Principle of Common Region
  2. Megan Chan, Nielsen Norman Group: Mental Models
  3. W3C WAI: Understanding SC 1.4.1, Use of Color (WCAG 2.2)
  4. MDN Web Docs: color-mix() CSS function

Related articles