From f55c1500ac5e514880c017b655424de97c07c795 Mon Sep 17 00:00:00 2001 From: Chris Brown <1731074+ccbrown@users.noreply.github.com> Date: Thu, 15 May 2025 01:41:08 -0400 Subject: [PATCH] add help text to contact form and aws integration setup --- .../app/(public-area)/contact/ContactForm.tsx | 5 ++++- .../[teamId]/settings/integrations/page.tsx | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/(public-area)/contact/ContactForm.tsx b/frontend/src/app/(public-area)/contact/ContactForm.tsx index 727de6d..06e719a 100644 --- a/frontend/src/app/(public-area)/contact/ContactForm.tsx +++ b/frontend/src/app/(public-area)/contact/ContactForm.tsx @@ -41,7 +41,10 @@ export const ContactForm = () => { }; return success ? ( - Message submitted! We'll be in touch soon. + + Message submitted! We'll be in touch soon. If you don't see any emails from us within a few + business days, please be sure to check your spam folder. + ) : ( <>

diff --git a/frontend/src/app/(user-area)/teams/[teamId]/settings/integrations/page.tsx b/frontend/src/app/(user-area)/teams/[teamId]/settings/integrations/page.tsx index 82a33f0..32e6fda 100644 --- a/frontend/src/app/(user-area)/teams/[teamId]/settings/integrations/page.tsx +++ b/frontend/src/app/(user-area)/teams/[teamId]/settings/integrations/page.tsx @@ -17,6 +17,9 @@ interface CreateIntegrationFormProps { onSuccess: () => void; } +const startsWithAwsLogsRegex = /^\/?AWSLogs($|\/)/; +const includesAwsLogsRegex = /(^|\/)AWSLogs($|\/)/; + const CreateIntegrationForm = (props: CreateIntegrationFormProps) => { const dispatch = useDispatch(); @@ -122,6 +125,20 @@ const CreateIntegrationForm = (props: CreateIntegrationFormProps) => { onChange={setS3BucketName} /> + {s3KeyPrefix && + (startsWithAwsLogsRegex.test(s3KeyPrefix) ? ( +

+ Cloud Snitch will automatically search for the "AWSLogs" directory in your S3 + bucket. This field is only necessary if you have a custom prefix for your CloudTrail + logs. Otherwise, you should leave it empty. +

+ ) : includesAwsLogsRegex.test(s3KeyPrefix) ? ( +

+ Cloud Snitch will automatically search for the "AWSLogs" directory in your S3 + bucket. This field should only contain the custom prefix that you specified when + creating the trail, if any. +

+ ) : null)}