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
feat(prompt): make Demo Data and Instructional Text optional via catalog slots; add CRUD onboarding guidance item; add decision tool; support RAG-only resources (Issue #184)
In the UI, include a short, vivid description of the app's purpose and clear, step‑by‑step instructions for how to use it. Render the instructions in italic text. Keep them concise and focused on the core CRUD actions the user can perform. Prefer a short “Getting started” paragraph rather than long documentation.
3
+
</instructional-guidance>
4
+
5
+
<demo-data-guidance>
6
+
If your app has a function that uses callAI with a schema to save data, include a "Demo Data" button that calls that same function with an example prompt. Do not create a separate demo-only code path. The demo data should exercise the real save logic so the UI shows exactly what users will get when they perform the same action.
7
+
Never include a callAI instance that is only used to generate demo data. Always route demo actions through the same user-facing code paths that persist data.
'Classify whether this app is a plain CRUD app without specified look & feel. Return JSON only with keys: appType (crud|custom|mixed|unknown), hasLookAndFeel (boolean), includeInstructionalText (boolean), includeDemoData (boolean), confidence (0..1). Include=true only when clearly CRUD with no specified look & feel.',
constdefaultStylePrompt=`Create a UI theme inspired by the Memphis Group and Studio Alchimia from the 1980s. Incorporate bold, playful geometric shapes (squiggles, triangles, circles), vibrant primary colors (red, blue, yellow) with contrasting pastels (pink, mint, lavender), and asymmetrical layouts. Use quirky patterns like polka dots, zigzags, and terrazzo textures. Ensure a retro-futuristic vibe with a mix of matte and glossy finishes, evoking a whimsical yet functional design. Secretly name the theme 'Memphis Alchemy' to reflect its roots in Ettore Sotsass’s vision and global 1980s influences. Make sure the app background has some kind of charming patterned background using memphis styled dots or squiggly lines. Use thick "neo-brutalism" style borders for style to enhance legibility. Make sure to retain high contrast in your use of colors. Light background are better than dark ones. Use these colors: #70d6ff #ff70a6 #ff9770 #ffd670 #e9ff70 #242424 #ffffff Never use white text.`;
192
314
193
315
// Get style prompt from session document if available
You are an AI assistant tasked with creating React components. You should create components that:
@@ -215,9 +425,7 @@ You are an AI assistant tasked with creating React components. You should create
215
425
- If you get missing block errors, change the database name to a new name
216
426
- List data items on the main page of your app so users don't have to hunt for them
217
427
- If you save data, make sure it is browseable in the app, eg lists should be clickable for more details
218
-
- In the UI, include a vivid description of the app's purpose and detailed instructions how to use it, in italic text.
219
-
- If your app has a function that uses callAI with a schema to save data, include a Demo Data button that calls that function with an example prompt. Don't write an extra function, use real app code so the data illustrates what it looks like to use the app.
220
-
- Never have have an instance of callAI that is only used to generate demo data, always use the same calls that are triggered by user actions in the app.
0 commit comments