Bloccs.Web.CoreComponents (bloccs_web v0.1.0)

Copy Markdown View Source

Small, self-contained UI primitives for the dashboard (status pills, metric badges, the Pro lock). Deliberately minimal and dependency-free — the dashboard ships its own styling in priv/static and never assumes the host's component library.

Summary

Functions

A compact metric badge (e.g. throughput, p99, error rate).

A "Pro" lock placeholder, rendered where a gated feature would be when the resolver hasn't granted it. The free build never shows this (all features on).

A coloured status pill for a node/network run state.

Functions

metric_badge(assigns)

A compact metric badge (e.g. throughput, p99, error rate).

Attributes

  • label (:string) (required)
  • value (:string) (required)
  • tone (:atom) - Defaults to :neutral.

pro_lock(assigns)

A "Pro" lock placeholder, rendered where a gated feature would be when the resolver hasn't granted it. The free build never shows this (all features on).

Attributes

  • feature (:atom) (required)

status_pill(assigns)

A coloured status pill for a node/network run state.

Attributes

  • state (:atom) - Defaults to :idle.
  • label (:string) - Defaults to nil.