diff --git a/apps/yaak-client/components/ImportDataDialog.tsx b/apps/yaak-client/components/ImportDataDialog.tsx index aa612fef..ec7e5805 100644 --- a/apps/yaak-client/components/ImportDataDialog.tsx +++ b/apps/yaak-client/components/ImportDataDialog.tsx @@ -571,11 +571,13 @@ function ImportTreeRow({ )}
{item.name}
{item.action === "conflict" ? ( -
+
onResolveConflict(item.modelId, v)} options={[ @@ -583,7 +585,6 @@ function ImportTreeRow({ { value: "take_source", label: "Take source" }, ]} /> -
) : ( actionLabel(item) && ( diff --git a/apps/yaak-client/components/core/SegmentedControl.tsx b/apps/yaak-client/components/core/SegmentedControl.tsx index 4b6022f5..aa9aca85 100644 --- a/apps/yaak-client/components/core/SegmentedControl.tsx +++ b/apps/yaak-client/components/core/SegmentedControl.tsx @@ -6,6 +6,7 @@ import { useStateWithDeps } from "../../hooks/useStateWithDeps"; import { generateId } from "../../lib/generateId"; import { Button } from "./Button"; import { IconButton, type IconButtonProps } from "./IconButton"; +import { IconTooltip } from "./IconTooltip"; import { Label } from "./Label"; interface Props { @@ -36,11 +37,15 @@ export function SegmentedControl({ const containerRef = useRef(null); const id = useRef(`input-${generateId()}`); + // A visually hidden label has nowhere to show the help, so the last option carries it + const inlineHelp = + hideLabel && help ? : null; + return (