mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-17 12:19:50 +02:00
feat: implement PostgreSQL client for bulk data retrieval to replace per-article HTTP requests and configure Claude permissions
This commit is contained in:
1 parent
868886db87
commit
7e4b370267
6 files changed
+91
-19
No files matched your search
@@ -33,7 +33,8 @@ export default async function GridPage({ searchParams }: GridPageProps) {
|
||||
return <SupplierSelectionLanding fournisseurs={fournisseurs} />;
|
||||
}
|
||||
|
||||
// 3. Load real product data for the selected supplier
|
||||
// 3. Load product data — résultat mis en cache 5 min par fournisseur (unstable_cache).
|
||||
// La première requête est lente mais les suivantes (refresh, navigation) sont instantanées.
|
||||
console.log(`\n>>> [GridPage] Fetching data for: ${codeFournisseur}, shop: ${magasin}`);
|
||||
const rows = await getGridData(codeFournisseur, magasin, filters);
|
||||
console.log(`>>> [GridPage] Received ${rows.length} rows from getGridData`);
|
||||
|
||||
Reference in new issue
Block a user