Import the remade decks on stable ids and recommend one card per job, so a saved draft still loads after a chip is renamed.
The real-group profiles stay as a test, so a change that moves a pick fails. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
96ca15d8e3
commit
bcbc6f30d9
89 files changed
+36555
-2828
No files matched your search
@@ -2,9 +2,11 @@
|
||||
|
||||
import { useCallback, useMemo, useState } from "react";
|
||||
import Rule, { type Category } from "../../../../components/cards/Rule";
|
||||
import Alert from "../../../../components/modals/Alert";
|
||||
import { TemplateChipDetailModal } from "../../../../components/cards/TemplateReviewCard/TemplateChipDetailModal";
|
||||
import { useMessages, useTranslation } from "../../../../contexts/MessagesContext";
|
||||
import { useCreateFlow } from "../../context/CreateFlowContext";
|
||||
import type { CreateFlowState } from "../../types";
|
||||
import { useCreateFlowMdUp } from "../../hooks/useCreateFlowMdUp";
|
||||
import {
|
||||
CREATE_FLOW_REVIEW_RULE_LAYOUT_CLASS,
|
||||
@@ -39,6 +41,15 @@ import {
|
||||
readDraftPreviewSurfaceColor,
|
||||
} from "../../utils/resolvePreviewSurfaceFallback";
|
||||
|
||||
function bindingArbitrationNeedsSeparateYes(state: CreateFlowState): boolean {
|
||||
const membership = state.selectedMembershipMethodIds ?? [];
|
||||
const conflict = state.selectedConflictManagementIds ?? [];
|
||||
const joinsWithoutAYes =
|
||||
membership.includes("open-admission") ||
|
||||
membership.includes("membership-by-token");
|
||||
return joinsWithoutAYes && conflict.includes("binding-arbitration");
|
||||
}
|
||||
|
||||
const FACET_FALLBACK_ORDER: readonly TemplateFacetGroupKey[] = [
|
||||
"coreValues",
|
||||
"communication",
|
||||
@@ -284,6 +295,16 @@ export function FinalReviewScreen({
|
||||
: t("description")
|
||||
}
|
||||
>
|
||||
{bindingArbitrationNeedsSeparateYes(state) ? (
|
||||
<Alert
|
||||
type="banner"
|
||||
status="warning"
|
||||
size="m"
|
||||
title={t("bindingArbitrationWarning.title")}
|
||||
description={t("bindingArbitrationWarning.description")}
|
||||
hasTrailingIcon={false}
|
||||
/>
|
||||
) : null}
|
||||
<Rule
|
||||
title={ruleCardTitle}
|
||||
description={ruleCardDescription}
|
||||
|
||||
Reference in new issue
Block a user