cognite-create 0.2.28 → 0.2.31

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/bin/index.js CHANGED
@@ -8,6 +8,7 @@ const fs = require("node:fs/promises");
8
8
  const path = require("node:path");
9
9
 
10
10
  const REQUIRED_DEPENDENCIES = [
11
+ { name: "@tanstack/react-query", version: "^5.90.2" },
11
12
  { name: "recharts", version: "^3.2.1" },
12
13
  { name: "@cognite/sdk", version: "^10.2.0" },
13
14
  { name: "date-fns", version: "^4.1.0" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cognite-create",
3
- "version": "0.2.28",
3
+ "version": "0.2.31",
4
4
  "description": "Create a Next.js app preconfigured with Cognite defaults.",
5
5
  "bin": {
6
6
  "cognite-create": "./bin/index.js"
@@ -10,8 +10,14 @@ Always use semantic Tailwind color classes (e.g., bg-primary, text-primary, bord
10
10
 
11
11
  Layout & Components
12
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
13
  Make sure to properly handle x and y values to proper scales.
14
+ Make sure you are properly handling timezoned dates between client and server.
15
+
16
+ Chart Rendering Rules
17
+ Use direct hex colors: Avoid CSS variables like var(--color-*) in stroke properties
18
+ Make sure charts have properly formatted value properties to display data.
19
+ Use real Cognite data from the SDK.
20
+ Be really careful with x chart values and make sure you are rendering them correctly. Keep consistent with date and timestamp formatting as this can cause rendering issues.
15
21
 
16
22
  CogniteSDK Rules
17
23