Skip to content

Commit 3c2e627

Browse files
committed
Update paused project dialog: upgrade as primary CTA, restore as secondary
- Change main CTA to "Upgrade" linking to the change-plan page - Make "Restore project" a secondary button - Rename "Cancel" to "Back to organization" - Use full-page dialog (size="big") instead of small modal https://claude.ai/code/session_01FM1SsvjYziX2rRutmoAfGF
1 parent 943e224 commit 3c2e627

1 file changed

Lines changed: 28 additions & 16 deletions

File tree

src/routes/(console)/project-[region]-[project]/pausedProjectModal.svelte

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Button } from '$lib/elements/forms';
33
import { sdk } from '$lib/stores/sdk';
44
import { goto, invalidate } from '$app/navigation';
5-
import { resolve } from '$app/paths';
5+
import { base, resolve } from '$app/paths';
66
import { Dependencies } from '$lib/constants';
77
import { addNotification } from '$lib/stores/notifications';
88
import { Submit, trackError } from '$lib/actions/analytics';
@@ -57,13 +57,30 @@
5757
loading = false;
5858
}
5959
}
60+
61+
function handleUpgrade() {
62+
goto(
63+
resolve('/(console)/organization-[organization]/change-plan', {
64+
organization: teamId
65+
})
66+
);
67+
}
68+
69+
function handleBackToOrganization() {
70+
goto(
71+
resolve('/(console)/organization-[organization]', {
72+
organization: teamId
73+
})
74+
);
75+
}
6076
</script>
6177

62-
<Modal title="Project paused" bind:open={show} size="s" dismissible={false}>
78+
<Modal title="Project paused" bind:open={show} size="big" dismissible={false}>
6379
<Layout.Stack gap="m">
6480
<Typography.Text>This project has been paused due to inactivity.</Typography.Text>
6581
<Typography.Text>
66-
Your data is safe and will remain intact. Resume the project to continue using it.
82+
Your data is safe and will remain intact. Upgrade your plan to keep your projects active,
83+
or restore the project to continue using it.
6784
</Typography.Text>
6885

6986
{#if error}
@@ -75,24 +92,19 @@
7592

7693
<svelte:fragment slot="footer">
7794
<Layout.Stack direction="row" justifyContent="flex-end">
78-
<Button
79-
text
80-
disabled={loading}
81-
on:click={() =>
82-
goto(
83-
resolve('/(console)/organization-[organization]', {
84-
organization: teamId
85-
})
86-
)}>
87-
Cancel
95+
<Button text disabled={loading} on:click={handleBackToOrganization}>
96+
Back to organization
8897
</Button>
89-
<Button disabled={loading} on:click={handleResume}>
98+
<Button secondary disabled={loading} on:click={handleResume}>
9099
{#if loading}
91-
Resuming...
100+
Restoring...
92101
{:else}
93-
Resume project
102+
Restore project
94103
{/if}
95104
</Button>
105+
<Button disabled={loading} on:click={handleUpgrade}>
106+
Upgrade
107+
</Button>
96108
</Layout.Stack>
97109
</svelte:fragment>
98110
</Modal>

0 commit comments

Comments
 (0)