Provides a button for adding tickets to a CSV pipeline, if and only if that CSV pipeline is configured to emit EdDSA or POD ticket PCDs.
This works by showing a pop-up modal to collect the details of the ticket to add, then appending that to the options.csv member of the pipeline definition, then saving and reloading the pipeline definition with the updated data.
As with other things, the UX may be janky as there's no great transactional way of updating pipeline definitions at the moment, so if two people are editing the pipeline definition at the same time they may find that their edits fail until the page is reloaded.
Screenshots
New button:
Popup modal:
The drop-downs for "Event name", "Ticket name" and "Image URL" are populated with values previously used for those columns in the existing CSV data. Since users probably want to re-use the same values over and over again, this will save typing for these fields. The first value is pre-selected as the default. New values can be specified by clearing the selection and typing a new value, which will then become available for selection in subsequent uses of the popup.
Newly-added values are immediately visible in the pipeline's "Data" section:
Closes https://linear.app/0xparc-pcd/issue/0XP-983/add-manual-ticket-on-csv-pipeline
Provides a button for adding tickets to a CSV pipeline, if and only if that CSV pipeline is configured to emit EdDSA or POD ticket PCDs.
This works by showing a pop-up modal to collect the details of the ticket to add, then appending that to the
options.csv
member of the pipeline definition, then saving and reloading the pipeline definition with the updated data.As with other things, the UX may be janky as there's no great transactional way of updating pipeline definitions at the moment, so if two people are editing the pipeline definition at the same time they may find that their edits fail until the page is reloaded.
Screenshots
New button:
Popup modal:
The drop-downs for "Event name", "Ticket name" and "Image URL" are populated with values previously used for those columns in the existing CSV data. Since users probably want to re-use the same values over and over again, this will save typing for these fields. The first value is pre-selected as the default. New values can be specified by clearing the selection and typing a new value, which will then become available for selection in subsequent uses of the popup.
Newly-added values are immediately visible in the pipeline's "Data" section: