cognite-create 0.2.24 → 0.2.26
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
|
@@ -19,6 +19,8 @@ NEXT_PUBLIC_COGNITE_BASE_URL=
|
|
|
19
19
|
NEXT_PUBLIC_COGNITE_CLIENT_ID=
|
|
20
20
|
COGNITE_CLIENT_SECRET=
|
|
21
21
|
|
|
22
|
+
Make sure to build fallbacks for any error or empty states.
|
|
23
|
+
|
|
22
24
|
All CogniteSDK calls should be done server side in server actions or in server components.
|
|
23
25
|
|
|
24
26
|
We can't use the cognite sdk in the browser as the COGNITE_CLIENT_SECRET is private.
|
|
@@ -62,3 +64,13 @@ Granularity/Aggregates Fix: Ensured aggregates are always provided when granular
|
|
|
62
64
|
Aggregated Data Display: Updated chart component to handle both regular datapoints (value) and aggregated datapoints (average, max, min, etc.) since granularity returns aggregated data.
|
|
63
65
|
|
|
64
66
|
UI Enhancement: Replaced search dialog with dropdown interface for time series selection, providing better UX with automatic loading and filtering of available time series.
|
|
67
|
+
|
|
68
|
+
WATCH OUT FOR THIS BUG WITH SHADCN SELECTS:
|
|
69
|
+
A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.
|
|
70
|
+
|
|
71
|
+
src/components/ui/cognite/select.tsx (107:5) @ SelectItem
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
105 | }: React.ComponentProps<typeof SelectPrimitive.Item>) {
|
|
75
|
+
106 | return (
|
|
76
|
+
> 107 | <SelectPrimitive.Item
|