Files
dataroom/features/conversations/components/dashboard/link-option-conversation-section.tsx
zeekay a15864b16b ci: amd64-only build (matches hanzo runner pool topology)
hanzo-build-linux-amd64 is the only ARC runner pool installed on
hanzo-k8s today (arm64 pool is paused until DigitalOcean ships
arm64 droplets, per ~/work/hanzo/.github/RUNNERS.md). The arm64
job was waiting on spark-hanzoai-arm64 — not provisioned in this
cluster — so every build sat in queue forever and the amd64 leg
got cancelled.

Set platforms: linux/amd64 on the reusable build call to skip
arm64 entirely. Re-add arm64 if/when DO ships arm64 droplets and
the spark runner pool comes back online.
2026-06-07 11:38:49 -07:00

69 lines
1.8 KiB
TypeScript

import { useEffect, useState } from "react";
import { DEFAULT_LINK_TYPE } from "@/components/links/link-sheet";
import LinkItem from "@/components/links/link-sheet/link-item";
import { LinkUpgradeOptions } from "@/components/links/link-sheet/link-options";
export default function ConversationSection({
data,
setData,
isAllowed,
handleUpgradeStateChange,
}: {
data: DEFAULT_LINK_TYPE;
setData: React.Dispatch<React.SetStateAction<DEFAULT_LINK_TYPE>>;
isAllowed: boolean;
handleUpgradeStateChange: ({
state,
trigger,
plan,
}: LinkUpgradeOptions) => void;
}) {
const { enableConversation } = data;
const [enabled, setEnabled] = useState<boolean>(true);
useEffect(() => {
setEnabled(enableConversation);
}, [enableConversation]);
const handleEnableConversation = () => {
const updatedEnableConversation = !enabled;
if (updatedEnableConversation) {
// Only set email settings to true when enabling conversations
setData({
...data,
enableConversation: true,
emailAuthenticated: true,
emailProtected: true,
});
} else {
// When disabling conversations, don't modify email settings
setData({
...data,
enableConversation: false,
});
}
setEnabled(updatedEnableConversation);
};
return (
<div className="pb-5">
<LinkItem
title="Enable Q&A Conversations"
tooltipContent="Private conversations between you and your viewers related to this dataroom."
enabled={enabled}
action={handleEnableConversation}
isAllowed={isAllowed}
requiredPlan="data rooms plus"
upgradeAction={() =>
handleUpgradeStateChange({
state: true,
trigger: "link_sheet_conversation_section",
plan: "Data Rooms Plus",
})
}
/>
</div>
);
}