Skip to content

Commit fee31f2

Browse files
authored
chore(webapp): update region message to say we are GDPR compliant (#2455)
* Updates the Region message to say we are GDPR compliant * Hide the message if not on cloud
1 parent 10baa39 commit fee31f2

File tree

1 file changed

+27
-8
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions

1 file changed

+27
-8
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions/route.tsx

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {
4747
TableRow,
4848
} from "~/components/primitives/Table";
4949
import { TextLink } from "~/components/primitives/TextLink";
50+
import { useFeatures } from "~/hooks/useFeatures";
5051
import { useOrganization } from "~/hooks/useOrganizations";
5152
import { useHasAdminAccess } from "~/hooks/useUser";
5253
import { redirectWithErrorMessage, redirectWithSuccessMessage } from "~/models/message.server";
@@ -132,6 +133,7 @@ export default function Page() {
132133
const { regions, isPaying } = useTypedLoaderData<typeof loader>();
133134
const organization = useOrganization();
134135
const isAdmin = useHasAdminAccess();
136+
const { isManagedCloud } = useFeatures();
135137

136138
return (
137139
<PageContainer>
@@ -295,14 +297,31 @@ export default function Page() {
295297
</TableRow>
296298
</TableBody>
297299
</Table>
298-
<InfoPanel
299-
icon={InformationCircleIcon}
300-
variant="minimal"
301-
panelClassName="max-w-full"
302-
>
303-
Runs execute in your default region, but operational and log data remains in
304-
us-east-1.
305-
</InfoPanel>
300+
{isManagedCloud && (
301+
<InfoPanel
302+
icon={InformationCircleIcon}
303+
iconClassName="size-4"
304+
variant="minimal"
305+
panelClassName="max-w-full gap-1"
306+
>
307+
<Paragraph variant="extra-small" className="flex items-baseline gap-x-0.5">
308+
Trigger.dev is fully GDPR compliant. Learn more in our{" "}
309+
<TextLink to="https://security.trigger.dev">security portal</TextLink> or{" "}
310+
<Feedback
311+
button={
312+
<Paragraph
313+
variant="extra-small"
314+
className="cursor-pointer text-indigo-500 transition hover:text-indigo-400"
315+
>
316+
get in touch
317+
</Paragraph>
318+
}
319+
defaultValue="help"
320+
/>
321+
.
322+
</Paragraph>
323+
</InfoPanel>
324+
)}
306325
</div>
307326
</>
308327
)}

0 commit comments

Comments
 (0)