@ai-matrx/records-ui 0.110.9 → 0.110.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.110.11
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records-ui/v0.110.10..npm/records-ui/v0.110.11 -- apps/shared/records-ui`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.110.10
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/records-ui/v0.110.9..npm/records-ui/v0.110.10 -- apps/shared/records-ui`).
13
+ No source changes intended and no consumer action required.
14
+
3
15
  ## 0.110.9
4
16
  ### Unreleased
5
17
  ### lane spaces-fixes-r39
@@ -261,6 +261,7 @@ function choiceFieldKeys(fields) {
261
261
  return kind === "select" || kind === "multi_select";
262
262
  }).map((f) => f.key);
263
263
  }
264
+ var REVERSE_CELL_CHIPS = 3;
264
265
  var MIN_ROW_HEIGHT = 24;
265
266
  var MAX_ROW_HEIGHT = 96;
266
267
  var AGGREGATE_KINDS = [
@@ -1272,6 +1273,15 @@ async function askTablePageSeed(input) {
1272
1273
  }
1273
1274
  const unversioned = page.data.rows.filter((row) => ownVersion(row) === null).map((row) => row.id);
1274
1275
  if (unversioned.length > 0) reads.push(client.recordHeaders({ ids: unversioned }));
1276
+ reads.push(
1277
+ client.reverseColumns({ table_id: input.tableId }).then(async (columns) => {
1278
+ if (!columns.ok || columns.data.length === 0) return null;
1279
+ const record_ids = page.data.rows.map((row) => row.id);
1280
+ const all = await client.reverseLinksFields({ table_id: input.tableId, source_field_ids: columns.data.map((c) => c.source_field_id), record_ids, limit: REVERSE_CELL_CHIPS });
1281
+ if (all.ok || all.error.code !== "door_absent") return null;
1282
+ return Promise.all(columns.data.map((c) => client.reverseLinksMany({ table_id: input.tableId, source_field_id: c.source_field_id, record_ids, limit: REVERSE_CELL_CHIPS })));
1283
+ })
1284
+ );
1275
1285
  await Promise.all(reads.map((read) => read.catch(() => null)));
1276
1286
  }
1277
1287
  }