GithubHelp home page GithubHelp logo

hopscotch's People

Contributors

adityabilawar avatar skiwee45 avatar varunsingh87 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

adityabilawar

hopscotch's Issues

My Team available when not logged in

The "My Team" tab is available when the user is not logged in, so on production when a user goes to it, it indicates that a client-side error occurred.

Expected Behavior: The My Team tab only appears when the user is logged in AND the user is in the competition

Competition Participation

Competition Teams

Users can create and join teams for a competition, and the submission is attached to this team.

Requirements

  • A logged in user can join a competition, becoming a participant
  • A teams page lists all teams
  • Teams have a max of 4 people
  • A participant may switch from a one-participant team to a new team by fulfilling the above conditions
  • A participant may leave a competition, but this action is irreversible to enforce commitments to teams
  • To switch teams, one of the following must happen:
    • a participant must submit a join request and (a member of) the team must accept the request
    • the team (member) must invite the participant and the participant must accept the invite
  • Currently joined competitions show up at top of home page for a user

Software Design

Schema Changes

  • submissions table -> teams table as an object property:
ID Competition Submission Join Requests
TEAM_1 COMPETITION_1 SUBMISSION_1 [USER_ID_4]
TEAM_2 COMPETITION_1 SUBMISSION_2 [USER_ID_5, USER_ID_6]
TEAM_3 COMPETITION_2 SUBMISSION_3 []
  • New table: participants:
User Team
USER_ID_1 TEAM_1
USER_ID_2 TEAM_1
USER_ID_3 TEAM_2
USER_ID_1 TEAM_3

Indexes: by_user, by_team

With this normalized database design, switching and joining teams is simple and efficient.

Competition Participation.pdf

Subtasks

CRUD Posts

Create Posts
Read beethovons list
Update Beethovons
Delete Beethovons (after clicking)

Submissions and Gallery

Submissions in Gallery

Description

Requirements

Software Design

Schema Changes

State Diagram.pdf

Subtasks

Team Collaboration

Team Collaboration

Allow users who have entered the competition to find and collaborate with teammates. (Front-end team commitment enforcement)

Requirements

  • A competition participant can view possible teammates: formed teams and participants
  • The team list allows a competition participant to switch teams as described in #10
    • The teams list is sorted in ascending order of team size (one-person teams appear first)
  • When making a join request, the requestor may put a message that will be viewed in the team's dashboard
  • Each competition participant can view a dashboard only visible to his teammates containing
    • team chat
    • join requests
    • invitations, the status, and the people involved (who invited and who is being invited)
  • Teammates can chat with each other in a chat only visible to his teammates
    • Chats are plaintext messages and links
  • Any teammate can invite a participant from the teams list
    • Invitations can be made with a message that is viewable by the team and the potential joiner
  • When making both join requests and invitations, the user is reminded visually to include contact information. This is a temporary requirement until join request chats are implemented

Software Design

Schema Changes

New table: messages

Team ID Sender Message
TEAM_1 USER_1 Hello team!
TEAM_1 USER_2 Hi user 1!
TEAM_2 USER_5 Sample

Indexes: by_team

The _creationTime built-in column should be used for this table.

[12] Team Collaboration State Diagram

Cross Chats

Cross Chats

Ability for teammates to chat with someone they invited or who requested to join (each a "team switcher") the team.

Requirements

  • Two participants in the same competition on different teams may send private messages ("direct chat") to each other in a chat window for the purpose of deciding whether to switch teams
    • To initiate a private chat, one participant invites and the other must accept.
  • All participants of a team and a participant in the same competition but on a different team may send messages in a group chat window for the purpose of deciding whether to join the team ("group chat")
  • These chat windows are accessible from a list of all of the team switcher chats, which appear under the Find Teammates tab

Software Design

Schema Changes

New table: direct_chats

Initiator Receiver Competition Status
USER_1 USER_2 COMPETITION_1 0
USER_1 USER_3 COMPETITION_1 1

New table: group_chats

Team Potential_Joiner Competition Status
TEAM_1 USER_4 COMPETITION_1 1
TEAM_2 USER_5 COMPETITION_3 1

New table: direct_messages

Chat Sender
CHAT_1 USER_3
CHAT_2 USER_5
CHAT_1 USER_2

New table: group_messages

Chat Sender
CHAT_1 USER_3
CHAT_2 USER_5
CHAT_1 USER_2

Rename table: messages --> team_messages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.