Tytan888 / CSSWENG-S11-G1

0 stars 0 forks source link

Hiding/unhiding attributes in displaying donations/sponsors in admin view. #7

Closed rpineda26 closed 11 months ago

rpineda26 commented 11 months ago

💾 Description: The admin view of the donations and sponsors displays the list of records along with options to hide/unhide some of the attributes for a better user experience. However, it doesn't make sense to allow the admin to unhide all attributes at the same time. There must be at least one attribute that is actively shown.

image image

⏰ Expected Outcome: There must be a condition that the last active attribute must not have the option to be hidden.

☎️ Actual Outcome: All the attributes of a donation/sponsor can be hidden at once, resulting in the page rendering no donations/sponsors.

🎶 Steps to Reproduce:

  1. Populate the database with donation/sponsor records.
  2. Go to the admin view of the donation/sponsor with admin authorization.
  3. Hide all attributes at once.
Tytan888 commented 11 months ago

🛠️ Fix: Removed the option to hide 'Donation Id' to avoid the problem of hiding all attributes at once. This will ensure that at least one attribute remains in the table displayed by the lookup page. bugfix

New Output/Behavior: Even with all checkboxes turned off, the table still displays the 'Donation Id' attribute.