260324:1439 Refactor RFA :correct ci-deploy #03
CI / CD Pipeline / build (push) Successful in 23m28s
CI / CD Pipeline / deploy (push) Successful in 5m48s

This commit is contained in:
admin
2026-03-24 14:39:09 +07:00
parent cb9e2e4e26
commit 42fc9fa502
7 changed files with 340 additions and 81 deletions
+31 -21
View File
@@ -1,4 +1,4 @@
# 📖 User Stories — LCBP3-DMS v1.8.0
# 📖 User Stories — LCBP3-DMS v1.8.1
---
@@ -187,6 +187,7 @@ So that ดำเนินการได้ทันที (สร้าง Cir
- List แสดง Received/Sent แยก | PDF Viewer ในแอป (Streaming)
- ดาวน์โหลดไฟล์แนบได้ (ถ้ามีสิทธิ์)
- อ้างอิงเอกสารด้วย UUID (ADR-019)
---
@@ -202,7 +203,7 @@ So that จัดกลุ่มเอกสารและ Navigate ข้า
**Done When:**
- ค้นหาและเลือก Reference Documents | Link ระหว่างเอกสาร (คลิก Navigate)
- ค้นหาและเลือก Reference Documents | Link ระหว่างเอกสาร (คลิก Navigate ด้วย UUID)
- กำหนด Tag หลาย Tag | ค้นหาได้จาก Tag
---
@@ -314,8 +315,11 @@ So that ส่งเอกสารเป็นชุด ที่ปรึก
**Done When:**
- Transmittal → เลือก RFA หลายฉบับ | ออกเลขเองเป็น Correspondence
- สถานะ → FAP (For Approval) | Workflow Instance ถูกสร้าง
- ผู้รับ → Notification | สถานะ SUBMITTED
- สร้าง Workflow Instance อัตโนมัติ
- อ้างอิงเอกสารด้วย UUID (ADR-019)
- RFA แต่ละฉบับ → ออกเลขตาม Format `LCBP3-RFA-{DISCIPLINE}-{SEQ}`
- ที่ปรึกษา → Notification
---
@@ -331,9 +335,10 @@ So that Contractor ได้รับผลพิจารณาและดำ
**Done When:**
- PDF Viewer Streaming | ปุ่ม: Approved / Approved w/Comments / Rejected
- Comment บังคับสำหรับ Approved w/Comments และ Rejected
- PDF Viewer Streaming | ปุ่ม: Approved (1A) / Approved w/Comments (1B) / Rejected (4X)
- Comment บังคับสำหรับ 1B และ 4X
- Originator → Notification | Workflow History บันทึกครบ
- อ้างอิงเอกสารด้วย UUID (ADR-019)
---
@@ -408,6 +413,7 @@ So that รู้ทันทีว่าเอกสารอยู่ขั้
- Workflow Diagram แสดง State ปัจจุบัน (Highlight)
- คลิก Step ที่ผ่านมา → Audit Log ย่อย (ใคร/เมื่อไหร่/Comment)
- Step ที่ยังไม่ถึง → Disabled Style
- อ้างอิงเอกสารด้วย UUID (ADR-019)
---
@@ -425,7 +431,8 @@ So that Workflow เดินหน้าหรือส่งกลับตา
- เห็นปุ่ม Action เฉพาะ Step ที่เป็นของฉัน
- Wrong Role → ปุ่มซ่อน / 403 ถ้าเรียก API ตรงๆ
- ทุก Action → Workflow History + Timestamp
- ทุก Action → Workflow History + Timestamp + Audit Log
- อ้างอิงเอกสารด้วย UUID (ADR-019)
---
@@ -481,6 +488,7 @@ So that งานถูก Assign ชัดเจนและมีหลัก
- กำหนด Main / Action / Information Assignees (หลายคน)
- Assignees → In-App + Email Notification
- Internal Only (ไม่เห็นข้ามองค์กร)
- อ้างอิงเอกสารด้วย UUID (ADR-019)
---
@@ -499,6 +507,7 @@ So that ไม่พลาดงาน และ Track สถานะได้
- Dashboard My Tasks แสดง Deadline + Overdue Badge
- ปิด Circulation → สถานะ CLOSED + Timestamp
- My Tasks ลบรายการที่ปิดแล้ว
- อ้างอิงเอกสารด้วย UUID (ADR-019)
---
@@ -534,7 +543,7 @@ So that ไม่พลาดงานโดยไม่ต้องเช็ค
**Done When:**
- Email ถูกส่งภายใน 5 นาที หลัง Event (BullMQ Queue)
- Bell Icon Unread Count | คลิก → Navigate ไปเอกสาร
- Bell Icon Unread Count | คลิก → Navigate ไปเอกสาร (ใช้ UUID)
- Retry 3 ครั้ง ถ้าส่งไม่ได้ → Dead Letter Queue
---
@@ -579,24 +588,25 @@ So that รู้สถานะงานโดยไม่ต้องไล่
## 📊 Story Map Summary
| Epic | Stories | 🔴 Must | 🟠 Should | 🟡 Could |
| ---------------- | ---------- | ------- | --------- | -------- |
| Auth & Users | US-001~006 | 4 | 1 | 1 |
| Correspondence | US-007~011 | 2 | 2 | 1 |
| RFA | US-012~015 | 2 | 2 | 0 |
| Drawing | US-016~017 | 0 | 2 | 0 |
| Workflow | US-018~021 | 1 | 1 | 2 |
| Circulation | US-022~023 | 0 | 2 | 0 |
| Search & Notify | US-024~025 | 0 | 2 | 0 |
| File & Dashboard | US-026~027 | 0 | 2 | 0 |
| **รวม** | **27** | **9** | **14** | **4** |
| Epic | Stories | 🔴 Must | 🟠 Should | 🟡 Could |
| ---------------- | --------------- | ------- | --------- | -------- |
| Auth & Users | US-001~006 | 4 | 1 | 1 |
| Correspondence | US-007~011 | 2 | 2 | 1 |
| RFA | US-012~015, 012a~012c | 4 | 3 | 0 |
| Drawing | US-016~017 | 0 | 2 | 0 |
| Workflow | US-018~021 | 1 | 1 | 2 |
| Circulation | US-022~023 | 0 | 2 | 0 |
| Search & Notify | US-024~025 | 0 | 2 | 0 |
| File & Dashboard | US-026~027 | 0 | 2 | 0 |
| **รวม** | **30** | **11** | **15** | **4** |
> **MVP Sprint Focus:** US-001~006, US-007~008, US-012~014, US-019 — ครอบคลุม Core Happy Path ทั้งหมด
> **MVP Sprint Focus:** US-001~006, US-007~008, US-012~015, US-012a~012c, US-019 — ครอบคลุม Core Happy Path ทั้งหมด
---
## 📝 Document Control
- **Version:** 1.0.0 | **Status:** DRAFT
- **Created:** 2026-03-11 | **Owner:** Nattanin Peancharoen
- **Version:** 1.8.1 | **Status:** Updated
- **Created:** 2026-03-11 | **Updated:** 2026-03-24 | **Owner:** Nattanin Peancharoen
- **Changes:** Added US-012a~012c (Edit/Cancel/Search RFA), Updated Epic 3 story count, Added RBAC filtering details
- **Classification:** Internal Use Only