3 devlogs
1h 49m 17s
I couldn’t find any good Automata Editors online so Im making my own in react+typescript
I couldn’t find any good Automata Editors online so Im making my own in react+typescript
App.tsx Modularization Refactorsrc/App.tsx into focused components:
src/components/AppHero.tsxsrc/components/AutomatonEditorPanel.tsxsrc/components/AutomatonVisualizationPanel.tsxsrc/App.tsx to act as an orchestration layer for state + handlers while delegating render blocks to the new components.src/App.tsx to reduce repeated per-automaton update logic:
updateSelectedUiStatehandleSimulationInputChangehandlePreviousStephandleNextStephandlePauseAutoPlaysimulationPanelProps object passed to the visualization component.App declaration to React.FC typing for consistency with the extracted components.Log in to leave a comment
simulateDFA in src/App.tsx.input string + Run).src/App.css.Allow simulating step by step.
pnpm lint passedpnpm test passedLog in to leave a comment
README.md.src/components/src/lib/src/types/actions/setup-node@v4 with pnpm cache.pnpm-workspace.yaml existed without a required packages field.packages:- .pnpm store path --silentpnpm install --frozen-lockfilesrc/types/automaton.ts.src/lib/parseAutomaton.ts:
states, alphabet, start, accept, and transitions.src/App.tsx:
src/App.css.pnpm install passedpnpm dev started successfullypnpm lint passedpnpm build passedsimulateDFA).Log in to leave a comment