Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/actions/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export function isTrackingAllowed() {
}

export enum Submit {
DownloadDPA = 'submit_download_dpa',
Error = 'submit_error',
AccountCreate = 'submit_account_create',
AccountLogin = 'submit_account_login',
Expand Down
1 change: 1 addition & 0 deletions src/lib/elements/forms/button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

{#if href}
<a
on:click
on:click={track}
{href}
target={external ? '_blank' : ''}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
import { invalidate } from '$app/navigation';
import { Dependencies } from '$lib/constants';
import { onMount } from 'svelte';
import Delete from './deleteOrganization.svelte';
import Delete from './deleteOrganizationModal.svelte';
import DownloadDPA from './downloadDPA.svelte';
import { Submit, trackEvent, trackError } from '$lib/actions/analytics';

export let data;
Expand Down Expand Up @@ -63,6 +64,8 @@
</CardGrid>
</Form>

<DownloadDPA />

<CardGrid danger>
<div>
<Heading tag="h6" size="7">Delete organization</Heading>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<script lang="ts">
import { Box, CardGrid, Heading } from '$lib/components';
import { Button } from '$lib/elements/forms';
import { sdk } from '$lib/stores/sdk';
import { Submit, trackEvent } from '$lib/actions/analytics';

async function downloadPdf() {
trackEvent(Submit.DownloadDPA);
const today = new Date().toISOString();
const prefs = await sdk.forConsole.account.getPrefs();
const newPrefs = { ...prefs, DPA: today };
sdk.forConsole.account.updatePrefs(newPrefs);
}
</script>

<CardGrid>
<div>
<Heading tag="h6" size="7">Download DPA document</Heading>
</div>
<p class="text">
After downloading, have the DPA signed by your organization's compliance authority, such as
your CEO or Compliance Manager, and submit it to <a
class="link"
href="mailto:privacy@appwrite.io">privacy@appwrite.io</a
>.
</p>
<svelte:fragment slot="aside">
<Box>
<h6>
<b>Data Processing Agreement (DPA) document</b>
</h6>
<p class="text u-margin-block-start-8">
The DPA is a legal document that describes the roles and responsibilities of
Appwrite and the organization when personal data is processed. Learn more about the
DPA.
</p>
<Button
secondary
external
class="u-margin-block-start-16"
on:click={downloadPdf}
href="/Appwrite_DPA.pdf"
event="download_dpa">
<span class="icon-download" aria-hidden="true" />
<span class="text">Download</span>
</Button>
</Box>
</svelte:fragment>
</CardGrid>
Binary file added static/Appwrite_DPA.pdf
Binary file not shown.