You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rewrite Loops empty state with guided explanation and examples
Replace the bare "No loops yet" placeholder with a hand-holding intro:
a plain-English explanation of what a loop is, a 4-step "how it works"
walkthrough, and a grid of real-world example loops (failing tests,
coverage, type/lint, feature build, dep upgrade, flaky test) that
prefill the builder when clicked.
Co-authored-by: Cursor <cursoragent@cursor.com>
desc: 'Fix what’s red and keep running the suite until it’s all green.',
124
+
prompt:
125
+
'Fix the failing tests in this project with the smallest changes possible. Run the full test suite after every change and keep going until every test passes.',
126
+
},
127
+
{
128
+
icon: Gauge,
129
+
title: 'Get test coverage to 80%',
130
+
desc: 'Add tests for the weakest files, re-checking coverage each round.',
131
+
prompt:
132
+
'Raise test coverage to at least 80%. Each round, find the least-covered files, add meaningful unit tests for them, re-run the coverage report, and continue until the target is met.',
133
+
},
134
+
{
135
+
icon: ShieldCheck,
136
+
title: 'Clear every type & lint error',
137
+
desc: 'Fix the codebase until type-check and lint come back clean.',
138
+
prompt:
139
+
'Resolve every TypeScript and ESLint error in the codebase. After each batch of fixes, re-run the type-checker and linter, and keep going until both report zero errors.',
140
+
},
141
+
{
142
+
icon: Hammer,
143
+
title: 'Build a feature until it ships',
144
+
desc: 'Implement a spec, looping build + tests until it all passes.',
145
+
prompt:
146
+
'Implement the following feature: <describe what you want>. Keep editing, then run the build and tests after each step, and don’t stop until it compiles and all tests pass.',
147
+
},
148
+
{
149
+
icon: ArrowUpCircle,
150
+
title: 'Upgrade a dependency safely',
151
+
desc: 'Bump a package and fix the fallout until everything passes.',
152
+
prompt:
153
+
'Upgrade <package name> to its latest version. Fix every breakage the upgrade causes, re-running the build and tests after each fix, until everything passes on the new version.',
154
+
},
155
+
{
156
+
icon: FlaskConical,
157
+
title: 'Squash a flaky test',
158
+
desc: 'Reproduce it, fix the root cause, confirm it passes consistently.',
159
+
prompt:
160
+
'Track down and fix the flaky test <test name>. Run it repeatedly to reproduce the intermittent failure, fix the underlying cause, then re-run it many times to confirm it passes consistently.',
161
+
},
162
+
];
163
+
164
+
/** Hand-holding empty state: what a loop is, how it works, and ready-to-run examples. */
0 commit comments