DurableDashboard.Components.Layout.Sidebar (DurableDashboard v0.1.0-rc)

Copy Markdown View Source

Left navigation sidebar. Stateless function component — active item is derived from @current_path passed by the parent layout.

Nav is split into two intent groups — Observe (read the running system) and Operate (act on it) — so the six destinations read as an information architecture, not a flat list. The active item carries the "live rail" (a short indigo bar on the left edge): the console's recurring "now / you are here" signal, the same indigo that marks the running edge in the graph.

The brand lockup is the pulse mark — a muted oscilloscope baseline with one indigo beat and a led-dot blip at its apex: the worker heartbeat made literal ("the engine is alive and durable"), echoed by the connected heartbeat in the footer. See DESIGN.md §6.

Required assigns

  • :base_path — host app's mount path (e.g. /dashboard)
  • :current_path — the LV's current request path; nav items match against this and highlight the active route

Summary

Functions

sidebar(assigns)

Attributes

  • base_path (:string) (required)
  • current_path (:string) (required)
  • class (:string) - Defaults to nil.