@auto-engineer/frontend-generator-react-graphql 0.11.8 → 0.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/mui-starter/design-system-principles.md +37 -19
- package/dist/shadcn-starter/design-system-principles.md +38 -11
- package/dist/shadcn-starter/tsconfig.json +1 -2
- package/dist/src/commands/generate-client.d.ts +6 -14
- package/dist/src/commands/generate-client.d.ts.map +1 -1
- package/dist/src/commands/generate-client.js +6 -23
- package/dist/src/commands/generate-client.js.map +1 -1
- package/dist/src/generator/templates/app.ejs +1 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @auto-engineer/frontend-react-graphql-generator
|
|
2
2
|
|
|
3
|
+
## 0.11.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @auto-engineer/ai-gateway@0.11.10
|
|
9
|
+
- @auto-engineer/message-bus@0.11.10
|
|
10
|
+
|
|
11
|
+
## 0.11.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Upgrade oai to gpt-5
|
|
16
|
+
|
|
17
|
+
- Updated dependencies []:
|
|
18
|
+
- @auto-engineer/message-bus@0.11.9
|
|
19
|
+
- @auto-engineer/ai-gateway@0.11.9
|
|
20
|
+
|
|
3
21
|
## 0.11.8
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,32 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
# Design System Principles
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Branding & Visual Identity
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- use atoms from @mui/material instead of creating new ones in components/atoms
|
|
8
|
-
- use Typography component from @mui/material for text elements whenever possible
|
|
9
|
-
|
|
10
|
-
Branding & Visual Identity:
|
|
11
|
-
|
|
12
|
-
- You must **infer the branding** (tone, visual identity, personality) directly from the MUI theme config in `src/theme.ts` and do NOT change those tokens
|
|
5
|
+
- You must **infer the branding** (tone, visual identity, personality) directly from the TailwindCSS + Shadcn theme defined in `tailwind.config.ts` and supported by component primitives in `design-system.md`.
|
|
13
6
|
- Use the brand's tone and color palette consistently across all components, spacing, interactions, and layout structure.
|
|
14
7
|
- Avoid visual indicators like H1/H2 headings — do not use them to represent concepts or sections.
|
|
15
8
|
- Communicate page hierarchy through layout, spacing, color intensity, and component usage — **not headings**.
|
|
9
|
+
- The overall aesthetic should remain clean, minimal, and accessible, reflecting the default Shadcn design language.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Design Patterns
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
- Layouts must be responsive by default, adapting fluidly across viewport sizes.
|
|
16
|
+
- Use a consistent spacing scale: 4 / 8 / 12 / 16 px for visual rhythm and layout balance.
|
|
17
|
+
- Components must reflect brand personality — minimal, bold, playful, or formal — as inferred from the Tailwind theme configuration.
|
|
18
|
+
- Component files should remain small, composable, and maintain a clear hierarchy (atoms → molecules → organisms → pages).
|
|
19
|
+
- Components must rely on Shadcn UI primitives and Tailwind utilities rather than custom inline styles or hardcoded values.
|
|
20
|
+
- Follow the visual tokens, colors, and radii defined in `tailwind.config.ts` and referenced in `components.json`.
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
- Components must reflect brand personality: minimal, bold, playful, formal, etc., as inferred from the theme.
|
|
21
|
-
- Component files should be small and composable.
|
|
22
|
+
---
|
|
22
23
|
|
|
23
|
-
UX Principles
|
|
24
|
+
## UX Principles
|
|
24
25
|
|
|
25
26
|
- Do not use visual headers or hero titles to convey page identity.
|
|
26
27
|
- Use dynamic hierarchy expressed through tone, spacing, and primary-color signals.
|
|
27
|
-
- Prefer subtle transitions and clear focus indicators.
|
|
28
|
+
- Prefer subtle transitions and clear focus indicators to maintain accessibility and continuity.
|
|
29
|
+
- All components must gracefully handle empty, loading, and error states using consistent design and tone.
|
|
30
|
+
- Interactions should feel intuitive and consistent — avoid over-animation or excessive movement.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Templates
|
|
35
|
+
|
|
36
|
+
- For the app layout, make sure to use a **non-collapsible sidebar** as the main navigation anchor.
|
|
37
|
+
- Layouts should prioritize clarity and structure — sidebar navigation, main content, and supporting regions should align visually.
|
|
38
|
+
- Templates should be consistent across pages, using reusable layout primitives defined in the design system.
|
|
39
|
+
- Use proportional spacing and adaptive grid patterns based on the Tailwind theme configuration.
|
|
40
|
+
- Avoid fixed pixel constraints; layouts should flow naturally with viewport changes.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
### Reference Files
|
|
28
45
|
|
|
29
|
-
|
|
46
|
+
All design, tone, and interaction behavior should be derived from:
|
|
30
47
|
|
|
31
|
-
-
|
|
32
|
-
|
|
48
|
+
- `tailwind.config.ts` — for theme tokens (colors, spacing, radii, typography)
|
|
49
|
+
- `design-system.md` — for component primitives and base UI definitions
|
|
50
|
+
- `components.json` — for mapped component structure and metadata
|
|
@@ -1,23 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
# Design System Principles
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Branding & Visual Identity
|
|
4
|
+
|
|
5
|
+
- You must **infer the branding** (tone, visual identity, personality) directly from the TailwindCSS + Shadcn theme defined in `tailwind.config.ts` and supported by component primitives in `design-system.md`.
|
|
4
6
|
- Use the brand's tone and color palette consistently across all components, spacing, interactions, and layout structure.
|
|
5
7
|
- Avoid visual indicators like H1/H2 headings — do not use them to represent concepts or sections.
|
|
6
8
|
- Communicate page hierarchy through layout, spacing, color intensity, and component usage — **not headings**.
|
|
9
|
+
- The overall aesthetic should remain clean, minimal, and accessible, reflecting the default Shadcn design language.
|
|
10
|
+
|
|
11
|
+
---
|
|
7
12
|
|
|
8
|
-
Design Patterns
|
|
13
|
+
## Design Patterns
|
|
9
14
|
|
|
10
|
-
- Layouts must be responsive by default.
|
|
11
|
-
- Use a consistent spacing scale: 4 / 8 / 12 / 16 px.
|
|
12
|
-
- Components must reflect brand personality
|
|
13
|
-
- Component files should
|
|
15
|
+
- Layouts must be responsive by default, adapting fluidly across viewport sizes.
|
|
16
|
+
- Use a consistent spacing scale: 4 / 8 / 12 / 16 px for visual rhythm and layout balance.
|
|
17
|
+
- Components must reflect brand personality — minimal, bold, playful, or formal — as inferred from the Tailwind theme configuration.
|
|
18
|
+
- Component files should remain small, composable, and maintain a clear hierarchy (atoms → molecules → organisms → pages).
|
|
19
|
+
- Components must rely on Shadcn UI primitives and Tailwind utilities rather than custom inline styles or hardcoded values.
|
|
20
|
+
- Follow the visual tokens, colors, and radii defined in `tailwind.config.ts` and referenced in `components.json`.
|
|
14
21
|
|
|
15
|
-
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## UX Principles
|
|
16
25
|
|
|
17
26
|
- Do not use visual headers or hero titles to convey page identity.
|
|
18
27
|
- Use dynamic hierarchy expressed through tone, spacing, and primary-color signals.
|
|
19
|
-
- Prefer subtle transitions and clear focus indicators.
|
|
28
|
+
- Prefer subtle transitions and clear focus indicators to maintain accessibility and continuity.
|
|
29
|
+
- All components must gracefully handle empty, loading, and error states using consistent design and tone.
|
|
30
|
+
- Interactions should feel intuitive and consistent — avoid over-animation or excessive movement.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Templates
|
|
35
|
+
|
|
36
|
+
- For the app layout, make sure to use a **non-collapsible sidebar** as the main navigation anchor.
|
|
37
|
+
- Layouts should prioritize clarity and structure — sidebar navigation, main content, and supporting regions should align visually.
|
|
38
|
+
- Templates should be consistent across pages, using reusable layout primitives defined in the design system.
|
|
39
|
+
- Use proportional spacing and adaptive grid patterns based on the Tailwind theme configuration.
|
|
40
|
+
- Avoid fixed pixel constraints; layouts should flow naturally with viewport changes.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
### Reference Files
|
|
20
45
|
|
|
21
|
-
|
|
46
|
+
All design, tone, and interaction behavior should be derived from:
|
|
22
47
|
|
|
23
|
-
-
|
|
48
|
+
- `tailwind.config.ts` — for theme tokens (colors, spacing, radii, typography)
|
|
49
|
+
- `design-system.md` — for component primitives and base UI definitions
|
|
50
|
+
- `components.json` — for mapped component structure and metadata
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Command, type Event } from '@auto-engineer/message-bus';
|
|
2
|
+
import { ComponentType } from '../types';
|
|
2
3
|
export type GenerateClientCommand = Command<'GenerateClient', {
|
|
3
4
|
starter?: 'shadcn' | 'mui';
|
|
4
5
|
starterDir?: string;
|
|
@@ -9,25 +10,16 @@ export type GenerateClientCommand = Command<'GenerateClient', {
|
|
|
9
10
|
}>;
|
|
10
11
|
export type ClientGeneratedEvent = Event<'ClientGenerated', {
|
|
11
12
|
targetDir: string;
|
|
13
|
+
components: Array<{
|
|
14
|
+
type: ComponentType;
|
|
15
|
+
filePath: string;
|
|
16
|
+
}>;
|
|
12
17
|
}>;
|
|
13
|
-
export type MoleculeGeneratedEvent = Event<'MoleculeGenerated', {
|
|
14
|
-
filePath: string;
|
|
15
|
-
}>;
|
|
16
|
-
export type OrganismGeneratedEvent = Event<'OrganismGenerated', {
|
|
17
|
-
filePath: string;
|
|
18
|
-
}>;
|
|
19
|
-
export type PageGeneratedEvent = Event<'PageGenerated', {
|
|
20
|
-
filePath: string;
|
|
21
|
-
}>;
|
|
22
|
-
export type AppGeneratedEvent = Event<'AppGenerated', {
|
|
23
|
-
filePath: string;
|
|
24
|
-
}>;
|
|
25
|
-
type ComponentGeneratedEvent = MoleculeGeneratedEvent | OrganismGeneratedEvent | PageGeneratedEvent | AppGeneratedEvent;
|
|
26
18
|
export type ClientGenerationFailedEvent = Event<'ClientGenerationFailed', {
|
|
27
19
|
error: string;
|
|
28
20
|
targetDir: string;
|
|
29
21
|
}>;
|
|
30
|
-
export type GenerateClientEvents = ClientGeneratedEvent | ClientGenerationFailedEvent
|
|
22
|
+
export type GenerateClientEvents = ClientGeneratedEvent | ClientGenerationFailedEvent;
|
|
31
23
|
export declare const commandHandler: import("@auto-engineer/message-bus").CommandHandler;
|
|
32
24
|
export default commandHandler;
|
|
33
25
|
//# sourceMappingURL=generate-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-client.d.ts","sourceRoot":"","sources":["../../../src/commands/generate-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAwB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-client.d.ts","sourceRoot":"","sources":["../../../src/commands/generate-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAwB,MAAM,4BAA4B,CAAC;AAS5F,OAAO,EAAE,aAAa,EAAY,MAAM,UAAU,CAAC;AAiBnD,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,gBAAgB,EAChB;IACE,OAAO,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CACtC,iBAAiB,EACjB;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,aAAa,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;CACJ,CACF,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAC7C,wBAAwB,EACxB;IACE,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GAAG,2BAA2B,CAAC;AAEtF,eAAO,MAAM,cAAc,qDA6CzB,CAAC;AAqFH,eAAe,cAAc,CAAC"}
|
|
@@ -88,28 +88,7 @@ async function handleGenerateClientCommandInternal(command) {
|
|
|
88
88
|
debugGeneration('IA schema parsed successfully');
|
|
89
89
|
debugGeneration('Generating components to: %s/src', targetDir);
|
|
90
90
|
const generatedComponents = generateComponents(iaSchemeJson, `${targetDir}/src`) ?? [];
|
|
91
|
-
debugGeneration(
|
|
92
|
-
const componentTypeToEventType = {
|
|
93
|
-
molecule: 'MoleculeGenerated',
|
|
94
|
-
organism: 'OrganismGenerated',
|
|
95
|
-
page: 'PageGenerated',
|
|
96
|
-
app: 'AppGenerated',
|
|
97
|
-
};
|
|
98
|
-
generatedComponents.forEach((component) => {
|
|
99
|
-
const eventType = componentTypeToEventType[component.type];
|
|
100
|
-
if (eventType) {
|
|
101
|
-
debugGeneration('Emitting event for generated %s: %s', component.type, component.path);
|
|
102
|
-
events.push({
|
|
103
|
-
type: eventType,
|
|
104
|
-
data: {
|
|
105
|
-
filePath: component.path,
|
|
106
|
-
},
|
|
107
|
-
timestamp: new Date(),
|
|
108
|
-
requestId: command.requestId,
|
|
109
|
-
correlationId: command.correlationId,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
});
|
|
91
|
+
debugGeneration('%d components generated', generatedComponents.length);
|
|
113
92
|
debugGeneration('Writing GraphQL operations to: %s/src', targetDir);
|
|
114
93
|
writeGqlOperationsToFolder(iaSchemeJson, `${targetDir}/src`);
|
|
115
94
|
debugGeneration('GraphQL operations written');
|
|
@@ -124,10 +103,15 @@ async function handleGenerateClientCommandInternal(command) {
|
|
|
124
103
|
debugGeneration('Starter configured');
|
|
125
104
|
debug('Client generation completed successfully');
|
|
126
105
|
debug('Target directory: %s', targetDir);
|
|
106
|
+
debug('Generated %d components', generatedComponents.length);
|
|
127
107
|
events.push({
|
|
128
108
|
type: 'ClientGenerated',
|
|
129
109
|
data: {
|
|
130
110
|
targetDir,
|
|
111
|
+
components: generatedComponents.map((component) => ({
|
|
112
|
+
type: component.type,
|
|
113
|
+
filePath: component.path,
|
|
114
|
+
})),
|
|
131
115
|
},
|
|
132
116
|
timestamp: new Date(),
|
|
133
117
|
requestId: command.requestId,
|
|
@@ -151,6 +135,5 @@ async function handleGenerateClientCommandInternal(command) {
|
|
|
151
135
|
return events;
|
|
152
136
|
}
|
|
153
137
|
}
|
|
154
|
-
// Default export is the command handler
|
|
155
138
|
export default commandHandler;
|
|
156
139
|
//# sourceMappingURL=generate-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-client.js","sourceRoot":"","sources":["../../../src/commands/generate-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,WAAW,MAAM,OAAO,CAAC;AAEhC,MAAM,KAAK,GAAG,WAAW,CAAC,+CAA+C,CAAC,CAAC;AAC3E,MAAM,YAAY,GAAG,WAAW,CAAC,uDAAuD,CAAC,CAAC;AAC1F,MAAM,eAAe,GAAG,WAAW,CAAC,0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,KAAK,CAAC,yBAAyB,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAE7D,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE;gBACJ,SAAS;gBACT,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;oBAClD,IAAI,EAAE,SAAS,CAAC,IAAI;oBACpB,QAAQ,EAAE,SAAS,CAAC,IAAI;iBACzB,CAAC,CAAC;aACJ;YACD,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;SACrC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5E,KAAK,CAAC,yCAAyC,EAAE,KAAK,CAAC,CAAC;QAExD,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,wBAAwB;YAC9B,IAAI,EAAE;gBACJ,KAAK,EAAE,YAAY;gBACnB,SAAS;aACV;YACD,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;SACrC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;AACH,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ApolloProvider } from '@apollo/client';
|
|
2
2
|
import { BrowserRouter, Route, Routes } from 'react-router-dom';
|
|
3
3
|
import { apolloClient } from '@/apolloClient';
|
|
4
|
-
import { Index } from '@/pages/Index';
|
|
5
4
|
import { NotFound } from '@/pages/NotFound';
|
|
6
5
|
<% pages.forEach(page => { -%>
|
|
7
6
|
import { <%= page.name %> } from '@/pages/<%= page.name %>';
|
|
@@ -12,9 +11,8 @@ export const App = () => (
|
|
|
12
11
|
<ApolloProvider client={apolloClient}>
|
|
13
12
|
<BrowserRouter>
|
|
14
13
|
<Routes>
|
|
15
|
-
<Route path="/" element={<Index />} />
|
|
16
14
|
<% pages.forEach(page => { -%>
|
|
17
|
-
|
|
15
|
+
<Route path="<%= page.route %>" element={<<%= page.name %> />} />
|
|
18
16
|
<% }) -%>
|
|
19
17
|
<Route path="*" element={<NotFound />} />
|
|
20
18
|
</Routes>
|