-
Notifications
You must be signed in to change notification settings - Fork 0
feat: support questionnaire answers in RSVP command #72
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
bcb9474
feat: support questionnaire answers in rsvp command
KalebCole 84d4f03
fix(rsvp): preserve questionnaire state safely
KalebCole 58906a3
fix(rsvp): address review edge cases
KalebCole ec9e823
feat(rsvp): verify questionnaire answers via Firestore
KalebCole e9f56e9
Refine RSVP command namespace
KalebCole be00d68
Merge remote-tracking branch 'origin/main' into feat/rsvp-questionnai…
KalebCole 39a6533
docs: align RSVP design and request test
KalebCole File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,23 @@ | ||
| # RSVPs and Interest | ||
|
|
||
| ```bash | ||
| partiful events rsvp <event-id> --dry-run | ||
| partiful events rsvp <event-id> --status going | ||
| partiful events rsvp <event-id> --status going --plus-one "Alex Smith" | ||
| partiful events rsvp <event-id> --status maybe --message "I may be late" | ||
| partiful events rsvp <event-id> --status declined | ||
| partiful events rsvp get <event-id> | ||
| partiful events rsvp set <event-id> --dry-run | ||
| partiful events rsvp set <event-id> --status going | ||
| partiful events rsvp set <event-id> --status going --plus-one "Alex Smith" | ||
| partiful events rsvp set <event-id> --status maybe --message "I may be late" | ||
| partiful events rsvp set <event-id> --status declined | ||
| partiful events interested <event-id> | ||
| partiful events interested <event-id> --remove | ||
| ``` | ||
|
|
||
| `explore rsvp` and `explore interested` are equivalent aliases. | ||
| `events rsvp get` reads your saved status and questionnaire answers without changing the RSVP. `explore rsvp get`, `explore rsvp set`, and `explore interested` are equivalent aliases under the discovery command group. | ||
|
|
||
| The current CLI cannot complete ticket purchases or host questionnaires. Questionnaire response fields are known internally, but `events rsvp` exposes no answer option and deliberately rejects questionnaire-gated events. Use Partiful directly for either flow. | ||
| For questionnaire events, pass one repeatable answer per question. Keys may be the question ID or its exact text: | ||
|
|
||
| ```bash | ||
| partiful events rsvp set <event-id> --answer "<question-id>=<value>" | ||
| partiful events rsvp set <event-id> --answer "Dietary restrictions?=None" --answer "Song request?=Anything" | ||
| ``` | ||
|
|
||
| Required answers are validated before submission. Successful writes read the Firestore guest document back to verify the saved status and questionnaire answers. Plain `--dry-run` remains offline; combining `--answer` with `--dry-run` performs read-only guest and event lookups to validate the live questionnaire preview. Ticketed or paid events remain unsupported because the CLI cannot purchase tickets. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.