Skip to content

Commit 33f22d5

Browse files
committed
update sitemap prompt and messages
1 parent 74d4610 commit 33f22d5

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

backend/src/build-system/handlers/ux/sitemap-document/prompt.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,28 @@ export const prompts = {
1616
1717
<gen_page>
1818
P#. [Page Name]
19-
2019
URL Path: /[path]
2120
Description: [Brief description of page purpose]
2221
Parent Page: [Parent page if nested, or "None" if top-level]
2322
Access Level: [e.g., Public/Private/Admin]
2423
25-
#### Core Components
26-
24+
#### Core Components
2725
C#.1. [Component Name]
28-
Type: [Layout/Interactive/Display/etc.]
29-
Purpose: [What does it do?]
30-
States: [Possible states, e.g., Default/Hovered/Expanded...]
31-
Interactions: [User interactions]
26+
- Definition: Core Components are **distinct UI elements** or **functional blocks** on the page that have a clear, identifiable role. Each component must include:
27+
1. **Type** (Layout, Interactive, Display, Input, etc.)
28+
2. **Purpose** (What does it do for the user or the interface?)
29+
3. **States** (Possible UI states: Default, Hover, Clicked, Expanded, Loading, etc.)
30+
4. **Interactions** (User actions or system responses: clicking, hovering, dragging, scrolling, etc.)
3231
3332
#### Features & Functionality
34-
33+
- Focus on how these features tie back to user stories, and which **Core Components** are used to achieve them
3534
F#.1. [Feature Name]
3635
Description: [Brief feature description]
3736
User Stories: [Related user stories from PRD]
3837
Components Used: [Which components implement this feature?]
3938
4039
#### Page-Specific User Flows
41-
40+
Step-by-step sequences describing user interactions and system responses
4241
Flow #. [Flow Name]
4342
[Step 1]
4443
[Step 2]

backend/src/build-system/handlers/ux/sitemap-document/uxsmd.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,22 @@ export class UXSMDHandler implements BuildHandler<string> {
4646
},
4747
{
4848
role: 'user',
49-
content: `This is the product requiremnt ${prdContent}`,
49+
content: `
50+
Here is the Product Requirements Document (PRD):
51+
52+
${prdContent}
53+
54+
Please generate the Full UX Sitemap Document now, focusing on MVP features but ensuring each page (especially Home) has enough detail to be functional.`,
5055
},
5156
{
52-
role: 'assistant',
53-
content: 'Here is the initial UX Sitemap Document...',
57+
role: 'user',
58+
content: `Check if you meet all PRD details, add more pages, and details if needed. Focus on MVP (Minimum Viable Product).`,
5459
},
5560
{
5661
role: 'user',
57-
content: 'Add more detail about user flows.',
62+
content: `Please add more detail about the Core Components in each <gen_page>.
63+
Focus on step-by-step actions the user takes, and any alternative paths mentioned in the PRD.
64+
Also, expand on how these components interrelate to the page's primary features.`,
5865
},
5966
];
6067

0 commit comments

Comments
 (0)