diff --git a/src/components/TableHeader/CloudLogs/CloudLogsModal.tsx b/src/components/TableHeader/CloudLogs/CloudLogsModal.tsx index ebf3ccf0..f53b9d89 100644 --- a/src/components/TableHeader/CloudLogs/CloudLogsModal.tsx +++ b/src/components/TableHeader/CloudLogs/CloudLogsModal.tsx @@ -22,18 +22,25 @@ import BuildLogs from "./BuildLogs"; import EmptyState from "@src/components/EmptyState"; import { useProjectContext } from "@src/contexts/ProjectContext"; +import { useAppContext } from "@src/contexts/AppContext"; import { cloudLogFiltersAtom, cloudLogFetcher } from "./utils"; export default function CloudLogsModal(props: IModalProps) { const { rowyRun, tableState, table, compatibleRowyRunVersion } = useProjectContext(); - + const { projectId } = useAppContext(); const [cloudLogFilters, setCloudLogFilters] = useAtom(cloudLogFiltersAtom); const { data, mutate, isValidating } = useSWR( cloudLogFilters.type === "build" ? null - : ["/logs", rowyRun, cloudLogFilters, tableState?.tablePath || ""], + : [ + "/logs", + rowyRun, + projectId, + cloudLogFilters, + tableState?.tablePath || "", + ], cloudLogFetcher, { fallbackData: [], diff --git a/src/components/TableHeader/CloudLogs/utils.ts b/src/components/TableHeader/CloudLogs/utils.ts index c4a03562..fcf2fec4 100644 --- a/src/components/TableHeader/CloudLogs/utils.ts +++ b/src/components/TableHeader/CloudLogs/utils.ts @@ -26,6 +26,7 @@ export const cloudLogFiltersAtom = atomWithHash( export const cloudLogFetcher = ( endpointRoot: string, rowyRun: IProjectContext["rowyRun"], + projectId: string, cloudLogFilters: CloudLogFilters, tablePath: string ) => { @@ -34,7 +35,9 @@ export const cloudLogFetcher = ( switch (cloudLogFilters.type) { case "webhook": - logQuery.push(`logName = "projects/rowyio/logs/rowy-webhook-events"`); + logQuery.push( + `logName = "projects/${projectId}/logs/rowy-webhook-events"` + ); logQuery.push(`jsonPayload.url : "${tablePath}"`); if ( Array.isArray(cloudLogFilters.webhook) && @@ -48,7 +51,7 @@ export const cloudLogFetcher = ( break; case "audit": - logQuery.push(`logName = "projects/rowyio/logs/rowy-audit"`); + logQuery.push(`logName = "projects/${projectId}/logs/rowy-audit"`); logQuery.push(`jsonPayload.ref.collectionPath = "${tablePath}"`); if (cloudLogFilters.auditRowId) logQuery.push( diff --git a/src/components/TableHeader/Webhooks/Schemas/basic.tsx b/src/components/TableHeader/Webhooks/Schemas/basic.tsx index 105ed038..86527018 100644 --- a/src/components/TableHeader/Webhooks/Schemas/basic.tsx +++ b/src/components/TableHeader/Webhooks/Schemas/basic.tsx @@ -66,7 +66,9 @@ export const webhookBasic = { return ( -   Verification is not currently available for basic webhooks +   Specialized verification is not currently available for basic + webhooks, you can add your own verification logic in the conditions + section bellow. ); }, diff --git a/src/components/fields/Action/Settings.tsx b/src/components/fields/Action/Settings.tsx index da29613f..abc42bb6 100644 --- a/src/components/fields/Action/Settings.tsx +++ b/src/components/fields/Action/Settings.tsx @@ -36,6 +36,7 @@ import FormFieldSnippets from "./FormFieldSnippets"; import { useProjectContext } from "@src/contexts/ProjectContext"; import { WIKI_LINKS } from "@src/constants/externalLinks"; +import { useAppContext } from "@src/contexts/AppContext"; const CodeEditor = lazy( () => @@ -44,7 +45,7 @@ const CodeEditor = lazy( const Settings = ({ config, onChange }) => { const { tableState, roles } = useProjectContext(); - + const { projectId } = useAppContext(); const [activeStep, setActiveStep] = useState< "requirements" | "friction" | "action" | "undo" | "customization" >("requirements"); @@ -325,7 +326,7 @@ const Settings = ({ config, onChange }) => { Write the name of the callable function you’ve deployed to your project.{" "} diff --git a/src/pages/Deploy.tsx b/src/pages/Deploy.tsx index 0e778ed9..2f890b90 100644 --- a/src/pages/Deploy.tsx +++ b/src/pages/Deploy.tsx @@ -37,7 +37,6 @@ export default function DeployPage() { const [continued, setContinued] = useState(false); const [confirmProject, setConfirmProject] = useState(false); - const [confirmFirestore, setConfirmFirestore] = useState(false); const [confirmAuth, setConfirmAuth] = useState(false); return ( @@ -94,17 +93,6 @@ export default function DeployPage() { } label="A Google Cloud or Firebase project" /> - - setConfirmFirestore(e.target.checked) - } - /> - } - label="Firestore enabled" - />
- {confirmProject && confirmFirestore && confirmAuth ? ( + {confirmProject && confirmAuth ? (