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

Active -> Inactive on Approved Matches #68

Open
6 tasks
dilanurbayraktar opened this issue Jan 19, 2025 · 0 comments
Open
6 tasks

Active -> Inactive on Approved Matches #68

dilanurbayraktar opened this issue Jan 19, 2025 · 0 comments
Assignees

Comments

@dilanurbayraktar
Copy link
Collaborator

dilanurbayraktar commented Jan 19, 2025

Active -> Inactive on Approved Matches

Summary 💻

Welcome back! This ticket contains some back-end fun. We know you missed it 😁

For this ticket, you will be working on the "Move to Inactive" functionality that moves a tutor-tutee pair from the Active tab to the Inactive tab on the Approved Matches table. Do you see the three dots on every entry?

When clicked on the three dots, we want a "Make Inactive" option to appear. To make it look pretty, please also add a Delete icon next to "Make Inactive". The Delete icon is in frontend/src/assets/images.

After clicking on "Make Inactive", we want three things to happen:

  • The pair should now be moved to the Inactive tab.
  • The tutor of that pair should be moved to Unmatched in the Tutor Database page.
  • The tutee of that pair should be moved to Unmatched in the Tutee Database page.
Image

Deliverables 🚀

  • Schedule at least two meetings as a pair
  • Create a new branch using the "create a branch" button
  • Create your endpoint
  • Create your frontend endpoint fetch
  • See if the data is displayed with your dev server
  • Open a PR and request review from @brandondionisio.

Tip for success 📈

  • On the backend, if you go to the approved_matches table on Neon, you should see an "active?" field. When the "Make Inactive" button is clicked, we want the field to be set to False for that pair.
  • To complete this ticket, implement a moveToInactive() function in /backend/src/index.ts.

Where to get help!

Reach out to @dilanurbayraktar and @brandondionisio.

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

3 participants