Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

New sign for building hours & occupancy #186

Merged
merged 6 commits into from
Oct 1, 2020
Merged

New sign for building hours & occupancy #186

merged 6 commits into from
Oct 1, 2020

Conversation

cappadona
Copy link
Contributor

When open, live occupancy data is displayed.

Initial implementation for following libraries:

  • Mann
  • Olin
  • Uris

Route is /{{libraryName}}/building

Resolves #181

Screenshot_2020-09-29 Mann - Hours

Screenshot_2020-09-29 Uris - Hours

Screenshot_2020-09-29 Olin - Hours

Need a third child to keep the grid happy. Will be refactored soon when
the header is promoted to a component.
* Use viewport width for responsive font-size instead of viewport height
* Use flexbox (column) for hours status when it has the main stage
Trying this alternative approach since the LiveOccupancy component
wasn't reacting to current Vuex state for occupancy when switching from
closed to open.

Still not 100% convinced this is a home run (I noticed a flicker of Max
Capacity rendering after switching to open) but will test in the wild
for a couple days.

Great reference for new-ish fetch in Nuxt [1] that helped point me in
this alternative direction (see note about mutating local data).

[1]: https://nuxtjs.org/blog/understanding-how-fetch-works-in-nuxt-2-12#new-fetch
@cappadona cappadona self-assigned this Sep 29, 2020
@cappadona cappadona temporarily deployed to signage-pr-186 September 29, 2020 15:56 Inactive
@cappadona
Copy link
Contributor Author

@sew268 @eeh53 You can view the Mann sign on this temp instance:
https://signage-pr-186.herokuapp.com/mann/building

Copy link

@sew268 sew268 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks amazing! Will this live on 1 LCD and the 2nd will house the hours at other open locations and the upcoming events?

@cappadona
Copy link
Contributor Author

cappadona commented Sep 29, 2020

Thanks @sew268 😃

Yes this is for the first of the two signs we discussed last week. The plan for the second sign is to promote upcoming events. I don't have anything in my notes re: hours at other locations but please see #182 and feel free to edit/comment with any additional data you want included there.

@cappadona cappadona merged commit cd63466 into main Oct 1, 2020
@cappadona cappadona deleted the hours-capacity branch October 1, 2020 15:52
@cappadona
Copy link
Contributor Author

Deployed to production 🚀

cappadona added a commit that referenced this pull request Sep 20, 2021
For spaces, when categories are involved, we need to be able to use
either the main hours from the parent library, or override using the
category's hours.

Accidentally introduced bug when implementing building occupancy signs
in #186. As a result, all hours were returned and first in the list
(Africana) was being used for all spaces signs.
cappadona added a commit that referenced this pull request Sep 21, 2021
For spaces, when categories are involved, we need to be able to use
either the main hours from the parent library, or override using the
category's hours.

Accidentally introduced bug when implementing building occupancy signs
in #186. As a result, all hours were returned and first in the list
(Africana) was being used for all spaces signs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mann: Hours & Live Occupancy
2 participants