package file→ .shtukbase/packages/lenses/kit/patterns/deps.md
kit/patterns/deps.md
40 lines, 2.8 KB.
- # A tiers map: tiers, area frames, a tree of strips
- The owner accepted this view on 28.11.2026 as the reference. This is how the "Dependencies" view looks on the
- package maps of the harness (`shtuks/projects/shtukharness/packages.html`) and of the standard
- (`shtuks/projects/shtukbase-standard/packages.html`). A snapshot of the reference is [deps-reference.png](deps-reference.png).
- New maps of this kind are made the same way; the view changes only with the owner's consent.
- For now the code of the view lives in the pages themselves (the `.pk-deps…` style block and the function that builds
- `deps`); the kit has no shared template yet. Until it has one, take the code from the harness map whole and change only
- the data.
- ## What it is made of
- - **Background.** A finely dotted canvas with no fill; everything else stands on it as white sheets.
- - **Tiers from top to bottom.** Each tier is a large bold centered heading ("Core", "Base", "What the agent gets in a
- session", "Around the session") with one grey line of explanation in small type under it. The tiers are joined by a
- thin grey vertical line: the lower one rests on the upper one.
- - **Area frames.** Inside a tier there are white sheets with rounded corners, a soft shadow and a colored strip on top;
- each area has its own color from the kit palette. The frame header has the name and the number of cards ("Measures · 5")
- and a grey line in small type saying what is in the area. The frames of one tier stand side by side on a grid, rows
- aligned.
- - **Strip cards.** Small white strips with a thin colored edge on the left (the area color): the package picture on the
- left, the name in bold on one or two lines, and on the right in grey how many packages depend on this card (`← 4`) or,
- for a big package, how many parts it has (`set · 4`). A strip has no description: it is in the tooltip and in the
- record card on click.
- - **A tree inside an area.** The cards of an area are joined by thin grey right-angled lines: on top what the others
- stand on, below what depends on it; leaves stand side by side in a row. Other dependencies and the contents of a set
- are not drawn at rest: they appear as arrows only while the cursor is on a card.
- - **Restraint.** Color only in the frame strip, the strip edge and the picture; everything else is white, black and
- grey.
- ## What the data needs
- | What | From where |
- |---|---|
- | tier | the area group (`row` in the page's description of areas) |
- | area, its color and explanation | the page's `groups`: `id`, `color`, `title`, `hint` |
- | strip picture | the record's `art` field; for a package, its `icon` from `package.md` |
- | tree | the "part of" field (`partOf`/`parent`) and the `requires` dependencies |
- | number on the right | how many records link to this one; for a set, how many parts it has |