Repository navigation
chore(fe): don ghi chu man hinh, vai tro Khach hang, hotline , sửa huỷ đơn PayOS hết giờ và lỗi đặt lại mật khẩu - #101
Merged
Conversation
…ng; fix huy don PayOS het gio va loi dat lai mat khau (D63)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mục tiêu
Dọn các ghi chú trên màn hình đang viết cho dev (không phải cho khách hàng/người dùng), cập nhật hiển thị theo yêu cầu, và sửa các lỗi tìm được khi rà soát luồng gửi email và thanh toán. Quyết định ghi ở DECISIONS.md – D63, nhật ký ở progress.md – 2026-11-17.
1. Dọn ghi chú màn hình (~100 câu)
npm run dev:business,VITE_USE_API=true, đường dẫnPUT /api/staff/units/{mã}/status,POST /api/ops/fees/{mã}/confirm, chữ "backend", "API báo xung đột…", mã quyết định "(D32)".2. Màn khách hàng
tel:, hiện chữ thường cùng màu các dòng khác.3. Sửa lỗi thanh toán PayOS
GET /api/v1/reservations/{id}/status(máy chủ đối soát thẳng với PayOS), hỏi lại một lần sau 5,5 giây. Đã trả → chuyển sang trang xác nhận; lỗi mạng → chưa huỷ, thử lại lần sau. Logic tách rasrc/shared/api/paymentStatus.js./statustrước → xác nhận nhanh hơn khi không có webhook.PayOSService.ReconcilePendingAsyncđối soát cả đơn PayOS vừa bị huỷ (CANCELLED, trong 30 phút), để tiền về muộn được ghiPAYMENT_REVIEW_REQUIREDcho quản lý hoàn thủ công (giống đơnEXPIRED).4. Sửa lỗi email / đặt lại mật khẩu
Test
tests/payment-status.test.js(3 test: đã trả thì không huỷ, hỏi lại một lần, đơn đã đóng / lỗi mạng).ReconcileFlagsPaymentArrivingAfterExpiryCancel.Kiểm chứng
npm test231/231,test:business15/15,test:workflows12/12,test:render178 route PASS,check:structurePASS,buildPASS.dev:mock.dotnet test— (điền kết quả chạy trên máy).Không thay đổi