create-surf-app 1.0.0-alpha.4 → 1.0.0-alpha.5

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.
@@ -33,14 +33,8 @@ Done! Next steps:
33
33
  Done! Next steps:
34
34
 
35
35
  cd ${name}
36
- cd backend && npm install && cd ..
37
- cd frontend && npm install && cd ..
38
-
39
- # Start backend
40
- cd backend && npm run dev &
41
-
42
- # Start frontend
43
- cd frontend && npm run dev
36
+ npm install
37
+ npm run dev
44
38
 
45
39
  Open the local URL printed by Vite
46
40
  `);
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createSurfApp
4
- } from "./chunk-BV3XIPFM.js";
4
+ } from "./chunk-FDATV75D.js";
5
5
 
6
6
  // src/cli.ts
7
7
  var VALUE_FLAGS = /* @__PURE__ */ new Set([
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSurfApp
3
- } from "./chunk-BV3XIPFM.js";
3
+ } from "./chunk-FDATV75D.js";
4
4
  export {
5
5
  createSurfApp
6
6
  };
@@ -88,3 +88,23 @@ The agent can also call `POST /api/__sync-schema` explicitly after editing.
88
88
  - Do not bypass your backend routes from the frontend
89
89
  - Frontend packages are pre-installed - check `package.json` before installing
90
90
  - Default to a dark theme unless the user explicitly asks for a different visual direction.
91
+
92
+ ## Design
93
+
94
+ ### Avoid AI-default patterns
95
+ - No colored icon boxes next to metrics (the blue-bg-with-icon KPI pattern)
96
+ - No gradient avatar circles with initials
97
+ - No "Built with React · Tailwind" footers
98
+ - No AI copywriting: "Elevate", "Seamless", "Unleash", "Delve", "Next-Gen"
99
+ - No "Oops!" error messages — be direct ("Failed to load. Try again.")
100
+ - No round placeholder numbers ($100.00) — use realistic data ($847.29)
101
+ - Sentence case on headings, not Title Case On Every Word
102
+ - Icons should aid scanning, not decorate — omit when the label is clear
103
+
104
+ ### ECharts
105
+ - Flat style: show primary axis line, dashed split lines, transparent chart bg
106
+ - Custom tooltip formatter with dash indicators (12×2.5px bars, not default circle dots)
107
+ - Legend: type "plain", icon "roundRect", itemWidth 12, itemHeight 3
108
+ - Prefer timeframe tabs (7D/30D/90D/1Y/All) over dataZoom for time series
109
+ - Default to theme visualizer palette; override when semantics demand it (red/green for gain/loss, sequential scales for heatmaps)
110
+ - Dark mode: parameterize tooltip bg, axis colors, split line colors via resolvedTheme
@@ -6,7 +6,7 @@
6
6
  "dev": "node scripts/check-env.js node --watch server.js"
7
7
  },
8
8
  "dependencies": {
9
- "@surf-ai/sdk": "1.0.0-alpha.4",
9
+ "@surf-ai/sdk": "1.0.0-alpha.5",
10
10
  "express": "4.22.1"
11
11
  }
12
12
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "surf-app",
3
3
  "private": true,
4
+ "workspaces": ["backend", "frontend"],
4
5
  "scripts": {
5
- "dev": "concurrently \"npm run dev --prefix backend\" \"npm run dev --prefix frontend\"",
6
- "install:all": "cd backend && npm install && cd ../frontend && npm install"
6
+ "dev": "concurrently \"npm run dev --workspace backend\" \"npm run dev --workspace frontend\""
7
7
  },
8
8
  "devDependencies": {
9
9
  "concurrently": "^9.0.0"
@@ -9,7 +9,7 @@
9
9
  "type-check": "tsc --noEmit --incremental"
10
10
  },
11
11
  "dependencies": {
12
- "@surf-ai/sdk": "1.0.0-alpha.4",
12
+ "@surf-ai/sdk": "1.0.0-alpha.5",
13
13
  "@surf-ai/theme": "latest",
14
14
  "next": "15.5.14",
15
15
  "react": "19.2.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-surf-app",
3
- "version": "1.0.0-alpha.4",
3
+ "version": "1.0.0-alpha.5",
4
4
  "description": "Scaffold a Surf app — Vite + React + Express + @surf-ai/sdk",
5
5
  "type": "module",
6
6
  "bin": {