a2n-seattle / a2n-seattle/rms-app

Currently Borrowed page: checkbox multi-select + bulk Return with per-item condition comments

未關閉
#362 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
idea priority-medium
主要語言
TypeScript
星號
1
分支
1
平均合併
27 分鐘
30 天內合併 PR
4

描述

# Why?

**As a** user returning multiple borrowed items at once
**I want** the Currently Borrowed page to work like the items table (checkbox multi-select) with a bulk Return action
**So that** returning several items doesn't require repeating a single-item return flow for each one.

# What?

Rework the Currently Borrowed view (dashboard tab, Phase 3/#335) to match the items-table selection mechanism (row checkboxes + the tri-state header checkbox from #354):
- Add per-row checkboxes to the Currently Borrowed list.
- Add a "Return" button (e.g. at the bottom of the list) enabled when at least one row is selected.
- Clicking Return navigates to a returns confirmation page pre-populated with the selected items, each individually deselectable, matching the batched-return-by-reservation flow already built in Phase 7 (#339) — reuse that flow/page rather than building a second one, since Phase 7 already added per-item condition-notes fields and a `ReturnGroup`-style read API.

Clarify during triage whether this should literally be "select any subset of currently-borrowed items across different borrow groups and return them together" (broader than Phase 7's single-borrow-group batching) or just apply Phase 7's existing per-group flow more consistently in the UI.

# Testing

Playwright e2e: borrow 2+ items, select a subset from Currently Borrowed, return them with condition comments, confirm they no longer appear in Currently Borrowed and the comments appear in History.

# Additional context

Depends on #354 (checkbox pattern) and Phase 7's batched-return-with-condition-notes work (#339, merged).

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

檢查 Currently Borrowed 檢視(dashboard 分頁)以及 #354 中的 items-table 選取機制。檢視 Phase 7 (#339) 中的 batched-return-by-reservation 流程和 `ReturnGroup` 風格的 Read API。確定範圍是跨借用群組選取,還是只涉及每個群組的 UI 一致性。先為清單新增核取方塊並啟用 Bulk Return 按鈕,然後整合至現有的確認頁面和 Playwright 測試中。

由索引模型根據 Issue 內容生成。

評估

領域
backend-api-design, frontend
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。