Skip to content

Commit f78a3e8

Browse files
feat(frontend): remove getting started for free call to action (#2799)
1 parent 3a09bd9 commit f78a3e8

6 files changed

Lines changed: 6 additions & 49 deletions

File tree

src/frontend/src/lib/components/modules/launchpad/Launchpad.svelte

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
<script lang="ts">
2-
import { nonNullish } from '@dfinity/utils';
32
import LaunchpadGuard from '$lib/components/modules/launchpad/LaunchpadGuard.svelte';
43
import LaunchpadHeader from '$lib/components/modules/launchpad/LaunchpadHeader.svelte';
54
import LaunchpadSegments from '$lib/components/modules/launchpad/LaunchpadSegments.svelte';
65
import LaunchpadToolbar from '$lib/components/modules/launchpad/LaunchpadToolbar.svelte';
7-
import { account } from '$lib/derived/console/account.derived';
86
import { satellites } from '$lib/derived/satellites.derived';
97
108
let filter = $state('');
119
12-
// If the user was never updated, they never received credits.
13-
// We do this check to e.g. not display the getting started banner on Skylab.
14-
let userNoFirstCredits = $derived(
15-
nonNullish($account) &&
16-
$account.created_at === $account.updated_at &&
17-
$account.credits.e8s === 0n
18-
);
19-
2010
let withoutGreetingsReturningLabel = $derived(($satellites?.length ?? 0n) === 0n);
2111
</script>
2212

2313
<LaunchpadGuard>
2414
<section>
25-
<LaunchpadHeader userGettingStarted={userNoFirstCredits} {withoutGreetingsReturningLabel}>
15+
<LaunchpadHeader {withoutGreetingsReturningLabel}>
2616
<LaunchpadToolbar bind:filter />
2717
</LaunchpadHeader>
2818

src/frontend/src/lib/components/modules/launchpad/LaunchpadGettingStarted.svelte

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/frontend/src/lib/components/modules/launchpad/LaunchpadHeader.svelte

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import type { Snippet } from 'svelte';
3-
import LaunchpadGettingStarted from '$lib/components/modules/launchpad/LaunchpadGettingStarted.svelte';
43
import LaunchpadGreetings from '$lib/components/modules/launchpad/LaunchpadGreetings.svelte';
54
import { providerDataUi } from '$lib/derived/console/account.provider.derived';
65
import { onIntersection } from '$lib/directives/intersection.directives';
@@ -9,16 +8,10 @@
98
interface Props {
109
children?: Snippet;
1110
filter?: string;
12-
userGettingStarted?: boolean;
1311
withoutGreetingsReturningLabel?: boolean;
1412
}
1513
16-
let {
17-
filter = $bindable(''),
18-
children,
19-
userGettingStarted,
20-
withoutGreetingsReturningLabel
21-
}: Props = $props();
14+
let { filter = $bindable(''), children, withoutGreetingsReturningLabel }: Props = $props();
2215
2316
const customOnIntersection = (element: HTMLElement) =>
2417
onIntersection(element, {
@@ -28,14 +21,10 @@
2821
</script>
2922

3023
<div class="header" onjunoIntersecting={onLayoutTitleIntersection} use:customOnIntersection>
31-
{#if userGettingStarted}
32-
<LaunchpadGettingStarted />
33-
{:else}
34-
<LaunchpadGreetings
35-
providerData={$providerDataUi}
36-
withoutReturningLabel={withoutGreetingsReturningLabel}
37-
/>
38-
{/if}
24+
<LaunchpadGreetings
25+
providerData={$providerDataUi}
26+
withoutReturningLabel={withoutGreetingsReturningLabel}
27+
/>
3928

4029
{@render children?.()}
4130
</div>

src/frontend/src/lib/i18n/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@
319319
"commander": "Commander",
320320
"spacebuilder": "Spacebuilder",
321321
"captain": "Captain",
322-
"getting_started_credits": "Welcome to Juno! Reach out on <a href=\"https://discord.gg/wHZ57Z2RAG\" rel=\"external noopener noreferrer\" target=\"_blank\"><strong>Discord</strong></a> and we'll get you started for free.",
323322
"attach_title": "Attach Module",
324323
"attach_description": "Connect an existing Satellite, Orbiter, or UFO to your Console.",
325324
"attach_id": "Enter ID",

src/frontend/src/lib/i18n/zh-cn.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@
320320
"commander": "指挥官",
321321
"spacebuilder": "太空建造者",
322322
"captain": "船长",
323-
"getting_started_credits": "欢迎来到 Juno!在 <a href=\"https://discord.gg/wHZ57Z2RAG\" rel=\"external noopener noreferrer\" target=\"_blank\"><strong>Discord</strong></a> 上联系我们,免费开始您的旅程。",
324323
"attach_title": "附加模块",
325324
"attach_description": "将现有的卫星、轨道器或 UFO 连接到您的控制台。",
326325
"attach_id": "输入 ID",

src/frontend/src/lib/types/i18n.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ interface I18nLaunchpad {
326326
commander: string;
327327
spacebuilder: string;
328328
captain: string;
329-
getting_started_credits: string;
330329
attach_title: string;
331330
attach_description: string;
332331
attach_id: string;

0 commit comments

Comments
 (0)