Khaleel Al-Adhami
907024f5af
Merge 42fd69a93a
into c2917d46d5
2025-02-20 15:23:50 +01:00
Khaleel Al-Adhami
c2917d46d5
simplify and fix set_color_mode ( #4852 )
...
* simplify and fix set_color_mode
* woops
2025-02-19 22:06:13 -08:00
Khaleel Al-Adhami
96086bcb0c
change error connecting to backend when backend is cold started ( #4814 )
...
* change error connecting to backend when backend is cold started
* do as simon wanted
* prefix with REFLEX
2025-02-19 15:09:13 -08:00
Khaleel Al-Adhami
6e4522c15c
react 19 time ( #4848 )
...
* react 19 time
* idk why
* better default for resolvedColorMode
* remove prints
2025-02-19 14:46:53 -08:00
Khaleel Al-Adhami
42fd69a93a
fix pyi
2025-02-19 14:26:08 -08:00
Khaleel Al-Adhami
192646af9f
Merge branch 'main' into use-lowercase-datatypes-typing
2025-02-19 14:24:12 -08:00
Masen Furer
deb1f4f702
[ENG-4713] Cache pages which add states when evaluating ( #4788 )
...
* cache order of imports that create BaseState subclasses
* Track which pages create State subclasses during evaluation
These need to be replayed on the backend to ensure state alignment.
* Clean up: use constants, remove unused code
Handle closing files with contextmanager
* Expose app.add_all_routes_endpoint for flexgen
* Include .web/backend directory in backend.zip when exporting
2025-02-19 12:43:20 -08:00
Khaleel Al-Adhami
7a6c7123bd
treat hyphen as underscore in keys of styles ( #4810 )
...
* treat hyphen as underscore in keys of styles
* fix tests
* more nuanced conversions
2025-02-19 12:33:03 -08:00
Khaleel Al-Adhami
abab18e165
components deserve to be first class props ( #4827 )
...
* components deserve to be first class props
* default back to {}
* smarter yield
* how much does caching help?
* only hit the slower path on _are_fields_known
* remove the cache thingy
* cache the inner _get_component_prop_names
* oops
* dang it darglint
* refactor things a bit
* fix events
2025-02-19 11:27:33 -08:00
Masen Furer
762d975a87
Allow any user to set show_built_with_reflex=False
in any mode ( #4847 )
2025-02-19 11:03:54 -08:00
Sumanth
405872aaf0
Wrapping extra components inside of the Context Menu Component ( #4831 )
...
* Wrapping extra components inside of the Context Menu Component (partial fix for #4262 ) label, group, radio, radio_group
* removed unwanted changes
* removed codespell ignores and pyright type checking ignores
* remove misc changes
---------
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2025-02-19 10:59:46 -08:00
Thomas Brandého
0a33cc3b8a
auto hide badge for pro+ users for cloud deployments ( #4819 )
...
* auto hide badge for pro+ users for cloud deployments
* update integrations tests
* fix integrations for real
2025-02-19 18:29:11 +01:00
Khaleel Al-Adhami
411f46c73e
remove a bit more unions
2025-02-18 16:09:22 -08:00
Khaleel Al-Adhami
6df5cfe43b
remove somehow even more optionals
2025-02-18 15:31:07 -08:00
Khaleel Al-Adhami
a6b9f4f1c8
removed even more optionals
2025-02-18 15:27:16 -08:00
Khaleel Al-Adhami
035e6a0bbf
remove a bunch of union and optional
2025-02-18 15:20:10 -08:00
Khaleel Al-Adhami
236af4e67c
do it for most of state
2025-02-18 14:35:52 -08:00
Khaleel Al-Adhami
5537eb1121
remove weird guy
2025-02-18 14:21:32 -08:00
Khaleel Al-Adhami
5396f80604
fix tests
2025-02-18 14:16:14 -08:00
Khaleel Al-Adhami
d0940b9cef
do the same for tuple
2025-02-18 14:09:23 -08:00
Khaleel Al-Adhami
2430a9c1e2
do the same for set
2025-02-18 14:07:36 -08:00
Khaleel Al-Adhami
012d0c2eb9
do the same for dict, except for state.py
2025-02-18 14:06:25 -08:00
Khaleel Al-Adhami
35a88466ef
use lowercase datatypes typing
2025-02-18 14:03:59 -08:00
Khaleel Al-Adhami
946b7bc25a
upgrade deps as per python 3.10 ( #4842 )
...
* upgrade deps as per python 3.10
* no need for that guy
2025-02-18 13:56:58 -08:00
Khaleel Al-Adhami
18990df41f
add capitalize and title var operations ( #4840 )
2025-02-18 12:45:43 -08:00
Khaleel Al-Adhami
3129ddab47
Add auto scroll ( #4790 )
...
* add auto_scroll
* add auto_scroll
* add auto_scroll to global
* use random id for maximum safety
2025-02-18 11:52:39 -08:00
Khaleel Al-Adhami
f4165c9812
fix types for html elements ( #4768 )
2025-02-18 10:20:22 -08:00
Masen Furer
6848915883
Update rx.get_upload_url signature to accept Var[str] ( #4826 )
...
* Update rx.get_upload_url signature to accept Var[str]
* Add py.typed
Fix #4806
2025-02-14 17:10:01 -08:00
Khaleel Al-Adhami
10bae9577c
only write if file changed ( #4822 )
...
* only write if file changed
* preface it on it existing
2025-02-13 22:49:27 -08:00
Khaleel Al-Adhami
7c4257a222
give option to only use main thread ( #4809 )
...
* give option to only use main thread
* change default to main thread
* fix comment
* default to None, as 0 would raise a ValueError
Co-authored-by: Masen Furer <m_github@0x26.net>
* add warning about passing 0
* move executor to config
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
2025-02-13 18:36:30 -08:00
Khaleel Al-Adhami
8e579efe47
remove some benchmarks from CI ( #4812 )
2025-02-13 16:17:06 -08:00
Khaleel Al-Adhami
b44bbc81a0
import var perf improvements ( #4813 )
...
* import var perf improvements
* use tuples over iterator
* the only thing that matters
* maybe tuple map is faster than tuple list comprehension
* do it in one list comprehension
2025-02-13 15:54:10 -08:00
Khaleel Al-Adhami
aac61c69c2
actually get rid of callable var fr fr ( #4821 )
2025-02-13 15:40:01 -08:00
Khaleel Al-Adhami
6fb491471b
cache get_type_hints for environment ( #4820 )
2025-02-13 13:44:02 -08:00
Khaleel Al-Adhami
40294a7c9e
standarize filename from upload ( #4734 )
...
* standarize filename from upload
* all my friends hate fast api upload file
* make deprecated filename private
* lstrip the "/"
Co-authored-by: Masen Furer <m_github@0x26.net>
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
2025-02-13 13:36:59 -08:00
Khaleel Al-Adhami
c6fb4e238d
improve into component conversion ( #4754 )
...
* improve into component conversion
* correct the order of .State
2025-02-13 12:44:42 -08:00
Khaleel Al-Adhami
10c45b185c
adjust setter to include type annotation ( #4726 )
...
* adjust setter to include type annotation
* apparently this discovered some bugs
* remove some pyright ignores
* add str to int/float conversion
* dang it darglint
2025-02-13 12:44:27 -08:00
Thomas Brandého
2ba73f7ff9
bump ruff to 0.9.6 ( #4817 )
2025-02-13 10:19:33 -08:00
Khaleel Al-Adhami
d79366d8b2
benchmark experimentation ( #4811 )
...
* benchmark experimentation
* do the same for test_evaluate_page
* import templates beforehands
* add auto reload
* disable extensions
2025-02-12 14:51:58 -08:00
Thomas Brandého
dd5b817f0f
fix port handling ( #4773 )
...
* handle port better
* setting port via envvar is possible again
* change default deploy_url and api_url
* fix for review
* update docstring
* type new envvar as optional
2025-02-12 19:06:01 +01:00
Khaleel Al-Adhami
977e1dcb67
update deps 2025-02-11 ( #4804 )
2025-02-12 09:05:36 -08:00
Thomas Brandého
a31301cb4f
add stateful benchmarks ( #4764 )
...
* add stateful benchmarks
* make stateful stuff more complex
* unpack tuple in itertag
* fix comment
2025-02-11 18:51:05 -08:00
Masen Furer
7da96a1175
pyproject.toml: bump to 0.7.1 for further development ( #4808 )
2025-02-11 18:41:04 -08:00
Masen Furer
3f68a27a22
[ENG-4647] Fix env_file handling ( #4805 )
...
* [ENG-4647] Fix env_file handling
* Import dotenv.load_dotenv early to avoid ImportError while loading
rxconfig.py
* Read ENV_FILE from the environment explicitly.
fix #4803
* Config.Config: use_enum_values = False
Save enum fields as the enum object rather than the value.
2025-02-11 18:05:33 -08:00
Khaleel Al-Adhami
cb2e7df96a
invert logic of default hot reload exclusion ( #4807 )
...
* invert logic of default hot reload exclusion
* console debug reload paths
2025-02-11 17:47:44 -08:00
Khaleel Al-Adhami
6cbdd00169
fix toast provider needed ( #4801 )
...
* fix toast provider needed
* fix tests
2025-02-11 16:46:06 -08:00
Simon Young
289d10d30e
test actions in codeql ( #4802 )
2025-02-11 16:04:03 -08:00
Simon Young
e5e6c4e1d7
Create codeql.yml ( #4799 )
...
* Create codeql.yml
* add config
* fix that guy who's mad
---------
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2025-02-11 15:49:06 -08:00
Declan Brady
894a01a5a5
Add toast.loading from the sonner package ( #4792 )
2025-02-11 12:21:27 -08:00
Thomas Brandého
64b1630d02
set global loglevel for subprocesses ( #4791 )
2025-02-11 12:15:38 -08:00