Skip to content

overlay M2: colour-by modes - drift, cost, headroom #399

Description

@lex00

M2 of #397. Depends on M1. Colour-by modes: drift, cost, headroom, with a legend, and the scope panel carrying totals per box and per estate.

What

Today the graph colours by drift. This adds two more colour-by modes fed by M1's behaviour block, cost and headroom, each with its own legend. The scope panel, which the choudoufu demo already uses to list each move with a live-mv line and a link to the morph, gains a totals row per box and per estate for whichever mode is active.

Do

A mode switch on the graph view, three states, one legend per state. The scope panel sums the active mode's figure per box and per estate from the same behaviour block M1 added. A node with no behaviour block draws in a neutral colour, the same "did not look" neutral the drift overlay already uses, never a zero that could be misread as free or empty.

Proof

The three modes shown on the choudoufu demo (example-choudoufu-estate/, booted the way scripts/choudoufu-up.sh boots it), with screenshots in the pull request. A test asserting a node with no behaviour block draws neutral rather than at the zero end of the scale.

Refs #397.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    behaviour-overlayCost, headroom and resilience from a behavioral engine, drawn as a colour on the node

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions