Skip to content

feat(#12): add dm command (web UI redirect) - #32

Closed
KalebCole wants to merge 1 commit into
mainfrom
feat/dm-command
Closed

KalebCole wants to merge 1 commit into
mainfrom
feat/dm-command

Conversation

@KalebCole

Copy link
Copy Markdown
Owner

Summary

  • Adds partiful dm <eventId> command for direct messaging guests
  • DMs are blocked by Firestore security rules (all subcollections 403, all API endpoints 404)
  • Implements browser redirect pattern (same as blast command) with clipboard-ready message

Closes #12

Test plan

  • node partiful dm <eventId> --to "Name" --message "Hey!" shows web UI instructions
  • Message is displayed ready to paste
  • Help text includes dm command

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e88ac3c4d7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread partiful
// If --to is provided, try to show the matching guest from the guest list
if (options.to) {
try {
const summary = await getGuests(eventId, {});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle missing auth when --to guest lookup is best-effort

This lookup path is documented in-code as optional (// Guest lookup failed, continue anyway), but calling getGuests here can terminate the whole command via loadConfig() (which calls process.exit(1) when auth config is missing), so partiful dm <eventId> --to ... exits before printing the web-UI instructions. This makes --to unexpectedly break the redirect workflow in unauthenticated environments instead of gracefully skipping lookup.

Useful? React with 👍 / 👎.

@KalebCole

Copy link
Copy Markdown
Owner Author

Code Review Spec — PR #32 (dm)

[Important] Simplify to API limitation notice

Remove guest lookup, clipboard references, and --to/--message flags. The command should just print that DMs are an API limitation and point to the web UI URL. No workarounds or paste-ready messages. Update help text accordingly.

[Important] Help text claims clipboard copy

Currently says "copied to clipboard" but no copy actually happens. Moot if we simplify per above, but if any message printing remains, don't claim clipboard behavior.

[Suggestion] Silent error swallowing

The catch (e) {} in sendDM() silently eats all errors including auth failures. Moot if guest lookup is removed per above, but worth noting as a pattern to avoid.

@KalebCole

Copy link
Copy Markdown
Owner Author

Stale — modifies the old monolith file which was refactored into src/commands/. DM feature was never re-implemented.

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.

[P2] Direct message individual guests

1 participant