Skip to main content

Module sheet

Module sheet 

Source
Expand description

Parts and History: the two sidebar sections that browse rather than act (docs/cad-ui-spec.md §8).

Nothing in them mutates the document. History changes what is being looked at; Parts changes what is selected or which level is in context. Every pick completes a hand-off and leaves the panel open.

What is typed into either filter, which branches are open and which tree node Parts is focused on are the shell’s, not the kernel’s (shell-on-kernel D7). Which rows those choices come to is the kernel’s — blockworx_kernel::nav — so the two front ends browse one tree.

Re-exports§

pub use History_completions::Component::History;
pub use Parts_completions::Component::Parts;

Structs§

ChipsProps 🔒
Properties for the Chips component.
CrumbsProps 🔒
Properties for the Crumbs component.
HistoryProps
Properties for the History component.
PartsProps
Properties for the Parts component.
RevCardProps 🔒
Properties for the RevCard component.
RevRowProps 🔒
Properties for the RevRow component.
TagEditorProps 🔒
Properties for the TagEditor component.

Enums§

Disc 🔒
Which list the disc is drawn in: a row of the log, or the card the viewed rev expands into, which stands a little larger.

Constants§

CURRENT
The one that is on the canvas.
FIELD
INDENT 🔒
Horizontal step per tree depth, which the mockup’s rows wear as padding.
MUTED
ROW
One row of a sidebar list: the mockup’s .row, at the 44 px target.
SUGGESTIONS 🔒
How many vocabulary suggestions a tag field offers. The list scrolls, so it is a cap on how long the vocabulary may get rather than on what fits.

Functions§

Chips 🔒
A rev’s tags, as chips that narrow the search to themselves.
Crumbs 🔒
The way back out of a focus, one ancestor at a time.
History
The log, newest first, under a day heading each. The rev on the canvas expands in place into the card that holds every field and the tag editor.
Parts
The block tree. Three mechanisms make a deep tree workable in a narrow panel, and all three are blockworx_kernel::nav’s: focus re-roots, the filter flattens, and selecting on the canvas reveals.
RevCard 🔒
The rev on the canvas, expanded in place: every field in full, and the tag editor. Tags are annotations on history, not document edits — naming one authors no rev.
RevRow 🔒
One commit, in the order a reader scans for it: who, what, where, when.
TagEditor 🔒
The tags on the viewed rev, removable, plus a field that adds one and the vocabulary the rest of the log already uses.
avatar 🔒
The author, as the initials disc a name always lands on the same colour of. An unattributed rev draws nothing and keeps the slot.
suggestions 🔒
The vocabulary the log already uses, minus what this rev already carries, so naming things twice two ways is the harder path.