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

Show an indicator corresponding to the room full capacity rate #79

Closed
5 tasks done
fcamblor opened this issue Mar 24, 2024 · 4 comments
Closed
5 tasks done

Show an indicator corresponding to the room full capacity rate #79

fcamblor opened this issue Mar 24, 2024 · 4 comments

Comments

@fcamblor
Copy link
Collaborator

fcamblor commented Mar 24, 2024

Floxx app should be able to send us realtime rooms' full capacity rate so that we can display it into voxxrin.

Impacts :

  • @fcamblor Provide a dedicated endpoint for Floxx App with a dedicated token to access it
  • @fcamblor This endpoint will fill a dedicated (public) firestore collection /events/{eventId}/roomsStats having following structure :
{
    "1709": { // 1709 is a room ID, DevoxxFR's Amphi Bleu here...
        "lastUpdatedOn": "2024-04-17T07:02:15Z",
        "fullCapacityRate": 1.0
    },
    "1705": {
        "lastUpdatedOn": "2024-04-18T08:28:00Z",
        "fullCapacityRate": 0.93
    }
...
}
  • @fcamblor On schedule page, we should display an indicator for upcoming rooms having a talk in it :
    • If we didn't get any fullCapacityRate raised by red coats (we don't have any entry for target room OR lastUpdatedOn for this room is before previous talk's end time minus 10% of its duration OR lastUpdatedOn for this room is after target talk's end time minus 10% of its duration), we should display a small "?" indicator
    • If fullCapacityRate is < 0.6, we should display a green indicator stating there are still plenty of available seats
    • If fullCapacityRate is >= 0.6 and < 0.8, we should display a yellow indicator stating the room is becoming crowded
    • If fullCapacityRate is >= 0.8 and < 0.99, we should display a red indicator stating that only few seats are left
    • If fullCapacityRate is >= 0.99, we should display a black indicator that the room is full
  • @robinlopez to provide UI for this indicator
  • @fcamblor to check if an event crawling is not going to reset room stats (we've got a strange behaviour on wed 3rd, where every room capacities were resetted)

@robinlopez If you could think about an indicator above schedule cards to show this colored information, it would be nice (given that it's only a temporary information useful only for next talks, I would not add this INSIDE the card, but maybe ON TOP of it) :

Voxxrin_-_Your_conference_companion

fcamblor added a commit that referenced this issue Mar 28, 2024
fcamblor added a commit that referenced this issue Mar 28, 2024
fcamblor added a commit that referenced this issue Mar 28, 2024
fcamblor added a commit that referenced this issue Mar 28, 2024
fcamblor added a commit that referenced this issue Mar 28, 2024
fcamblor added a commit that referenced this issue Mar 28, 2024
+ filling this document during crawling
+ provided migration script to fill it for previous events
fcamblor added a commit that referenced this issue Mar 28, 2024
…oken() utility methods by using ts-pattern instead of type guard function
fcamblor added a commit that referenced this issue Mar 28, 2024
fcamblor added a commit that referenced this issue Mar 29, 2024
fcamblor added a commit that referenced this issue Mar 29, 2024
fcamblor added a commit that referenced this issue Mar 30, 2024
fcamblor added a commit that referenced this issue Mar 30, 2024
fcamblor added a commit that referenced this issue Mar 30, 2024
fcamblor added a commit that referenced this issue Mar 31, 2024
fcamblor added a commit that referenced this issue Mar 31, 2024
fcamblor added a commit that referenced this issue Mar 31, 2024
@fcamblor
Copy link
Collaborator Author

fcamblor commented Apr 3, 2024

Here is the UI for room capacity indicators (these are only displayed for upcoming time slots)

Cursor_and_Voxxrin

@robinlopez
Copy link
Collaborator

@fcamblor Design adjustment OK
Capture d’écran, le 2024-04-05 à 15 09 55
Capture d’écran, le 2024-04-05 à 15 10 17

@fcamblor
Copy link
Collaborator Author

fcamblor commented Apr 5, 2024

Great idea to have a dedicated icon for full rooms ! 😍

fcamblor added a commit that referenced this issue Apr 6, 2024
…ndicator on every talks within a timeslot, regardless if we got an indication (or not)

fixup! #79 refactored room-capacity-indicator component in order to centralize level properties
fcamblor added a commit that referenced this issue Apr 6, 2024
…ndicator on every talks within a timeslot, regardless if we got an indication (or not)

fixup! #79 refactored room-capacity-indicator component in order to centralize level properties
fcamblor added a commit that referenced this issue Apr 6, 2024
fcamblor added a commit that referenced this issue Apr 6, 2024
…ndicator on every talks within a timeslot, regardless if we got an indication (or not)

fixup! #79 refactored room-capacity-indicator component in order to centralize level properties
fcamblor added a commit that referenced this issue Apr 6, 2024
fcamblor added a commit that referenced this issue Apr 6, 2024
…ndicator on every talks within a timeslot, regardless if we got an indication (or not)

fixup! #79 refactored room-capacity-indicator component in order to centralize level properties
fcamblor added a commit that referenced this issue Apr 6, 2024
fcamblor added a commit that referenced this issue Apr 7, 2024
…ndicator on every talks within a timeslot, regardless if we got an indication (or not)

fixup! #79 refactored room-capacity-indicator component in order to centralize level properties
fcamblor added a commit that referenced this issue Apr 7, 2024
@fcamblor
Copy link
Collaborator Author

fcamblor commented Apr 7, 2024

closing as I'll consider this as merged into develop

@fcamblor fcamblor closed this as completed Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants