Khaleel Al-Adhami
229df1ce09
ignore rxconfig not in cwd ( #4398 )
...
* ignore rxconfig not in cwd
* no type ignore
* resolve paths
* Remove rxconfig module from sys.modules cache when reloading
* modify sys path
* add try except
* refactor inner function
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-11-19 16:46:55 -08:00
Masen Furer
67296d43c0
Don't skip serialization when Var is callable ( #4399 )
2024-11-19 16:33:27 -08:00
Alek Petuskey
bffff01acb
Add datetime to moment ( #4381 )
...
* Add datetime to moment
* Remove recharts update
* Support other formats
* simplify
* Precommit
* PYI
* change imports for pyi compat
---------
Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MacBook-Pro.local>
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-11-19 09:29:11 -08:00
Khaleel Al-Adhami
bcea79cd45
add typed dict type checking ( #4340 )
...
* add typed dict type checking
* technically it has to be a mapping, not specifically a dict
2024-11-18 19:28:38 -08:00
benedikt-bartscher
1f9a17539c
fix: do not allow instantiation of State mixins ( #4347 )
...
* fix: do not allow instantiation of State mixins
Closes #4343
* improve error message for ComponentState mixins
* fix typo
Co-authored-by: Masen Furer <m_github@0x26.net>
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-11-18 19:15:01 -08:00
Thomas Brandého
af4fe48428
[maintenance] bump some packages versions ( #4385 )
...
* bump some versions
* update ruff to 0.7.4
* bump tailwind version
* relock deps
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-11-18 18:56:28 -08:00
Thomas Brandého
adaf49e4f9
make list suggestions work in rx.input ( #4391 )
...
* make list suggestions work
* fix pyi
2024-11-18 18:22:01 -08:00
Khaleel Al-Adhami
22329e592e
add debug statement to evaluate page ( #4396 )
2024-11-18 18:21:45 -08:00
Simon Young
3f58ceef95
update cli version ( #4394 )
...
Co-authored-by: simon <simon@reflex.dev>
2024-11-18 16:59:54 -08:00
Masen Furer
6494683c27
Fix ternary logic when printing template name ( #4393 )
2024-11-19 00:11:04 +01:00
Masen Furer
34c11fdf10
require typing_extensions >= 4.6.0 ( #4373 )
...
* require typing_extensions >= 4.6.0
TypeAliasType was added in 4.6
https://github.com/python/typing_extensions/blob/main/CHANGELOG.md#release-460-may-22-2023
* update lock file, even though nothing has changed
2024-11-18 10:31:11 -08:00
benedikt-bartscher
dc347d10b3
fix: Failed to CreateArtifact ( #4339 )
2024-11-15 16:27:05 -08:00
Thomas Brandého
e45b76c01e
fix noSSRComponent imports ( #4386 )
2024-11-15 21:43:55 +01:00
Alek Petuskey
79a5409a8e
Update bug_report.md ( #4382 )
2024-11-13 20:42:29 -08:00
Elijah Ahianyo
853a9d8614
Add template name to reflex init success msg ( #4349 )
...
* Add template name to reflex init success msg
* fix pyright message
2024-11-13 10:24:36 +00:00
Khaleel Al-Adhami
27c1a7e94d
add typing to function vars ( #4372 )
...
* add typing to function vars
* import ParamSpec from typing_extensions
* remove ellipsis as they are not supported in 3.9
* try importing everything from extensions
* special case 3.9
* don't use Any from extensions
* get typevar from extensions
2024-11-12 20:00:02 -08:00
Masen Furer
5d88263cd8
[ENG-4098] Deconfuse key/value of State.get_value / dict / get_delta ( #4371 )
...
Because of some dodgy logic in Base.get_value and State.dict / State.get_delta
when the value of some state var X happened to be the name of another var in
the state Y, then the value for X would be returned as the value of Y.
wat.
Fixes #4369
2024-11-12 13:24:06 -08:00
Masen Furer
2b7ef0dccc
Temporarily downpin @radix-ui/themes <3.1.5 ( #4370 )
...
* Temporarily downpin @radix-ui/themes <3.1.5
A visual/style regression was introduced in @radix-ui/themes 3.1.5
as described in radix-ui/themes#627 which reflex needs to avoid.
* Get expected radix library version from component
2024-11-12 12:44:59 -08:00
Khaleel Al-Adhami
a1158cdb1c
redesign error boundary screen ( #4329 )
...
* redesign error boundary screen
* pyi time
* add color
* i hate python 3.9
2024-11-12 12:36:42 -08:00
1Codev
7cf3050da0
Path change after Astral 0.5.0 update ( #4336 )
...
* Astral 0.5.0 path change
https://github.com/astral-sh/uv/releases
Use XDG (i.e. ~/.local/bin) instead of the Cargo home directory in the installer
* Fix path in production-app-platform example
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-11-12 09:57:58 -08:00
Masen Furer
686548cbb1
Only pass Model.__fields__ when casting event args ( #4356 )
...
Attempting to initialize relationship fields in a sqlmodel model throws an
error, so only pass defined pydantic __fields__ if the type is a Model.
2024-11-11 16:14:08 -08:00
Masen Furer
35c8afd8c8
Bump reflex-hosting-cli dep to 0.1.15 for v2 ( #4355 )
2024-11-11 16:12:01 -08:00
Masen Furer
082f9a0bd1
export Color and ImportDict in top-level namespace ( #4352 )
...
These are useful for typing purposes and should be exposed at the top level to
avoid requiring deep imports from subpackages that we may need to change later.
2024-11-11 14:41:31 -08:00
Masen Furer
f78e3f54ef
bump to 0.6.6dev1 for further development ( #4351 )
2024-11-11 14:41:18 -08:00
Khaleel Al-Adhami
e0d1a58496
fix upload argspec being missing ( #4335 )
2024-11-08 10:12:29 -08:00
Elijah Ahianyo
cd59ab5406
[ENG-4010]Codeblock cleanup in markdown ( #4233 )
...
* Codeblock cleanup in markdown
* Initial approach to getting this working with rx.memo and reflex web
* abstract the map var logic
* the tests are not valid + pyright fix
* darglint fix
* Add unit tests plus mix components
* pyi run
* rebase on main
* fix darglint
* testing different OS
* revert
* This should fix it. Right?
* Fix tests
* minor fn signature fix
* use ArgsFunctionOperation
* use destructured args and pass the tests
* fix remaining unit tests
* fix pyi files
* rebase on main
* move language regex on codeblock to markdown
* fix tests
---------
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-11-07 19:18:14 -08:00
Simon Young
3d85936009
update cli version ( #4333 )
...
Co-authored-by: simon <simon@reflex.dev>
2024-11-07 19:17:55 -08:00
Khaleel Al-Adhami
a454b705a8
fix imports with alias from $ ( #4332 )
2024-11-07 19:17:07 -08:00
Khaleel Al-Adhami
4c4c59bf04
convert event return types to type hints ( #4331 )
2024-11-07 16:33:42 -08:00
Masen Furer
2ee2d52035
Fix pyi file merged after custom_attrs
type change ( #4330 )
2024-11-07 16:18:28 -08:00
Elijah Ahianyo
855a20fd1c
[GTM-648]Add Missing Table props ( #4322 )
...
* Add Missing Table props
* add more props
2024-11-07 16:04:03 -08:00
Masen Furer
227d09a02c
test_exception_handlers: add test case that triggers ErrorBoundary ( #4327 )
2024-11-07 16:01:37 -08:00
benedikt-bartscher
8fd5c9f200
improve typing for serializer decorator ( #4317 )
...
* improve typing for serializer decorator
* use wrapped logic
* dang it darglint
---------
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-11-07 15:52:11 -08:00
Khaleel Al-Adhami
0c482bda3c
mark var methods as private ( #4319 )
2024-11-07 14:50:26 -08:00
Khaleel Al-Adhami
7843a517bc
change custom attr to accept any ( #4323 )
2024-11-07 14:18:13 -08:00
benedikt-bartscher
2cb193e8d6
improve app_src typing ( #4324 )
2024-11-07 14:08:37 -08:00
Simon Young
e457d53924
Adding hosting v1 support ( #4309 )
...
Co-authored-by: simon <simon@reflex.dev>
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-11-06 17:18:41 -08:00
Khaleel Al-Adhami
68407ce2d8
unbreak pyi plotly ( #4320 )
2024-11-06 16:56:26 -08:00
Khaleel Al-Adhami
3bd35f53f2
add type hinting for plotly ( #4279 )
...
* add type hinting for plotly
* fix merge
2024-11-06 16:41:13 -08:00
Khaleel Al-Adhami
93ae79aa60
fix call_function events sent from backend ( #4316 )
2024-11-06 15:13:00 -08:00
Khaleel Al-Adhami
b9d73edd66
add metainfo to keyevent ( #4287 )
...
* allow for event handlers to ignore args
* use a constant
* dang it darglint
* forgor
* keep the tests but move them to valid place
* add metainfo to keyevent
* format code
* fix pyi files
* generate all prefixes of event types
* change format rule
2024-11-06 15:10:02 -08:00
Thomas Brandého
4c0b49135b
stop ignoring some lint rules ( #4311 )
...
* bump python packages version
* stop ignoring some lint rules that pass ruff check
* stop ignoring rule F541
* remove sneaky test file
2024-11-06 13:32:31 -08:00
Khaleel Al-Adhami
6ea797d0cd
pin marked to correct version ( #4313 )
...
* pin marked to correct version
* remove it completely?
* missing quotations
* match against reflex
2024-11-06 11:28:08 -08:00
Carlos
8a4701143e
add toast classname prop ( #4310 )
2024-11-06 09:49:09 -08:00
Thomas Brandého
54b081c104
allow custom bunfig.toml file ( #4280 )
...
* allow custom bunfig.toml file
* always copy custom bunfig
* split tests into half
* forgot a space
* use different syntax
* also split node latest check
* turn off failfast for app harness
---------
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-11-06 09:31:13 -08:00
Simon Young
8d5187432f
add codeowners ( #4312 )
...
Co-authored-by: simon <simon@reflex.dev>
2024-11-06 09:30:43 -08:00
Khaleel Al-Adhami
c57d496184
improve typing for non decorated events ( #4308 )
...
* improve typing for non decorated events
* fix any typing
2024-11-06 09:21:19 -08:00
Khaleel Al-Adhami
bfa7ca639f
better missing system package message ( #4306 )
...
* better missing system package message
* change error type
2024-11-06 09:21:04 -08:00
Khaleel Al-Adhami
6334cfab0d
allow for event handlers to ignore args ( #4282 )
...
* allow for event handlers to ignore args
* use a constant
* dang it darglint
* forgor
* keep the tests but move them to valid place
2024-11-06 09:20:37 -08:00
simon
d9ab3a0f1c
Revert "add v1 support"
...
This reverts commit c216eeafeb
.
2024-11-05 18:28:16 -08:00