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

[Frontend/Backend] Add Functionality to Manage Team Information and Hardware Orders #15

Open
thomaslin2020 opened this issue Oct 21, 2023 · 0 comments
Assignees

Comments

@thomaslin2020
Copy link
Collaborator

thomaslin2020 commented Oct 21, 2023

Description: Develop the backend model for teams and implement functions to query and edit the team name and orders. You can use random strings for UserIDs and HardwareIDs for now. You can refer to this PR for details on how to setup models with firebase.

Below is an example of the models associated with the team page:

Team Model:

  • TeamID (Unique Identifier)
  • TeamName (String)
  • Members (Array of UserIDs)
  • Orders
  • Description (String)
  • Items (Array of OrderItems)

OrderItem Model

  • OrderID (Unique Identifier)
  • Description (String)
  • Status (String)
  • Created (timestamp)
  • Updated (timestamp)
  • Quantity (int)
  • HardwareID (HardwareID)

Backend Queries & Functions:

  1. Edit Team Name:

    • Firebase Function to update TeamName in the Team Model.
  2. Manage Hardware Orders:

    • Query to retrieve all hardware orders associated with the team using TeamID.
    • Firebase Function to add a new hardware order to the Hardware Order Model. This can be done through a popup dialog after the plus button is clicked. Note that the inventory (which includes quantity of hardware) is being developed in the hardware page issue.
    • Firebase Function to edit an existing hardware order in the Hardware Order Model.
    • Firebase Function to delete a hardware order from the Hardware Order Model.
  3. View Hardware Order Status:

    • Query to retrieve the status of each hardware order using OrderID.

Frontend Displays:

  1. Team Members:

    • Query to retrieve all UserIDs associated with the team and display the user details.
  2. Team Name:

    • Query to retrieve and display the current name of the team using TeamID.
  3. Team Orders:

    • Query to retrieve all hardware orders associated with the team using TeamID and display a summarized view of the orders.
  4. Hardware Details: (This will be done after the hardware page is done)

    • A link or button that redirects to the "Hardware Detail Page." This page will use a query to retrieve and display the details of each hardware order using OrderID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants