-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/config #56
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
Fix/config #56
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,8 @@ | |||||
| import axios from "axios"; | ||||||
| import { BACKEND_URL, NodeUpdateSchema } from "@repo/common/zod"; | ||||||
| import { TriggerUpdateSchema } from "@repo/common/zod"; | ||||||
| import z from "zod" | ||||||
| import z from "zod"; | ||||||
| import { getCredentials } from "../workflow/lib/config"; | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove unused import.
Proposed fix-import { getCredentials } from "../workflow/lib/config";📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| // Wrap all API calls in async functions and make sure to set withCredentials: true and add Content-Type header. | ||||||
| export const api = { | ||||||
| workflows: { | ||||||
|
|
@@ -33,7 +34,7 @@ export const api = { | |||||
| headers: { "Content-Type": "application/json" }, | ||||||
| }), | ||||||
| update: async (data: z.infer<typeof TriggerUpdateSchema>) => { | ||||||
| await axios.put(`${BACKEND_URL}/user/update/trigger`, data, { | ||||||
| return await axios.put(`${BACKEND_URL}/user/update/trigger`, data, { | ||||||
| withCredentials: true, | ||||||
| headers: { "Content-Type": "application/json" }, | ||||||
| }); | ||||||
|
|
@@ -57,11 +58,14 @@ export const api = { | |||||
| }), | ||||||
| }, | ||||||
| Credentials: { | ||||||
| getCredentials: async (type: string) => | ||||||
| await axios.get(`${BACKEND_URL}/user/getCredentials/${type}`, { | ||||||
| getCredentials: async (type: string) => { | ||||||
| const res = await axios.get(`${BACKEND_URL}/user/getCredentials/${type}`, { | ||||||
|
||||||
| const res = await axios.get(`${BACKEND_URL}/user/getCredentials/${type}`, { | |
| const res = await axios.get(`${BACKEND_URL}/user/getCredentials/${type}`, { |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,7 @@ import { NodeConfig } from "../types/node.types"; | |||||||||||||||||||||||||
| export const googleSheetActionConfig: NodeConfig = { | ||||||||||||||||||||||||||
| id: "google_sheet", | ||||||||||||||||||||||||||
| type: "action", | ||||||||||||||||||||||||||
| label: "Google Sheets", | ||||||||||||||||||||||||||
| label: "Google Sheet", | ||||||||||||||||||||||||||
| icon: "📊", | ||||||||||||||||||||||||||
| description: "Read or write data to Google Sheets", | ||||||||||||||||||||||||||
|
Comment on lines
+6
to
8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent naming: label vs. description and official product name. The label was changed to singular "Google Sheet", but:
Consider either reverting to "Google Sheets" to match the official branding, or updating the description as well for internal consistency. Option 1: Revert to official product name- label: "Google Sheet",
+ label: "Google Sheets",Option 2: Make description consistent with new label- description: "Read or write data to Google Sheets",
+ description: "Read or write data to a Google Sheet",📝 Committable suggestion
Suggested change
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
| credentials: "google", // Requires Google OAuth | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
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.
This import is unused in the file. The getCredentials function is defined locally in the Credentials object and doesn't use the imported function. Remove this unused import.