Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/web/app/auth/agent-connect/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "../connect/page"
3 changes: 2 additions & 1 deletion apps/web/app/auth/connect/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const PLUGIN_INFO: Record<string, PluginInfo> = {
"Captures coding decisions and patterns automatically",
"Builds persistent user profile across projects",
],
icon: "/images/plugins/codex.svg",
icon: "/images/plugins/codex.png",
},
}

Expand Down Expand Up @@ -199,6 +199,7 @@ function AuthConnectContent() {

const redirectUrl = new URL(callback)
redirectUrl.searchParams.set("apikey", data.key)
redirectUrl.searchParams.set("api_url", API_URL)
window.location.href = redirectUrl.toString()
} catch (err) {
console.error("Failed to get API key:", err)
Expand Down
8 changes: 0 additions & 8 deletions apps/web/components/document-cards/plugin-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,7 @@ export function PluginPreview({ parsed }: { parsed: ParsedPluginDocument }) {
)}
{parsed.pluginLabel}
</span>
<p className="text-[11px] text-[#737373] truncate">
{parsed.formatLabel}
</p>
</div>
{parsed.identifierValue && (
<p className="text-[10px] text-[#737373] truncate max-w-[45%]">
{parsed.identifierValue}
</p>
)}
</div>
<div className="space-y-[6px]">
<p
Expand Down
18 changes: 0 additions & 18 deletions apps/web/components/document-modal/content/plugin-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,6 @@ function PluginHeader({ parsed }: { parsed: ParsedPluginDocument }) {
>
{parsed.pluginLabel}
</span>
<span
className={cn(
dmSansClassName(),
"inline-flex items-center rounded-full border border-[#1F242C] bg-[#0F1318] px-2.5 py-1 text-[11px] font-medium text-[#B7BDC7]",
)}
>
{parsed.formatLabel}
</span>
{parsed.identifierLabel && parsed.identifierValue && (
<span
className={cn(
dmSansClassName(),
"inline-flex items-center rounded-full border border-[#1F242C] bg-[#0F1318] px-2.5 py-1 text-[11px] font-medium text-[#8E97A3]",
)}
>
{parsed.identifierLabel}: {parsed.identifierValue}
</span>
)}
</div>
<p
className={cn(
Expand Down
9 changes: 1 addition & 8 deletions apps/web/components/document-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import type { UseMutationResult } from "@tanstack/react-query"
import { toast } from "sonner"
import { useIsMobile } from "@hooks/use-mobile"
import { parsePluginDocument } from "@/lib/plugin-document"
import { PluginDetails } from "./plugin-details"

type DocumentsResponse = z.infer<typeof DocumentsWithMemoriesResponseSchema>
type DocumentWithMemories = DocumentsResponse["documents"][0]
Expand Down Expand Up @@ -270,13 +269,8 @@ export function DocumentModal({
],
)

const hasPluginInsights =
pluginDocument &&
pluginDocument.kind !== "claude-code-doc" &&
pluginDocument.kind !== "openclaw-session"
const hasDocumentInsights = Boolean(
hasPluginInsights ||
_document?.summary ||
_document?.summary ||
pluginDocument?.summary ||
(_document?.memoryEntries && _document.memoryEntries.length > 0),
)
Expand All @@ -303,7 +297,6 @@ export function DocumentModal({
dmSansClassName(),
)}
>
{hasPluginInsights && <PluginDetails parsed={pluginDocument} />}
{_document && (_document.summary || pluginDocument?.summary) && (
<DocumentSummary
memoryEntries={_document.memoryEntries}
Expand Down
83 changes: 0 additions & 83 deletions apps/web/components/document-modal/plugin-details.tsx

This file was deleted.

Loading
Loading