From 9439ff4e08b13b22e9431585ec6000761ab51132 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 1 Sep 2025 09:10:09 +0000 Subject: (최겸) 세일즈포스 poc 개발 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(evcp)/vendors/[id]/info/basic/text-utils.tsx | 131 ---------- .../(partners)/sales-force-test/AF_poc.html | 118 --------- app/[lng]/test/agentforce-poc-faq/page.tsx | 62 +++++ app/[lng]/test/agentforce-poc-summary/page.tsx | 291 +++++++++++++++++++++ 4 files changed, 353 insertions(+), 249 deletions(-) delete mode 100644 app/[lng]/evcp/(evcp)/vendors/[id]/info/basic/text-utils.tsx delete mode 100644 app/[lng]/partners/(partners)/sales-force-test/AF_poc.html create mode 100644 app/[lng]/test/agentforce-poc-faq/page.tsx create mode 100644 app/[lng]/test/agentforce-poc-summary/page.tsx (limited to 'app') diff --git a/app/[lng]/evcp/(evcp)/vendors/[id]/info/basic/text-utils.tsx b/app/[lng]/evcp/(evcp)/vendors/[id]/info/basic/text-utils.tsx deleted file mode 100644 index a3507dd0..00000000 --- a/app/[lng]/evcp/(evcp)/vendors/[id]/info/basic/text-utils.tsx +++ /dev/null @@ -1,131 +0,0 @@ -"use client" - -import { useState } from "react" -import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip" -import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible" -import { ChevronDown, ChevronUp } from "lucide-react" - -export function TruncatedText({ - text, - maxLength = 50, - showTooltip = true -}: { - text: string | null - maxLength?: number - showTooltip?: boolean -}) { - if (!text) return - - - if (text.length <= maxLength) { - return {text} - } - - const truncated = text.slice(0, maxLength) + "..." - - if (!showTooltip) { - return {truncated} - } - - return ( - - - - - {truncated} - - - -

{text}

-
-
-
- ) -} - -export function ExpandableText({ - text, - maxLength = 100, - className = "" -}: { - text: string | null - maxLength?: number - className?: string -}) { - const [isExpanded, setIsExpanded] = useState(false) - - if (!text) return - - - if (text.length <= maxLength) { - return {text} - } - - return ( - -
- - - -
-
- ) -} - -export function AddressDisplay({ - address, - addressEng, - postalCode, - addressDetail -}: { - address: string | null - addressEng: string | null - postalCode: string | null - addressDetail: string | null -}) { - const hasAnyAddress = address || addressEng || postalCode || addressDetail - - if (!hasAnyAddress) { - return - - } - - return ( -
- {postalCode && ( -
- 우편번호: {postalCode} -
- )} - {address && ( -
- {address} -
- )} - {addressDetail && ( -
- {addressDetail} -
- )} - {addressEng && ( -
- {addressEng} -
- )} -
- ) -} \ No newline at end of file diff --git a/app/[lng]/partners/(partners)/sales-force-test/AF_poc.html b/app/[lng]/partners/(partners)/sales-force-test/AF_poc.html deleted file mode 100644 index 60e047ed..00000000 --- a/app/[lng]/partners/(partners)/sales-force-test/AF_poc.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - Salesforce LWC Loader - - - - - - \ No newline at end of file diff --git a/app/[lng]/test/agentforce-poc-faq/page.tsx b/app/[lng]/test/agentforce-poc-faq/page.tsx new file mode 100644 index 00000000..493828d6 --- /dev/null +++ b/app/[lng]/test/agentforce-poc-faq/page.tsx @@ -0,0 +1,62 @@ +'use client' + +import { useState, useRef } from 'react' + +export default function AgentforcePocPage() { + const [isLoading, setIsLoading] = useState(true) + const iframeRef = useRef(null) + + const handleIframeLoad = () => { + setIsLoading(false) + } + + const refreshIframe = () => { + if (iframeRef.current) { + setIsLoading(true) + iframeRef.current.src = iframeRef.current.src + } + } + + return ( +
+
+
+

+ Agentforce POC +

+ +
+ +
+ {isLoading && ( +
+
+
+

로딩 중...

+
+
+ )} + +
+