53 std::vector<std::pair<std::string, std::string>>
specs;
63 std::vector<std::pair<std::string, std::string>>
tokens;
Definition design_adherence.hpp:32
constexpr std::string_view kHandoffFormatVersion
Format id stamped into the contract; bump on a non-additive shape change.
Definition design_handoff.hpp:30
std::string_view fidelity_intent_name(FidelityIntent intent)
Stable lowercase slug for a fidelity intent ("hifi" | "lofi" | "unspecified").
HandoffContract parse_handoff_readme(std::string_view markdown, std::string_view source)
Parse a handoff README (Markdown) into a contract.
FidelityIntent
The implementer intent the handoff declares for the screens.
Definition design_handoff.hpp:33
@ hifi
recreate pixel-for-pixel (the design IS the spec)
Definition design_handoff.hpp:35
@ lofi
restyle into the target design system (adapt, don't trace)
Definition design_handoff.hpp:36
@ unspecified
no declaration found — the importer must ask or default
Definition design_handoff.hpp:34
FidelityIntent fidelity_intent_from_text(std::string_view text)
Parse a fidelity value as written in a handoff README ("hi-fi", "high", "pixel-perfect",...
std::string handoff_contract_json(const HandoffContract &contract)
Serialize a contract to deterministic JSON for the import report.
void merge_design_systems(HandoffContract &contract, const std::vector< std::string > &slugs)
Merge design-system slugs discovered on disk (the _ds/<slug>/ directory names) into an already-parsed...
The parsed handoff contract.
Definition design_handoff.hpp:57
std::string format_version
kHandoffFormatVersion
Definition design_handoff.hpp:58
std::vector< HandoffScreen > screens
in document order
Definition design_handoff.hpp:62
FidelityIntent fidelity
Definition design_handoff.hpp:60
std::vector< std::string > design_systems
bound system slugs, sorted+unique
Definition design_handoff.hpp:61
std::vector< std::pair< std::string, std::string > > tokens
token table rows, in order
Definition design_handoff.hpp:63
std::string source
folder or README path
Definition design_handoff.hpp:59
std::vector< std::string > interactions
interaction/state notes
Definition design_handoff.hpp:64
One screen the handoff describes: a display name, an optional relative path to its source (from a (pa...
Definition design_handoff.hpp:50
std::vector< std::pair< std::string, std::string > > specs
Definition design_handoff.hpp:53
std::string name
Definition design_handoff.hpp:51
std::string path
empty when the heading carried no (path)
Definition design_handoff.hpp:52