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

Add features to participant preview #252

Merged
merged 23 commits into from
Sep 27, 2024
Merged

Add features to participant preview #252

merged 23 commits into from
Sep 27, 2024

Conversation

vivtsai
Copy link
Collaborator

@vivtsai vivtsai commented Sep 26, 2024

  • Fix layout bugs for stage views
  • Add imageId fields to survey (multiple choice), chat (discussion thread), election stages and use Firebase storage to retrieve images
    • NOTE: This currently means manually loading frontend/assets images to the storage emulator. Filed #254 to create a script to help populate and #255 to create a frontend gallery so users can directly upload/select images
  • Add fields to base stage (and use in rendering waiting, progress components):
    • waitForAllParticipants: boolean - wait until all non-obsolete participants have unlocked stage
    • minParticipants: number - wait until minParticipants (0 by default) have unlocked stage
    • showParticipantsCompleted: boolean - if true, render progress_stage_completed component in footer
  • Hardcode WTL logic for election/ranking
  • Add ready to end chat discussion progress view
  • Update info/help icons to use custom modal

Note that this currently requires adding image assets to Firebase
storage, including the Firebase storage emulator. Will open a feature
request for adding a script to populate the storage emulator.
Instead of hardcoding based on LAS game, use the new imageId field
(try rendering image if field is not empty).
Instead of hardcoding based on LAS game, use the new imageId field.
Show waiting screen if the current stage has not reached min
participants, or if waitForParticipants is set to true and some
participants have not yet unlocked the stage.
@cjqian
Copy link
Member

cjqian commented Sep 27, 2024

LGTM. Is it expected that images don't render locally?

@cjqian cjqian marked this pull request as ready for review September 27, 2024 01:20
@vivtsai
Copy link
Collaborator Author

vivtsai commented Sep 27, 2024

Is it expected that images don't render locally?

Yes, but you can load them into the emulator—see PR description:

NOTE: This currently means manually loading frontend/assets images to the storage emulator. Filed #254 to create a script to help populate and #255 to create a frontend gallery so users can directly upload/select images

@vivtsai vivtsai linked an issue Sep 27, 2024 that may be closed by this pull request
@vivtsai vivtsai merged commit 0c82a1a into main Sep 27, 2024
1 check passed
@vivtsai vivtsai deleted the preview branch September 27, 2024 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment