Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar widget - handling single date events that have a startTime AND endTime #1182

Closed
troughc opened this issue Jun 26, 2024 · 16 comments · Fixed by #1330
Closed

Calendar widget - handling single date events that have a startTime AND endTime #1182

troughc opened this issue Jun 26, 2024 · 16 comments · Fixed by #1330
Assignees
Labels
bug Something isn't working enhancement New feature or request To be deployed

Comments

@troughc
Copy link
Contributor

troughc commented Jun 26, 2024

Problem: when a single date event has a start time AND end time, no time is displayed in the widget preview. Only the date is displayed. (single date events with start times DO display the start time in the widget preview)
Expected behaviour: Single date events with start AND end time should display the start time in the widget preview just like single date events with ONLY start times do.

Notes

No change is required for multiple date events (event series) with times. These type of events are displayed in the widget the same way date range events are displayed (with no time included). This is acceptable.
This can be done in between other more important issues (lower priority)

@troughc troughc added the enhancement New feature or request label Jun 26, 2024
@troughc troughc changed the title Calendar widget - handling single date and multiple date (even series) events that have a startTime AND endTime Calendar widget - handling single date and multiple date (event series) events that have a startTime AND endTime Jul 2, 2024
@troughc troughc self-assigned this Jul 2, 2024
@troughc
Copy link
Contributor Author

troughc commented Jul 10, 2024

@SyamBabu-M do you have thoughts on this, how much work would it take? Should we schedule this for after the event series work is done?

@troughc troughc added the question Further information is requested label Jul 10, 2024
@troughc troughc removed their assignment Jul 10, 2024
@SyamBabu-M
Copy link
Contributor

SyamBabu-M commented Jul 11, 2024

@SyamBabu-M do you have thoughts on this, how much work would it take? Should we schedule this for after the event series work is done?

I need to check with @AbhishekPAnil as he is working on the event series right now.

Could you provide a detailed description of the changes required? With this information, I will be able to provide an estimate.

@SyamBabu-M SyamBabu-M assigned troughc and unassigned SyamBabu-M Jul 12, 2024
@troughc troughc changed the title Calendar widget - handling single date and multiple date (event series) events that have a startTime AND endTime Calendar widget - handling single date events that have a startTime AND endTime Jul 16, 2024
@troughc troughc removed the question Further information is requested label Jul 16, 2024
@troughc troughc assigned SyamBabu-M and unassigned troughc Jul 16, 2024
@SyamBabu-M
Copy link
Contributor

@troughc Please test this in CMS staging.

@SyamBabu-M SyamBabu-M assigned troughc and unassigned SyamBabu-M Sep 5, 2024
@troughc
Copy link
Contributor Author

troughc commented Sep 5, 2024

TEsted in staging: PASSED, the time is showing up correctly thank you!
But, see comment below for a couple of small bugs

First: when I switch the widget language from French to english for Tout Culture and then try to leave the tab, I get an error for unsaved changes. However you cannot SAVE the widget settings explicitly. Expected behaviour is that you can change settings in the widget and leave the tab without seeing a save error.

ALTERNATIVE APPROACH: we have to add a save button to that tab.

QUESTIONS
Second: this may or may not impact the widget. When I add an end time to an event, and the end time is on the next day, my event still shows up as a single date (which I think is okay).
My question is, how does this look in the structured data? What is the start-date-time and end-date-time?
To check, please use this event
This event starts in the evening at 8PM and ends the next day at 11AM.

I would also like to know what happens when an event starts at 8PM one evening and ends at 12AM the same night.

Thanks!

@troughc troughc assigned SyamBabu-M and unassigned troughc Sep 5, 2024
@troughc troughc added the question Further information is requested label Sep 13, 2024
@SyamBabu-M SyamBabu-M linked a pull request Sep 17, 2024 that will close this issue
@SyamBabu-M
Copy link
Contributor

SyamBabu-M commented Sep 17, 2024

First: when I switch the widget language from French to english for Tout Culture and then try to leave the tab, I get an error for unsaved changes. However you cannot SAVE the widget settings explicitly. Expected behaviour is that you can change settings in the widget and leave the tab without seeing a save error.

I have made this change. Please test it here

@SyamBabu-M
Copy link
Contributor

I would also like to know what happens when an event starts at 8PM one evening and ends at 12AM the same night.

We would have to add this as a multiday or custom event. If we select a single-day event then we can't add this as the end time 12:00 AM is before 8:00 PM.

Second: this may or may not impact the widget. When I add an end time to an event, and the end time is on the next day, my event still shows up as a single date (which I think is okay).
My question is, how does this look in the structured data? What is the start-date-time and end-date-time?
To check, please use this event
This event starts in the evening at 8PM and ends the next day at 11AM.

This event does not have an end time. Also, I don't think I follow you about the end time being on the next day when its a single day event.
If a event start at 8 PM and ends at 11 am next day, then we will have to save is as a custom event with 2 occurrences.

