psu-software-engineering-capstone / walktober

Walktober is a yearly fitness challenge at PSU and this project is to design a software platform for it. The platform is modern, responsive, improved design and analytics and simplified configuration. Let's create the best Walktober experience!
Other
5 stars 3 forks source link

297 team creation channel #325

Closed marobertson11 closed 1 year ago

marobertson11 commented 1 year ago

Alrighty, so this pull request will do a couple of things.... 1) Changes the output on a number of pages to include commas when the number should have one (See figure 1) 2) Showing the total steps on the homepage underneath where it shows the day's steps (See figure 1) 3) Also added where if the user has no steps entered for the day, it will say 0 on the home page 4) Automatically assigns a newly created team a channel id (whether it is an open team or made by a user (occurs in the teamJoin and admin pages) 5) If the team is deleted because all members leave it, then the channel id will be reopened and allowed to be matched up with a new team (occurs in the teamHome page) image (Figure 1)

PLEASE NOTE: THIS METHOD HAS A CAP AS IT CAN ONLY ASSIGN CHANNEL_IDS THAT ARE IN THE DATABASE, SO THERE CAN ONLY BE SO MANY THAT ARE ASSIGNED A CHANNEL ID BEFORE THEY RUN OUT (THERE ARE ONLY 50 TEAMS, THEREFORE ONLY 50 CHANNEL IDS) Closes #297