-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Danny/connect proxy docs #15476
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
Danny/connect proxy docs #15476
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe changes update various documentation and configuration files. The environment variable Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant Proxy as API Proxy
participant API as Downstream API
Dev->>Proxy: Send authenticated request
Proxy->>Proxy: Insert user credentials
Proxy->>API: Forward request with credentials
API-->>Proxy: Return response
Proxy-->>Dev: Send response
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (7)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…edream into danny/connect-proxy-docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🔭 Outside diff range comments (1)
docs-v2/pages/rest-api/auth.mdx (1)
50-56
: Method Update and Syntax Correction
Switching tomakeAuthorizedRequest
improves security by automating token handling. However, there is a syntax issue: a comma is missing after"GET"
in the configuration object. This could cause a runtime error.- const accounts = await pd.makeAuthorizedRequest("/accounts", { - method: "GET" - params: { - include_credentials: 1, - } - }); + const accounts = await pd.makeAuthorizedRequest("/accounts", { + method: "GET", + params: { + include_credentials: 1, + } + });
🧹 Nitpick comments (4)
docs-v2/pages/connect/api-proxy.mdx (2)
4-11
: Documentation Title and Introduction Clarity
The title “Connect API Proxy” and the introductory text clearly convey the purpose of this page. One suggestion: in line 8, consider inserting a comma before “and” to improve the readability of the compound sentence.🧰 Tools
🪛 LanguageTool
[uncategorized] ~8-~8: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...enarios: 1. You need code-level control and you want to use [Pipedream's OAuth](/co...(COMMA_COMPOUND_SENTENCE)
[style] ~10-~10: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...r you need to modify the request 3. You want to avoid storing end user credentials in y...(REP_WANT_TO_VB)
80-123
: REST API Code Snippet Review
The REST API example is detailed and instructive. Note a minor grammatical issue on line 87: “an URL‑safe Base64 encoded string” should be “a URL‑safe Base64 encoded string.”- When using the REST API, this should be an URL-safe Base64 encoded string (ex, `aHR0cHM6Ly9zbGFjay5jb20vYXBpL2NoYXQucG9zdE1lc3NhZ2U`) + When using the REST API, this should be a URL-safe Base64 encoded string (ex, `aHR0cHM6Ly9zbGFjay5jb20vYXBpL2NoYXQucG9zdE1lc3NhZ2U`)🧰 Tools
🪛 LanguageTool
[misspelling] ~87-~87: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...When using the REST API, this should be an URL-safe Base64 encoded string (ex, `aH...(EN_A_VS_AN)
docs-v2/pages/connect/index.mdx (1)
68-69
: Glossary Phrasing Suggestion
In the Glossary section for “OAuth Client,” consider changing “refers both to […] as well as […]” to “refers to both […] and […]” for grammatical consistency.🧰 Tools
🪛 LanguageTool
[grammar] ~68-~68: Probable usage error. Use “and” after ‘both’.
Context: ...sers authorize access to their account, as well as [OAuth clients to authenticate to Piped...(BOTH_AS_WELL_AS)
docs-v2/pages/connect/managed-auth/connect-link.mdx (1)
11-11
: Nitpick on phrasing.
The phrase “for getting Connect up and running” appears redundant. Consider rephrasing it for brevity, for example: “for a full Connect tutorial.”🧰 Tools
🪛 LanguageTool
[style] ~11-~11: This phrase is redundant. Consider writing “Connect”.
Context: ...kstart) for a full tutorial for getting Connect up and running. Here's a quick overview ...(CONNECT_TOGETHER)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (20)
docs-v2/next.config.mjs
(1 hunks)docs-v2/pages/_meta.tsx
(1 hunks)docs-v2/pages/connect/_meta.tsx
(1 hunks)docs-v2/pages/connect/api-proxy.mdx
(1 hunks)docs-v2/pages/connect/api.mdx
(5 hunks)docs-v2/pages/connect/components.mdx
(1 hunks)docs-v2/pages/connect/environments.mdx
(1 hunks)docs-v2/pages/connect/index.mdx
(3 hunks)docs-v2/pages/connect/managed-auth/_meta.tsx
(1 hunks)docs-v2/pages/connect/managed-auth/connect-link.mdx
(1 hunks)docs-v2/pages/connect/managed-auth/customization.mdx
(1 hunks)docs-v2/pages/connect/managed-auth/oauth-clients.mdx
(1 hunks)docs-v2/pages/connect/managed-auth/tokens.mdx
(2 hunks)docs-v2/pages/connect/managed-auth/users.mdx
(1 hunks)docs-v2/pages/connect/managed-auth/webhooks.mdx
(1 hunks)docs-v2/pages/connect/troubleshooting.mdx
(1 hunks)docs-v2/pages/connect/workflows.mdx
(3 hunks)docs-v2/pages/rest-api/auth.mdx
(1 hunks)docs-v2/pages/rest-api/index.mdx
(1 hunks)docs-v2/vercel.json
(1 hunks)
✅ Files skipped from review due to trivial changes (7)
- docs-v2/pages/connect/managed-auth/tokens.mdx
- docs-v2/pages/_meta.tsx
- docs-v2/pages/connect/troubleshooting.mdx
- docs-v2/next.config.mjs
- docs-v2/pages/connect/managed-auth/_meta.tsx
- docs-v2/pages/connect/managed-auth/oauth-clients.mdx
- docs-v2/pages/connect/managed-auth/webhooks.mdx
🧰 Additional context used
🪛 LanguageTool
docs-v2/pages/connect/index.mdx
[misspelling] ~23-~23: This word is normally spelled as one.
Context: ...r SaaS app - Develop and deploy complex multi-step workflows in our ...
(EN_COMPOUNDS_MULTI_STEP)
[grammar] ~68-~68: Probable usage error. Use “and” after ‘both’.
Context: ...sers authorize access to their account, as well as [OAuth clients to authenticate to Piped...
(BOTH_AS_WELL_AS)
docs-v2/pages/connect/api-proxy.mdx
[uncategorized] ~8-~8: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...enarios: 1. You need code-level control and you want to use [Pipedream's OAuth](/co...
(COMMA_COMPOUND_SENTENCE)
[style] ~10-~10: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...r you need to modify the request 3. You want to avoid storing end user credentials in y...
(REP_WANT_TO_VB)
[style] ~16-~16: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...the proxy and identify the end user you want to act on behalf of 2. The proxy sends the...
(REP_WANT_TO_VB)
[misspelling] ~87-~87: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...When using the REST API, this should be an URL-safe Base64 encoded string (ex, `aH...
(EN_A_VS_AN)
docs-v2/pages/connect/managed-auth/connect-link.mdx
[style] ~11-~11: This phrase is redundant. Consider writing “Connect”.
Context: ...kstart) for a full tutorial for getting Connect up and running. Here's a quick overview ...
(CONNECT_TOGETHER)
🔇 Additional comments (28)
docs-v2/pages/connect/_meta.tsx (1)
8-10
: LGTM! Documentation structure aligns with PR objectives.The changes improve clarity and organization by:
- Renaming "quickstart" to "managed-auth"
- Adding dedicated sections for API proxy and workflows
- Updating titles to better reflect content
Also applies to: 14-16, 17-19, 23-25
docs-v2/pages/connect/managed-auth/users.mdx (2)
5-11
: LGTM! Clear and concise instructions.The step-by-step guide is easy to follow and provides clear navigation instructions.
13-17
: LGTM! Important limitation clearly highlighted.The warning callout effectively communicates the one-account-per-user limitation and its implications.
docs-v2/pages/connect/managed-auth/customization.mdx (1)
4-4
: LGTM! Title better reflects the content focus.The title change from "Customizing Your Application" to "Customizing the Auth Flow" better aligns with the actual content and purpose of the document.
docs-v2/pages/connect/environments.mdx (1)
9-9
: LGTM! Clearer messaging about feature availability.The updated callout provides clearer information about feature availability across plans and includes a direct call-to-action for production use.
docs-v2/pages/connect/api-proxy.mdx (5)
1-3
: Import Statements Verification
The imported components (Tabs
andCallout
) are correctly referenced and follow the project conventions.
12-19
: Overview Section Completeness
The “Overview” section effectively summarizes the proxy request flow in a step-by-step manner, which aids in comprehension.🧰 Tools
🪛 LanguageTool
[style] ~16-~16: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...the proxy and identify the end user you want to act on behalf of 2. The proxy sends the...(REP_WANT_TO_VB)
20-24
: Visualization and Callout Inclusion
Including the diagram (line 20) and the info callout (lines 22–24) is a good practice to visually support the document and highlight prerequisites.
26-33
: Getting Started Section Effectiveness
The “Getting started” section provides clear prerequisites and instructions along with well-organized list items. This structure is effective for onboarding users.
41-78
: SDK Code Snippet Accuracy
The JavaScript example demonstrating the use ofcreateBackendClient
andmakeProxyRequest
is clear and practical. Just ensure that developers update any placeholder values (like the environment and credentials) appropriately.docs-v2/pages/rest-api/auth.mdx (1)
38-44
: Enhancement in Client Initialization
Adding theprojectId
parameter to thecreateBackendClient
call is a valuable enhancement for targeting Connect API endpoints. Be sure that any client instantiation elsewhere in the codebase is updated accordingly.docs-v2/pages/connect/index.mdx (3)
8-9
: Dynamic Content in the Introduction
The updated introductory line now includes{process.env.PUBLIC_APPS}+ integrations
dynamically. Please verify that the environment variable is correctly set in production; otherwise, consider adding a fallback value to ensure clarity.
12-17
: Managed Auth Section Clarity
The “Use managed auth” section is well articulated, outlining options and providing clear calls to action.
19-25
: User Authentication Guidance
The “Act on behalf of your users” section effectively highlights how to retrieve user credentials via Connect, making it straightforward for developers.🧰 Tools
🪛 LanguageTool
[misspelling] ~23-~23: This word is normally spelled as one.
Context: ...r SaaS app - Develop and deploy complex multi-step workflows in our ...(EN_COMPOUNDS_MULTI_STEP)
docs-v2/vercel.json (1)
292-320
: Updated Redirect Rules for Managed Auth
The new redirect rules ensure that legacy URLs are correctly routed to their updated managed authentication paths. This comprehensive update improves navigational consistency across the documentation. Please verify that each new destination is correct and that there are no conflicts with other routes.docs-v2/pages/connect/workflows.mdx (3)
74-77
: Updated User Connection Instructions
The instruction for connecting a test account now correctly points to the Users tab at/connect/managed-auth/users
, which aligns with the reorganized documentation.
394-397
: Error Message Link Consistency
The error message section has been updated to reference the new user management paths (e.g., in the UI). This clarification is essential for effective troubleshooting.
400-401
: Connected Account Verification Guidance
The revised instructions for verifying connected accounts now clearly direct users to check the UI or the API at the updated endpoints, enhancing the troubleshooting process.docs-v2/pages/connect/components.mdx (4)
4-4
: Updated Title Reflects Revised MessagingThe new title "Pre-built tools for your app or agent" is clear and aligns with the updated scope for Pipedream Connect.
6-7
: Enhanced Description for ClarityThe revised description now introduces “pre-built tools” and explicitly references “triggers and actions,” along with the updated operations count (“10,000+ built-in API operations”). This improves clarity and ensures the terminology is consistent with the latest updates.
10-10
: Updated Section HeaderChanging the header from “What are components?” to “What are triggers and actions?” helps clarify the terminology for end users.
17-17
: Refined Beta CalloutSimplifying the beta callout message to a concise invitation for feedback makes it more user-friendly.
docs-v2/pages/rest-api/index.mdx (1)
190-194
: Corrected OAuth App LinkUpdating the
oauth_app_id
parameter description to reference the new URL/connect/managed-auth/quickstart#create-a-pipedream-oauth-client
correctly directs users to the managed authentication documentation. This ensures the documentation remains consistent after recent reorganizations.docs-v2/pages/connect/api.mdx (3)
73-73
: Updated Next.js quickstart link.
The link now points to/connect/managed-auth/quickstart
, ensuring users are directed to the updated quickstart guide in the managed authentication flow.
409-411
: Verified OAuth app link update.
The OAuth app link has been revised to/connect/managed-auth/quickstart#create-a-pipedream-oauth-client
, which aligns with the new documentation structure for managed auth.
429-432
: Refined Callout text for account credentials.
The callout now instructs users that to retrieve credentials in production, the connected account must use [your own OAuth client] as per/connect/managed-auth/oauth-clients#using-pipedream-oauth
. This update further solidifies consistency across the docs.docs-v2/pages/connect/managed-auth/connect-link.mdx (2)
11-11
: Updated quickstart link in connection instructions.
The reference now correctly points to/connect/managed-auth/quickstart
for a full tutorial, which is consistent with the broader managed authentication restructuring.🧰 Tools
🪛 LanguageTool
[style] ~11-~11: This phrase is redundant. Consider writing “Connect”.
Context: ...kstart) for a full tutorial for getting Connect up and running. Here's a quick overview ...(CONNECT_TOGETHER)
15-15
: Updated token generation link.
The instruction now references[generate a token](/connect/managed-auth/quickstart/#generate-a-short-lived-token)
, which correctly matches the new managed-auth path and ensures consistency in the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
docs-v2/pages/connect/components.mdx (1)
18-22
: React SDK Section – Consider Revising Infinitive Construction
The "### Use Pipedream's frontend React SDK" section is clear and informative. As a minor stylistic improvement, consider rephrasing line 19 to avoid splitting the infinitive. For example:-Pipedream provides an SDK that you can use to automatically render React UI components in your application to enable your users to configure and run the triggers and actions +Pipedream provides an SDK that automatically renders React UI components in your application, enabling your users to configure and run triggers and actionsThis change avoids the split infinitive and improves readability.
🧰 Tools
🪛 LanguageTool
[style] ~19-~19: Style-wise, it’s not ideal to insert an adverb (‘automatically’) in the middle of an infinitive construction (‘to render’). Try moving the adverb to avoid split infinitives.
Context: ... Pipedream provides an SDK that you can use to automatically render React UI components in your application to enable your user...(SPLIT_INFINITIVE)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (1)
docs-v2/pages/connect/components.mdx
(1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs-v2/pages/connect/components.mdx
[style] ~19-~19: Style-wise, it’s not ideal to insert an adverb (‘automatically’) in the middle of an infinitive construction (‘to render’). Try moving the adverb to avoid split infinitives.
Context: ... Pipedream provides an SDK that you can use to automatically render React UI components in your application to enable your user...
(SPLIT_INFINITIVE)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Lint Code Base
- GitHub Check: validate-links
🔇 Additional comments (5)
docs-v2/pages/connect/components.mdx (5)
4-4
: Title Update Clarity
The new title, "Pre-built tools for your app or agent," clearly broadens the scope and aligns with the updated documentation objectives.
6-8
: Enhanced Description with Inconsistent API Count Reference
The revised description now emphasizes "10,000+ built-in API operations" and clearly states the functionality of the pre-built tools. However, note that the text on line 8 still references{process.env.PUBLIC_APPS}
. Please verify whether you want to remove this environment variable reference for consistency with the hard-coded figure, or update it so both parts match.
10-12
: Terminology Update for User Clarity
Changing the section header to "## What are triggers and actions?" effectively introduces the updated terminology and clarifies the concept for end users.
16-17
: Addition of an 'Implementation' Section
Introducing the "## Implementation" header is a valuable organizational improvement that helps users locate implementation guidance quickly.
27-29
: Clear Presentation of the Frontend Option
The "### Use your own frontend" section and its bullet points present an alternative approach in a succinct manner. The directions and reference to the REST API are clear and useful for users who prefer not to use the React SDK.
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Documentation
Chores