Add import method dialog with file upload and paste options
Replace direct file picker trigger with a modal offering two import methods: file upload and paste JSON content. Uses a textarea instead of navigator.clipboard.readText() to avoid browser permission prompts. Also centers both import dialogs and updates spec for clipboard import. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ export function ImportConfirmDialog({
|
||||
return (
|
||||
<dialog
|
||||
ref={dialogRef}
|
||||
className="rounded-lg border border-border bg-card p-6 text-foreground shadow-xl backdrop:bg-black/50"
|
||||
className="m-auto rounded-lg border border-border bg-card p-6 text-foreground shadow-xl backdrop:bg-black/50"
|
||||
>
|
||||
<h2 className="mb-2 font-semibold text-lg">Replace current encounter?</h2>
|
||||
<p className="mb-4 text-muted-foreground text-sm">
|
||||
|
||||
Reference in New Issue
Block a user