Commit 78c60da
feat(lvt): migrate templates to method dispatch pattern (#6)
Remove Store interface with Change() method in favor of automatic
method dispatch. Actions now route to methods by name (e.g., action
"increment" -> Increment() method).
Changes:
- Generator templates: Convert Change() switch to individual methods
- Kit templates (simple, single, multi): Same pattern
- Auth handler: Register, Login, MagicLink, ForgotPassword, SwitchView
- E2E tests: LoadingTestState, FocusTestState migrated
- Golden files and README updated
BREAKING CHANGE: Generated code no longer uses Change() method.
Existing apps must migrate to method dispatch pattern.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent d5105fb commit 78c60da
15 files changed
Lines changed: 1049 additions & 803 deletions
File tree
- e2e
- internal
- generator/templates
- app
- resource
- view
- kits/system
- multi/templates
- app
- auth
- resource
- view
- simple/templates/app
- single/templates
- app
- resource
- view
- testdata/golden
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
827 | 834 | | |
828 | 835 | | |
829 | 836 | | |
830 | 837 | | |
| 838 | + | |
831 | 839 | | |
832 | 840 | | |
833 | 841 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
1132 | | - | |
| 1132 | + | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
| 1137 | + | |
1141 | 1138 | | |
1142 | 1139 | | |
1143 | 1140 | | |
| |||
1377 | 1374 | | |
1378 | 1375 | | |
1379 | 1376 | | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
1386 | 1380 | | |
1387 | 1381 | | |
1388 | 1382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
0 commit comments