|
| 1 | +export function buildJiraDesignStoryTemplate(date = new Date()) { |
| 2 | + const dateStr = date.toISOString().split('T')[0]; |
| 3 | + return `## JIRA-DS: [Project Name] - Software Design Phase |
| 4 | +**Status:** DRAFT | **Date:** ${dateStr} |
| 5 | +
|
| 6 | +### User Story Title: Design [Component/Feature Name] architecture and UI/UX |
| 7 | +
|
| 8 | +--- |
| 9 | +
|
| 10 | +### 1. Goal & Context |
| 11 | +**As a** System Architect / Senior Developer, |
| 12 | +**I want to** define the technical architecture and user experience for [Feature Name], |
| 13 | +**So that** the development team has a clear, scalable, and approved blueprint to implement. |
| 14 | +
|
| 15 | +**Background:** |
| 16 | +[Briefly explain why this design is needed and what problem it solves.] |
| 17 | +
|
| 18 | +--- |
| 19 | +
|
| 20 | +### 2. Design Requirements |
| 21 | +
|
| 22 | +#### 2.1 Technical Architecture |
| 23 | +- [ ] Define data models and schema changes. |
| 24 | +- [ ] Specify API endpoints (REST/GraphQL). |
| 25 | +- [ ] Identify necessary third-party integrations or microservices. |
| 26 | +- [ ] Security considerations (Auth, Encryption, Permissions). |
| 27 | +
|
| 28 | +#### 2.2 UI/UX Specifications |
| 29 | +- [ ] Design wireframes/mockups for all core states (Loading, Empty, Success, Error). |
| 30 | +- [ ] Define user interaction flows. |
| 31 | +- [ ] ensure Accessibility (WCAG 2.1) compliance. |
| 32 | +
|
| 33 | +--- |
| 34 | +
|
| 35 | +### 3. Non-Functional Requirements |
| 36 | +- **Performance:** Target response time < [X]ms. |
| 37 | +- **Scalability:** Must support up to [Y] concurrent users. |
| 38 | +- **Maintainability:** Code must follow [Standard] patterns. |
| 39 | +
|
| 40 | +--- |
| 41 | +
|
| 42 | +### 4. Acceptance Criteria |
| 43 | +- [ ] Technical Design Document (TDD) completed and reviewed. |
| 44 | +- [ ] UI Mockups approved by Product Owner. |
| 45 | +- [ ] Data migration strategy defined (if applicable). |
| 46 | +- [ ] Development effort estimated (Story Points). |
| 47 | +
|
| 48 | +--- |
| 49 | +
|
| 50 | +### 5. Notes & Diagrams |
| 51 | +[Insert Mermaid or UML diagrams here to visualize the design] |
| 52 | +
|
| 53 | +\`\`\`mermaid |
| 54 | +graph TD |
| 55 | + A[User] --> B[Interface] |
| 56 | + B --> C[API Layer] |
| 57 | + C --> D[Database] |
| 58 | +\`\`\` |
| 59 | +`; |
| 60 | +} |
0 commit comments