-
Notifications
You must be signed in to change notification settings - Fork 77
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
Allow claiming of tickets without subscription #2187
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
based on CI, looks like you may need to run yarn
<NEW_UI__ExtraInfo>•</NEW_UI__ExtraInfo> | ||
)} | ||
{ticketData?.attendeeEmail && | ||
ticketData?.attendeeEmail !== ticketData?.attendeeName && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we hiding if email == name?
} else { | ||
setError("No ticket found"); | ||
} | ||
} else { | ||
setError("No ticket found"); | ||
} | ||
} else { | ||
setError("No ticket found"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrap these in one if/else statement?
Closes https://linear.app/0xparc-pcd/issue/0XP-1697/improved-subscription-screen
This adds a new "Claim" screen, which is designed to work specifically with Podbox feeds.
It polls the feed, extracting the POD Ticket PCD from the feed actions, and then presents a preview of the ticket to the user. If the user clicks "Claim", the ticket is added to their PCD collection.
This allows users to collect tickets without needing to subscribe to feeds or to grant ongoing permissions for feeds to access folders, including taking destructive actions like deleting PCDs. It also avoids the overhead of recurring feed polling, both on the client and on Podbox.
To test, get a feed link from Podbox in the same environment you're testing in and then go to https://zupass-url/#/claim?type=ticket&url=
This should show a ticket preview, assuming that you have a ticket available for your email address on the feed in question.