From 9e431a55481296d1071372ed840e8b8daf2ad2a6 Mon Sep 17 00:00:00 2001 From: Sidney Alcantara Date: Thu, 1 Jul 2021 21:14:11 +1000 Subject: [PATCH] update collection depth setting copy --- www/src/components/TableSettings/form.tsx | 32 +++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/www/src/components/TableSettings/form.tsx b/www/src/components/TableSettings/form.tsx index acc6929c..a0d2d652 100644 --- a/www/src/components/TableSettings/form.tsx +++ b/www/src/components/TableSettings/form.tsx @@ -139,9 +139,37 @@ export const tableSettings = ( defaultValue: 1, min: 1, max: 5, - label: "Cloud Function Trigger Depth", + label: "Collection Depth", displayCondition: "return values.tableType === 'collectionGroup'", - assistiveText: "Used for table Cloud Function trigger path", + assistiveText: ( + <> + Firetable Cloud Functions that rely on{" "} + + Firestore triggers + {" "} + on this table require you to manually set the depth of this collection + group. +
+ A collection depth of 1 is equivalent to a primary collection. +
+ + Learn more about this requirement + + + + ), }, mode === TableSettingsDialogModes.create && tables && tables?.length !== 0 ? {