feat: sample flows follow the hub's wire flag; examples group + import action
The Example chip used to come from a client-side content-marker scan that had drifted from the hub's renamed sample header — no current sample matched it. The host now passes the hub-reported sample set (FlowSummary.sample) and the editor renders truth only: no host info, no chips. Samples collapse under one 'Examples (N)' group below the operator's own flows (expanded only when nothing else exists), and an optional onImportSamples action on the empty list is the deliberate way to pull the bundled examples into a sealed area's empty hub. Guard: flow_list_samples_test pins chips-from-host-only, the grouping, and the import round trip. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
8da50068f3
commit
29294a2971
6 changed files with 330 additions and 31 deletions
21
CHANGELOG.md
21
CHANGELOG.md
|
|
@ -1,5 +1,26 @@
|
|||
# Changelog
|
||||
|
||||
## 0.26.0
|
||||
|
||||
Sample flows follow the hub's wire flag (sealed-areas rework):
|
||||
|
||||
- **`FlowEditorPage.sampleFlowNames`** — the host passes the set of
|
||||
flow names the hub reports as bundled samples
|
||||
(`FlowSummary.sample`). This is now the ONLY source of the
|
||||
"Example" chip; the editor's own content-marker scan is gone (it
|
||||
had silently drifted from the hub's renamed sample header and
|
||||
missed every current sample). Null = no host info = no chips.
|
||||
- **Examples group.** Sample flows collapse under one
|
||||
"Examples (N)" row below the operator's own flows, expanded on
|
||||
demand — or by default when there is nothing else to show.
|
||||
- **`FlowEditorPage.onImportSamples`** — optional empty-list action
|
||||
("Import example flows"); sealed areas start without samples, so
|
||||
hosts wire this as the deliberate pull. The list refreshes itself
|
||||
after the import.
|
||||
- `FaiEmptyState` gained an optional `action` slot.
|
||||
- The editor reloads its file list when the host changes `flowsDir`
|
||||
or delivers the sample set after an async fetch.
|
||||
|
||||
## 0.25.0
|
||||
|
||||
Honest install badge — the flow list and analyzer only offer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue