Commit graph

2 commits

Author SHA1 Message Date
fb41a518c9 refactor: rename package fai_studio_flow_editor -> chain_studio_flow_editor
The flow editor is a Ch∆In Studio sub-component (chain product), not a
F∆I-vendor package. Rename the package, entry library file, and all
package: imports. flutter analyze: clean.

Signed-off-by: flemming-it <sf@flemming.it>
2026-06-16 17:47:59 +02:00
ae443c6f81 test(editor): three widget cases pin type-token recolouring
Locks the FlowYamlCodeController.buildTextSpan post-processing
against silent regression. The original 0.15.0 ship used the
wrong regex — `type: <name>` instead of `<field>: <name>` —
and no test caught it; the only signal was the user saying 'I
see no colours'. These cases would have flipped red.

Covers:

  - indented `field: bytes` value gets the wire-bytes hue +
    the 600 weight that signals 'recoloured by F∆I' (and not
    the highlighter's stock string colour)
  - top-level `name: text` is NOT flagged as a type decl
    even though the right-hand side reads as a known type
    token — the leading-whitespace guard must hold
  - explicit `type: bytes` row in a module-shape inputs list
    still gets recoloured (the regex now handles both shapes
    via the same key:value pattern)

Tests render the controller into a tiny MaterialApp tree, walk
the produced span tree, and assert colour+weight on the
matching leaf. Pumping a full second after layout drains the
analyzer's 500ms debounce timer so the harness doesn't leak it.

Signed-off-by: flemming-it <sf@flemming.it>
2026-06-04 02:48:54 +02:00