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
.pnp.js .pnp.js
.yarn/install-state.gz .yarn/install-state.gz
.codegraph
# testing # testing
/coverage /coverage

5
src/components/onboarding/FTUXModal.tsx

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

Loading…
Cancel
Save