chore: auto-commit before merge (loop primary)

This commit is contained in:
2026-02-18 00:42:07 +00:00
parent 62c0d2ea19
commit 134e41f4f9
19 changed files with 925 additions and 349 deletions
+13 -2
View File
@@ -44,12 +44,23 @@ function SkipButton({ onSkip }: { onSkip: () => void }) {
}
function App() {
const [phase, setPhase] = useState<Phase>('boot')
const [phase, setPhase] = useState<Phase>(() => {
if (typeof window !== 'undefined' && sessionStorage.getItem('portfolio-visited')) {
return 'pmr'
}
return 'boot'
})
useEffect(() => {
initModel()
}, [])
useEffect(() => {
if (phase === 'pmr') {
sessionStorage.setItem('portfolio-visited', '1')
}
}, [phase])
const skipToDashboard = () => setPhase('pmr')
return (
@@ -78,7 +89,7 @@ function App() {
<LoginScreen onComplete={() => setPhase('pmr')} />
)}
{phase === 'boot' && (
{(phase === 'boot' || phase === 'login') && (
<SkipButton onSkip={skipToDashboard} />
)}
</div>