Commit Graph

1794 Commits

Author SHA1 Message Date
Lendemor
3251609656 add missing env 2024-10-05 00:52:07 +02:00
Lendemor
20ba460c84 fix python version 2024-10-05 00:49:52 +02:00
Lendemor
57e8a8be16 fix python version 2024-10-05 00:44:43 +02:00
Lendemor
89d63159c2 run bun outdated on reflex-web to catch most of the packages 2024-10-05 00:42:54 +02:00
Lendemor
31976efe21 clean up output for backend check 2024-10-05 00:32:43 +02:00
Lendemor
8c11b2d99d fix attempt for backend dep 2024-10-05 00:30:19 +02:00
Lendemor
2892d788cb debug dep check 2024-10-05 00:23:50 +02:00
Lendemor
f200ab7f60 try to set asyncio policy 2024-10-05 00:18:29 +02:00
Lendemor
398ce13cb0 try some options 2024-10-04 22:27:11 +02:00
Lendemor
2425dd8f36 fix tests 2024-10-04 21:37:48 +02:00
Lendemor
54ab0e22fe fix some warnings in tests 2024-10-04 20:54:49 +02:00
Lendemor
4a32c5a1db bump js versions for some packages 2024-10-04 18:46:58 +02:00
Lendemor
b7c5dc9b80 Merge branch 'main' into release/test_check_dep 2024-10-04 17:20:13 +02:00
Masen Furer
d77b900bd7
[ENG-3867] Garden Variety Pickle (#4054)
* Use regular `pickle` module from stdlib

* Avoid recreating the rx.State tree for every `get_state`

* Remove dill dependency

* relock deps
2024-10-03 19:19:06 -07:00
Khaleel Al-Adhami
fafdeb892e
Include emotion inside of dynamic components (#4052)
* bundle chakra in window for CSR

* remove repeated chakra ui reference

* use dynamically generated libraries

* remove js from it

* include emotion react for dynamic components

* make code more readable

Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>

* jsx yea

* what

---------

Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
2024-10-03 15:58:42 -07:00
Khaleel Al-Adhami
0f8630fb2d
remove var operation error (#4053)
* remove var operation error

* dang it darglint
2024-10-03 15:58:04 -07:00
Khaleel Al-Adhami
73e8a4e0ab
support eventspec/eventchain in var operations (#4038) 2024-10-03 15:33:51 -07:00
Lendemor
10890744a9 sigh 2024-10-03 23:43:59 +02:00
Khaleel Al-Adhami
ad0827c59c
bundle chakra in window for CSR (#4042)
* bundle chakra in window for CSR

* remove repeated chakra ui reference

* use dynamically generated libraries

* remove js from it
2024-10-03 14:25:21 -07:00
Lendemor
d3ef53ff7f nope nope nope 2024-10-03 23:24:14 +02:00
Masen Furer
a66e0f2e11
[ENG-3870] rx.call_script with f-string var produces incorrect code (#4039)
* Add additional test cases for rx.call_script

Include internal vars inside an f-string to be properly rendered on the backend
and frontend.

* [ENG-3870] rx.call_script with f-string var produces incorrect code

Avoid casting javascript code with embedded Var as LiteralStringVar

There are two cases that need to be handled:

1. The javascript code contains Vars with VarData, these can only be evaluated
   in the component context, since they may use hooks. Vars with VarData cannot be
   used from the backend. In this case, we cast the given code as a raw js
   expression and include the extracted VarData.

2. The javascript code has no VarData. In this case, we pass the code as the
   raw js expression and cast to a python str to get a js literal string to eval.

* use VarData.__bool__ instead of `is None`
2024-10-03 14:18:53 -07:00
Thomas Brandého
40f1880932
move router dataclasses in their own file (#4044) 2024-10-03 14:18:28 -07:00
Lendemor
4f8dede1b5 hmm yeah 2024-10-03 23:16:27 +02:00
Lendemor
2fce6e2a6c fix stuff 2024-10-03 23:14:30 +02:00
Lendemor
4fe5d00086 fix frontend dep check 2024-10-03 23:12:13 +02:00
Lendemor
c0a8a327fa split dep check in two job 2024-10-03 23:09:38 +02:00
Lendemor
9d47fa65a9 oops, you saw nothing 2024-10-03 22:59:30 +02:00
Lendemor
386fbc3b6e update check to ignore pyright and ruff 2024-10-03 22:45:00 +02:00
Lendemor
ba58483f77 relock deps 2024-10-03 22:35:23 +02:00
Khaleel Al-Adhami
56709a210b
add of_type to _evaluate (#4051)
* add of_type to _evaluate

* get it right pyright
2024-10-03 13:01:19 -07:00
Lendemor
08baba5ffc bump poetry version 2024-10-03 21:48:58 +02:00
Lendemor
9603a90c26 update workflow 2024-10-03 21:26:55 +02:00
Khaleel Al-Adhami
27bb7179d6
default should be warning for subprocesses not info (#4049) 2024-10-03 12:24:56 -07:00
Lendemor
cbd0a18ade rename action to follow convention of other actions 2024-10-03 19:47:36 +02:00
Elijah Ahianyo
4b3d056212
[ENG-3476] Setting State Vars that are not defined should raise an error (#4007) 2024-10-03 10:35:34 -07:00
Lendemor
8db5faf9c9 add workflow to check dependencies on release branch 2024-10-03 19:34:29 +02:00
Elijah Ahianyo
12d73e4167
Track the last reflex run time (#4045) 2024-10-03 09:48:50 -07:00
Thomas Brandého
3f51943162
use pathlib as much as possible (#3967)
* use pathlib as much as possible

* fixstuff

* break locally to unbreak in CI 🤷

* add type on env

* debug attempt 1

* debugged

* oops, there is the actual fix

* fix 3.9 compat
2024-10-03 17:50:39 +02:00
Thomas Brandého
f3be9a3305
fix granian message (#4037) 2024-10-03 15:04:44 +02:00
Khaleel Al-Adhami
6a9f83cc2d
set loglevel to info with hosting cli (#4043)
* set loglevel to info with hosting cli

* reduce reused logic
2024-10-02 18:04:04 -07:00
Masen Furer
c08720ed1a
Use an equality check instead of startswith (#4024) 2024-10-01 15:23:35 -07:00
Simon Young
e96b4bf42e
a friendly little helper (#4021)
* a friendly little helper

* addressing comments

* update comment

---------

Co-authored-by: simon <simon@reflex.dev>
2024-10-01 14:32:05 -07:00
Masen Furer
9c3cc0cfa6
bump version to 0.6.2dev1 (#4025)
For further development against the version that will become 0.6.2
2024-10-01 12:34:28 -07:00
ChinoUkaegbu
bd71c8e6c9
feat: Add support for missing SVGs (#3962) 2024-10-01 09:24:26 -07:00
Khaleel Al-Adhami
9719f5d57e
use literal var instead of serialize for toast props (#4027) 2024-09-29 12:08:56 -07:00
Thomas Brandého
23e979717f
remove all runtime asserts (#4019)
* remove all runtime asserts

* Update reflex/testing.py

Co-authored-by: Masen Furer <m_github@0x26.net>

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2024-09-27 17:25:22 -07:00
Khaleel Al-Adhami
62021b0b40
implement _evaluate in state (#4018)
* implement _evaluate in state

* add warning

* use typing_extension

* add integration test
2024-09-27 16:58:20 -07:00
Thomas Brandého
1b3422dab6
improve lifespan typecheck and debug (#4014)
* add lifespan debug statement

* improve some of the logic for lifespan tasks

* fix partial name with update_wrapper
2024-09-27 16:17:30 -07:00
Masen Furer
9ca5d4a095
Track backend-only vars that are declared without a default value (#4016)
* Track backend-only vars that are declared without a default value

Without this provision, declared backend vars can be accidentally shared among
all states if a mutable value is assigned to the class attribute.

* add test case for no default backend var
2024-09-27 12:04:43 -07:00
Khaleel Al-Adhami
eea5dc1918
change loglevel and fix granian on linux (#4012)
* change loglevel and fix it on linux

* run precommit

* fix that as well
2024-09-26 21:54:03 -07:00