fix: resolve multi-page PDF crashes and Gemini API ingestion errors (#2781)

* fix: resolve multi-page PDF crashes and Gemini API ingestion errors

* fix type errors

* refactor: address PR review feedback and prevent call stack recursion in regex payload scanner

---------

Co-authored-by: Ofir <ofir@example.com>
Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
This commit is contained in:
obitton
2026-03-16 18:08:40 -04:00
committed by GitHub
parent ea8fd838d9
commit fb61bb4a63
8 changed files with 818 additions and 278 deletions
@@ -47,7 +47,10 @@ export function BuilderSidebarRight() {
<>
<SidebarEdge scrollAreaRef={scrollAreaRef} />
<ScrollArea ref={scrollAreaRef} className="@container h-[calc(100svh-3.5rem)] bg-background overflow-hidden sm:me-12">
<ScrollArea
ref={scrollAreaRef}
className="@container h-[calc(100svh-3.5rem)] overflow-hidden bg-background sm:me-12"
>
<div className="space-y-4 p-4">
{rightSidebarSections.map((section) => (
<Fragment key={section}>
@@ -85,18 +88,18 @@ function SidebarEdge({ scrollAreaRef }: SidebarEdgeProps) {
<BuilderSidebarEdge side="right">
<div className="no-scrollbar min-h-0 w-full flex-1 overflow-y-auto overflow-x-hidden">
<div className="flex min-h-full flex-col items-center justify-center gap-y-2">
{rightSidebarSections.map((section) => (
<Button
key={section}
size="icon"
variant="ghost"
title={getSectionTitle(section)}
onClick={() => scrollToSection(section)}
>
{getSectionIcon(section)}
</Button>
))}
</div>
{rightSidebarSections.map((section) => (
<Button
key={section}
size="icon"
variant="ghost"
title={getSectionTitle(section)}
onClick={() => scrollToSection(section)}
>
{getSectionIcon(section)}
</Button>
))}
</div>
</div>
</BuilderSidebarEdge>
);