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)}