mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-06 02:48:25 +00:00
Follow-up cleanup on the provider-qualified selector work. - build_model_indexes now takes the paired (Model, CatalogModelSettings) slice it is built from, instead of a separate settings map. This drops a per-model map lookup with two cloned key components and removes the expect() panic path for an invariant the caller already guarantees. - get_on_provider expresses the exact-then-legacy lookup as one closure applied twice, rather than a nested then/flatten chain. - ModelRef::from_str selects the separator first and then checks both sides once, so the empty-side check is no longer duplicated across two branches and the slash split no longer allocates a Vec. - Shorten the TooManySlashes message to the action the user should take. - Merge the two near-identical fallback chain tests into one that runs both qualified selector forms through the same assertion. - The fallbacks splice test now asserts through the existing Serialize impl instead of hand-rolling the ModelRefOrSplice rendering. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apps | ||
| components | ||
| foundation | ||
| packages/fabro-api-client | ||