|
@@ -16,6 +16,7 @@ import { SOC2CostConsent } from "./SOC2CostConsent";
|
|
|
import { VendorChecksList } from "./VendorChecksList";
|
|
import { VendorChecksList } from "./VendorChecksList";
|
|
|
import DashboardPlaceholder from "components/porter/DashboardPlaceholder";
|
|
import DashboardPlaceholder from "components/porter/DashboardPlaceholder";
|
|
|
import Text from "components/porter/Text";
|
|
import Text from "components/porter/Text";
|
|
|
|
|
+import ShowIntercomButton from "components/porter/ShowIntercomButton";
|
|
|
|
|
|
|
|
const ComplianceDashboard: React.FC = () => {
|
|
const ComplianceDashboard: React.FC = () => {
|
|
|
const { currentProject, currentCluster } = useContext(Context);
|
|
const { currentProject, currentCluster } = useContext(Context);
|
|
@@ -44,19 +45,33 @@ const ComplianceDashboard: React.FC = () => {
|
|
|
<DashboardPlaceholder>
|
|
<DashboardPlaceholder>
|
|
|
<Text size={16}>Compliance is not enabled for sandbox users</Text>
|
|
<Text size={16}>Compliance is not enabled for sandbox users</Text>
|
|
|
<Spacer y={0.5} />
|
|
<Spacer y={0.5} />
|
|
|
-
|
|
|
|
|
<Text color={"helper"}>
|
|
<Text color={"helper"}>
|
|
|
Eject to your own cloud account to enable the Compliance dashboard.
|
|
Eject to your own cloud account to enable the Compliance dashboard.
|
|
|
</Text>
|
|
</Text>
|
|
|
|
|
+ <Spacer y={1} />
|
|
|
|
|
+ <ShowIntercomButton
|
|
|
|
|
+ alt
|
|
|
|
|
+ message="I would like to eject to my own cloud account"
|
|
|
|
|
+ height="35px"
|
|
|
|
|
+ >
|
|
|
|
|
+ Request ejection
|
|
|
|
|
+ </ShowIntercomButton>
|
|
|
</DashboardPlaceholder>
|
|
</DashboardPlaceholder>
|
|
|
) : !currentProject?.soc2_controls_enabled ? (
|
|
) : !currentProject?.soc2_controls_enabled ? (
|
|
|
<DashboardPlaceholder>
|
|
<DashboardPlaceholder>
|
|
|
<Text size={16}>Compliance is not enabled for this project</Text>
|
|
<Text size={16}>Compliance is not enabled for this project</Text>
|
|
|
<Spacer y={0.5} />
|
|
<Spacer y={0.5} />
|
|
|
-
|
|
|
|
|
<Text color={"helper"}>
|
|
<Text color={"helper"}>
|
|
|
- Reach out to support@porter.run to enable the Compliance dashboard on your project.
|
|
|
|
|
|
|
+ Reach out to the Porter team to enable the compliance dashboard on your project.
|
|
|
</Text>
|
|
</Text>
|
|
|
|
|
+ <Spacer y={1} />
|
|
|
|
|
+ <ShowIntercomButton
|
|
|
|
|
+ alt
|
|
|
|
|
+ message="I would like to enable the compliance dashboard on my project"
|
|
|
|
|
+ height="35px"
|
|
|
|
|
+ >
|
|
|
|
|
+ Request to enable
|
|
|
|
|
+ </ShowIntercomButton>
|
|
|
</DashboardPlaceholder>
|
|
</DashboardPlaceholder>
|
|
|
) : (
|
|
) : (
|
|
|
<>
|
|
<>
|