[DX-970] Feature: implement missing presence commands#176
[DX-970] Feature: implement missing presence commands#176
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThis pull request introduces hold-state command semantics with a new Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Implements the remaining Channels Presence CLI surface area by adding “get all members” and “update presence data” commands, and aligning presence enter output/JSON structure with the newer long-running command patterns.
Changes:
- Added
channels presence get-all(REST) with limit + pagination metadata and human/JSON output. - Added
channels presence update(Realtime) to enter, update data, then hold presence until exit/timeout. - Refactored
channels presence enterJSON/human output (progress + labeled fields + status record) and consolidated JSON parsing viaparseJsonFlag().
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/commands/channels/presence/get-all.ts |
New REST command to list current presence members with limit + pagination hints and JSON output. |
src/commands/channels/presence/update.ts |
New Realtime command to enter + update presence data and hold until cleanup. |
src/commands/channels/presence/enter.ts |
Refines output and JSON envelope shape; switches --data parsing to parseJsonFlag(). |
test/unit/commands/channels/presence/get-all.test.ts |
Unit coverage for get-all output, JSON shape, limit, pagination, and error handling. |
test/unit/commands/channels/presence/update.test.ts |
Unit coverage for update flow (enter+update), JSON output/status, and error cases. |
test/unit/commands/channels/presence/enter.test.ts |
Expanded tests for progress text, labeled fields, JSON result/status, and holding/listening messaging. |
README.md |
Documents the new commands in the CLI reference. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Updated presence enter to follow hold pattern
a6eeed4 to
ab42378
Compare
a1d21ab to
bc7a212
Compare
channels presence get-allandchannels presence updatepresence enterfor better status updateSummary by CodeRabbit
New Features
channels presence get-allcommand to retrieve current presence members on a channel with optional--limitflag.channels presence updatecommand to update presence data on a channel.spaces occupancy getandspaces occupancy subscribecommands to monitor space occupancy metrics.Improvements
SPACE→SPACE_NAME).Documentation