feat: Flow Transfer, Procedural Assist & UI Design System #97

Merged
chihlasm merged 51 commits from feat/flow-transfer-and-procedural-assist into main 2026-03-07 23:44:14 +00:00
Showing only changes of commit b6eaacb9f9 - Show all commits

View File

@@ -188,11 +188,18 @@ export default function SurveyPage() {
const goSlide = (idx: number) => {
setCurrentSlide(idx)
requestAnimationFrame(() => {
window.scrollTo({ top: 0, behavior: 'smooth' })
})
}
// Scroll to top whenever the active slide changes
const isFirstRender = useRef(true)
useEffect(() => {
if (isFirstRender.current) {
isFirstRender.current = false
return
}
window.scrollTo({ top: 0, behavior: 'smooth' })
}, [currentSlide])
const handleSubmit = async () => {
setIsSubmitting(true)
setSubmitError('')