@budibase/frontend-core 3.13.9 → 3.13.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "3.13.9",
3
+ "version": "3.13.11",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
@@ -17,5 +17,5 @@
17
17
  "shortid": "2.2.15",
18
18
  "socket.io-client": "^4.7.5"
19
19
  },
20
- "gitHead": "30a44240184250ea133efd48416ad2a33ee16d60"
20
+ "gitHead": "48114cd1183da82668db193e89c7dd708e1eb5fa"
21
21
  }
@@ -2,6 +2,8 @@ import {
2
2
  CreateAppBackupResponse,
3
3
  ImportAppBackupResponse,
4
4
  SearchAppBackupsRequest,
5
+ ClearBackupErrorRequest,
6
+ ClearBackupErrorResponse,
5
7
  } from "@budibase/types"
6
8
  import { BaseAPIClient } from "./types"
7
9
 
@@ -19,6 +21,10 @@ export interface BackupEndpoints {
19
21
  appId: string,
20
22
  backupId: string
21
23
  ) => Promise<{ message: string }>
24
+ clearBackupErrors: (
25
+ appId: string,
26
+ backupId?: string
27
+ ) => Promise<ClearBackupErrorResponse>
22
28
  }
23
29
 
24
30
  export const buildBackupEndpoints = (API: BaseAPIClient): BackupEndpoints => ({
@@ -47,4 +53,10 @@ export const buildBackupEndpoints = (API: BaseAPIClient): BackupEndpoints => ({
47
53
  body: { name },
48
54
  })
49
55
  },
56
+ clearBackupErrors: async (appId, backupId) => {
57
+ return await API.delete<ClearBackupErrorRequest, ClearBackupErrorResponse>({
58
+ url: "/api/backups/logs",
59
+ body: { appId, backupId },
60
+ })
61
+ },
50
62
  })
@@ -75,9 +75,7 @@ export const deriveStores = (context: StoreContext): DerivedColumnStore => {
75
75
 
76
76
  // Derived list of columns which have not been explicitly hidden
77
77
  const visibleColumns = derived(columns, $columns => {
78
- return $columns.filter(
79
- col => col.visible === true || col.visible === undefined
80
- )
78
+ return $columns.filter(col => col.visible)
81
79
  })
82
80
 
83
81
  // Split visible columns into their discrete types
@@ -173,6 +171,9 @@ export const initialise = (context: StoreContext) => {
173
171
  primaryDisplay = candidatePD
174
172
  }
175
173
 
174
+ const anyVisibilitySet = Object.values($enrichedSchema).find(
175
+ (col: any) => col.visible != undefined
176
+ )
176
177
  // Update columns, removing extraneous columns and adding missing ones
177
178
  columns.set(
178
179
  Object.keys($enrichedSchema)
@@ -184,7 +185,7 @@ export const initialise = (context: StoreContext) => {
184
185
  label: fieldSchema.displayName || field,
185
186
  schema: fieldSchema,
186
187
  width: fieldSchema.width || DefaultColumnWidth,
187
- visible: fieldSchema.visible ?? true,
188
+ visible: fieldSchema.visible ?? !anyVisibilitySet,
188
189
  readonly: fieldSchema.readonly,
189
190
  order: fieldSchema.order,
190
191
  conditions: fieldSchema.conditions,