mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Improve sales analysis page loading speed and display
Update SalesAnalysisPage to render an iframe directly, improving initial load performance and user experience by removing unnecessary wrapper elements and adding fullscreen capability. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Event-Id: 6bc668ff-666c-4b5d-8977-013904eb1ec9 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/7RN8LqE
This commit is contained in:
1 parent
c158e3dd1f
commit
a305ce539e
1 file changed
+8
-25
@@ -52,31 +52,14 @@ export default function SalesAnalysisPage() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex-1 flex flex-col overflow-hidden">
|
||||
{/* Header */}
|
||||
<div className="bg-white shadow-sm border-b border-gray-200 p-6">
|
||||
<div className="flex items-center">
|
||||
<TrendingUp className="w-8 h-8 text-blue-600 mr-3" />
|
||||
<div>
|
||||
<h2 className="text-2xl font-bold text-gray-900">
|
||||
Analyse des Ventes
|
||||
</h2>
|
||||
<p className="text-gray-600 text-sm">
|
||||
{salesAnalysisUrl}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Iframe Content */}
|
||||
<div className="flex-1 overflow-hidden">
|
||||
<iframe
|
||||
src={salesAnalysisUrl}
|
||||
className="w-full h-full border-0"
|
||||
title="Analyse des Ventes"
|
||||
data-testid="iframe-sales-analysis"
|
||||
/>
|
||||
</div>
|
||||
<div className="w-full h-screen">
|
||||
<iframe
|
||||
src={salesAnalysisUrl}
|
||||
className="w-full h-full border-0"
|
||||
title="Analyse des Ventes"
|
||||
data-testid="iframe-sales-analysis"
|
||||
allow="fullscreen"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user