🚀 Auto-deploy: BrainWind atualizado em 14/07/2026 15:18:53

This commit is contained in:
2026-07-14 15:18:53 +00:00
parent c07016ab82
commit 4e0b26f1c4
14 changed files with 1580 additions and 158 deletions
+28 -1
View File
@@ -15,6 +15,8 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip
import ExportMenu from '../components/ExportMenu';
import { EducationalManual } from '@/components/EducationalManual';
import { PressureLegend } from '@/components/PressureLegend';
import { SaveModuleDialog } from '@/components/SaveModuleDialog';
import { useHydrationStore } from '@/store/hydrationStore';
const GalpaoModule: React.FC = () => {
const {
@@ -33,6 +35,21 @@ const GalpaoModule: React.FC = () => {
windAngle,
setWindAngle,
} = useWindStore();
const pendingLoad = useHydrationStore((s) => s.pendingLoad);
const clearPendingLoad = useHydrationStore((s) => s.clearPendingLoad);
React.useEffect(() => {
if (pendingLoad && pendingLoad.module === 'galpao') {
const p = pendingLoad.inputs as any;
if (p.width !== undefined) setWidth(p.width);
if (p.length !== undefined) setLength(p.length);
if (p.height !== undefined) setHeight(p.height);
if (p.roofPitch !== undefined) setRoofPitch(p.roofPitch);
clearPendingLoad();
}
}, [pendingLoad, clearPendingLoad, setWidth, setLength, setHeight, setRoofPitch]);
return (
<div className="flex flex-col lg:flex-row h-full w-full gap-4 p-4 lg:p-6 bg-muted/30">
{/* Coluna Esquerda: Controles */}
@@ -146,7 +163,6 @@ const GalpaoModule: React.FC = () => {
</div>
<div className="flex flex-wrap gap-2 pointer-events-auto justify-start sm:justify-end">
<ExportMenu />
<EducationalManual type="warehouse" params={{ windAngle, cpi }} />
</div>
</div>
@@ -161,6 +177,17 @@ const GalpaoModule: React.FC = () => {
{/* Coluna Direita-Inferior: Cargas Lineares (M9.2) */}
<div className="w-full lg:w-96 shrink-0 flex flex-col gap-4 overflow-y-auto pb-8 lg:pb-0">
<LinearLoadsTable />
<div className="flex justify-center bg-background rounded-xl border border-border shadow-sm p-4">
<div className="flex flex-col items-end gap-2">
<SaveModuleDialog
moduleType="galpao"
inputs={{ width, length, height, roofPitch }}
/>
<ExportMenu />
</div>
</div>
<SceneCapturePanel />
<FtoolExportCard />
</div>