@SyamBabu-M SyamBabu-M assigned troughc and unassigned SyamBabu-M Sep 17, 2024
@troughc troughc assigned SyamBabu-M and unassigned troughc Sep 17, 2024
@troughc
Copy link
Contributor Author

troughc commented Sep 17, 2024

First: when I switch the widget language from French to english for Tout Culture and then try to leave the tab, I get an error for unsaved changes. However you cannot SAVE the widget settings explicitly. Expected behaviour is that you can change settings in the widget and leave the tab without seeing a save error.

I have made this change. Please test it here

@SyamBabu-M I tested this aspect and it looks good - no save message appears: PASSED
(note there is still the bug with start and end time to be fixed as discussed this morning)

Additionally, when testing, I found a small display bug in the test build - the list doesn't appear when i first go to the widget tab. Steps to reproduce:

  1. Go to the widget tab for Tout Culture. English language is always selected. Notice that the listing on the page is empty (no results found.
  2. show the preview popup - listing is displayed there.
  3. Close the preview popup - listing still not displayed on the page.
  4. switch language to French. listing appears in french
  5. Switch language to English. Listing now appears on the page.
    Expected behavior: Listing results should be displayed at step 1 and all the way through.

Screenshots of step 1 and 2.
step 1
Screenshot 2024-09-17 at 12 00 50 PM

Step 2
Screenshot 2024-09-17 at 12 01 06 PM

@SyamBabu-M
Copy link
Contributor

@troughc I am not able to reproduce this bug after following the steps. When I go to the widget settings page, there is always data in the listing. I will keep an eye on this issue.

@SyamBabu-M SyamBabu-M assigned troughc and unassigned SyamBabu-M Sep 19, 2024
@troughc
Copy link
Contributor Author

troughc commented Sep 19, 2024

Recap of meeting with @troughc and @SyamBabu-M

As discussed, there is no scenario where a user could create a single date (or multiple dates / event series) event that has an individual event that is longer than 24 hours. With these two date types each event could only be as long as 23 hours and 45 minutes in the UI (for example, from 7 AM - 6:45 AM the next day)
Only a date RANGE event (a single event that last longer than a day) can be longer than 24 hours. And Date range events do not allow users to put in a start time and end time. They can only select a start date and an end date.

In process

@SyamBabu-M is investigating a potential issue with multiple dates events (event series with sub events) that occurs when an single subevent goes overnight. And will make sure the CMS properly handles an event (or sub-event) that goes overnight.
Thanks :)

@troughc troughc assigned SyamBabu-M and unassigned troughc Sep 19, 2024
@troughc troughc removed the question Further information is requested label Sep 19, 2024
@troughc
Copy link
Contributor Author

troughc commented Sep 19, 2024

@SyamBabu-M let me know if you would like to move the above outstanding work to a new issue and deploy this one - I realize that the outstandign work it is a bit of a departure from the original request in this issue. Up to you!

@SyamBabu-M
Copy link
Contributor

@troughc We can move this to new issue if the earlier fixed are urgent. Otherwise it ok to work on new requirement as a part of this issue.

@SyamBabu-M SyamBabu-M assigned troughc and unassigned SyamBabu-M Sep 24, 2024
@troughc
Copy link
Contributor Author

troughc commented Sep 24, 2024

@SyamBabu-M let's look at this one together if possible tomorrow, I also created a test event for multidates in Tout Culture called Caitlin Test. We can review it together to make sure it works as intended in terms of how dates are displayed in the widget and in the CMS.

Also, I noticed in the widget display that Some of the dates seem wonky. For example, Passe Partout dates are listed in the wrong order - backwards (i didn't touch this event, I just noticed the issue) :
Image

@troughc troughc added the question Further information is requested label Sep 24, 2024
@troughc
Copy link
Contributor Author

troughc commented Sep 25, 2024

@SyamBabu-M as discussed I am going to write up a new issue with a user story describing how to handle events that go overnight. This will include a UI change suggestion. You do not need to do that work in this issue.

I did a final test and there is one issue (I think we may have lost sight of the expected behaviour in the widget)

Here is the original scenario and criteria to pass this issue:

When a single date event has a start time AND end time, no time is displayed in the widget preview. Only the date is displayed. (single date events with start times DO display the start time in the widget preview)
Expected behaviour: Single date events that include start AND end time should display the start time in the widget preview just like single date events that only have start times do.

Tested in chrome: Did not pass
Problem: For events that have a start time AND end time, both start time and end time are displayed in the listing widget.
Fix: Only display the START time in the listing widget (not the end time).

Also, French time is not displayed correctly. Here is how times are displayed differently in each language
English: 10 PM; French: 22:00

Image

@troughc troughc removed their assignment Sep 25, 2024
@troughc troughc added bug Something isn't working enhancement New feature or request and removed enhancement New feature or request question Further information is requested labels Sep 25, 2024
@SyamBabu-M SyamBabu-M assigned troughc and unassigned troughc and SyamBabu-M Sep 27, 2024
@troughc
Copy link
Contributor Author

troughc commented Sep 30, 2024

Tested: PASSED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request To be deployed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants