SeattleColleges / nsc-events-android

NSC Events android application
MIT License
4 stars 3 forks source link

UI - Enable Soft Delete Event functionality #50

Closed brandondombrowsky closed 11 months ago

brandondombrowsky commented 1 year ago

NOTE We are going to leave "Product" here as its relevant to the pictures provided, but note that PRODUCT in this case, means EVENT for NSC.

Describe the bug\ Deleting a product in the UI does not make the product disappear from the UI. Enable Soft Delete Product functionality--make product disappear from client side (do not worry about the database) after clicking "Yes".

To Reproduce\ Steps to reproduce the behavior:

  1. Go to the product list page.
  2. Click on the pencil icon in the top right corner of the screen
  3. Click a trashcan icon below any product.
  4. Click "Yes" in the pop-up message
  5. Notice that the product is still visible.

Expected behavior

  1. Go to the product list page.
  2. Click on the pencil icon in the top right corner of the screen
  3. Click a trashcan icon below any product.
  4. Click "Yes" in the pop-up message
  5. You should then be taken back to the product list page and the product with the trashcan icon you clicked should no longer be visible.

Screenshots

screenshot_2023-10-03_at_3 47 54___am_480-1

You can also observe the current behavior in this demo on YouTube.

Additional context\ This is only concerning the client side behavior and UI. This does not involve deleting the product from the database.

Resources and Tutorials

Jetpack Compose Tutorial Geeks for Geeks on buttons in Kotlin Medium article on Routes in Android Studio

Story Points\ 4-8

TuongPhamM commented 12 months ago

For this function, it must be associated with the "User View" screen which shows a list of events which is from the database. However, I haven't seen any existing user view screen to improve this feature yet.