Skip to content

[Dashboard] Add FTUX completion tracking for Engine checklist #7758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ interface Props {
}

export const EngineChecklist: React.FC<Props> = (props) => {
const ftuxCompleted = localStorage.getItem("engineFtuxCompleted") === "true";

const finalSteps = useMemo(() => {
const steps: Step[] = [];
steps.push({
Expand Down Expand Up @@ -46,7 +48,7 @@ export const EngineChecklist: React.FC<Props> = (props) => {
wallets={props.wallets}
/>
),
completed: props.hasTransactions,
completed: props.hasTransactions || ftuxCompleted,
description:
"Engine handles gas fees, and is designed for scale, speed and security. Send a test transaction to see it in action",
showCompletedChildren: false,
Expand All @@ -62,6 +64,7 @@ export const EngineChecklist: React.FC<Props> = (props) => {
props.teamSlug,
props.client,
props.isManagedVault,
ftuxCompleted,
]);

const isComplete = useMemo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ export function SendTestTransaction(props: {
`/team/${props.teamSlug}/${props.project.slug}/transactions`,
);
} else {
localStorage.setItem("engineFtuxCompleted", "true");
router.refresh();
}
}}
Expand Down
Loading