Repository navigation
v0.5.5 - Reflex Type Compatibility Fix
Fixed
Docker Startup Crash (UntypedVarError)
- Reflex rejected
Dict[str, Any]typed state vars inrx.foreachcalls, causing the Docker image to crash at startup - All state dict values now converted to
dict[str, str]via_str_dict()helper acrossLibraryState,GeneratorState,HistoryState, andTaggingState
Optional Type Deprecation Warnings
Optional[int]year filter state vars triggered Reflex deprecation warnings whenNonewas passed to UI components- Changed to
str = ""with explicitint()conversion at DB query boundaries
has_embedding Badge
- After string coercion,
"0"was truthy and incorrectly showed a green "Yes" badge in the library track table - Now uses explicit
== "1"comparison
Files Changed
src/plexmix/ui/states/library_state.py— state var types + _str_dict conversionsrc/plexmix/ui/states/generator_state.py— state var types + _str_dict conversionsrc/plexmix/ui/states/history_state.py— state var types + _str_dict conversionsrc/plexmix/ui/states/tagging_state.py— state var types + _str_dict conversionsrc/plexmix/ui/components/track_table.py— type hints + has_embedding fixsrc/plexmix/ui/pages/history.py— parameter type updatetests/ui/test_states.py— all assertions updated for string types
Testing
All 315 tests passing ✅