Skip to content

Commit ea247db

Browse files
[Dashboard] Add FTUX completion tracking for Engine checklist (#7758)
1 parent e8470fc commit ea247db

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/ftux.client.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ interface Props {
1919
}
2020

2121
export const EngineChecklist: React.FC<Props> = (props) => {
22+
const ftuxCompleted = localStorage.getItem("engineFtuxCompleted") === "true";
23+
2224
const finalSteps = useMemo(() => {
2325
const steps: Step[] = [];
2426
steps.push({
@@ -46,7 +48,7 @@ export const EngineChecklist: React.FC<Props> = (props) => {
4648
wallets={props.wallets}
4749
/>
4850
),
49-
completed: props.hasTransactions,
51+
completed: props.hasTransactions || ftuxCompleted,
5052
description:
5153
"Engine handles gas fees, and is designed for scale, speed and security. Send a test transaction to see it in action",
5254
showCompletedChildren: false,
@@ -62,6 +64,7 @@ export const EngineChecklist: React.FC<Props> = (props) => {
6264
props.teamSlug,
6365
props.client,
6466
props.isManagedVault,
67+
ftuxCompleted,
6568
]);
6669

6770
const isComplete = useMemo(

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/send-test-tx.client.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ export function SendTestTransaction(props: {
314314
`/team/${props.teamSlug}/${props.project.slug}/transactions`,
315315
);
316316
} else {
317+
localStorage.setItem("engineFtuxCompleted", "true");
317318
router.refresh();
318319
}
319320
}}

0 commit comments

Comments
 (0)