@trackunit/iris-app 2.16.60 → 2.16.62

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,3 +1,32 @@
1
+ ## 2.16.62 (2026-11-26)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **eslint:** scope default export exemptions ([6140b76b8ab](https://github.com/Trackunit/manager/commit/6140b76b8ab))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated iris-app-build-utilities to 3.0.51
10
+ - Updated iris-app-api to 2.13.39
11
+ - Updated react-vite-test-setup to 0.0.239
12
+ - Updated css-classname-utils to 0.0.147
13
+ - Updated react-graphql-tools to 1.23.71
14
+ - Updated shared-utils to 1.22.66
15
+
16
+ ### ❤️ Thank You
17
+
18
+ - Aleksandar Yanev
19
+
20
+ ## 2.16.61 (2026-11-26)
21
+
22
+ ### 🩹 Fixes
23
+
24
+ - **react-table:** widen the migration's wrapped check, warn on Tables it can't wrap [DS-354] ([46157d6d68d](https://github.com/Trackunit/manager/commit/46157d6d68d))
25
+
26
+ ### ❤️ Thank You
27
+
28
+ - Arbiona (via Claude) @arbionas
29
+
1
30
  ## 2.16.60 (2026-11-26)
2
31
 
3
32
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app",
3
- "version": "2.16.60",
3
+ "version": "2.16.62",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "main": "src/index.js",
6
6
  "generators": "./generators.json",
@@ -10,7 +10,7 @@
10
10
  "node": ">=24.x"
11
11
  },
12
12
  "dependencies": {
13
- "@trackunit/css-classname-utils": "~0.0.146",
13
+ "@trackunit/css-classname-utils": "~0.0.147",
14
14
  "@typescript-eslint/types": "8.71.2",
15
15
  "@typescript-eslint/typescript-estree": "8.71.2",
16
16
  "pacote": "^21.5.1",
@@ -27,10 +27,10 @@
27
27
  "@npmcli/arborist": "^9.1.9",
28
28
  "win-ca": "^3.5.1",
29
29
  "node-forge": "^1.4.3",
30
- "@trackunit/iris-app-build-utilities": "^3.0.50",
31
- "@trackunit/react-graphql-tools": "^1.23.70",
32
- "@trackunit/shared-utils": "^1.22.65",
33
- "@trackunit/iris-app-api": "^2.13.38",
30
+ "@trackunit/iris-app-build-utilities": "^3.0.51",
31
+ "@trackunit/react-graphql-tools": "^1.23.71",
32
+ "@trackunit/shared-utils": "^1.22.66",
33
+ "@trackunit/iris-app-api": "^2.13.39",
34
34
  "tslib": "^2.6.2",
35
35
  "@clack/prompts": "^1.8.1",
36
36
  "@nx/devkit": "23.3.0",
@@ -38,17 +38,17 @@
38
38
  },
39
39
  "migrations": "./migrations.json",
40
40
  "pinnedVersions": {
41
- "@trackunit/iris-app-api": "2.13.38",
42
- "@trackunit/react-components": "8.0.13",
43
- "@trackunit/react-core-contexts": "3.0.24",
44
- "@trackunit/css-core": "1.22.68",
45
- "@trackunit/iris-app-sdk-vite": "1.12.23",
46
- "@trackunit/react-core-contexts-test": "1.28.62",
47
- "@trackunit/react-vite-test-setup": "0.0.238",
48
- "@trackunit/iris-app-runtime-core": "2.0.6",
49
- "@trackunit/serverside-utils": "0.5.347",
50
- "@trackunit/migrations": "0.2.180",
51
- "@trackunit/eslint-plugin-trackunit": "0.9.18"
41
+ "@trackunit/iris-app-api": "2.13.39",
42
+ "@trackunit/react-components": "8.0.15",
43
+ "@trackunit/react-core-contexts": "3.0.26",
44
+ "@trackunit/css-core": "1.22.69",
45
+ "@trackunit/iris-app-sdk-vite": "1.12.25",
46
+ "@trackunit/react-core-contexts-test": "1.28.63",
47
+ "@trackunit/react-vite-test-setup": "0.0.239",
48
+ "@trackunit/iris-app-runtime-core": "2.0.7",
49
+ "@trackunit/serverside-utils": "0.5.348",
50
+ "@trackunit/migrations": "0.2.181",
51
+ "@trackunit/eslint-plugin-trackunit": "0.9.19"
52
52
  },
53
53
  "types": "./src/index.d.ts",
54
54
  "type": "commonjs"
@@ -10,4 +10,5 @@ app.get("/health", (c) => {
10
10
  });
11
11
  });
