Commit Graph

7 Commits

Author SHA1 Message Date
Khaleel Al-Adhami
eeeb1180a2
replace old var system with immutable one ()
* delete most references to varr

* [REF-3562][REF-3563] Replace chakra usage ()

* only one mention of var

* delete vars.py why not

* remove reflex.vars

* rename immutable var to var

* rename ivars to vars

* add vars back smh

* ruff

* no more create_safe

* reorder deprecated

* remove raises

* remove all Var.create

* move to new api

* fix unit tests

* fix pyi hopefully

* sort literals

* fix event handler issues

* update poetry

* fix silly issues i'm very silly

* add var_operation_return

* rename immutable to not immutable

* add str type

* it's ruff out there

---------

Co-authored-by: Elijah Ahianyo <elijahahianyo@gmail.com>
2024-09-17 10:20:41 -07:00
Elijah Ahianyo
100acfe0df
[REF-3562][REF-3563] Replace chakra usage () 2024-09-17 10:20:40 -07:00
Khaleel Al-Adhami
a5c73ad8e5
Use old serializer system in LiteralVar ()
* use serializer system

* add checks for unsupported operands

* and and or are now supported

* format

* remove unnecessary call to JSON

* put base before rest

* fix failing testcase

* add hinting to get static analysis to complain

* damn

* big changes

* get typeguard from extensions

* please darglint

* dangit darglint

* remove one from vars

* add without data and use it in plotly

* DARGLINT

* change format for special props

* add pyi

* delete instances of Var.create

* modify client state to work

* fixed so much

* remove every Var.create

* delete all basevar stuff

* checkpoint

* fix pyi

* get older python to work

* dangit darglint

* add simple fix to last failing testcase

* remove var name unwrapped and put client state on immutable var

* fix older python

* fox event issues

* change forms pyi

* make test less strict

* use rx state directly

* add typeignore to page_id

* implement foreach

* delete .web states folder silly

* update reflex chakra

* fix issue when on mount or on unmount is not set

* nuke Var

* run pyi

* import immutablevar in critical location

* delete unwrap vars

* bring back array ref

* fix style props in app

* /health endpoint for K8 Liveness and Readiness probes ()

* Added API Endpoint

* Added API Endpoint

* Added Unit Tests

* Added Unit Tests

* main

* Apply suggestions from Code Review

* Fix Ruff Formatting

* Update Socket Events

* Async Functions

* Update find_replace ()

* [REF-3592]Promote `rx.progress` from radix themes ()

* Promote `rx.progress` from radix themes

* fix pyi

* add warning when accessing `rx._x.progress`

* Use correct flexgen backend URL ()

* Remove demo template ()

* gitignore .web ()

* update overflowY in AUTO_HEIGHT_JS from hidden to scroll ()

* Retain mutability inside `async with self` block ()

When emitting a state update, restore `_self_mutable` to the value it had
previously so that `yield` in the middle of `async with self` does not result
in an immutable StateProxy.

Fix 

* Include child imports in markdown component_map ()

If a component in the markdown component_map contains children components, use
`_get_all_imports` to recursively enumerate them.

Fix 

* [REF-3570] Remove deprecated REDIS_URL syntax ()

* mixin computed vars should only be applied to highest level state ()

* improve state hierarchy validation, drop old testing special case ()

* fix var dependency dicts ()

* Adding array to array pluck operation. ()

* fix initial state without cv fallback ()

* add fragment to foreach ()

* Update docker-example ()

* /health endpoint for K8 Liveness and Readiness probes ()

* Added API Endpoint

* Added API Endpoint

* Added Unit Tests

* Added Unit Tests

* main

* Apply suggestions from Code Review

* Fix Ruff Formatting

* Update Socket Events

* Async Functions

* /health endpoint for K8 Liveness and Readiness probes ()

* Added API Endpoint

* Added API Endpoint

* Added Unit Tests

* Added Unit Tests

* main

* Apply suggestions from Code Review

* Fix Ruff Formatting

* Update Socket Events

* Async Functions

* Merge branch 'main' into use-old-serializer-in-literalvar

* [REF-3570] Remove deprecated REDIS_URL syntax ()

* /health endpoint for K8 Liveness and Readiness probes ()

* Added API Endpoint

* Added API Endpoint

* Added Unit Tests

* Added Unit Tests

* main

* Apply suggestions from Code Review

* Fix Ruff Formatting

* Update Socket Events

* Async Functions

* [REF-3570] Remove deprecated REDIS_URL syntax ()

* remove extra var

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

* resolve typo

* write better doc for var.create

* return var value when we know it's literal var

* fix unit test

* less bloat for ToOperations

* simplify ImmutableComputedVar.__get__ ()

* simplify ImmutableComputedVar.__get__

* ruff it

---------

Co-authored-by: Samarth Bhadane <samarthbhadane119@gmail.com>
Co-authored-by: Elijah Ahianyo <elijahahianyo@gmail.com>
Co-authored-by: Masen Furer <m_github@0x26.net>
Co-authored-by: benedikt-bartscher <31854409+benedikt-bartscher@users.noreply.github.com>
Co-authored-by: Vishnu Deva <vishnu.deva12@gmail.com>
Co-authored-by: abulvenz <a.eismann@senbax.de>
2024-09-10 11:43:37 -07:00
Elijah Ahianyo
1f3779f40e
[REF-3536][REF-3537][REF-3541] Move chakra components into its repo(reflex-chakra) () 2024-08-19 13:41:31 -07:00
Nikhil Rao
93c97383d9
Refactor chakra components into separate folder () 2023-12-21 09:52:08 -08:00
Masen Furer
527437cf23
[REF-144] Add context in each component to prevent rerenders () 2023-11-27 16:05:59 -08:00
Masen Furer
f3929f47e3
form: only pass handleSubmit when on_submit is defined () 2023-11-13 23:27:42 -08:00