fix(google-docs): move Add Google Doc into Knowledge Quick actions (#635)

Place the action in the files-view "Quick actions" row (next to New note)
instead of the header, where it sat after the dev↔drive merge. Widen
QuickAction's icon type to accept the custom GoogleDriveIcon component.
This commit is contained in:
gagan 2026-06-22 14:50:17 -07:00 committed by GitHub
parent be81ffb27b
commit 6ba6f494c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -234,14 +234,6 @@ export function KnowledgeView({
/>
</div>
<VoiceNoteButton onNoteCreated={onVoiceNoteCreated} />
<button
type="button"
onClick={() => actions.addGoogleDoc(currentFolder?.path)}
className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-3 py-1.5 text-sm text-foreground transition-colors hover:bg-accent"
>
<GoogleDriveIcon className="size-4" />
<span>Add Google Doc</span>
</button>
</div>
</div>
@ -344,6 +336,7 @@ function QuickActions({
<SectionHeader label="Quick actions" />
<div className="flex flex-wrap gap-2">
<QuickAction icon={FilePlus} label="New note" onClick={() => actions.createNote(parent)} />
<QuickAction icon={GoogleDriveIcon} label="Add Google Doc" onClick={() => actions.addGoogleDoc(parent)} />
<QuickAction icon={SearchIcon} label="Search" onClick={onOpenSearch} />
<QuickAction
icon={FolderPlus}
@ -397,7 +390,7 @@ function QuickAction({
label,
onClick,
}: {
icon: typeof FilePlus
icon: typeof FilePlus | typeof GoogleDriveIcon
label: string
onClick: () => void
}) {