AthletiFi / athletifi-website

Official website for AthletiFi
https://www.athleti.fi
1 stars 5 forks source link

Referral feature: Frontend (Next.js) - Revoke Access #241

Closed qisforq closed 2 weeks ago

qisforq commented 2 months ago

Objective:

Create a section on the settings page to allow users to manage and revoke access for invited guests and remove themselves from cards they were invited to view.

Sub-tasks:

  1. Create a section on the settings page to display the list of guests invited to view the user's cards.
  2. Make an API call to the backend endpoint that retrieves the list of guests invited to view the user's cards.
  3. Display the list of guests, showing their name, email, the card they were invited to view, and a 'Revoke Access' button, using the data returned from the API.
  4. Create another section to display the list of cards the user has been invited to view as a guest.
  5. Make an API call to the backend endpoint that retrieves the list of cards the user has been invited to view as a guest.
  6. Display the list of cards, showing the card details, the owner's name, and a 'Remove Myself' button, using the data returned from the API.
  7. Implement the functionality to trigger the backend Lambda function when either the 'Revoke Access' or 'Remove Myself' button is clicked, by making an API call to the respective backend endpoint.

    Image

qisforq commented 3 weeks ago

Done - in branch referralsDataLogic - PR upcoming