cognite-create 0.2.25 → 0.2.28

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": "cognite-create",
3
- "version": "0.2.25",
3
+ "version": "0.2.28",
4
4
  "description": "Create a Next.js app preconfigured with Cognite defaults.",
5
5
  "bin": {
6
6
  "cognite-create": "./bin/index.js"
@@ -8,6 +8,11 @@ Use the ShadCN MCP server to list the Cognite registry for components you can us
8
8
 
9
9
  Always use semantic Tailwind color classes (e.g., bg-primary, text-primary, border-primary) instead of arbitrary color values (e.g., bg-blue-600, text-red-500). This ensures consistency with the design system.
10
10
 
11
+ Layout & Components
12
+ Make sure to put the components together in a cohesive manner.
13
+ Make sure charts have properly formatted value properties to display data.
14
+ Make sure to properly handle x and y values to proper scales.
15
+
11
16
  CogniteSDK Rules
12
17
 
13
18
  Environment Variables
@@ -64,3 +69,15 @@ Granularity/Aggregates Fix: Ensured aggregates are always provided when granular
64
69
  Aggregated Data Display: Updated chart component to handle both regular datapoints (value) and aggregated datapoints (average, max, min, etc.) since granularity returns aggregated data.
65
70
 
66
71
  UI Enhancement: Replaced search dialog with dropdown interface for time series selection, providing better UX with automatic loading and filtering of available time series.
72
+
73
+ Prefer select dropdowns with in built search
74
+
75
+ WATCH OUT FOR THIS BUG WITH SHADCN SELECTS:
76
+ 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.
77
+
78
+ src/components/ui/cognite/select.tsx (107:5) @ SelectItem
79
+
80
+
81
+ 105 | }: React.ComponentProps<typeof SelectPrimitive.Item>) {
82
+ 106 | return (
83
+ > 107 | <SelectPrimitive.Item