ShtukbaseStandard
package file→ .shtukbase/packages/lenses/kit/patterns/deps.md

kit/patterns/deps.md

40 lines, 2.8 KB.

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