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
Copy file name to clipboardExpand all lines: backend/src/build-system/handlers/ux/sitemap-document/index.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -51,15 +51,15 @@ export class UXSMDHandler implements BuildHandler<string> {
51
51
52
52
${prdContent}
53
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.`,
54
+
Please generate the Full UX Sitemap Document now, focusing on MVP features but ensuring each page has enough detail to be functional.`,
55
55
},
56
56
{
57
57
role: 'user',
58
58
content: `Check if you meet all PRD details, add more pages, and details if needed. Focus on MVP (Minimum Viable Product).`,
59
59
},
60
60
{
61
61
role: 'user',
62
-
content: `Please add more detail about the Core Components in each <gen_page>.
62
+
content: `Please add more detail about the Sub-section in each <gen_page>.
63
63
Focus on step-by-step actions the user takes, and any alternative paths mentioned in the PRD.
64
64
Also, expand on how these components interrelate to the page's primary features.`,
Copy file name to clipboardExpand all lines: backend/src/build-system/handlers/ux/sitemap-structure/prompt.ts
+37-15Lines changed: 37 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,10 @@ export const prompts = {
13
13
Output Requirements:
14
14
Use plain text (no Markdown).
15
15
Begin with <UXSitemap> and end with </UXSitemap>.
16
-
Within <UXSitemap>, start with <global_comp>, and generate multiple <gen_page> blocks, one for each page.
17
-
Each <gen_page> must follow this structure exactly:
16
+
Within <UXSitemap>, start with <global_comp>, and generate multiple <page_gen> blocks, one for each page.
17
+
Each <page_gen> must follow this structure exactly:
18
18
19
-
<gen_page id="[id]">
19
+
<page_gen id="[id]">
20
20
P#. [Page Name]
21
21
URL Path: /[path]
22
22
Description: [Brief description of page purpose]
@@ -43,7 +43,7 @@ P#. [Page Name]
43
43
Flow #. [Flow Name]
44
44
[Step 1]
45
45
[Step 2]
46
-
</gen_page>
46
+
</page_gen>
47
47
48
48
1. **Goal**: Produce a complete UX Structure Map describing how each page/screen is laid out, including which global components are reused across pages.
49
49
@@ -117,7 +117,7 @@ Self-Check Before Submitting
117
117
Are all global components defined in \`<global_comp>\` blocks?
118
118
Are user flows, interactions, and relevant content needs included?
119
119
120
-
Deliver a single XML-like document that strictly follows the structure above. Start with <UXSitemap> and close with </UXSitemap>, containing one <gen_page> block per page.
120
+
Deliver a single XML-like document that strictly follows the structure above. Start with <UXSitemap> and close with </UXSitemap>, containing one <page_gen> block per page.
121
121
122
122
`;
123
123
},
@@ -133,11 +133,41 @@ Deliver a single XML-like document that strictly follows the structure above. St
133
133
- Project name: ${projectName}
134
134
- Platform: ${platform}
135
135
- Sitemap Documentation: (Provided by the user next)
136
-
- UX SiteMap Structure: (Provided by the user next)
136
+
- UX SiteMap Structure Section: (Provided by the user next)
137
137
138
138
Follow these guidelines to analyze requirements from a UX perspective:
139
139
140
140
### Instructions and Rules:
141
+
UX SiteMap Structure Section will follow this structure exactly and your output should follow this exactly:
142
+
<page_gen id="[id]">
143
+
P#. [Page Name]
144
+
URL Path: /[path]
145
+
Description: [Brief description of page purpose]
146
+
Parent Page: [Parent page if nested, or "None" if top-level]
147
+
Access Level: [e.g., Public/Private/Admin]
148
+
149
+
#### Core Components
150
+
C#.1. [Component Name]
151
+
- Definition: Core Components are **distinct UI elements** or **functional blocks** on the page that have a clear, identifiable role. Each component must include:
0 commit comments