feat: attach desktop file paths as editable learner chips
This commit is contained in:
@@ -50,6 +50,7 @@ const STORAGE_KEY = "lh:sidebar-open";
|
||||
*/
|
||||
import type { ChatGPTControlBridge, NativeSubscriptionControlBridge } from "@/src/core";
|
||||
import type { UpdateState } from "@/components/settings/update-settings.tsx";
|
||||
import { FilePathDropZone } from "@/components/file-path-drop-zone";
|
||||
const SIDEBAR_AUTOCLOSE = 928;
|
||||
|
||||
// Module scope, guarded for SSR (the server has no navigator).
|
||||
@@ -61,6 +62,8 @@ declare global {
|
||||
lh?: {
|
||||
/** Read-only host OS; determines the native-control gutter. */
|
||||
platform?: string;
|
||||
/** Resolve an OS-backed File without copying/uploading its contents. */
|
||||
getPathForFile?: (file: File) => string;
|
||||
/** External Next desktop-dev uses the server's web connections. */
|
||||
subscriptionTransport?: "desktop" | "web";
|
||||
openSubscriptionBrowser?: (action: string) => Promise<void>;
|
||||
@@ -944,7 +947,7 @@ export function AppShell({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<SettingsDialogProvider>
|
||||
<SessionsSidebar />
|
||||
<main className="min-w-0 flex-1">{children}</main>
|
||||
<FilePathDropZone className="relative min-w-0 flex-1">{children}</FilePathDropZone>
|
||||
{/* The single document-level keydown listener (keyboard wave A) —
|
||||
after the content in the tree, but it's window-level so order only
|
||||
matters for the events it dispatches, never for DOM priority. */}
|
||||
|
||||
Reference in New Issue
Block a user