Spaces:
Sleeping
Sleeping
Commit Β·
fdae3ee
1
Parent(s): 20e7902
Constrain admin table to plain HTML (no missing shadcn import), fix install-timeout silently passing as success
Browse files- lib/ai-prompt.ts +2 -0
- lib/validator.ts +1 -1
lib/ai-prompt.ts
CHANGED
|
@@ -112,6 +112,8 @@ REQUIRED STACK:
|
|
| 112 |
- Framer Motion for animation
|
| 113 |
- Server Components by default β only add "use client" to a file that genuinely needs interactivity, state, or animation hooks
|
| 114 |
|
|
|
|
|
|
|
| 115 |
FILES YOU MUST NOT GENERATE (already provided by the project scaffold β generating them will conflict):
|
| 116 |
package.json, tsconfig.json, next.config.ts, postcss.config.mjs, tailwind.config.ts, next-env.d.ts, .gitignore, any file under components/ui/, lib/utils.ts
|
| 117 |
|
|
|
|
| 112 |
- Framer Motion for animation
|
| 113 |
- Server Components by default β only add "use client" to a file that genuinely needs interactivity, state, or animation hooks
|
| 114 |
|
| 115 |
+
AVAILABLE shadcn/ui COMPONENTS β the scaffold only includes these under components/ui/: button, card, badge, avatar, separator. Do NOT import from "@/components/ui/{anything else}" (table, dialog, tabs, select, dropdown-menu, etc.) β they do not exist in this project and WILL break the build. For the admin data table specifically: build it with plain semantic HTML β <table>, <thead>, <tbody>, <tr>, <th>, <td> β styled directly with Tailwind utility classes (border-collapse, divide-y, divide-border, text-sm, etc.). Do not import any table component.
|
| 116 |
+
|
| 117 |
FILES YOU MUST NOT GENERATE (already provided by the project scaffold β generating them will conflict):
|
| 118 |
package.json, tsconfig.json, next.config.ts, postcss.config.mjs, tailwind.config.ts, next-env.d.ts, .gitignore, any file under components/ui/, lib/utils.ts
|
| 119 |
|
lib/validator.ts
CHANGED
|
@@ -99,7 +99,7 @@ export async function validateProject(
|
|
| 99 |
|
| 100 |
const installLog = installResult.stdout + "\n" + installResult.stderr;
|
| 101 |
|
| 102 |
-
if (installResult.code !== 0
|
| 103 |
return {
|
| 104 |
success: false,
|
| 105 |
installLog,
|
|
|
|
| 99 |
|
| 100 |
const installLog = installResult.stdout + "\n" + installResult.stderr;
|
| 101 |
|
| 102 |
+
if (installResult.code !== 0) {
|
| 103 |
return {
|
| 104 |
success: false,
|
| 105 |
installLog,
|