[20230][feat(workflowy)]: add create-node, search-nodes, update-node actions#21314
[20230][feat(workflowy)]: add create-node, search-nodes, update-node actions#21314vetrivigneshwaran wants to merge 9 commits into
Conversation
Update pnpm-.lock file
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified. |
|
Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:
|
📝 WalkthroughWalkthroughThis PR adds a WorkFlowy Pipedream component with three new actions—Create Node, Search Nodes, and Update Node—backed by new app methods ( ChangesWorkFlowy App and Actions
Estimated code review effort: 2 (Simple) | ~15 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant Action
participant WorkflowyApp
participant WorkflowyAPI
User->>Action: Run action (create/search/update)
Action->>WorkflowyApp: call app method (createNode/exportNodes/updateNode+getNode)
WorkflowyApp->>WorkflowyAPI: HTTP request via _makeRequest (Bearer auth)
WorkflowyAPI-->>WorkflowyApp: JSON response
WorkflowyApp-->>Action: response data
Action-->>User: $summary + returned node(s)
Related issues: Suggested labels: new-component, workflowy Suggested reviewers: vunguyenhung, jcortes 🐰
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts
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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@components/workflowy/actions/update-node/update-node.mjs`:
- Around line 56-62: The update-node action is returning the
`workflowy.getNode()` wrapper instead of the actual node object, so downstream
steps can’t access node fields directly. In `update-node.mjs`, adjust the
`updatedNode` handling after `this.workflowy.getNode(...)` to unwrap the `node`
property (or update `getNode()` itself) so the returned value is the node
payload with fields like `name` and `note`, while keeping the existing
`$.export("$summary", ...)` behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: efca549c-9144-4461-9885-3b9f61dc1ad7
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (6)
components/workflowy/actions/create-node/create-node.mjscomponents/workflowy/actions/search-nodes/search-nodes.mjscomponents/workflowy/actions/update-node/update-node.mjscomponents/workflowy/common/constants.mjscomponents/workflowy/package.jsoncomponents/workflowy/workflowy.app.mjs
addressed review comment
Changes with respect to base url and link in description
change in the url
michelle0927
left a comment
There was a problem hiding this comment.
LGTM. One optional comment. Ready for QA.
| position: this.position, | ||
| }, | ||
| }); | ||
| const nodeId = response?.item_id ?? response?.id ?? "unknown"; |
There was a problem hiding this comment.
The docs show the response only has item_id.
| const nodeId = response?.item_id ?? response?.id ?? "unknown"; | |
| const nodeId = response?.item_id ?? "unknown"; |
addressed the review comment
Resolves: #20230
Summary
Create Node — Create a new node/bullet, with options to set its name, note, and parent node.
Search Nodes — Search nodes by keyword, returning matching nodes with their IDs and content.
Update Node — Update an existing node’s name or note by node ID.
Please provide a link to the relevant API docs for the specific service / operation.
https://beta.workflowy.com/api-reference/
Create 3 new action components, Create Node , Search Nodes , Update Node and updated the package.json.
Also updated pnpm-lock file.
Checklist
Please check the following items before your PR can be reviewed:
Versioning
0.0.1for new ones)package.json's version updatedNew app
If this is a new app, please submit an app integration request - the PR will only be reviewed after the app is integrated.
CodeRabbit review
After the PR is opened, and if new changes are pushed, CodeRabbit will automatically review it. Do not 'mark as resolved' CodeRabbit's comments, but reply to them instead, whether you agree (and update the PR accordingly) or disagree.
Summary by CodeRabbit
New Features
Bug Fixes