Add custom intervention modals

This commit is contained in:
adilallo
2026-05-01 22:05:05 -06:00
parent 58d0e33500
commit dee2dd800e
67 changed files with 3480 additions and 197 deletions
+12
View File
@@ -0,0 +1,12 @@
/**
* Canonical ordering for method-card facet `selected*Ids` when the user adds a card:
* most recently confirmed id is index 0 so stack / compact layouts stay consistent
* with {@link orderRankedMethodsWithPinnedSelection}.
*/
export function moveFacetSelectionIdToFront(
prev: readonly string[],
id: string,
): string[] {
const without = prev.filter((x) => x !== id);
return [id, ...without];
}