Spike, not the final UI: it answers whether flare-ui can drive Alkane OS's on-box pages, and what it costs. What works: - schema/alkane-bb.json authors the sidebar as data (3 sections, 14 tabs); - src/bin/ui-spike.rs renders it through flare_ui::nav + flare_ui::shell, so the unified sidebar, ordering and surface filtering come from the schema rather than from hand-written HTML; - the render uses the shared bf- design tokens, the same ones the rest of the suite uses. Size, measured rather than assumed (armv7, release, stripped): ui-baseline 323 KiB (maud + serde_json, no flare-ui) ui-spike 771 KiB (flare-ui + wschema + sha2) marginal 448 KiB Vendoring: third-party/flare-ui is the full v0.2.9 tree pinned in flare-ui/flare-ui.lock (a partial archive does not compile, since the crate include_str!s assets from dash-editor/). vendor/ is re-generated as a cargo directory source with the new registry dependencies (maud, sha2, typenum, digest, generic-array, block-buffer, crypto-common, cfg-if, etc.) so the build still works offline. third-party/README.md records how to re-pin.
46 lines
1.7 KiB
Markdown
46 lines
1.7 KiB
Markdown
# Vendoring and tags
|
|
|
|
Consumers (flare, flare-edge) copy flare-ui files into their own tree and pin
|
|
the release tag in `flare-ui.lock`. CI jobs hold no cross-repo credential, so
|
|
nothing fetches flare-ui at build time.
|
|
|
|
## Crate owners
|
|
|
|
`OWNERS` names the lane that owns each crate. Only that lane edits it. Another
|
|
lane that needs a change leaves a note for the owner. The workspace member
|
|
list is the glob `crates/*`, so adding a crate never edits the root
|
|
`Cargo.toml`. `scripts/check-owners.sh` fails CI when a crate has no owner.
|
|
|
|
| Path | Lane |
|
|
|---|---|
|
|
| crates/flare-ui, crates/flare-plugin-abi | LD |
|
|
| crates/wschema, wschema-gen, wschema-cli | LB |
|
|
| crates/warden-sync, warden-seal | LI |
|
|
| crates/wapp-core, wapp-pack | LM |
|
|
|
|
## Tags
|
|
|
|
- Only LD tags. Tags are `vN.N.N`, cut from `next` after CI is green.
|
|
- A lane asks for a tag with a note naming the commit it needs. LD tags on
|
|
request, at most daily.
|
|
- A tag never moves. A fix is a new tag.
|
|
|
|
## Consumer lock
|
|
|
|
`flare-ui.lock` at the consumer root holds `tag`, `commit`, hand-written
|
|
`tree <src> <dest>` lines, and one `<blob> <src> <dest>` line per file.
|
|
|
|
```
|
|
# create or change the tree lines by hand, then:
|
|
scripts/flare-ui-vendor.sh sync <flare-ui checkout> v0.0.1
|
|
scripts/flare-ui-vendor.sh check [--upstream <flare-ui checkout>]
|
|
```
|
|
|
|
- `sync` accepts release tags only, never a commit or a branch.
|
|
- `check` fails on a drifted, missing or unlisted file, and with
|
|
`--upstream` on a lock whose tag moved.
|
|
- The consumer vendors `scripts/vendor.sh` itself as
|
|
`tree scripts/vendor.sh scripts/flare-ui-vendor.sh`.
|
|
- A lock-bump conflict resolves to the newer tag with `sync` re-run.
|
|
- Each consumer bumps its lock in its own PR, to the newest tag.
|