we-dance / platform

Community platform for dancers
https://wedance.vip
GNU General Public License v3.0
46 stars 55 forks source link

Create NFC card #347

Open JamesRobey12 opened 1 year ago

JamesRobey12 commented 1 year ago

As a card producer I want to get a unique link for the card so that I can write it and send it to the dancer.

Acceptance criteria:

  1. There is a “NFC cards” item in the main navigation.
  2. “NFC cards” item is shown only for accounts with a role “Card Producer” (account has a cardProducer=true)
  3. When I click “NFC cards” it takes me to NFC cards Dashboard (url: /admin/nfc-cards, see https://wedance.vip/admin/cities as example)
  4. By default the list is empty and it shows “There are no cards yet. Add a new one”.
  5. When I click on “Create New” then a new NFC card is added to the list.
  6. NFC card has a state “unused”.
  7. NFC card has an url.
  8. NFC card has a linked profile username, default is undefined.
  9. I can copy the link of the card, write it to the card and set the state to “used”.
  10. The NFC card url has the following format: “WeDance domain + nfc + serial number”.

Example of an NFC card url: https://wedance.vip/nfc/yLzS9fZOJVRPAjZzkTmi