BCStudentSoftwareDevTeam / celts

Web app to support the CELTS program at Berea College
BSD 3-Clause "New" or "Revised" License
1 stars 8 forks source link

Multiple Offerings and Recurring Events Refactor #1349

Open ojmakinde opened 1 month ago

ojmakinde commented 1 month ago

Issue Description

Fixes #1335

Changes

Testing

thealphagurlux commented 3 weeks ago

The UI for the recurring events looks a little bit awkward when you first click on it and the style of the button is not consistent with the UI with the rest of the site.

ss1

I suggest changing the text of the button to something like "add another offering" and have the pop-up look populate like this by default

ss2

One last thing the button only appears in the center of the window, but you can click the highlighted area and it still activates its function.

ss3

Karina-Agliullova commented 3 weeks ago

There is an issue with the toggle for multiple offerings, specifically, with the weekly option. If on the multiple offerings modal, we select weekly toggle, then we cancel it so that modal closes, then we reopen the modal for multiple offerings, and click on the weekly toggle, it shows the unconstructed table with Generated Events, but it is empty because I did not yet create any event, so it seems awkward to have a table with column names but no information. The table shouldn't be generated at all if only I did not already create the weekly event with the information. Screenshot (25)

Karina-Agliullova commented 3 weeks ago

Another issue with the weekly toggle for multiple offerings is that it saves all the information that I add to it. So if I create an event with a weekly toggle, and then I cancel it, and then reopen the modal, it will still show the modal with all the information I input previously, which shouldn't be the case unless we save it

Karina-Agliullova commented 3 weeks ago

Screenshot (27) When I open the modal, and I do not input any information, and hit Save, it executes successfully even though it shouldn't. It creates an empty table with no information, just the column names. And that is the same way if I click on the toggle for weekly events in the modal, and I don't input any information, and hit Save, it says that Events created, even though it is empty

Karina-Agliullova commented 3 weeks ago

Another problem is with the error message in the modal. If I open the modal, and I click on the add button to add events, and I do not input any information, and hit Save, it highlights everything in red, which is good, and leaves an error flash warning message. That is good. But when I cancel the modal and reopen it, there is a warning message left still even though it is not applicable to the new modal opening. Screenshot (29)

Karina-Agliullova commented 3 weeks ago

Also, the spacing for the weekly option in multiple offerings seems too tight. It would be nice to give it some space between the boxes and texts

thealphagurlux commented 3 weeks ago

When making a event occur more than once the name input into the pop-up window will be what the event is displayed as in the event list ss1

ss2

ss3

When saving the recurring event the event name on the create event page should probably reflect whatever changes are made in the pop-up window

Karina-Agliullova commented 3 weeks ago

When I create an event, and I add multiple time offering, but I don't input all the info, like I only input Event name, but no dates for multiple offerings, and it still saves it even though it displays the empty table, and I add all the other info outside of modal, like place and description, and then save an event, it throws an error Screenshot (30)

Karina-Agliullova commented 3 weeks ago

Something is going on with the datepicker in the modal. I selected the date for today but the time is later than what it is right now, and it is throwing me a warning, saying that I picked the date in the past Screenshot (31)

ojmakinde commented 3 weeks ago

Something is going on with the datepicker in the modal. I selected the date for today but the time is later than what it is right now, and it is throwing me a warning, saying that I picked the date in the past Screenshot (31)

I just tested this in development and the issue exists in development as well. Will fix in this PR though. Thanks for catching that.

github-actions[bot] commented 1 week ago

View Code Coverage