feat: web bundles include a simplified prd with architecture now for simpler project folderes not needing a full plown architecture doc!

This commit is contained in:
Brian Madison
2025-06-15 13:00:01 -05:00
parent 28b313c01d
commit 877354525e
7 changed files with 282 additions and 285 deletions

View File

@@ -5633,7 +5633,7 @@ Use appropriate diagram type for clarity.]]
```mermaid
{{architecture_diagram}}
```
```text
### Architectural Patterns
@@ -5784,7 +5784,7 @@ interface UserProfile {
bio?: string;
preferences: Record<string, any>;
}
```
```text
**Relationships:**
@@ -5808,17 +5808,20 @@ Use appropriate format for the chosen API style. If no API (e.g., static site),
^^CONDITION: has_rest_api^^
```yaml
```yml
openapi: 3.0.0
info:
title: { { api_title } }
version: { { api_version } }
description: { { api_description } }
title:
'[object Object]': null
version:
'[object Object]': null
description:
'[object Object]': null
servers:
- url: { { api_base_url } }
description: { { environment } }
# ... OpenAPI specification continues
- url:
'[object Object]': null
description:
'[object Object]': null
```
^^/CONDITION: has_rest_api^^
@@ -5828,7 +5831,7 @@ servers:
```graphql
# GraphQL Schema
{{graphql_schema}}
```
```text
^^/CONDITION: has_graphql_api^^
@@ -5986,7 +5989,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
**Component Organization:**
```
```text
{{component_structure}}
```
@@ -5998,7 +6001,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
component_template;
}
}
```
```text
### State Management Architecture
@@ -6025,7 +6028,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
**Route Organization:**
```
```text
{{route_structure}}
```
@@ -6037,7 +6040,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
protected_route_example;
}
}
```
```text
### Frontend Services Layer
@@ -6061,7 +6064,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
service_example;
}
}
```
```text
## Backend Architecture
@@ -6078,7 +6081,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
```
{{function_structure}}
```
```text
**Function Template:**
@@ -6095,7 +6098,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
^^CONDITION: traditional_server^^
**Controller/Route Organization:**
```
```text
{{controller_structure}}
```
@@ -6107,7 +6110,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
controller_template;
}
}
```
```text
^^/CONDITION: traditional_server^^
@@ -6129,7 +6132,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
repository_pattern;
}
}
```
```text
### Authentication and Authorization
@@ -6149,7 +6152,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
auth_middleware;
}
}
```
```text
## Unified Project Structure
@@ -6233,7 +6236,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
```bash
{{prerequisites_commands}}
```
```text
**Initial Setup:**
@@ -6255,7 +6258,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
# Run tests
{{test_commands}}
```
```text
### Environment Configuration
@@ -6293,9 +6296,9 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
### CI/CD Pipeline
```yaml
{ { cicd_pipeline_config } }
```
```yml
'[object Object]': null
```text
### Environments
@@ -6359,7 +6362,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
Integration Tests
/ \
Frontend Unit Backend Unit
```
```text
### Test Organization
@@ -6367,19 +6370,19 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
```
{{frontend_test_structure}}
```
```text
**Backend Tests:**
```
{{backend_test_structure}}
```
```text
**E2E Tests:**
```
{{e2e_test_structure}}
```
```text
### Test Examples
@@ -6401,7 +6404,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
backend_test_example;
}
}
```
```text
**E2E Test:**
@@ -6454,7 +6457,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
```mermaid
{{error_flow_diagram}}
```
```text
### Error Response Format
@@ -6478,7 +6481,7 @@ interface ApiError {
frontend_error_handler;
}
}
```
```text
### Backend Error Handling