a2n-seattle / a2n-seattle/rms-app
Dashboard: one-click delete and modify icons on scheduled reservations
- Linguagem predominante
- TypeScript
- Estrelas
- 1
- Forks
- 1
- Merge médio
- 27min
- PRs com merge (30d)
- 4
Descrição
# Why?
**As a** user viewing my upcoming reservations on the Dashboard
**I want** one-click icons to delete or modify a reservation directly from the list
**So that** I don't have to navigate away to a separate page to cancel or change a reservation.
# What?
On the Dashboard's Scheduled/Upcoming reservations view (Phase 3/#335):
- Add a one-click **delete** icon per reservation row, calling the existing `DeleteReservation` API (confirm a web wrapper exists from Phase 3, or add one) directly from the row — likely with a lightweight confirm step (e.g. a confirm dialog or an undo toast) rather than an immediate destructive action with no confirmation.
- Add a one-click **modify** icon per reservation row, opening a small inline prompt/modal to change the reservation's details. For changing the end time specifically, this should call `ExtendReservation` (Phase 8/#340, already implemented) if that's the only field being changed; clarify during triage whether "modify" here means end-time-only (covered by `ExtendReservation`) or a fuller edit (start time, items) which would need a different/new API.
# Testing
Playwright e2e: create a reservation, delete it via the one-click icon and confirm it disappears from the dashboard; modify a reservation's end time via the one-click icon and confirm the change persists.
# Additional context
Depends on the Dashboard (#335, merged) and `ExtendReservation` (#340, merged) already existing.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Examine a view de reservas Scheduled/Upcoming do Dashboard da Fase 3 (#335). Encontre o componente que renderiza cada linha de reserva. Adicione ícones de exclusão e modificação à linha. Para excluir, chame a API existente DeleteReservation, adicionando um diálogo de confirmação. Para modificar, verifique se a API ExtendReservation (#340) é suficiente ou se uma nova API de edição é necessária. Escreva testes do Playwright para criar, excluir e modificar uma reserva, verificando se a UI é atualizada.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Domínio
- frontend
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Pouca atividade
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 65/100