12
12
 
13
- export default app.fetch;
13
+ const handler = app.fetch;
14
+ export { handler as fetch };
@@ -4,7 +4,7 @@ import "dotenv/config";
4
4
 
5
5
  import { serve } from "@hono/node-server";
6
6
 
7
- import handler from "./index";
7
+ import { fetch as handler } from "./index";
8
8
 
9
9
  const port = Number(process.env.PORT) || 8000;
10
10
 
@@ -28,4 +28,5 @@ app.get("/assets/:id", async c => {
28
28
  return c.json(data);
29
29
  });
30
30
 
31
- export default app.fetch;
31
+ const handler = app.fetch;
32
+ export { handler as fetch };
@@ -8,6 +8,7 @@ description: Use when building data tables with filtering, sorting, pagination,
8
8
  Build tables with `@trackunit/react-table`, filters with `@trackunit/filters-filter-bar`, and server-side pagination with GraphQL. For simple lists without filtering, use standard components.
9
9
 
10
10
  - Put the filter bar, sorting, query and columns in a hook next to the table component. The component calls the hook and renders `FilterBar` and `Table`.
11
+ - `Table` has no frame of its own. Wrap it in `<Card scrollableContent>` from `@trackunit/react-components` for the standard framed look.
11
12
  - Wrap data transformations and column definitions in `useMemo`.
12
13
  - Spread the filter bar's GraphQL variables into the query variables.
13
14
  - Use `manualSorting: true` for server-side sorting of large data sets (over 1000 items).
@@ -99,6 +100,7 @@ export const useAssetTable = () => {
99
100
 
100
101
  ```typescript
101
102
  // AssetTable.tsx
103
+ import { Card } from '@trackunit/react-components';
102
104
  import { Table } from '@trackunit/react-table';
103
105
  import { FilterBar } from '@trackunit/filters-filter-bar';
104
106
  import { useAssetTable } from './useAssetTable';
@@ -109,7 +111,9 @@ export const AssetTable = () => {
109
111
  return (
110
112
  <>
111
113
  <FilterBar {...filterBar} />
112
- <Table {...table} loading={loading} onRowClick={onRowClick} pagination={pagination} />
114
+ <Card scrollableContent>
115
+ <Table {...table} loading={loading} onRowClick={onRowClick} pagination={pagination} />
116
+ </Card>
113
117
  </>
114
118
  );
115
119
  };
@@ -117,6 +121,7 @@ export const AssetTable = () => {
117
121
 
118
122
  ## Common mistakes
119
123
 
124
+ - **Rendering `Table` without `<Card scrollableContent>`.** Without the Card, the table has no border. With a Card but no `scrollableContent`, the Card grows to fit every row inside a flex or grid layout, so nothing scrolls and every row renders.
120
125
  - **Sorting rows in the browser on a server-paginated table.** It only orders the loaded rows. Pass the sorting state to the query's `sort` variable, and only enable sorting on columns the query can sort.
121
126
  - **Passing `Asset.id` to navigation.** `id` is the global GraphQL ID. `gotoAssetHome` takes `assetId`, so select it in the query.
122
127
  - **Loading every page to compute a fleet total.** Each page costs API budget (see `graphql-timeseries`). Use a field the API already aggregates. If there is none, say so in your report instead of looping over pages.