Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
perf(query): reconnect realtime only after five minutes hidden, one catch-up call per reconnect
Sidwebworks1c4e4f0c8a09
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex ea093e99c5..737dc2a634 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -2260,7 +2260,7 @@ msgstr "Möchten Sie dieses Prüfmittel wirklich aktivieren?."msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "Möchten Sie {0} wirklich stornieren? Es wird geschlossen und schreibgeschützt, bis Sie es wieder öffnen."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "Sind Sie sicher, dass Sie {0} stornieren möchten? Dies storniert auch alle zugehörigen Lieferantenofferten."@@ -2633,8 +2633,8 @@ msgstr "Möchten Sie diese Seite wirklich verlassen?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "Sind Sie sicher, dass Sie diesen Checkpoint passieren möchten? Die Phase {0} hat noch unvollendete Aufgaben."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "Sind Sie sicher, dass Sie {0} dauerhaft löschen möchten?"@@ -17068,12 +17068,18 @@ msgstr "Lösungsingenieur"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "Einige aus dem PDF extrahierte Zeilen konnten nicht automatisch Ihren Bestandsartikeln zugeordnet werden. Überprüfen und ordnen Sie jede Zeile unten zu."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Einige Datensätze werden nicht zurückkommen. Geben Sie <0>{CONFIRM_WORD}</0> ein, um fortzufahren."msgid "Some Shifts"msgstr "Einige Schichten"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "Etwas ist schief gelaufen. Bitte versuchen Sie es erneut."@@ -19610,9 +19616,6 @@ msgstr "Verfolgte Materialien werden nach Kommissionierauftrag vorabausgewähltmsgid "Tracking"msgstr "Verfolgung"-msgid "Tracking ID"-msgstr "Verfolgungskennung"-msgid "Tracking method"msgstr "Verfolgungsmethode"@@ -20000,6 +20003,9 @@ msgstr "Unbenannte Zeile"msgid "Untitled step"msgstr "Unbenannter Schritt"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Ungenutzte kommissionierte Materialien werden vom Arbeitsplatz zurück ins Lager geleitet."@@ -21337,8 +21343,7 @@ msgstr "Du kannst diesen Schlüssel nur einmal sehen. Speichere ihn sicher."#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 360a6b294e..2f0ea5640c 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -2260,7 +2260,7 @@ msgstr "Are you sure you want to activate this gauge?."msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."@@ -2633,8 +2633,8 @@ msgstr "Are you sure you want to leave this page?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "Are you sure you want to permanently delete {0}?"@@ -17068,12 +17068,18 @@ msgstr "Solutions Engineer"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."+msgid "Some quantities are negative."+msgstr "Some quantities are negative."+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgid "Some Shifts"msgstr "Some Shifts"+msgid "Some stock has no storage unit."+msgstr "Some stock has no storage unit."+msgid "Something went wrong. Please try again."msgstr "Something went wrong. Please try again."@@ -19610,9 +19616,6 @@ msgstr "Tracked material is pre-selected by pick order (FEFO), even without a pimsgid "Tracking"msgstr "Tracking"-msgid "Tracking ID"-msgstr "Tracking ID"-msgid "Tracking method"msgstr "Tracking method"@@ -20000,6 +20003,9 @@ msgstr "Untitled line"msgid "Untitled step"msgstr "Untitled step"+msgid "Untracked"+msgstr "Untracked"+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Unused picked material flushed back from the work center to the warehouse."@@ -21337,13 +21343,11 @@ msgstr "You can only see this key once. Store it safely."#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"-msgstr ""-"You completed {leftoverQuantity} more \n"+msgstr "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 72166ab71f..170c88dfe6 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -2260,7 +2260,7 @@ msgstr "¿Está seguro de que desea activar este instrumento de medición?."msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "¿Está seguro de que desea cancelar {0}? Será cerrado y de solo lectura hasta que lo reabra."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "¿Está seguro de que desea cancelar {0}? Esto también cancelará todas las cotizaciones del proveedor relacionadas."@@ -2633,8 +2633,8 @@ msgstr "¿Estás seguro de que quieres salir de esta página?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "¿Estás seguro de que deseas pasar este checkpoint? La fase {0} aún tiene tareas sin terminar."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "¿Estás seguro de que deseas eliminar permanentemente {0}?"@@ -17068,12 +17068,18 @@ msgstr "Ingeniero de Soluciones"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "Algunas líneas extraídas del PDF no se pudieron asignar automáticamente a sus artículos de inventario. Revise y asigne cada línea a continuación."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Algunos registros no volverán. Escriba <0>{CONFIRM_WORD}</0> para continuar."msgid "Some Shifts"msgstr "Algunos turnos"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "Algo salió mal. Por favor, inténtalo de nuevo."@@ -19610,9 +19616,6 @@ msgstr "El material rastreado se preselecciona por orden de picking (FEFO), inclmsgid "Tracking"msgstr "Seguimiento"-msgid "Tracking ID"-msgstr "ID de Seguimiento"-msgid "Tracking method"msgstr "Método de seguimiento"@@ -20000,6 +20003,9 @@ msgstr "Línea sin título"msgid "Untitled step"msgstr "Paso sin título"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Material recogido no utilizado devuelto desde el centro de trabajo al almacén."@@ -21337,8 +21343,7 @@ msgstr "Solo puedes ver esta clave una vez. Guárdala de forma segura."#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 0295cb8fe7..c1f532f6d1 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -2260,7 +2260,7 @@ msgstr "Êtes-vous sûr de vouloir activer cet instrument de mesure ?"msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "Êtes-vous sûr de vouloir annuler {0} ? Il sera fermé et en lecture seule jusqu'à ce que vous le rouvriez."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "Êtes-vous sûr de vouloir annuler {0} ? Cela annulera également tous les devis fournisseurs associés."@@ -2633,8 +2633,8 @@ msgstr "Êtes-vous sûr de vouloir quitter cette page ?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "Êtes-vous sûr de vouloir passer ce point de contrôle ? La phase {0} a encore des tâches inachevées."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "Êtes-vous sûr de vouloir supprimer définitivement {0} ?"@@ -17068,12 +17068,18 @@ msgstr "Ingénieur Solutions"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "Certaines lignes extraites du PDF n'ont pas pu être automatiquement associées à vos articles. Passez en revue et associez chaque ligne ci-dessous."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Certains enregistrements ne reviendront pas. Tapez <0>{CONFIRM_WORD}</0> pour continuer."msgid "Some Shifts"msgstr "Certaines équipes"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "Quelque chose s'est mal passé. Veuillez réessayer."@@ -19610,9 +19616,6 @@ msgstr "Le matériel suivi est pré-sélectionné par ordre de prélèvement (FEmsgid "Tracking"msgstr "Suivi"-msgid "Tracking ID"-msgstr "ID de suivi"-msgid "Tracking method"msgstr "Méthode de suivi"@@ -20000,6 +20003,9 @@ msgstr "Ligne sans titre"msgid "Untitled step"msgstr "Étape sans titre"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Matière prélevée inutilisée renvoyée du poste de travail à l'entrepôt."@@ -21337,8 +21343,7 @@ msgstr "Vous ne pouvez voir cette clé qu'une seule fois. Conservez-la en sécur#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex fc7eae4d47..9c72247248 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -2260,7 +2260,7 @@ msgstr "क्या आप सुनिश्चित हैं कि आपmsgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "क्या आप {0} को रद्द करना चाहते हैं? यह बंद हो जाएगी और पढ़ने के लिए केवल तब तक होगी जब तक आप इसे फिर से खोलेंगे।"-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "क्या आप {0} को रद्द करना चाहते हैं? यह सभी संबंधित आपूर्तिकर्ता कोटेशन को भी रद्द कर देगा।"@@ -2633,8 +2633,8 @@ msgstr "क्या आप वाकई इस पृष्ठ को छोडmsgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "क्या आप सुनिश्चित हैं कि आप इस चेकपॉइंट को पास करना चाहते हैं? {0} चरण में अभी भी अधूरे कार्य हैं।"-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "क्या आप {0} को स्थायी रूप से हटाना चाहते हैं?"@@ -17068,12 +17068,18 @@ msgstr "समाधान इंजीनियर"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "PDF से निकाली गई कुछ पंक्तियों को आपकी इन्वेंटरी आइटम्स से स्वचालित रूप से मैप नहीं किया जा सका। नीचे प्रत्येक पंक्ति की समीक्षा करें और मैप करें।"+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "कुछ रिकॉर्ड वापस नहीं आएंगे। जारी रखने के लिए <0>{CONFIRM_WORD}</0> टाइप करें।"msgid "Some Shifts"msgstr "कुछ शिफ्ट"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "कुछ गलत हो गया। कृपया पुनः प्रयास करें।"@@ -19610,9 +19616,6 @@ msgstr "ट्रैक की गई सामग्री को पिकिmsgid "Tracking"msgstr "ट्रैकिंग"-msgid "Tracking ID"-msgstr "ट्रैकिंग आईडी"-msgid "Tracking method"msgstr "ट्रैकिंग विधि"@@ -20000,6 +20003,9 @@ msgstr "बिना शीर्षक की पंक्ति"msgid "Untitled step"msgstr "बिना शीर्षक वाला चरण"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "अप्रयुक्त सामग्री को वर्क सेंटर से गोदाम में वापस भेजा गया।"@@ -21337,13 +21343,11 @@ msgstr "आप इस कुंजी को केवल एक बार द#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"-msgstr ""-"आप {leftoverQuantity} अधिक \n"+msgstr "आप {leftoverQuantity} अधिक \n"" {0} को {1} की ऑर्डर की गई \n"" मात्रा से पूरा कर चुके हैं। आप अतिरिक्त पार्ट्स के साथ \n"" क्या करना चाहेंगे?"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 163a462519..a0a601cd52 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -2260,7 +2260,7 @@ msgstr "Sei sicuro di voler attivare questo strumento di misura?."msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "Sei sicuro di voler cancellare {0}? Sarà chiuso e in sola lettura fino a quando non lo riapri."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "Sei sicuro di voler annullare {0}? Questo annullerà anche tutte le offerte del fornitore correlate."@@ -2633,8 +2633,8 @@ msgstr "Sei sicuro di voler lasciare questa pagina?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "Sei sicuro di voler superare questo checkpoint? La fase {0} ha ancora attività non completate."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "Sei sicuro di voler eliminare permanentemente {0}?"@@ -17068,12 +17068,18 @@ msgstr "Solutions Engineer"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "Alcune righe estratte dal PDF non potevano essere mappate automaticamente ai tuoi articoli. Rivedi e mappa ogni riga di seguito."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Alcuni record non torneranno. Digita <0>{CONFIRM_WORD}</0> per continuare."msgid "Some Shifts"msgstr "Alcuni turni"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "Qualcosa è andato storto. Riprova."@@ -19610,9 +19616,6 @@ msgstr "Il materiale tracciato è preselezionato per ordine di prelievo (FEFO),msgid "Tracking"msgstr "Tracciamento"-msgid "Tracking ID"-msgstr "ID Tracciamento"-msgid "Tracking method"msgstr "Metodo di tracciamento"@@ -20000,6 +20003,9 @@ msgstr "Riga senza titolo"msgid "Untitled step"msgstr "Passo senza titolo"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Materiale prelevato non utilizzato reso dal centro di lavoro al deposito."@@ -21337,8 +21343,7 @@ msgstr "Puoi visualizzare questa chiave solo una volta. Conservala in modo sicur#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 0e21e8cbc7..71333df158 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -2260,7 +2260,7 @@ msgstr "この測定器を有効にしてもよろしいですか?."msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "{0} をキャンセルしてもよろしいですか?クローズ済になり、再オープンするまで読み取り専用になります。"-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "{0} をキャンセルしてもよろしいですか?関連するすべての仕入先見積もキャンセルされます。"@@ -2633,8 +2633,8 @@ msgstr "このページを離れてもよろしいですか?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "このチェックポイントをパスしてもよろしいですか?{0}フェーズにはまだ未完了のタスクがあります。"-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "{0}を完全に削除してもよろしいですか?"@@ -17068,12 +17068,18 @@ msgstr "ソリューションズエンジニア"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "PDFから抽出された一部の明細は在庫品目に自動的にマップできませんでした。以下の各明細を確認してマップしてください。"+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "いくつかのレコードは戻りません。続行するには<0>{CONFIRM_WORD}</0>と入力してください。"msgid "Some Shifts"msgstr "一部のシフト"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "何か問題が発生しました。もう一度お試しください。"@@ -19610,9 +19616,6 @@ msgstr "追跡される材料は、ピッキングリストがない場合でもmsgid "Tracking"msgstr "追跡"-msgid "Tracking ID"-msgstr "追跡ID"-msgid "Tracking method"msgstr "追跡方法"@@ -20000,6 +20003,9 @@ msgstr "無題の行"msgid "Untitled step"msgstr "無題のステップ"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "未使用のピッキング済み材料が作業区から倉庫に戻されました。"@@ -21337,8 +21343,7 @@ msgstr "このキーは一度だけ表示されます。安全に保管してく#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 61043e04d9..7a2a53efef 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -2260,7 +2260,7 @@ msgstr "이 계측기를 활성화하시겠습니까?."msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "{0}를 취소하시겠습니까? 다시 열기할 때까지 마감되고 읽기 전용이 됩니다."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "{0}을(를) 취소하시겠습니까? 관련된 모든 공급업체 견적도 함께 취소됩니다."@@ -2633,8 +2633,8 @@ msgstr "이 페이지를 나가시겠습니까?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "이 체크포인트를 통과하시겠습니까? {0} 단계에 아직 완료되지 않은 작업이 있습니다."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "{0}을(를) 영구적으로 삭제하시겠습니까?"@@ -17068,12 +17068,18 @@ msgstr "솔루션 엔지니어"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "PDF에서 추출된 일부 라인을 재고 품목에 자동으로 매핑할 수 없습니다. 아래에서 각 라인을 검토하고 매핑하세요."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "일부 레코드는 돌아오지 않습니다. 계속하려면 <0>{CONFIRM_WORD}</0>를 입력하세요."msgid "Some Shifts"msgstr "일부 교대조"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "문제가 발생했습니다. 다시 시도해 주세요."@@ -19610,9 +19616,6 @@ msgstr "추적 자재는 피킹 리스트가 없어도 피킹 순서(FEFO)에msgid "Tracking"msgstr "추적"-msgid "Tracking ID"-msgstr "추적 ID"-msgid "Tracking method"msgstr "추적 방법"@@ -20000,6 +20003,9 @@ msgstr "제목 없는 라인"msgid "Untitled step"msgstr "제목 없는 단계"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "작업장에서 창고로 반환된 미사용 선택 재료."@@ -21337,8 +21343,7 @@ msgstr "이 키는 한 번만 확인할 수 있습니다. 안전하게 보관하#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex a86eab0f34..497c246d30 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -2260,7 +2260,7 @@ msgstr "Czy chcesz aktywować ten przyrząd pomiarowy?"msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "Czy na pewno chcesz anulować {0}? Będzie zamknięte i tylko do odczytu do momentu, gdy je ponownie otworzysz."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "Czy na pewno chcesz anulować {0}? Spowoduje to również anulowanie wszystkich powiązanych ofert dostawców."@@ -2633,8 +2633,8 @@ msgstr "Czy na pewno chcesz opuścić tę stronę?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "Czy na pewno chcesz przejść ten punkt kontrolny? Faza {0} wciąż ma niezakończone zadania."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "Czy na pewno chcesz trwale usunąć {0}?"@@ -17068,12 +17068,18 @@ msgstr "Inżynier Rozwiązań"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "Niektóre pozycje wyodrębnione z pliku PDF nie mogły być automatycznie zmapowane do artykułów z twoich zapasów. Przejrzyj i zamapuj każdą pozycję poniżej."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Niektóre rekordy nie wrócą. Wpisz <0>{CONFIRM_WORD}</0> aby kontynuować."msgid "Some Shifts"msgstr "Niektóre zmiany"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "Coś poszło nie tak. Spróbuj ponownie."@@ -19610,9 +19616,6 @@ msgstr "Materiał śledzony jest wstępnie wybierany według kolejności poborumsgid "Tracking"msgstr "Śledzenie"-msgid "Tracking ID"-msgstr "ID śledzenia"-msgid "Tracking method"msgstr "Metoda śledzenia"@@ -20000,6 +20003,9 @@ msgstr "Linia bez tytułu"msgid "Untitled step"msgstr "Krok bez tytułu"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Materiał pobrany, ale nieużywany, zwracany ze stanowiska roboczego do magazynu."@@ -21337,8 +21343,7 @@ msgstr "Możesz zobaczyć ten klucz tylko raz. Przechowuj go bezpiecznie."#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 86e8fcc85b..9802184c3a 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -2260,7 +2260,7 @@ msgstr "Tem certeza de que deseja ativar este instrumento de medição?."msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "Tem certeza de que deseja cancelar {0}? Será fechado e somente leitura até que você o reabra."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "Tem a certeza de que deseja cancelar {0}? Isto também cancelará todas as cotações de fornecedores relacionadas."@@ -2633,8 +2633,8 @@ msgstr "Tem certeza que deseja sair desta página?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "Tem a certeza de que deseja passar neste checkpoint? A fase {0} ainda tem tarefas inacabadas."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "Tem certeza de que deseja excluir permanentemente {0}?"@@ -17068,12 +17068,18 @@ msgstr "Engenheiro de Soluções"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "Algumas linhas extraídas do PDF não puderam ser mapeadas automaticamente para seus itens de inventário. Revise e mapeie cada linha abaixo."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Alguns registros não voltarão. Digite <0>{CONFIRM_WORD}</0> para continuar."msgid "Some Shifts"msgstr "Alguns Turnos"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "Algo deu errado. Tente novamente."@@ -19610,9 +19616,6 @@ msgstr "Material rastreado é pré-selecionado por ordem de separação (FEFO),msgid "Tracking"msgstr "Rastreamento"-msgid "Tracking ID"-msgstr "ID de Rastreamento"-msgid "Tracking method"msgstr "Método de rastreamento"@@ -20000,6 +20003,9 @@ msgstr "Linha sem título"msgid "Untitled step"msgstr "Etapa sem título"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Material coletado não utilizado devolvido do centro de trabalho para o armazém."@@ -21337,8 +21343,7 @@ msgstr "Você só pode ver esta chave uma vez. Guarde-a com segurança."#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex d4d433d3dc..c127c2ef24 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -2260,7 +2260,7 @@ msgstr "Вы уверены, что хотите активировать этоmsgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "Вы уверены, что хотите отменить {0}? Он будет закрыт и доступен только для чтения, пока вы его не откроете заново."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "Вы уверены, что хотите отменить {0}? Это также отменит все связанные предложения поставщиков."@@ -2633,8 +2633,8 @@ msgstr "Вы уверены, что хотите покинуть эту стрmsgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "Вы уверены, что хотите пройти эту контрольную точку? На этапе {0} остались незавершённые задачи."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "Вы уверены, что хотите окончательно удалить {0}?"@@ -17068,12 +17068,18 @@ msgstr "Инженер решений"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "Некоторые строки, извлеченные из PDF, не удалось автоматически сопоставить с вашими номенклатурными позициями. Проверьте и сопоставьте каждую строку ниже."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Некоторые записи не вернутся. Введите <0>{CONFIRM_WORD}</0> для продолжения."msgid "Some Shifts"msgstr "Некоторые смены"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "Что-то пошло не так. Пожалуйста, попробуйте еще раз."@@ -19610,9 +19616,6 @@ msgstr "Отслеживаемый материал предварительноmsgid "Tracking"msgstr "Отслеживание"-msgid "Tracking ID"-msgstr "ID отслеживания"-msgid "Tracking method"msgstr "Метод отслеживания"@@ -20000,6 +20003,9 @@ msgstr "Безымянная строка"msgid "Untitled step"msgstr "Шаг без названия"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Неиспользованный отобранный материал поступает обратно из рабочего центра на склад."@@ -21337,8 +21343,7 @@ msgstr "Вы можете увидеть этот ключ только один#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 054e42bfdf..cbfa9e64ac 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -2260,7 +2260,7 @@ msgstr "Bu ölçüm aletini etkinleştirmek istediğinizden emin misiniz?."msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "{0} öğesini iptal etmek istediğinizden emin misiniz? Yeniden açana kadar kapalı ve salt okunur durumda olacaktır."-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "{0}'yi iptal etmek istediğinizden emin misiniz? Bu aynı zamanda tüm ilgili tedarikçi tekliflerini de iptal edecektir."@@ -2633,8 +2633,8 @@ msgstr "Bu sayfadan ayrılmak istediğinizden emin misiniz?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "Bu kontrol noktasını geçmek istediğinizden emin misiniz? {0} aşaması hala tamamlanmamış görevlere sahip."-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "{0} öğesini kalıcı olarak silmek istediğinizden emin misiniz?"@@ -17068,12 +17068,18 @@ msgstr "Çözüm Mühendisi"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "PDF'den çıkarılan bazı satırlar stok kartlarınıza otomatik olarak eşleştirilemedi. Aşağıdaki her satırı gözden geçirin ve eşleştirin."+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "Bazı kayıtlar geri gelmeyecek. Devam etmek için <0>{CONFIRM_WORD}</0> yazın."msgid "Some Shifts"msgstr "Bazı Vardiyalar"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "Bir şeyler ters gitti. Lütfen tekrar deneyin."@@ -19610,9 +19616,6 @@ msgstr "İzlenen malzeme, toplama listesi olmasa bile toplama sırasına (FEFO)msgid "Tracking"msgstr "Takip"-msgid "Tracking ID"-msgstr "Takip Kimliği"-msgid "Tracking method"msgstr "İzleme yöntemi"@@ -20000,6 +20003,9 @@ msgstr "Başlıksız satır"msgid "Untitled step"msgstr "Başlıksız Adım"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "İş merkezinden depoya geri gönderilen kullanılmayan alınan malzeme."@@ -21337,8 +21343,7 @@ msgstr "Bu anahtarı yalnızca bir kez görebilirsiniz. Güvenli bir yerde sakla#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 358051da43..ccd8ec8a75 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -2260,7 +2260,7 @@ msgstr "确定要启用此量具吗?"msgid "Are you sure you want to cancel {0}? It will be closed and read-only until you reopen it."msgstr "您确定要取消{0}吗?在您重新打开之前,它将被已关闭且只读。"-#. placeholder {0}: routeData?.rfqSummary ?.rfqId!+#. placeholder {0}: routeData?.rfqSummary ?.rfqIdmsgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."msgstr "您确定要取消 {0} 吗?这也将取消所有相关的供应商报价。"@@ -2633,8 +2633,8 @@ msgstr "您确定要离开此页面吗?"msgid "Are you sure you want to pass this checkpoint? The {0} phase still has unfinished tasks."msgstr "您确定要通过此检查点吗?{0}阶段仍有未完成的任务。"-#. placeholder {0}: selectedPurchaseInvoice.invoiceId!-#. placeholder {0}: selectedSalesInvoice.invoiceId!+#. placeholder {0}: selectedPurchaseInvoice.invoiceId+#. placeholder {0}: selectedSalesInvoice.invoiceIdmsgid "Are you sure you want to permanently delete {0}?"msgstr "您确定要永久删除 {0} 吗?"@@ -17068,12 +17068,18 @@ msgstr "解决方案工程师"msgid "Some lines extracted from the PDF could not be automatically mapped to your inventory items. Review and map each line below."msgstr "从 PDF 提取的某些行无法自动映射到你的库存物料。查看并映射下面的每一行。"+msgid "Some quantities are negative."+msgstr ""+msgid "Some records won't come back. Type <0>{CONFIRM_WORD}</0> to continue."msgstr "某些记录不会回来。输入 <0>{CONFIRM_WORD}</0> 继续。"msgid "Some Shifts"msgstr "某些班次"+msgid "Some stock has no storage unit."+msgstr ""+msgid "Something went wrong. Please try again."msgstr "出现问题。请重试。"@@ -19610,9 +19616,6 @@ msgstr "追踪原材料按拣货顺序(先到期先出)预选,即使没有msgid "Tracking"msgstr "追踪"-msgid "Tracking ID"-msgstr "追踪ID"-msgid "Tracking method"msgstr "跟踪方法"@@ -20000,6 +20003,9 @@ msgstr "未命名行"msgid "Untitled step"msgstr "未命名步骤"+msgid "Untracked"+msgstr ""+msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "未使用的已拣货物料从工作中心冲回至仓库。"@@ -21337,13 +21343,11 @@ msgstr "您只能看到此密钥一次。请妥善保管。"#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"#. placeholder {1}: job.quantity-msgid ""-"You completed {leftoverQuantity} more \n"+msgid "You completed {leftoverQuantity} more \n"" {0} than the\n"" ordered quantity of {1}. What would you like\n"" to do with the extra parts?"-msgstr ""-"您完成了 {leftoverQuantity} 个以上 \n"+msgstr "您完成了 {leftoverQuantity} 个以上 \n"" {0},比 \n"" 订购数量 {1} 多。您想 \n"" 用多余的零件怎么办?"diff --git a/packages/query/AGENTS.md b/packages/query/AGENTS.mdindex 3ec68f2947..b7cecf4283 100644--- a/packages/query/AGENTS.md+++ b/packages/query/AGENTS.md@@ -41,7 +41,7 @@ pnpm --filter @carbon/query test| `setClientCompanyId(companyId, userId)` / `getCompanyId` | The shell layout sets both during render; the `companyId` cookie is httpOnly and unreadable in the browser. A different user empties the cache; leaving a company drops its loader entries || `createInvalidationMiddleware({ getCache, skipPaths })` | Root `clientMiddleware`; skip POSTs that change no data (`/refresh-session`) || `RouteRealtime`, `useRealtimeTable`, `useTableChanges`, `useRealtimeRevalidator` | Realtime over private broadcast topics. Revalidation waits for a submitting fetcher. A route entry `{ table, column, param }` and a `<name>Id=eq.` filter follow one record's rows only (`matchesFilter`) |-| `useRealtimeChannel` | One channel with retry, `private` and `onSubscribed(isReconnect)`. It reconnects when the tab returns after 10 s hidden or with a channel that is not joined — every reconnect reloads the page's data, so a glance at another tab does not |+| `useRealtimeChannel` | One channel with retry, `private` and `onSubscribed(isReconnect)`. It reconnects when the tab returns after 5 minutes hidden or with a channel that is not joined — every reconnect reloads the page's data, so time in another tab does not || `LiveLists`, `useLiveList`, `LiveList` | Whole lists kept in the cache (items, customers, suppliers, people). IndexedDB first (the stored copy is keyed by company AND user: it is that user's RLS view); then `table_changes_since(cursor)` names the rows that changed since the stored copy and only those are re-read. The full list is fetched once per device, and again only when the log cannot answer (no cursor, a server restart, a cursor older than 7 days, more than 500 changed rows). Broadcasts patch it while the tab is open |## Cross-Referencesdiff --git a/packages/query/src/useLiveList.tsx b/packages/query/src/useLiveList.tsxindex 4d0096307c..395a0cb7db 100644--- a/packages/query/src/useLiveList.tsx+++ b/packages/query/src/useLiveList.tsx@@ -129,6 +129,9 @@ export function useLiveList<Row extends { id: string }>(const EMPTY: never[] = [];+// How long a reconnect waits for the rest of the lists' channels to rejoin.+const REJOIN_WAIT_MS = 3_000;+function Subscription({companyId,table,@@ -344,10 +347,18 @@ export function LiveLists({};}, [companyId, userId, ready, lists, storage, queryClient, rowsOf, sync]);+ // Every (list, table) pair has its own topic, and so its own channel.+ const topicCount = lists.reduce(+ (count, list) => count + 1 + (list.related?.length ?? 0),+ 0+ );const resync = useRef<{lists: Set<AnyLiveList>;- pending: Promise<void> | null;- }>({ lists: new Set(), pending: null });+ rejoined: Set<string>;+ timer: ReturnType<typeof setTimeout> | null;+ run: () => void;+ pending: Promise<void>;+ } | null>(null);const onChange = useCallback(async (@@ -356,17 +367,37 @@ export function LiveLists({change: BroadcastChange | null) => {// A reconnect or a bulk change: the log knows exactly what was missed.- // Every channel reconnects together, so the lists ask the log once.if (!change?.ids) {- resync.current.lists.add(list);- resync.current.pending ??= new Promise<void>((resolve) =>- setTimeout(resolve, 50)- ).then(() => {- const targets = [...resync.current.lists];- resync.current = { lists: new Set(), pending: null };- return sync(targets);- });- await resync.current.pending;+ if (!resync.current) {+ const { promise, resolve: run } = Promise.withResolvers<void>();+ const pending = promise.then(() => {+ const batch = resync.current;+ resync.current = null;+ if (!batch) return;+ if (batch.timer) clearTimeout(batch.timer);+ return sync([...batch.lists]);+ });+ resync.current = {+ lists: new Set(),+ rejoined: new Set(),+ timer: null,+ run,+ pending+ };+ }+ const batch = resync.current;+ batch.lists.add(list);+ if (change) {+ batch.timer ??= setTimeout(batch.run, 50);+ } else {+ // The channels rejoin one after another, a round trip each. Asking+ // once, after the last of them, covers what all of them missed; a+ // channel that never rejoins does not hold the others up for long.+ batch.rejoined.add(`${list.name}:${table}`);+ if (batch.rejoined.size >= topicCount) batch.run();+ else batch.timer ??= setTimeout(batch.run, REJOIN_WAIT_MS);+ }+ await batch.pending;return;}const { ids } = change;@@ -381,7 +412,7 @@ export function LiveLists({));},- [sync, readIds, commit, inTurn]+ [sync, readIds, commit, inTurn, topicCount]);if (!ready) return null;diff --git a/packages/query/src/useRealtimeChannel.ts b/packages/query/src/useRealtimeChannel.tsindex 588561186c..b25634611a 100644--- a/packages/query/src/useRealtimeChannel.ts+++ b/packages/query/src/useRealtimeChannel.ts@@ -11,7 +11,10 @@ import { useCallback, useEffect, useRef } from "react";const log = getLogger("react", "realtime-channel");-const RECONNECT_AFTER_HIDDEN_MS = 10_000;+// Browsers throttle a hidden tab's timers hard after five minutes, so the+// socket's heartbeat can no longer vouch for it. Before that a joined channel+// is live and still receiving, and reconnecting it only reloads the page.+const RECONNECT_AFTER_HIDDEN_MS = 5 * 60_000;function formatSubscribeErr(err: unknown): string {if (err == null) return "No error details";@@ -229,8 +232,8 @@ export const useRealtimeChannel = <TDeps extends any[]>(};// A tab that was hidden for long may hold a dead socket, so it reconnects.- // A glance at another tab does not: every reconnect reloads the page's- // data, since nothing is replayed.+ // Time in another tab does not: every reconnect reloads the page's data,+ // since nothing is replayed.let hiddenAt: number | null = null;const handleVisibilityChange = () => {if (document.visibilityState !== "visible") {