File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
backend/src/build-system/handlers/frontend-code-generate Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class FrontendCodeHandler implements BuildHandler<string> {
4040 this . logger . log ( 'Generating Frontend Code...' ) ;
4141
4242 // 1. Retrieve the necessary input from context
43- const sitemapDoc = context . getNodeData ( 'op:UX:SMD ' ) ;
43+ const sitemapStruct = context . getNodeData ( 'op:UX:SMS ' ) ;
4444 const uxDataMapDoc = context . getNodeData ( 'op:UX:DATAMAP:DOC' ) ;
4545 const backendRequirementDoc = context . getNodeData ( 'op:BACKEND:REQ' ) ;
4646 const fileArchDoc = context . getNodeData ( 'op:FILE:ARCH' ) ;
@@ -102,7 +102,7 @@ export class FrontendCodeHandler implements BuildHandler<string> {
102102
103103 if ( extension === 'css' ) {
104104 frontendCodePrompt = generateCSSPrompt (
105- sitemapDoc ,
105+ sitemapStruct ,
106106 uxDataMapDoc ,
107107 file ,
108108 directDependencies ,
@@ -111,7 +111,7 @@ export class FrontendCodeHandler implements BuildHandler<string> {
111111 } else {
112112 // Generate the prompt
113113 frontendCodePrompt = generateFrontEndCodePrompt (
114- sitemapDoc ,
114+ sitemapStruct ,
115115 uxDataMapDoc ,
116116 backendRequirementDoc . overview ,
117117 file ,
Original file line number Diff line number Diff line change 11export const generateFrontEndCodePrompt = (
2- sitemapDoc : string ,
2+ sitemapStruct : string ,
33 uxDatamapDoc : string ,
44 backendRequirementDoc : string ,
55 currentFile : string ,
@@ -12,7 +12,7 @@ export const generateFrontEndCodePrompt = (
1212
1313 Based on following inputs:
1414
15- - Sitemap Documentation : ${ sitemapDoc }
15+ - Sitemap Structure : ${ sitemapStruct }
1616 - UX Datamap Documentation: ${ uxDatamapDoc }
1717 - Backend Requirement Documentation: ${ backendRequirementDoc }
1818 - Current File: ${ currentFile }
@@ -62,7 +62,7 @@ export const generateFrontEndCodePrompt = (
6262} ;
6363
6464export function generateCSSPrompt (
65- sitemapDoc : string ,
65+ sitemapStruct : string ,
6666 uxDatamapDoc : string ,
6767 fileName : string ,
6868 directDependencies : string ,
@@ -72,7 +72,7 @@ export function generateCSSPrompt(
7272 You are an expert CSS developer. Generate valid, production-ready CSS for the file "${ fileName } ".
7373
7474 ## Context
75- - Sitemap Documentation : ${ sitemapDoc }
75+ - Sitemap Strucutrue : ${ sitemapStruct }
7676 - UX Datamap Documentation: ${ uxDatamapDoc }
7777
7878 - Direct Dependencies (if any and may include references to other styles or partials):
You can’t perform that action at this time.
0 commit comments