a2n-seattle / a2n-seattle/rms-app

Web redesign Phase 5/8: Multi-select return flow + Batches view

Đang mở
#337 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
idea priority-low
Ngôn ngữ chính
TypeScript
Star
1
Fork
1
Merge trung bình
27 phút
Pull request đã merge (30 ngày)
4

Mô tả

# Why?

**As a** user with multiple borrowed items
**I want** a multi-select return flow (instead of returning one item at a time) and a read-only view of batches
**So that** returning several items I borrowed together doesn't require repeating a single-item flow, matching our internal Retool RMS app's "Return Items" table and Batches tab.

# What?

Phase 5 of an 8-phase redesign of `web/` modeled after our internal Retool RMS app (`https://a2nseattle.retool.com/p/rms-alpha/main`). Can proceed in parallel with Phase 4 once Phase 1's design system has landed; no dependency on Phase 2 or 3.

Scope:
- Return-items page matching Retool's "Return Items" table: list of currently-borrowed items, multi-select, a shared notes field, and a single **"Confirm Return"** action.
- Reuses the existing `returnItem` API, which already accepts `ids: string[]` — this phase is about exposing that as a multi-select UI, not a backend change.
- **Batches** tab/page: read-only view over `BatchSchema`/`GetBatch`, both of which already exist backend-side (no new backend read needed).

# Testing

Per this repo's testing policy: Jest/RTL for the multi-select return UI, Playwright e2e for the multi-item return flow, and a smaller RTL/e2e check for the read-only Batches view rendering correctly.

# Additional context

Part of an 8-phase `web/` redesign series (#333 Phase 1, #334 Phase 2, #335 Phase 3, #336 Phase 4). Phase 7 (batched return with condition notes) supersedes/extends this phase's return flow with reservation-based grouping and per-item condition notes — expect this phase's return UI to be the starting point Phase 7 builds on, not final.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Công việc bao gồm việc tạo một trang trả hàng mới hỗ trợ chọn nhiều mục và một chế độ xem Batches chỉ đọc trong thư mục web/. Bắt đầu bằng cách kiểm tra lệnh gọi API returnItem hiện có và các kiểu BatchSchema/GetBatch. Xem xét hệ thống thiết kế từ Phase 1 (#333) và quy trình trả hàng một mục hiện tại. Viết các bài kiểm thử Jest/RTL cho các thành phần UI và các bài kiểm thử Playwright cho quy trình trả hàng nhiều mục end-to-end. “Done” có nghĩa là cả hai trang mới đều được triển khai và kiểm thử, khớp với chức năng của ứng dụng Retool được tham chiếu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
playwright, react, typescript
Lĩnh vực
frontend, testing, web-dev
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.