{"version":3,"file":"ResumeSessionDialog.cjs","names":["t","currentLocale","DEFAULT_LOCALE","useT","useNavigate","useRailEntries","useState","useStore","resumeDraftStore","listSessionHistory","listWorkspaceHistory","listRemovedSessions","useMemo","restoreRemovedThread","resumeDashboardSession","Dialog","DialogContent","DialogHeader","DialogTitle","DialogBody","Tabs","setResumeView","TabsList","TabsTrigger","Input","updateResumeDraft","Button","OptionRow","DialogFooter"],"sources":["../../../../src/web/features/sessions/ResumeSessionDialog.tsx"],"sourcesContent":["import { currentLocale, DEFAULT_LOCALE, t, useT } from '@agimon-ai/po-core/web';\nimport {\n  Button,\n  Dialog,\n  DialogBody,\n  DialogContent,\n  DialogFooter,\n  DialogHeader,\n  DialogTitle,\n  Input,\n  OptionRow,\n  Tabs,\n  TabsList,\n  TabsTrigger,\n} from '@agimon-ai/po-web-components';\nimport { useNavigate } from '@tanstack/react-router';\nimport { useStore } from '@tanstack/react-store';\nimport { useEffect, useMemo, useState } from 'react';\n\nimport type { PiSessionHistoryItem, RemovedSessionItem } from '../../../types/hub';\nimport { listRemovedSessions, listSessionHistory, listWorkspaceHistory } from '../../lib/hubApi';\nimport {\n  restoreRemovedThread,\n  resumeDashboardSession,\n  resumeDraftStore,\n  setResumeView,\n  updateResumeDraft,\n  type ResumeView,\n} from '../../stores/railDialogStore';\nimport { useRailEntries } from '../../stores/sessionsStore';\n\nfunction threadLabel(thread: PiSessionHistoryItem): string {\n  return (\n    thread.name?.trim() || thread.firstMessage.trim().split('\\n', 1)[0] || t('webDashboard.resume.untitled', 'untitled')\n  );\n}\n\nfunction shortDate(iso: string): string {\n  // English keeps the browser's own region; a chosen language formats in that language.\n  const locale = currentLocale();\n  return new Date(iso).toLocaleDateString(locale === DEFAULT_LOCALE ? undefined : locale, {\n    month: 'short',\n    day: 'numeric',\n  });\n}\n\nfunction matches(thread: PiSessionHistoryItem, needle: string): boolean {\n  return `${thread.name ?? ''}\\n${thread.firstMessage}`.toLowerCase().includes(needle);\n}\n\nfunction ThreadText({ thread }: { thread: PiSessionHistoryItem }) {\n  return (\n    <span className=\"min-w-0 flex-1\">\n      <span className=\"block truncate text-base font-semibold text-po-hi\">{threadLabel(thread)}</span>\n      {thread.name && thread.firstMessage ? (\n        <span className=\"mt-0.5 line-clamp-2 block text-base text-po-text\">{thread.firstMessage}</span>\n      ) : null}\n    </span>\n  );\n}\n\ntype ResumeSource = { sessionId: string; workspaceId?: never } | { workspaceId: string; sessionId?: never };\n\n/** Searchable saved history for either replacing a session or adding one to a workspace. */\nexport function ResumeSessionDialog({ sessionId, workspaceId, onClose }: ResumeSource & { onClose: () => void }) {\n  const t = useT();\n  const navigate = useNavigate();\n  const sourceId = workspaceId ?? sessionId;\n  const byId = useRailEntries();\n  // Removed sessions are listed per workspace; a session source borrows its rail entry's workspace.\n  const removedWorkspaceId = workspaceId ?? byId[sessionId]?.summary.workspaceId;\n  const [threads, setThreads] = useState<PiSessionHistoryItem[]>([]);\n  const [removed, setRemoved] = useState<RemovedSessionItem[]>([]);\n  const { view, query, selectedId, resumedId, busy, error } = useStore(resumeDraftStore);\n  const [loading, setLoading] = useState(true);\n  const [removedLoading, setRemovedLoading] = useState(true);\n  const [historyError, setHistoryError] = useState('');\n  const [removedError, setRemovedError] = useState('');\n  // Bumped after a restore so both lists reread the hub.\n  const [revision, setRevision] = useState(0);\n\n  useEffect(() => {\n    let stale = false;\n    const history = workspaceId === undefined ? listSessionHistory(sessionId) : listWorkspaceHistory(workspaceId);\n    void history.then((result) => {\n      if (stale) return;\n      setLoading(false);\n      if ('error' in result) {\n        setHistoryError(result.error);\n        return;\n      }\n      setHistoryError('');\n      setThreads(result.sessions);\n    });\n    return () => {\n      stale = true;\n    };\n  }, [sessionId, workspaceId, revision]);\n\n  useEffect(() => {\n    if (view !== 'removed' || removedWorkspaceId === undefined) return;\n    let stale = false;\n    void listRemovedSessions(removedWorkspaceId).then((result) => {\n      if (stale) return;\n      setRemovedLoading(false);\n      if ('error' in result) {\n        setRemovedError(result.error);\n        return;\n      }\n      setRemovedError('');\n      setRemoved(result.sessions);\n    });\n    return () => {\n      stale = true;\n    };\n  }, [view, removedWorkspaceId, revision]);\n\n  const needle = query.trim().toLowerCase();\n  const visible = useMemo(\n    () => (needle ? threads.filter((thread) => matches(thread, needle)) : threads),\n    [needle, threads],\n  );\n  const visibleRemoved = useMemo(\n    () => (needle ? removed.filter((thread) => matches(thread, needle)) : removed),\n    [needle, removed],\n  );\n  const showingRemoved = view === 'removed' && removedWorkspaceId !== undefined;\n  const listError = showingRemoved ? removedError : historyError;\n\n  const restore = async (threadId: string): Promise<void> => {\n    if (removedWorkspaceId === undefined) return;\n    if (await restoreRemovedThread(removedWorkspaceId, threadId)) setRevision((value) => value + 1);\n  };\n\n  const submit = async (): Promise<void> => {\n    const resumed = await resumeDashboardSession(workspaceId === undefined ? { sessionId } : { workspaceId });\n    if (resumed === undefined) return;\n    onClose();\n    await navigate({ to: '/session/$sessionId', params: { sessionId: resumed } });\n  };\n\n  return (\n    <Dialog open onOpenChange={(next) => !next && !busy && onClose()}>\n      <DialogContent width=\"md\" data-testid={`session-resume-dialog-${sourceId}`} aria-describedby={undefined}>\n        <DialogHeader>\n          <DialogTitle>{t('webDashboard.resume.title', 'resume Pi thread')}</DialogTitle>\n        </DialogHeader>\n        <DialogBody>\n          {removedWorkspaceId === undefined ? null : (\n            <Tabs value={view} onValueChange={(next) => setResumeView(next as ResumeView)}>\n              <TabsList aria-label={t('webDashboard.resume.tabs', 'Which threads')}>\n                <TabsTrigger value=\"history\" data-testid=\"session-history-tab\" disabled={busy}>\n                  {t('webDashboard.resume.history', 'history')}\n                </TabsTrigger>\n                <TabsTrigger value=\"removed\" data-testid=\"session-removed-tab\" disabled={busy}>\n                  {t('webDashboard.resume.removed', 'recently removed')}\n                </TabsTrigger>\n              </TabsList>\n            </Tabs>\n          )}\n          <Input\n            data-testid=\"session-history-search\"\n            value={query}\n            autoFocus\n            onChange={(event) => updateResumeDraft({ query: event.target.value })}\n            placeholder={\n              showingRemoved\n                ? t('webDashboard.resume.searchRemoved', 'search recently removed')\n                : t('webDashboard.resume.searchHistory', 'search thread history')\n            }\n          />\n          {showingRemoved ? (\n            <div\n              role=\"list\"\n              aria-label={t('webDashboard.resume.removedList', 'Recently removed Pi threads')}\n              data-testid=\"session-removed-list\"\n              className=\"max-h-80 overflow-y-auto rounded border border-po-border bg-po-deep p-1\"\n            >\n              {visibleRemoved.map((thread) => (\n                <div\n                  key={thread.id}\n                  role=\"listitem\"\n                  data-testid={`session-removed-${thread.id}`}\n                  className=\"flex items-start gap-3 rounded-md px-2.5 py-2\"\n                >\n                  <ThreadText thread={thread} />\n                  <span className=\"flex shrink-0 flex-col items-end gap-1.5\">\n                    <span className=\"text-sm text-po-dim\">\n                      {t('webDashboard.resume.removedDates', 'removed {removed}, deleted {purge}', {\n                        removed: shortDate(thread.removedAt),\n                        purge: shortDate(thread.purgeAt),\n                      })}\n                    </span>\n                    <Button\n                      variant=\"outline\"\n                      size=\"xs\"\n                      data-testid={`session-restore-${thread.id}`}\n                      disabled={busy}\n                      onClick={() => void restore(thread.id)}\n                    >\n                      {t('webDashboard.resume.restore', 'restore')}\n                    </Button>\n                  </span>\n                </div>\n              ))}\n              {!removedLoading && visibleRemoved.length === 0 ? (\n                <p className=\"px-2.5 py-6 text-center text-sm text-po-dim\">\n                  {needle\n                    ? t('webDashboard.resume.noMatch', 'no matching threads')\n                    : t('webDashboard.resume.noneRemoved', 'nothing removed in the last 7 days')}\n                </p>\n              ) : null}\n              {removedLoading ? (\n                <p className=\"px-2.5 py-6 text-center text-sm text-po-dim\">\n                  {t('webDashboard.resume.loading', 'loading…')}\n                </p>\n              ) : null}\n            </div>\n          ) : (\n            <div\n              role=\"listbox\"\n              aria-label={t('webDashboard.resume.historyList', 'Pi thread history')}\n              data-testid=\"session-history-list\"\n              className=\"max-h-80 overflow-y-auto rounded border border-po-border bg-po-deep p-1\"\n            >\n              {visible.map((thread) => {\n                const running = byId[thread.id] !== undefined;\n                return (\n                  <OptionRow\n                    key={thread.id}\n                    density=\"compact\"\n                    active={selectedId === thread.id}\n                    disabled={running || busy}\n                    aria-selected={selectedId === thread.id}\n                    data-testid={`session-history-${thread.id}`}\n                    onClick={() => updateResumeDraft({ selectedId: thread.id })}\n                    className=\"w-full items-start px-2.5 py-2 text-left\"\n                  >\n                    <ThreadText thread={thread} />\n                    <span className=\"shrink-0 pl-3 text-sm text-po-dim\">\n                      {running ? t('webDashboard.resume.running', 'running') : shortDate(thread.updatedAt)}\n                    </span>\n                  </OptionRow>\n                );\n              })}\n              {!loading && visible.length === 0 ? (\n                <p className=\"px-2.5 py-6 text-center text-sm text-po-dim\">\n                  {needle\n                    ? t('webDashboard.resume.noMatch', 'no matching threads')\n                    : t('webDashboard.resume.noHistory', 'no Pi history for this workspace')}\n                </p>\n              ) : null}\n              {loading ? (\n                <p className=\"px-2.5 py-6 text-center text-sm text-po-dim\">\n                  {t('webDashboard.resume.loadingHistory', 'loading history…')}\n                </p>\n              ) : null}\n            </div>\n          )}\n          {error || listError ? (\n            <p data-testid=\"session-resume-error\" role=\"alert\" className=\"text-sm text-po-red\">\n              {error || listError}\n            </p>\n          ) : null}\n          <DialogFooter>\n            <Button variant=\"outline\" onClick={onClose} disabled={busy}>\n              {t('webDashboard.resume.cancel', 'cancel')}\n            </Button>\n            {showingRemoved ? null : (\n              <Button\n                variant=\"primary\"\n                data-testid=\"session-resume-confirm\"\n                onClick={() => void submit()}\n                disabled={selectedId === null || busy || (!resumedId && byId[selectedId] !== undefined)}\n              >\n                {busy ? t('webDashboard.resume.resuming', 'resuming…') : t('webDashboard.resume.resume', 'resume')}\n              </Button>\n            )}\n          </DialogFooter>\n        </DialogBody>\n      </DialogContent>\n    </Dialog>\n  );\n}\n"],"mappings":";;;;;;;;;;AA+BA,SAAS,YAAY,QAAsC;CACzD,OACE,OAAO,MAAM,KAAK,KAAK,OAAO,aAAa,KAAK,CAAC,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,OAAA,GAAMA,uBAAA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