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

Allow claiming of tickets without subscription #2187

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

robknight
Copy link
Member

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.

Copy link

linear bot commented Dec 13, 2024

@robknight robknight requested a review from rrrliu December 13, 2024 22:21
Copy link
Collaborator

@rrrliu rrrliu left a 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 && (
Copy link
Collaborator

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?

Comment on lines 141 to 149
} else {
setError("No ticket found");
}
} else {
setError("No ticket found");
}
} else {
setError("No ticket found");
}
Copy link
Collaborator

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?

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

Successfully merging this pull request may close these issues.

2 participants