@trackunit/iris-app 2.11.11 → 2.13.0

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,58 @@
1
+ ## 2.13.0 (2026-10-20)
2
+
3
+ ### 🚀 Features
4
+
5
+ - move simple Iris apps out of manager (GLU-2745) ([1c2aa8a6508](https://github.com/Trackunit/manager/commit/1c2aa8a6508))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated iris-app-build-utilities to 2.9.0
10
+ - Updated iris-app-api to 2.11.0
11
+ - Updated react-vite-test-setup to 0.0.171
12
+ - Updated css-classname-utils to 0.0.79
13
+ - Updated react-graphql-tools to 1.22.0
14
+ - Updated shared-utils to 1.21.0
15
+
16
+ ### ❤️ Thank You
17
+
18
+ - Cursor @cursoragent
19
+ - Mikkel Thorbjørn Andersen
20
+
21
+ ## 2.12.0 (2026-10-20)
22
+
23
+ ### 🚀 Features
24
+
25
+ - ⚠️ **iris-app-playwright:** irisApp() resolves to Promise<FrameLocator> [GLU-2633] ([#26392](https://github.com/Trackunit/manager/pull/26392), [#173](https://github.com/Trackunit/manager/issues/173))
26
+
27
+ ### ⚠️ Breaking Changes
28
+
29
+ - **iris-app-playwright:** irisApp() resolves to Promise<FrameLocator> [GLU-2633] ([#26392](https://github.com/Trackunit/manager/pull/26392), [#173](https://github.com/Trackunit/manager/issues/173))
30
+
31
+ ### 🧱 Updated Dependencies
32
+
33
+ - Updated iris-app-build-utilities to 2.8.0
34
+ - Updated iris-app-api to 2.10.0
35
+ - Updated react-vite-test-setup to 0.0.170
36
+ - Updated css-classname-utils to 0.0.78
37
+ - Updated react-graphql-tools to 1.21.0
38
+ - Updated shared-utils to 1.20.0
39
+
40
+ ### ❤️ Thank You
41
+
42
+ - Brian Christensen @bchTrackunit
43
+ - Cursor @cursoragent
44
+
45
+ ## 2.11.12 (2026-10-19)
46
+
47
+ ### 🧱 Updated Dependencies
48
+
49
+ - Updated iris-app-build-utilities to 2.7.12
50
+ - Updated iris-app-api to 2.9.10
51
+ - Updated react-vite-test-setup to 0.0.169
52
+ - Updated css-classname-utils to 0.0.77
53
+ - Updated react-graphql-tools to 1.20.12
54
+ - Updated shared-utils to 1.19.11
55
+
1
56
  ## 2.11.11 (2026-10-19)
2
57
 
3
58
  ### 🧱 Updated Dependencies
package/README.md CHANGED
@@ -27,23 +27,6 @@ The option is off by default. It reuses the standard `graphql-hooks` target, con
27
27
  npx nx run <project>:graphql-hooks
28
28
  ```
29
29
 
30
- Local requests must include a user bearer token. Set `SDK_ENVIRONMENT=DEV` or `STAGE` in the extension's `.env` to target a non-production public API; unset defaults to production.
31
-
32
- ## Testing Local Changes
33
-
34
- To test changes to the SDK generators locally, you can verify them in a full, temporary workspace environment.
35
-
36
- **Command:**
37
- `yarn run integration-test`
38
-
39
- **What it does:**
40
- - Generates a temporary workspace containing a full Iris app setup.
41
- - Allows you to open this temporary workspace in your IDE.
42
- - Enables you to verify that your changes to generators or other SDK components work as expected in a real environment.
43
-
44
- **How to open:**
45
- Look for the phrase `Successfully created the workspace:` in the console output, then command-click the path to open the workspace.
46
-
47
30
  ## Trackunit
48
31
  This package was developed by Trackunit ApS.
49
32
  Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app",
3
- "version": "2.11.11",
3
+ "version": "2.13.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "main": "src/index.js",
6
6
  "generators": "./generators.json",
@@ -10,10 +10,10 @@
10
10
  "node": ">=24.x"
11
11
  },
12
12
  "dependencies": {
13
- "@trackunit/css-classname-utils": "0.0.76",
13
+ "@trackunit/css-classname-utils": "0.0.79",
14
14
  "@typescript-eslint/types": "8.71.1",
15
15
  "@typescript-eslint/typescript-estree": "8.71.1",
16
- "pacote": "^21.0.4",
16
+ "pacote": "^21.5.1",
17
17
  "libnpmpublish": "^11.1.3",
18
18
  "open": "^10.2.0",
19
19
  "semver": "7.8.5",
@@ -26,10 +26,10 @@
26
26
  "@nx/react": "23.1.0",
27
27
  "@npmcli/arborist": "^9.1.9",
28
28
  "win-ca": "^3.5.1",
29
- "@trackunit/iris-app-build-utilities": "2.7.11",
30
- "@trackunit/react-graphql-tools": "1.20.11",
31
- "@trackunit/shared-utils": "1.19.10",
32
- "@trackunit/iris-app-api": "2.9.9",
29
+ "@trackunit/iris-app-build-utilities": "2.9.0",
30
+ "@trackunit/react-graphql-tools": "1.22.0",
31
+ "@trackunit/shared-utils": "1.21.0",
32
+ "@trackunit/iris-app-api": "2.11.0",
33
33
  "tslib": "^2.6.2",
34
34
  "@clack/prompts": "^1.8.1",
35
35
  "@npm/types": "^1.0.2",
@@ -3,192 +3,54 @@ name: browser-testing
3
3
  description: Use when testing IrisX Apps in browser, extension not appearing, dev mode toggle issues, or verifying code changes in Trackunit Manager.
4
4
  ---
5
5
 
6
- # Browser Testing for IrisX Apps
6
+ # Browser testing IrisX Apps
7
7
 
8
- ## Overview
8
+ IrisX Apps run inside Trackunit Manager, not on a standalone localhost page.
9
9
 
10
- IrisX Apps run inside Trackunit Manager, not on localhost. Test at `https://new.manager.trackunit.com/goto/iris-app-dev` with "Use Local Apps" enabled.
10
+ ## Use Chrome DevTools MCP
11
11
 
12
- ## Chrome DevTools MCP Required
12
+ Extensions render inside iframes, which standard browser automation can't reach. Use Chrome DevTools MCP for all browser testing, with tools such as `list_pages`, `take_snapshot`, `take_screenshot`, `click`, and `evaluate_script`.
13
13
 
14
- **IrisX Apps render inside iFrames.** Standard browser automation tools cannot interact with iFrame content. You **MUST** use Chrome DevTools MCP for browser testing.
14
+ If its tools aren't available, help the user add the server to `.cursor/mcp.json` (Cursor) or `.mcp.json` at the workspace root, then restart the editor:
15
15
 
16
- ### Check Chrome DevTools MCP Availability
17
-
18
- Before browser testing, verify the MCP is available:
19
-
20
- 1. Check if `chrome-devtools` MCP server is enabled in Cursor settings
21
- 2. Try listing pages: use the `list_pages` tool from `user-chrome-devtools` server
22
- 3. If tools are not available, the MCP needs to be configured
23
-
24
- ### Setup Chrome DevTools MCP
25
-
26
- If Chrome DevTools MCP is not available:
27
-
28
- 1. **Install the MCP server** - Guide the user to install `chrome-devtools-mcp`
29
- 2. **Configure the coding agent** - Add the server to `.cursor/mcp.json` for Cursor or `.mcp.json` at the workspace root:
30
- ```json
31
- {
32
- "mcpServers": {
33
- "chrome-devtools": {
34
- "type": "stdio",
35
- "command": "npx",
36
- "args": ["-y", "chrome-devtools-mcp@latest"]
37
- }
38
- }
39
- }
40
- ```
41
- 3. **Restart Cursor** to load the new MCP server
42
- 4. **Launch Chrome with debugging** - Chrome must be started with remote debugging enabled (the MCP handles this)
43
-
44
- ### Why Chrome DevTools?
45
-
46
- | Standard Browser Tools | Chrome DevTools MCP |
47
- |------------------------|---------------------|
48
- | Cannot access iFrame content | Full iFrame support via CDP |
49
- | Limited to top-level DOM | Access nested contexts |
50
- | Screenshots miss iFrame content | Captures complete page |
51
- | Cannot interact with extensions | Full extension interaction |
52
-
53
- ## When to Use
54
-
55
- - Testing extension after code changes
56
- - Extension not appearing or showing blank
57
- - Enabling local development mode
58
- - Debugging GraphQL/API errors in browser
59
- - Verifying UI renders correctly
60
-
61
- **Not for:** Unit tests, linting, or type checking (use NX commands).
62
-
63
- ## Quick Reference
64
-
65
- ### Setup Steps
66
-
67
- 1. Navigate to `https://new.manager.trackunit.com/goto/iris-app-dev`
68
- 2. Wait for user login (2-4 minutes)
69
- 3. Enable "Use Local Apps" toggle (main content area, not sidebar)
70
- 4. Navigate to extension based on type
71
-
72
- ### Navigate to Extension
73
-
74
- Based on extension type:
75
-
76
- | Extension Type | Navigation |
77
- |----------------|------------|
78
- | `FLEET_EXTENSION` | Main menu → App name |
79
- | `ASSET_HOME_EXTENSION` | Assets → Open any asset → Extension tab |
80
- | `SITE_HOME_EXTENSION` | Sites → Open any site → Extension tab |
81
- | `WIDGET_EXTENSION` | Dashboard → Add Widget → Find widget |
82
-
83
- ## Testing After Code Changes
84
-
85
- ### Reload Strategy
86
-
87
- After making code changes:
88
-
89
- **1. Check Lints First (Zero Tolerance):**
90
- ```
91
- - Run read_lints on modified files
92
- - Fix ALL errors before testing in browser
93
- - Do not proceed with any TypeScript or linter errors
16
+ ```json
17
+ {
18
+ "mcpServers": {
19
+ "chrome-devtools": {
20
+ "type": "stdio",
21
+ "command": "npx",
22
+ "args": ["-y", "chrome-devtools-mcp@latest"]
23
+ }
24
+ }
25
+ }
94
26
  ```
95
27
 
96
- **2. Reload Browser:**
97
-
98
- The dev server hot-reloads, but sometimes a full page refresh is needed:
28
+ ## Open the extension
99
29
 
100
- | Option | When to Use | How |
101
- |--------|-------------|-----|
102
- | Wait for Hot Reload | First attempt | Wait 2-3 seconds |
103
- | Soft Refresh | Changes don't appear | `Command+R` (Mac) or `Ctrl+R` (Windows) |
104
- | Hard Refresh | Soft refresh fails | `Command+Shift+R` (Mac) or `Ctrl+Shift+R` (Windows) |
30
+ 1. Serve the app: `npx nx run [app-name]:serve`.
31
+ 2. Open `https://new.manager.trackunit.com/goto/iris-app-dev` and wait for the user to log in, which can take 2-4 minutes.
32
+ 3. Enable "Use Local Apps". The toggle is in the main content area, not the sidebar.
33
+ 4. Navigate to the extension:
105
34
 
106
- **3. Manifest Changes Require Re-Serve:**
107
-
108
- If you modified `iris-app-manifest.ts` (scopes, CSP headers, metadata):
109
- - Browser reload is NOT enough
110
- - Stop the dev server (`Ctrl+C`)
111
- - Re-run: `npx nx run [app-name]:serve`
112
- - Wait for server to restart
113
- - Then reload browser
35
+ | Extension type | Navigation |
36
+ |----------------|------------|
37
+ | `FLEET_EXTENSION` | Main menu → app name |
38
+ | `ASSET_HOME_EXTENSION` | Assets → open any asset → extension tab |
39
+ | `SITE_HOME_EXTENSION` | Sites → open any site → extension tab |
40
+ | `WIDGET_EXTENSION` | Dashboard → Add Widget → find the widget |
114
41
 
115
- ### Verification Checklist
42
+ ## After each code change
116
43
 
117
- After each reload:
44
+ 1. Run `read_lints` on modified files and fix every lint and TypeScript error before testing.
45
+ 2. Wait 2-3 seconds for hot reload. If the change doesn't appear, reload, then hard reload (`Command+Shift+R` or `Ctrl+Shift+R`).
46
+ 3. After changing `iris-app-manifest.ts` (scopes, CSP headers, metadata), stop and re-run `serve`, then reload. A browser reload alone isn't enough.
47
+ 4. Take a snapshot and verify the expected UI, with no console errors and successful network requests.
118
48
 
119
- 1. Take browser snapshot
120
- 2. Look for extension content
121
- 3. Check if blank/empty → may need hard refresh
122
- 4. Verify expected UI elements are present
123
- 5. Check console for errors
124
- 6. Check network requests for GraphQL/API issues
49
+ Get each feature fully working, and take a screenshot, before starting the next.
125
50
 
126
51
  ## Troubleshooting
127
52
 
128
- ### Extension Shows Blank After Changes
129
-
130
- 1. Try hard refresh (`Command+Shift+R`)
131
- 2. Check browser console for errors
132
- 3. Check if dev server is still running
133
- 4. Verify file saved correctly
134
- 5. Check for TypeScript compilation errors
135
- 6. Navigate away and back to extension
136
-
137
- ### "Use Local Apps" Toggle Not Found
138
-
139
- 1. Verify user is logged in
140
- 2. Navigate directly to `https://new.manager.trackunit.com/goto/iris-app-dev`
141
- 3. Wait for page to fully load (redirects to Developer Settings)
142
- 4. Take snapshot to see what's visible
143
- 5. Toggle is in the main content area, not the sidebar
144
-
145
- ### Extension Not Appearing
146
-
147
- 1. Verify dev server is running
148
- 2. Check manifest has correct extension type
149
- 3. If changed `iris-app-manifest.ts` → re-serve the app
150
- 4. Hard refresh browser
151
- 5. Disable and re-enable "Use Local Apps"
152
- 6. Check browser console for loading errors
153
-
154
- ### GraphQL/API Errors
155
-
156
- 1. Use browser network tab to find GraphQL requests
157
- 2. Inspect response body for "errors" array (GraphQL returns 200 even with errors)
158
- 3. Common fixes:
159
- - Missing scopes → Add to `iris-app-manifest.ts` scopes array
160
- - CSP violations → Add domain to `cspHeader` in manifest
161
- - Auth issues → Deploy app to enable new scopes
162
-
163
- ## Workflow Checklist
164
-
165
- ### After Every Code Change:
166
-
167
- 1. ✅ Check lints (zero tolerance)
168
- 2. ✅ Fix all errors
169
- 3. ✅ Wait 2-3 seconds for hot reload
170
- 4. ✅ Refresh browser if needed
171
- 5. ✅ Take snapshot
172
- 6. ✅ Verify changes visible
173
- 7. ✅ Check console for errors
174
- 8. ✅ Check network tab if using APIs
175
-
176
- ### Before Moving to Next Feature:
177
-
178
- 1. ✅ Current feature fully working in browser
179
- 2. ✅ Zero linter/TypeScript errors
180
- 3. ✅ Zero browser console errors
181
- 4. ✅ All network requests successful
182
- 5. ✅ Screenshot of working feature
183
-
184
- ## Common Mistakes
185
-
186
- | Mistake | Fix |
187
- |---------|-----|
188
- | Using default browser automation | Extensions render in iFrames; use Chrome DevTools MCP |
189
- | Testing on localhost | Use `https://new.manager.trackunit.com/goto/iris-app-dev` |
190
- | Skipping lint check before browser | Always run `read_lints` first |
191
- | Not enabling "Use Local Apps" | Toggle is in main content area, not sidebar |
192
- | Changed manifest without re-serve | Stop dev server and restart |
193
- | Moving to next feature before verifying | Confirm current feature works in browser first |
194
- | Chrome DevTools MCP not configured | Help user install and configure the MCP server |
53
+ - **Blank extension:** hard reload, check the console for errors, check that the dev server is still running and compiles, or navigate away and back.
54
+ - **Toggle not found:** check that the user is logged in, reopen `/goto/iris-app-dev`, and take a snapshot. The toggle is in the main content area.
55
+ - **Extension not appearing:** check that the dev server is running and the manifest has the right extension type. Re-serve after manifest changes, hard reload, or turn "Use Local Apps" off and on.
56
+ - **GraphQL or API errors:** GraphQL returns 200 even with errors, so inspect response bodies for an `errors` array. Missing scopes go in the manifest's `scopes` and need a deploy; CSP violations need the domain in `cspHeader`.
@@ -3,194 +3,36 @@ name: create-app
3
3
  description: Use when building a new IrisX App from scratch, user asks to create an app, or starting a new extension project.
4
4
  ---
5
5
 
6
- # Create IrisX App
6
+ # Create an IrisX App
7
7
 
8
- ## Overview
8
+ Build iteratively against real data, and verify each feature in the browser before starting the next. Follow the `browser-testing` skill for every browser step.
9
9
 
10
- Create IrisX Apps using browser-driven iterative development. Real data first (GraphQL API), verify each feature in browser before proceeding.
10
+ ## 1. Plan
11
11
 
12
- ## When to Use
12
+ If the user hasn't described the functionality, ask what they want to build. Then present a plan and get confirmation:
13
13
 
14
- - User asks to create a new IrisX App
15
- - Starting a new extension project
16
- - Building a complete app from requirements
14
+ - **Setup:** create the app and extensions, confirm Trackunit MCP, and start the dev server.
15
+ - **Browser gate:** the new extension renders in Manager.
16
+ - **Features, one at a time:** the prerequisites each needs (GraphQL, scopes), the implementation, and what to verify in the browser.
17
+ - **Final check:** no lint or TypeScript errors, an end-to-end browser test, and complete documentation.
17
18
 
18
- **Not for:** Modifying existing extensions (use domain-specific skills).
19
+ ## 2. Set up
19
20
 
20
- ## Core Principles
21
+ 1. Create the app and extensions with the commands in `AGENTS.md`.
22
+ 2. Confirm Trackunit MCP is connected and authenticated, using the check in the "Trackunit MCP" section of `AGENTS.md`. If it isn't, tell the user they can connect it, and continue with the fallbacks listed there. Do not block or wait for authentication.
23
+ 3. Start the dev server in the background.
24
+ 4. **Gate:** open the extension in Manager and confirm it renders without console errors before any GraphQL setup or UI work.
21
25
 
22
- | Principle | Implementation |
23
- |-----------|----------------|
24
- | Real Data First | Use GraphQL API, never mock unless requested |
25
- | Browser Testing | Verify each change at `manager.trackunit.com/goto/iris-app-dev` |
26
- | Chrome DevTools MCP | Required for iFrame-based extension testing |
27
- | One Feature at a Time | Complete and verify before moving on |
28
- | Zero Tolerance for Errors | Fix all lint/TypeScript errors immediately |
26
+ ## 3. Build features
29
27
 
30
- ## Chrome DevTools MCP Requirement
28
+ Write the plan and architecture to `/docs/[app-name].md`. Then, one feature at a time, even for similar components:
31
29
 
32
- **IrisX Apps render inside iFrames.** Standard browser automation cannot interact with iFrame content.
30
+ 1. Set up only the prerequisites this feature needs. For GraphQL, follow the `graphql` skill.
31
+ 2. Implement it in small, focused changes.
32
+ 3. Run `read_lints` on modified files and fix every lint and TypeScript error.
33
+ 4. Verify it in the browser, and debug until it works.
34
+ 5. Mark it done in the docs.
33
35
 
34
- Before starting browser testing:
35
- 1. Verify Chrome DevTools MCP is available (check for `user-chrome-devtools` server)
36
- 2. If not available, see `browser-testing` skill for setup instructions
37
- 3. Use Chrome DevTools tools (`take_screenshot`, `click`, `evaluate_script`, etc.) for all browser interactions
36
+ ## 4. Finish
38
37
 
39
- ## Development Workflow
40
-
41
- ### Phase 1: Planning
42
-
43
- **1. Analyze Requirements**
44
-
45
- If not already described, ask: "What functionality do you want to build?"
46
-
47
- **2. Create Implementation Plan**
48
-
49
- Structure the plan as:
50
-
51
- - **Phase 1: Project Setup**
52
- - Create app with `@trackunit/iris-app:create`
53
- - Create extensions with `@trackunit/iris-app:extend`
54
- - Confirm Trackunit MCP is connected and authenticated (fallbacks if not)
55
- - Start dev server in background
56
-
57
- - **Phase 2: Browser Verification (CRITICAL GATE)**
58
- - Verify Chrome DevTools MCP is available (required for iFrame testing)
59
- - Open browser to `https://new.manager.trackunit.com/goto/iris-app-dev`
60
- - Wait for user login (2-4 minutes)
61
- - Enable "Use Local Apps" toggle
62
- - Navigate to extension location
63
- - Use Chrome DevTools `take_screenshot` to verify extension renders
64
- - **STOP - Must confirm extension working before Phase 3**
65
-
66
- - **Phase 3: Feature Implementation (One at a Time)**
67
- - For each feature:
68
- - Prerequisites (GraphQL setup/scopes needed)
69
- - Implementation
70
- - Validation: Check lints, browser test
71
- - Browser test: What to verify
72
-
73
- - **Phase 4: Final Verification**
74
- - Zero linter/TypeScript errors
75
- - End-to-end browser testing
76
- - Documentation completion
77
-
78
- **3. Present Plan to User**
79
-
80
- Confirm before proceeding.
81
-
82
- ### Phase 2: Project Setup
83
-
84
- **4. Create App and Extensions**
85
-
86
- ```bash
87
- npx nx generate @trackunit/iris-app:create [app-name]
88
- npx nx g @trackunit/iris-app:extend --name=[extension-name] --app=[app-name] --directory=[feature] --type=[EXTENSION_TYPE]
89
- ```
90
-
91
- **Confirm Trackunit MCP:**
92
- - Confirm Trackunit MCP is connected and authenticated before assuming its tools exist, using the check in the "Trackunit MCP" section of `AGENTS.md`.
93
- - If it is not connected, tell the user they can connect it (see `AGENTS.md`), then continue with the fallbacks listed there. Do not block or wait for authentication.
94
-
95
- **5. Start Development Server**
96
-
97
- ```bash
98
- npx nx run [app-name]:serve
99
- ```
100
-
101
- **6. Open Browser and Verify**
102
-
103
- **CRITICAL: Do this BEFORE any GraphQL setup or UI implementation**
104
-
105
- 1. Navigate to `https://new.manager.trackunit.com/goto/iris-app-dev`
106
- 2. Wait for user login
107
- 3. Enable "Use Local Apps" toggle
108
- 4. Navigate to extension based on type
109
- 5. Take snapshot to verify extension loads
110
- 6. Check console for errors
111
-
112
- **STOP HERE: Do not proceed until extension is confirmed working**
113
-
114
- ### Phase 3: Iterative Feature Development
115
-
116
- **7. Create Documentation**
117
-
118
- Create `/docs/[app-name].md` with the plan and architecture.
119
-
120
- **8. For Each Feature (ONE AT A TIME)**
121
-
122
- **a) Setup prerequisites for this feature ONLY:**
123
- ```bash
124
- # If feature needs GraphQL:
125
- npm install @trackunit/react-graphql-tools
126
- npx nx generate @trackunit/react-graphql-tools:add-graphql --project=[project-name]
127
- ```
128
-
129
- **b) Implement the feature:**
130
- - Write code changes for ONE feature only
131
- - Keep changes small and focused
132
-
133
- **c) Check for lint and TypeScript errors:**
134
- - Run `read_lints` on modified files
135
- - Fix ALL errors immediately
136
- - Zero tolerance: Do not proceed with any errors
137
-
138
- **d) Reload browser to test:**
139
- - Check browser console and network tab for errors
140
- - Verify the feature renders correctly
141
- - Take screenshot if visual changes
142
-
143
- **e) Debug if needed:**
144
- - Read console errors
145
- - Check network requests
146
- - Adjust code and repeat
147
- - **DO NOT** move forward until feature works
148
-
149
- **f) Update documentation:**
150
- - Mark feature as completed
151
-
152
- **g) Move to next feature:**
153
- - Only proceed when current feature is verified working
154
-
155
- ### Phase 4: Completion
156
-
157
- **9. Final Verification**
158
-
159
- - Run `read_lints` on all modified files
160
- - Test all features end-to-end in browser
161
- - Verify data loads correctly
162
-
163
- **10. Summary**
164
-
165
- Inform the user:
166
- - All features implemented and verified
167
- - No linter or TypeScript errors remaining
168
- - Documentation complete
169
- - **Important**: User must deploy via Trackunit marketplace (never auto-submit)
170
-
171
- ## Critical Rules
172
-
173
- ### Feature Implementation
174
- - **One feature at a time** - even for similar components
175
- - **Prerequisites on-demand** - setup GraphQL/scopes only when needed
176
- - **Zero tolerance for errors** - fix all lint/TypeScript errors immediately
177
- - **Test completely** - verify working in browser before moving on
178
-
179
- ### Validation Checklist (After Every Code Change)
180
- 1. Run `read_lints` on modified files
181
- 2. Fix ALL linter and TypeScript errors
182
- 3. Reload browser
183
- 4. Check browser console and network tab
184
- 5. Verify UI renders correctly
185
- 6. Fix any issues before proceeding
186
-
187
- ## Common Mistakes
188
-
189
- | Mistake | Fix |
190
- |---------|-----|
191
- | Using default browser automation | Use Chrome DevTools MCP (iFrames require it) |
192
- | Starting implementation before browser verification | Complete Phase 2 (browser gate) first |
193
- | Implementing multiple features at once | One feature, fully verified, then next |
194
- | Using mock data without asking | Always use real GraphQL API |
195
- | Skipping lint check | Zero tolerance - run `read_lints` after every change |
196
- | Auto-submitting to marketplace | Never auto-submit; instruct user to do so |
38
+ Check lint on all modified files and test every feature end to end with real data. Tell the user what was built, and that they must deploy it through the Trackunit marketplace themselves. Never submit it automatically.