ResistanceCalendar / resistance-calendar-frontend

A central listing of upcoming progressive events
https://resistance-calendar-staging.herokuapp.com/
MIT License
7 stars 8 forks source link

Replace Date and Time "PLACEHOLDER" text with properly formatted dates and times #116

Closed InciteDemocracy closed 7 years ago

InciteDemocracy commented 7 years ago

Replace dummy dates and timezone placeholders with the real deal :)

screenshot 2017-04-20 11 57 31

dorono commented 7 years ago

@aaghevli @pdw207 @pfarnach - With regards to getting the timezone - do you know if we are going to be using the location coords to calculate that, or is there going to be a property in the event object with that? (sorry, I've been out of the loop on Slack for the past few days, so perhaps this was already discussed)

InciteDemocracy commented 7 years ago

Displaying event time zones doesn't seem to be super important. Event times can be displayed in the local time (for where the event is taking) place in v1.

aaghevli commented 7 years ago

Hey @dorono, all times should be returned in UTC format, making the use of libraries like moment.js possible to convert to the local timezone client side.

Doing it otherwise requires you to send the lat/long to the server, which complicates caching.

dorono commented 7 years ago

@InciteDemocracy - 2 questions: 1) just to confirm - although the mockup shows "6:00 -9:00 PM EST", we can leave off the "EST", right? 2) Are you cool with the fact that we only have a start time coming from the API, so, assuming that we don't have the timezone is the time display, what the user would see in this case would be "6:00 PM". Is this OK?

InciteDemocracy commented 7 years ago

Eventually we will def want start time + end time Of course start time is the most important time info, so starting with that would be great! Are you sure there is no end time currently included in the API?

dorono commented 7 years ago

@InciteDemocracy OK, we now have the end time thanks to @aaghevli. :) Arash is still working on getting us the timezone data we'll need in order to convert the time to the local timezone of the event, but in the meantime, I had 2 more questions for you, @InciteDemocracy

  1. Is it OK if we keep the "AM" or "PM" after the start time, so instead of, what you have on the mockup, which is "6:00 to 9:00 PM", we'd have "6:00 PM to 9:00 PM"? Never mind, it will be easy to display as you have in the mockup, so I'll stick with that.
  2. How likely is it that we will get multi-day events, and if it is at least somewhat likely, did you have any thoughts as to how you'd like to display those, keeping in mind that we would probably need to break down into a new line due to width constraints for mobile portrait view?
InciteDemocracy commented 7 years ago

There are a fair number of multi day events...

The simplest fix is to drop the day of the week and the time, and only display the start and end dates: screenshot 2017-04-23 08 08 45

A step up from there would be to include the start time on the first day and the end time on the last day like this:

screenshot 2017-04-23 08 08 58

aaghevli commented 7 years ago

Hey all, dates are now in the returned endpoint. Will be available on next FB ETL run. Thanks!

dorono commented 7 years ago

@InciteDemocracy - should be doable for the multi-day events, will work on it in the next couple of days.

pdw207 commented 7 years ago

@dorono I'm assuming we are off by one day due to timezone.

screen shot 2017-04-27 at 9 29 51 am
dorono commented 7 years ago

@pdw207 - Yes, I've got it working locally, just have been away from the project due to my being sidelined with strep. The only thing I have left to do is update the functionality for multi-day events.

dorono commented 7 years ago

Will try to work on this today, as I'm starting to feel normal again.

dorono commented 7 years ago

@InciteDemocracy - Removed the timezone display requirement from this ticket and broke it off into https://github.com/ResistanceCalendar/resistance-calendar-frontend/issues/129, since it's a decent amount of effort, and as we discussed, not 100% essential for MVP.