Browse Source

Merge branch 'feature/interaction' of https://git.yuanzoo.cn/weitao/popiart-node-canvas into feature/interaction

feature/new_node
TianYun 1 month ago
parent
commit
59334d769a
  1. 2
      .gitignore
  2. 5
      src/components/onboarding/FTUXModal.tsx

2
.gitignore

@ -3,7 +3,7 @@
/.pnp
.pnp.js
.yarn/install-state.gz
.codegraph
# testing
/coverage

5
src/components/onboarding/FTUXModal.tsx

@ -15,10 +15,11 @@ export function FTUXModal({ onComplete, onStartTutorial }: FTUXModalProps) {
const [showSkipConfirm, setShowSkipConfirm] = useState(false);
const handleNext = () => {
if (currentStep === 4) {
if (currentStep === 3) {
// Last step - user chose "Skip Tutorial"
setFTUXCompleted(true);
onComplete();
console.log("User completed FTUX");
} else {
setCurrentStep((currentStep + 1) as FTUXStep);
}
@ -100,7 +101,7 @@ export function FTUXModal({ onComplete, onStartTutorial }: FTUXModalProps) {
{/* Step indicators */}
<div className="flex gap-2 mt-4">
{([1, 2, 3, 4] as const).map((step) => (
{([1, 2, 3] as const).map((step) => (
<div
key={step}
className={`h-1 flex-1 rounded-full transition-colors ${

Loading…
Cancel
Save