Masen Furer
81583d45ca
[HOS-313] state.js: when a routing error occurs, delete it ( #4410 )
...
In some cases, a routing failure can cause the failure to be cached. When the
router has a cached failure, pushing such a route will never call
routeChangeComplete, and thus on_load event will never be fired for that route.
Purposely clearing the error from the router allows the page to properly load
on subsequent attempts without refreshing the app.
2024-11-21 10:27:44 -08:00
Masen Furer
4571524e1c
[ENG-4130] Disable typer/rich integration appropriately ( #4412 )
...
The `rich` module should be set to `None`, indicating that rich should not be used.
Setting it to `False` worked before, but recently added code in typer fails
when checking `if rich is not None`.
ref: https://github.com/fastapi/typer/pull/847
2024-11-21 13:11:34 +01:00
Thomas Brandého
681b616000
fix appearance broken by #3812 ( #4403 )
...
* fix appearance broken by #3812
* fix again to pass tests
2024-11-20 11:12:52 -08:00
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
Khaleel Al-Adhami
2e1bc057a4
aaaaa
2024-11-15 17:39:14 -08:00
Khaleel Al-Adhami
2b05ee98ed
make it handle slice
2024-11-15 17:30:45 -08:00
Khaleel Al-Adhami
ed1ae0d3a2
add missing return
2024-11-15 17:15:43 -08:00
Khaleel Al-Adhami
7d0a4f7133
make safe issubclass
2024-11-15 17:12:42 -08:00
Khaleel Al-Adhami
079cc56f59
more types
2024-11-15 16:59:28 -08:00
benedikt-bartscher
dc347d10b3
fix: Failed to CreateArtifact ( #4339 )
2024-11-15 16:27:05 -08:00
Khaleel Al-Adhami
92b1232806
would this fix it? no clue
2024-11-15 16:16:13 -08:00
Khaleel Al-Adhami
7f1dc7c841
remove .bool
2024-11-15 15:58:03 -08:00
Khaleel Al-Adhami
eac54d60d2
call guess type
2024-11-15 15:54:04 -08:00
Khaleel Al-Adhami
702670ff26
add components to var data
2024-11-15 15:47:46 -08:00
Khaleel Al-Adhami
88cfb3b7e2
handle var at top level
2024-11-15 15:11:44 -08:00
Khaleel Al-Adhami
53b98543cc
default factory
2024-11-15 14:58:19 -08:00
Khaleel Al-Adhami
5f0546f32e
what am i doing anymore
2024-11-15 14:53:51 -08:00
Thomas Brandého
e45b76c01e
fix noSSRComponent imports ( #4386 )
2024-11-15 21:43:55 +01:00
Khaleel Al-Adhami
2c04153013
special case ellipsis types
2024-11-14 09:45:44 -08:00
Alek Petuskey
79a5409a8e
Update bug_report.md ( #4382 )
2024-11-13 20:42:29 -08:00
Khaleel Al-Adhami
a9db61b371
get it right pyright
2024-11-13 19:03:42 -08:00
Khaleel Al-Adhami
3cdd2097b6
fix pyright issues outside of vars
2024-11-13 18:43:20 -08:00
Khaleel Al-Adhami
9d7e353ed3
fix pyright issues
2024-11-13 18:40:06 -08:00
Khaleel Al-Adhami
f4aa1f58c3
implement type computers
2024-11-13 18:17:53 -08:00
Khaleel Al-Adhami
ebc81811c0
fix silly mistakes
2024-11-13 13:51:47 -08:00
Khaleel Al-Adhami
1e9743dcd6
Merge branch 'main' into add-validation-to-function-vars
2024-11-13 13:23:38 -08:00
Khaleel Al-Adhami
05bd41c040
add validation
2024-11-13 13:22:01 -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
Khaleel Al-Adhami
f9b24fe5bd
get typevar from extensions
2024-11-12 16:38:30 -08:00
Khaleel Al-Adhami
6745d6cb9d
don't use Any from extensions
2024-11-12 16:35:04 -08:00
Khaleel Al-Adhami
7ada0ea5b9
special case 3.9
2024-11-12 16:23:06 -08:00
Khaleel Al-Adhami
48951dbabd
try importing everything from extensions
2024-11-12 16:11:30 -08:00
Khaleel Al-Adhami
7aa9245514
remove ellipsis as they are not supported in 3.9
2024-11-12 16:07:17 -08:00
Khaleel Al-Adhami
9b06d684cd
import ParamSpec from typing_extensions
2024-11-12 16:03:40 -08:00
Khaleel Al-Adhami
56f0d6375b
add typing to function vars
2024-11-12 16:01:32 -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