Repository navigation
FE: cập nhật UI theo Figma, nối API, thêm BACKEND-TODO - #4
Merged
Merged
Conversation
VectorNguyen
added a commit
that referenced
this pull request
Oct 22, 2026
FE: cập nhật UI theo Figma, nối API, thêm BACKEND-TODO
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.
Tóm tắt
Cập nhật giao diện SafeSpace theo Figma mới, nối các API backend hiện có và thêm danh sách việc backend còn thiếu (
BACKEND-TODO.md).Toàn bộ thay đổi nằm trong `SafeSpace-Customer-UI/SafeSpace-Customer-UI/' .
Khách hàng
/api/ratesvà số ô trống thật từPOST /api/availability/check.Nhân viên cơ sở (S01–S09) — mới
STAFF(seed:staff01 / Staff@123).Quản lý cơ sở (M01–M08) — mới
MANAGER(seed chưa có, xem BACKEND-TODO mục A1).Nối API
/api/admin/*./api/ops/*quasrc/ops/api.js. Backend chưa có các endpoint này: khiGET /api/ops/boardtrả 404, giao diện tự dùng dữ liệu mẫu và hiện dòng báo "Backend chưa có API cho khu vận hành". Backend làm xong theo hợp đồng là FE dùng được ngay, không cần sửa.Việc cần backend làm — xem
BACKEND-TODO.mdmanager01+ gánUserFacilitycho staff/manager + quyền cho role STAFF/MANAGER; endpoint/api/ops/*cho nhân viên và quản lý;POST /api/reservations/{id}/confirm-transfer(thiếu thì nhân viên không thấy khách đã chuyển khoản).GET /api/facilities/{id}/units, toạ độ cơ sở (latitude/longitude), đăng ký trả kho, thông báo, đổi tên / đổi mật khẩu, đăng nhập bằng email, gửi hỗ trợ khi chưa có hợp đồng.Z, thống nhất thời gian giữ chỗ, bổ sung khu quản trị.File có sẵn body request, luật kiểm tra và mẫu JSON trả về cho từng endpoint.