Show seven cards on the four method decks and open each as a routing overlay of its parts, so groups write from empty fields with Generate draft, search the full deck, and see unselected scope chips with enough contrast.
This commit is contained in:
1 parent
dea7dd7fbd
commit
46656f52d3
28 files changed
+1349
-318
No files matched your search
@@ -95,14 +95,24 @@ export function stringArraysEqual(
|
||||
return a.every((value, index) => value === b[index]);
|
||||
}
|
||||
|
||||
export function decisionApproachDefaultScopeChips(): string[] {
|
||||
const chips = (
|
||||
decisionApproachesMessages as { defaultScopeChips?: unknown }
|
||||
).defaultScopeChips;
|
||||
if (!Array.isArray(chips)) return [];
|
||||
return chips.filter((value): value is string => typeof value === "string");
|
||||
}
|
||||
|
||||
/**
|
||||
* Offer the four sidebar labels as Applicable Scope chips without persisting
|
||||
* them onto `applicableScope` (unchecked keys must not publish as defaults).
|
||||
* Offer the signed-off deck chips, then this card's scopes, then the coverage
|
||||
* checklist labels. Unchecked extras are display-only and must not publish
|
||||
* as defaults.
|
||||
*/
|
||||
export function withDecisionApproachKeyResourceScopes(
|
||||
scopes: readonly string[],
|
||||
): string[] {
|
||||
return uniquePreserveOrder([
|
||||
...decisionApproachDefaultScopeChips(),
|
||||
...scopes,
|
||||
...decisionApproachKeyResourceLabels(),
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user