Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Donor Lookup Feature -- Edit Donation Functionality

Abierto
#233 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
full-stack

Línea de trabajo

Comienza con las páginas Donor Lookup y Donor View referenciadas en la issue y, a continuación, sigue los endpoints y las rutas de la API de Sequelize para los datos de donaciones. Se considera terminado cuando la edición, el ajuste de cantidad, la confirmación de eliminación y los comportamientos de confirmar y cancelar actualicen los datos del donante mostrados y el backend según lo especificado; el diagrama ER del prototipo sigue marcado como WIP.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

feature Urgent

This is an issue spawned from #193

More specifically, spawned from the original 'Edit Button' task.
  • When a user hits the 'Edit' button on a given 'Donor View' page, the 'Edit' button will disappear from the corresponding row and be replaced by a '-' button, a '+' button, a 'Delete' button, and a 'Confirm/Cancel' button.
  • Given that the row is assigned a specific index/key, pass the index/key that corresponds to the newly-edited column to the list/map used to populate 'Donor View' page.
  • Retrieve the Date, Name, and Quantity returned from the object located within the list used to populate the 'Donor View' page.
  • Store those values into a 'prototype' JSON that tracks the Date, Name, Quantity, and original index/key.
  • When the user presses the '-' button reduce the quantity of the given item by one in the 'prototype' JSON.
  • When the user presses the '+' button increase the quantity of the given item by one in the 'prototype' JSON.
  • When the user presses the 'Delete' button, prompt the user that 'This will remove the item from the Database, are you sure?'
    - If the user presses 'Yes' on the prompt:
    - Issue a Sequelize DELETE request/route on the item based on the attributes found within the 'prototype' JSON.
    - Re-populate the map/list used to display the 'Donor View' page.
    - Dump the current 'prototype' JSON.
    - If the user presses 'No' on the prompt, simply close the prompt window.
  • If the 'Prototype' JSON is different from the Item Quantity and Availability,
    - Then the 'Confirm/Cancel' button will display 'Confirm'
    - If pressed as a 'Confirm' Button
    - Issue a Sequelize UPDATE request/route on the donation based on the attributes found within the 'prototype' JSON.
    - Revert to the original 'Edit' button state.
    - Re-populate the 'Donor View' page with the appropriate backend call.
  • If the 'Prototype' JSON is NOT different from the Item Quantity and Availability
    - Then the 'Confirm/Cancel' button renders as a 'Cancel' button
    - If pressed as the 'Cancel' button, the 'Donor View' page reverts to the 'Edit' button state.
Note: The Sequelize API endpoints will need to match up with the Item's Date, Name, and Quantity exactly in order to work properly.

The list above can be copy-pasted into tasks if necessary. 'Prototype' ER Diagram is WIP.

Original UML Diagram from #193 included for reference to 'Donor Lookup' and 'Donor View' pages.

UpdatedDonorLookup

Lenguaje dominante
TypeScript
Estrellas
3
Forks
34
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ChicoState/PantryNode

Todos los issues de ChicoState/PantryNode

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.