Commit Graph

57 Commits

Author SHA1 Message Date
Ho Ngoc Hai
36a0a9c256 feat: Add functional tests for MktZaloService, new contract and load tests, and audit documentation, while removing a legacy infrastructure project and updating service configurations. 2026-03-25 15:00:05 +07:00
Ho Ngoc Hai
cdc67d768f docs: fix Wave 3 documentation gaps — remove hardcoded credentials and add marketing theme ADR
- DOC-W-01: Replace hardcoded test account passwords/emails in ROADMAP.md Section IX
  with .env.local variable references and seed script pointer (security hygiene)
- DOC-W-02: Create docs/adr/001-marketing-dual-theme.md documenting why MarketingLayout
  uses MarketingDark (#FACC15 yellow) instead of DefaultDark (#FF5C00 orange),
  including contrast rationale, alternatives considered, and implementation reference

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-23 09:45:10 +07:00
Ho Ngoc Hai
76b5e6afd0 feat: Phase 2 close-out — multi-branch management, production K8s, revenue dashboard UI, responsive POS
Backend:
- Multi-branch shop management: SetDefaultShop, TransferShop commands, GetMerchantShops paginated query
- Shop aggregate: IsDefault field, SetAsDefault/ClearDefault/TransferOwnership behavior methods
- 2 new domain events: ShopSetAsDefaultDomainEvent, ShopTransferredDomainEvent

Frontend:
- Revenue Dashboard (MudChart line/donut/bar, 4 KPI cards, top products table)
- Staff Performance (sortable table, color-coded completion rates, CSV export)
- Customer QR Menu page (/menu/{ShopId}, mobile-first, Vietnamese labels)
- QR Code Generator admin page (batch generate, print-all, per-table QR)
- Responsive POS layout (collapsible sidebar, slide-out order drawer, touch-friendly CSS)
- ResponsiveOrderPanel component (desktop inline / tablet drawer / mobile overlay)

Infrastructure:
- Production K8s manifests: 8 services (3 replicas, 512Mi-1Gi, HPA min3/max10), Redis with persistence
- Production ingress: api.goodgo.vn, cert-manager TLS, rate-limit middleware
- Deploy script: pre-flight checks, dry-run, single-service deploy, rollback support
- CI/CD: deploy-production.yml with environment approval, commit SHA tags
- Prometheus full scrape config (11 targets), docker-compose observability stack
- Production deployment checklist (80+ items)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 19:58:40 +07:00
Cursor Agent
547902b407 chore: remove hardcoded local deployment secrets
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:11:58 +00:00
Ho Ngoc Hai
5aa48eb29c docs: Add service-level READMEs, update Wallet Service documentation with multi-currency and admin APIs, refine Chat Service architecture, and remove a test Mermaid file. 2026-01-18 23:51:39 +07:00
Ho Ngoc Hai
29a70f5b64 feat: Introduce Entity.cs and ValueObject.cs in AdsManagerService domain, add sample command/query handlers, and update build properties across services. 2026-01-17 22:51:35 +07:00
Ho Ngoc Hai
f19a995b0d feat: Introduce new Access Management and Governance APIs in IAM Service
- Added Access Requests, Access Reviews, Privileged Access Management, Audit Log, and Compliance APIs to enhance access management and governance capabilities.
- Updated the DbContext to include new entities for AuditLog and ComplianceReport, improving data handling for compliance and auditing.
- Enhanced Dependency Injection to support new repositories for the added functionalities, streamlining service operations.
2026-01-14 19:26:26 +07:00
Ho Ngoc Hai
dfaf6b059b docs: Update IAM Service documentation to include new Organization, Group, User Profile, and Identity Verification APIs
- Added new sections for Organization & Group APIs, User Profile APIs, and Identity Verification APIs in both English and Vietnamese documentation, reflecting the features introduced in Phase 2.
- Revised the implementation roadmap to indicate the completion of Identity Management features, enhancing clarity on the current capabilities of the IAM Service.
- Updated the Dependency Injection and DbContext to include new repositories and database tables for the added functionalities.
2026-01-14 15:19:06 +07:00
Ho Ngoc Hai
4f0008b422 docs: Update storage proposal documentation to reflect completed features
- Revised the storage proposal to indicate the implementation status of various features, including folder management, file sharing, and file versioning.
- Updated sections to show completed APIs and functionalities, enhancing clarity on the current capabilities of the Storage Service.
- Marked planned features for search and discovery, ensuring a clear roadmap for future enhancements.
2026-01-14 14:15:51 +07:00
Ho Ngoc Hai
d28ecc158d docs: Update IAM Service documentation for new features and architecture
- Revised IAM Service documentation to incorporate recent updates, including the transition to Duende IdentityServer for OAuth2/OpenID Connect.
- Added sections for new features such as email verification, 2FA/MFA support, and social login options.
- Enhanced clarity by reorganizing API sections and updating the implementation roadmap to reflect completed and planned enhancements.
2026-01-14 13:29:39 +07:00
Ho Ngoc Hai
6a2af6f14c docs: Enhance IAM Service architecture documentation
- Updated the IAM Service proposal to reflect the transition from OpenIddict to Duende IdentityServer for OAuth2/OpenID Connect.
- Added new features including email verification, 2FA/MFA support, social login options, and distributed caching with Redis.
- Reorganized API sections for clarity, introducing dedicated sections for email verification, 2FA, and social login APIs.
- Revised implementation roadmap to indicate completed phases and planned future enhancements.
2026-01-14 13:16:48 +07:00
Ho Ngoc Hai
3ed499ef7c docs: Update architecture documentation for GoodGo Platform
- Translated and revised architecture documents to enhance clarity and accessibility for both English and Vietnamese audiences.
- Improved diagrams and descriptions for caching, data consistency, event-driven architecture, microservices communication, observability, and security architecture.
- Ensured consistent formatting and terminology across all documents to facilitate better understanding and navigation.
- Added quick tips and troubleshooting sections to assist developers in implementing and managing the architecture effectively.
2026-01-14 13:07:19 +07:00
Ho Ngoc Hai
c851fd97eb docs: Revise architecture and template documentation for GoodGo Platform
- Updated the architecture documentation to enhance clarity with detailed diagrams and descriptions for the GoodGo Microservices Platform.
- Revised the .NET and Node.js template documentation to reflect new naming conventions, project structures, and setup instructions for local development.
- Improved the guide documentation with verification checklists, troubleshooting steps, and real-world examples to assist developers in deploying and managing services effectively.
- Ensured bilingual support in documentation to enhance accessibility for a wider audience.
2026-01-14 12:38:41 +07:00
Ho Ngoc Hai
02e1053eb5 docs: Update architecture and template documentation for GoodGo Platform
- Revised the architecture documentation to include detailed diagrams and descriptions for the GoodGo Microservices Platform, enhancing clarity on system components and interactions.
- Updated the .NET template documentation to reflect new naming conventions and project structures, ensuring consistency across services.
- Added real-world examples and practical setup instructions for local development, including Traefik routing and environment variable configurations.
- Enhanced the guide documentation with verification checklists and troubleshooting steps to support developers in deploying and managing services effectively.
2026-01-14 12:21:51 +07:00
Ho Ngoc Hai
6996e12ff0 docs: Add comprehensive Agent Skills documentation in English and Vietnamese
- Introduced new documentation for Agent Skills, detailing best practices, code patterns, common pitfalls, and quick references across various categories such as Architecture, Data Access, Security, Error Handling, Testing, Infrastructure, Communication, and Documentation.
- The documentation is structured to facilitate easy navigation and understanding, supporting developers in implementing consistent patterns on the GoodGo Platform.
- Both English and Vietnamese versions are provided to ensure accessibility for a wider audience.
2026-01-14 12:05:26 +07:00
Ho Ngoc Hai
4973d067ef chore: Remove outdated Cursor Skills documentation files
- Deleted the English and Vietnamese documentation files for Cursor Skills, which included comprehensive details on various skills used in the GoodGo Microservices Platform.
- This cleanup ensures that only relevant and up-to-date documentation is maintained, streamlining the repository and focusing on current development practices.
2026-01-14 11:51:54 +07:00
Ho Ngoc Hai
83081e8f29 chore: Remove obsolete skill documentation files
- Deleted multiple outdated skill documentation files, including those related to API design, API gateway patterns, versioning strategies, caching patterns, CI/CD advanced patterns, bilingual code comments, configuration management, data consistency patterns, Prisma database patterns, Kubernetes deployment patterns, and more.
- This cleanup streamlines the documentation repository, ensuring that only relevant and up-to-date information is maintained for current development practices.
2026-01-14 11:49:58 +07:00
Ho Ngoc Hai
928a22fe3e feat(authentication): Implement email verification, two-factor authentication, and social login features
- Added endpoints for sending and confirming email verification, enhancing user account security.
- Integrated two-factor authentication (2FA) with TOTP support, including enabling, verifying, and disabling 2FA.
- Implemented social login functionality for Google and Facebook, allowing users to authenticate using their existing accounts.
- Updated dependency injection to include services for email, 2FA, and social login.
- Enhanced documentation to reflect new features and usage examples for email verification and 2FA.
2026-01-12 23:07:53 +07:00
Ho Ngoc Hai
9168a5f734 feat(docs): Update authentication flow documentation and improve clarity
- Revised IAM service documentation to reflect recent changes in the authentication flow, including user registration and token management.
- Enhanced API documentation with clearer examples and updated architecture diagrams for better understanding.
- Added comprehensive sections on OAuth2 grant types and user management to assist developers.
- Streamlined Vietnamese documentation for consistency and improved accessibility.
2026-01-12 16:59:06 +07:00
Ho Ngoc Hai
c046ed0a06 feat(docs): Expand skills and runbooks sections in VitePress configuration
- Added new 'Skills' and 'Runbooks' sections to both English and Vietnamese documentation, enhancing the navigation structure.
- Included detailed items under the 'Skills' section, covering various topics such as API Design, Caching Patterns, and Testing Patterns.
- Updated sidebar configurations to improve user experience and accessibility of resources.
- Removed outdated onboarding guides to streamline documentation and focus on relevant content.
2026-01-12 12:59:08 +07:00
Ho Ngoc Hai
56ab019ef2 fix(docs): Update Vietnamese templates section and remove outdated README files
- Changed the label from 'Mẫu' to 'Templates' in the Vietnamese documentation for consistency.
- Deleted outdated README.md files for both English and Vietnamese templates to streamline documentation and reduce clutter.
- This update aims to enhance clarity and maintain a more organized structure in the documentation.
2026-01-12 12:55:56 +07:00
Ho Ngoc Hai
2e61c45620 feat(deps): Update pnpm-lock.yaml with new dependencies and versions
- Added new devDependencies for vitepress-docs, including mermaid, vitepress, vitepress-plugin-mermaid, and vue.
- Updated existing dependencies for vitepress and vue to their latest versions.
- Introduced several new Algolia client packages with specific versions to enhance search capabilities.
- Cleaned up and organized the lock file to reflect the latest package resolutions and integrity checks.
2026-01-12 12:49:04 +07:00
Ho Ngoc Hai
1e22e83879 feat(docs): Streamline Vietnamese documentation with updated diagrams and sections
- Enhanced Mermaid diagrams for better visual clarity and consistency across guides.
- Added new sections on caching, data consistency, and observability patterns to the architecture documentation.
- Improved formatting and structure to align with the English version, ensuring a cohesive user experience.
- Removed outdated service communication documentation to reduce clutter and focus on relevant content.
2026-01-12 12:31:55 +07:00
Ho Ngoc Hai
4e595d0746 feat(docs): Remove outdated service templates and enhance Vietnamese architecture documentation
- Deleted obsolete service architecture templates in both English and Vietnamese to streamline content.
- Updated the Vietnamese architecture documentation with improved Mermaid diagrams for better visual clarity.
- Enhanced color coding in diagrams to improve readability and consistency across documentation.
- Added a new section detailing visual indicators for better understanding of architecture components.
2026-01-10 21:00:02 +07:00
Ho Ngoc Hai
b89e07f4cb feat(docs): Update Mermaid diagrams and enhance Vietnamese architecture documentation
- Changed the Mermaid theme from 'default' to 'base' for improved visual consistency.
- Expanded the architecture documentation by adding new sections on caching, data consistency, and observability patterns.
- Enhanced existing diagrams with clearer color coding and class definitions for better readability.
- Removed outdated service communication documentation to streamline content.
- Included quick tips and common issues sections to assist users in navigating the documentation effectively.
2026-01-10 17:42:19 +07:00
Ho Ngoc Hai
be99b99dd3 feat(docs): Update Mermaid diagrams in Vietnamese guides for improved clarity and visual appeal
- Enhanced Mermaid diagrams in the troubleshooting and workflow sections with clearer labels and emoji for better readability.
- Standardized the formatting of flowchart elements to ensure consistency across documentation.
- Improved the overall visual representation to align with recent updates in the English version.
2026-01-10 17:02:20 +07:00
Ho Ngoc Hai
9ba4a478ee feat(docs): Enhance deployment and development guides with improved clarity and structure
- Updated Mermaid diagrams in the deployment and development guides for better visual representation and consistency.
- Improved formatting and clarity in the Kubernetes local deployment and IAM migration guides, including detailed workflows and troubleshooting sections.
- Enhanced the Vietnamese documentation to align with the English version, ensuring consistency across guides.
- Added quick tips and common issues sections to facilitate user navigation and understanding.
2026-01-08 17:10:06 +07:00
Ho Ngoc Hai
70d90d36e0 refactor(docs): Remove outdated time estimates from Kubernetes and local development guides
- Eliminated time estimates from the introductory sections of the Kubernetes local deployment and local development guides for a cleaner presentation.
- Focused on enhancing the clarity and conciseness of the documentation without altering the core content.
2026-01-08 17:07:30 +07:00
Ho Ngoc Hai
51bc4c8ec0 feat(docs): Update guides with enhanced troubleshooting sections and visual clarity
- Added detailed troubleshooting tables in the IAM migration, observability, and Kubernetes local deployment guides to assist users in diagnosing common issues.
- Improved Mermaid diagrams with clearer component labels and color coding for better visualization.
- Enhanced the structure of the Vietnamese documentation to align with the English version, ensuring consistency across guides.
- Included quick tips and common issues sections to facilitate user navigation and understanding.
2026-01-08 17:01:14 +07:00
Ho Ngoc Hai
b441a7757a feat(docs): Enhance Vietnamese documentation with updated diagrams and troubleshooting flowcharts
- Revised the Vietnamese documentation to include clearer instructions and improved Mermaid diagrams for better visualization.
- Added detailed troubleshooting flowcharts to assist users in diagnosing issues effectively.
- Updated color palette references and visual elements in diagrams for consistency and clarity.
- Enhanced the structure of various guides, ensuring alignment between English and Vietnamese versions.
- Included quick tips and common issues sections to facilitate user navigation through the documentation.
2026-01-08 16:57:56 +07:00
Ho Ngoc Hai
2a09a6e989 feat(docs): Revise deployment and development guides with enhanced visuals and clarity
- Updated color schemes in Mermaid diagrams across deployment and development guides for improved visual distinction.
- Enhanced the structure and clarity of the migration guide, including detailed workflows and architecture comparisons.
- Added new sections for troubleshooting and observability, incorporating flowcharts and diagrams for better understanding.
- Improved formatting and consistency in both English and Vietnamese documentation to align with recent updates.
- Introduced quick tips and common issues sections to assist users in navigating the documentation effectively.
2026-01-08 16:41:02 +07:00
Ho Ngoc Hai
92d14877e5 feat(docs): Revise Vietnamese and English development guides with enhanced structure and clarity
- Updated the introductory notes in both Vietnamese and English development guides for improved clarity.
- Reorganized the workflow steps in the Vietnamese documentation to align with the English version.
- Added detailed Mermaid diagrams for better visualization of development processes and testing strategies.
- Introduced new sections for color palette references and verification checklists to enhance documentation completeness.
- Simplified headers and improved formatting for better readability across both language versions.
2026-01-08 15:57:09 +07:00
Ho Ngoc Hai
3f5d9715dc feat(docs): Enhance deployment guides with improved formatting and visual elements
- Updated the introductory notes in both English and Vietnamese deployment guides for clarity.
- Changed subgraph titles in Mermaid diagrams for consistency and improved readability.
- Added color styling to Mermaid diagram elements for better visual distinction.
2026-01-08 15:45:18 +07:00
Ho Ngoc Hai
510e2306cd feat(docs): Update getting started and local development guides with new prerequisites and improved flow
- Enhanced Node.js and PNPM version recommendations in the getting started guide.
- Added a color palette section with Mermaid diagrams for better visual representation.
- Improved the workflow steps in the local development guide for clarity and consistency.
- Updated Vietnamese documentation to reflect changes in the English version.
- Refactored database migration and seeding scripts for better error handling and user feedback.
2026-01-08 15:37:25 +07:00
Ho Ngoc Hai
489adbd314 fix(docs): Update documentation error messages and enhance search dependencies
- Changed the error message in DocsContentClient to use HTML entities for quotes.
- Updated the dependency array in DocsSearch to include docsNavigation for improved memoization.
2026-01-08 15:17:25 +07:00
Ho Ngoc Hai
866034d07a Remove outdated Mermaid guide images and update Node version in .nvmrc 2026-01-08 14:53:34 +07:00
Ho Ngoc Hai
41232909d3 Add Mermaid 2026-01-08 10:28:30 +07:00
Ho Ngoc Hai
95a1754e97 feat(docs): Bổ sung các sơ đồ Mermaid mới, giải thích chi tiết và cập nhật kiểu dáng trong hướng dẫn. 2026-01-08 00:21:46 +07:00
Ho Ngoc Hai
3f83ee6566 feat: thêm hướng dẫn sử dụng sơ đồ Mermaid bằng tiếng Việt và tiếng Anh, bao gồm các loại sơ đồ như Flowchart, Sequence, Class, Graph và ER. 2026-01-07 23:02:20 +07:00
Ho Ngoc Hai
5925b9c067 docs: Cập nhật ví dụ biểu đồ Mermaid với bảng màu mới và chuẩn hóa các tiêu đề mục tiếng Việt. 2026-01-07 22:47:19 +07:00
Ho Ngoc Hai
03c76fecb5 feat: Thay thế Auth Service bằng IAM Service trong tài liệu OpenAPI và cập nhật hướng dẫn triển khai Kubernetes. 2026-01-07 22:23:20 +07:00
Ho Ngoc Hai
200bf0b8fd chore: Cập nhật các phụ thuộc như TypeScript, Node.js types, Prisma và thông tin về thương hiệu, người duy trì trên toàn dự án. 2026-01-07 17:18:36 +07:00
Ho Ngoc Hai
9c74b86837 feat: Bổ sung hỗ trợ song ngữ (EN/VI) và chuẩn hóa cấu trúc cho các mẫu tài liệu. 2026-01-07 10:27:47 +07:00
Ho Ngoc Hai
495618ded7 docs: Thêm tài liệu kiến trúc bảo mật, hướng sự kiện, nhất quán dữ liệu, khả năng quan sát và caching bằng tiếng Việt, đồng thời cập nhật các tài liệu hướng dẫn và kiến trúc hiện có. 2026-01-07 10:22:42 +07:00
Ho Ngoc Hai
d8faffd41d docs: Thêm tài liệu mô tả các patterns và protocols giao tiếp microservices, bao gồm API Gateway, Service Discovery, hiệu suất và bảo mật. 2026-01-07 09:27:58 +07:00
Ho Ngoc Hai
7217c48253 feat: Bổ sung tài liệu kiến trúc, các mẫu hướng dẫn và phân tích, cùng với hướng dẫn Mermaid song ngữ. 2026-01-07 09:21:19 +07:00
Ho Ngoc Hai
4f48eadea8 docs: Nâng cấp hướng dẫn triển khai Kubernetes cục bộ với sơ đồ quy trình, hướng dẫn chi tiết và chú thích song ngữ. 2026-01-05 19:15:09 +07:00
Ho Ngoc Hai
67fef542bd feat: Thêm hướng dẫn triển khai dịch vụ lên Kubernetes cục bộ bằng tiếng Việt và tiếng Anh, đồng thời cập nhật tài liệu phát triển hiện có. 2026-01-04 13:08:40 +07:00
Ho Ngoc Hai
2640b351c3 Enhance documentation with detailed diagrams and structured flows
- Added request/response flow diagrams to api-design and api-gateway-advanced skills for better visualization of processes.
- Introduced configuration loading flow in configuration-management skill to clarify the configuration process.
- Included error propagation flow in error-handling-patterns skill to illustrate error handling across layers.
- Enhanced various skills with additional diagrams to improve understanding of complex concepts.

These updates aim to provide clearer guidance and improve the overall documentation experience for developers.
2026-01-01 23:22:54 +07:00
Ho Ngoc Hai
2e55a501fd Update skill documentation to reflect the addition of a new Cursor Skill, increasing the total from 25 to 26 in both English and Vietnamese README files. 2026-01-01 10:10:58 +07:00