@stoker-platform/web-app 0.5.186 → 0.5.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/package.json +4 -4
- package/src/DashboardMetric.tsx +1 -1
- package/src/utils/prepareCSVData.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.5.188
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: add isExport parameter to form condition method
|
|
8
|
+
- @stoker-platform/node-client@0.5.74
|
|
9
|
+
- @stoker-platform/utils@0.5.65
|
|
10
|
+
- @stoker-platform/web-client@0.5.76
|
|
11
|
+
|
|
12
|
+
## 0.5.187
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- feat: change Dashboard metric spinner colour
|
|
17
|
+
|
|
3
18
|
## 0.5.186
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/web-app",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.188",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"scripts": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
52
|
"@react-google-maps/api": "^2.20.8",
|
|
53
53
|
"@sentry/react": "^10.56.0",
|
|
54
|
-
"@stoker-platform/node-client": "0.5.
|
|
55
|
-
"@stoker-platform/utils": "0.5.
|
|
56
|
-
"@stoker-platform/web-client": "0.5.
|
|
54
|
+
"@stoker-platform/node-client": "0.5.74",
|
|
55
|
+
"@stoker-platform/utils": "0.5.65",
|
|
56
|
+
"@stoker-platform/web-client": "0.5.76",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
|
58
58
|
"@types/react": "18.3.13",
|
|
59
59
|
"@types/react-dom": "18.3.1",
|
package/src/DashboardMetric.tsx
CHANGED
|
@@ -180,7 +180,7 @@ export const DashboardMetric = ({ metric, title, collection }: DashboardMetricPr
|
|
|
180
180
|
<div className="text-[16px] font-[600] line-clamp-1 text-center">{metricTitle}</div>
|
|
181
181
|
{connectionStatus === "online" || isPreloadCacheEnabled ? (
|
|
182
182
|
isLoading || (isPreloadCacheEnabled && isCacheLoading) ? (
|
|
183
|
-
<div className="flex items-center justify-center min-h-10">
|
|
183
|
+
<div className="flex items-center justify-center min-h-10 text-primary/80 dark:text-primary">
|
|
184
184
|
<LoadingSpinner size={7} />
|
|
185
185
|
</div>
|
|
186
186
|
) : (
|
|
@@ -59,7 +59,7 @@ export const prepareCSVData = (collection: CollectionSchema, data: any[]) => {
|
|
|
59
59
|
const noExport = tryFunction(fieldCustomization.admin?.noExport) || false
|
|
60
60
|
if (noExport) continue
|
|
61
61
|
if (fieldCustomization.admin?.condition?.form) {
|
|
62
|
-
const condition = tryFunction(fieldCustomization.admin?.condition?.form, ["update", doc])
|
|
62
|
+
const condition = tryFunction(fieldCustomization.admin?.condition?.form, ["update", doc, true])
|
|
63
63
|
if (condition === false) {
|
|
64
64
|
docData[field.name] = ""
|
|
65
65
|
continue
|