Commit 82ad0ac
committed
😈 Unleash chaos upon Studio TUI with reducer pattern of doom
Replace predictable event handling with a sinister event-driven
architecture using a central reducer that bends all state to its will.
Introduce StudioEvent as the dark overlord of all state changes,
processed through a pure reducer function that spawns side effects
for nefarious async operations. Add History system for stalking content
changes, chat messages, and events across all modes with session
persistence for eternal surveillance.
Shatter the monolithic modal handler into isolated modules, each
plotting their own schemes. Handlers now return Vec<SideEffect> directly
instead of the pathetic legacy Action enum, enabling ruthless separation
between state mutations and I/O domination.
This architecture provides inescapable data flow, testable state
transitions, and lays groundwork for our AI overlords to seize control
of the UI.1 parent 3e5609a commit 82ad0ac
File tree
29 files changed
+3934
-1660
lines changed- src
- agents
- tools
- studio
- handlers
- modals
- modals
- modes
- render
29 files changed
+3934
-1660
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 345 | + | |
349 | 346 | | |
350 | 347 | | |
351 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
1037 | 1040 | | |
1038 | 1041 | | |
1039 | 1042 | | |
| |||
0 commit comments