* 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>
* adjust setter to include type annotation
* apparently this discovered some bugs
* remove some pyright ignores
* add str to int/float conversion
* dang it darglint
* 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
* [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.
* raise error when passing a str(var)
* make it faster
* fix typo
* fix tests
* mocker consistency
Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
* ditto
Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
---------
Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
* move overlays to _app.js
* fix unit tests
* fix dynamic imports app
* fix unit cases once again
* clear custom compoent cache between app harness tests
* Sticky tweaks: only show in prod mode
Only display the sticky badge in prod mode.
Display the mini-badge for mobile and tablet; full badge only displayed at
desktop width.
* Remove localhost checking
* fix bun path handling and add a test
* fix flags
* fix tests
* fix unit tests and mock object
* fix units test again
* revert some changes for now
* remove unused test
* allow gunicorn worker to be disabled
* allow gunicorn worker to be disabled
* rewrite the command
---------
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
* Add path_ops.update_directory_tree:
Copy missing and newer files from src to dest
* add console.timing context
Log debug messages with timing for different processes.
* Update assets tree as app._compile step.
If the assets change between hot reload, then update them before reloading (in
case a CSS file was added or something).
* Add timing for other app._compile events
* Only copy assets if assets exist
* Fix docstring for update_directory_tree
* increase nested type checking for component var types
* handle mapping as dict in type hint
* fix weird cases of using _isinstance instead of isinstance
* test out nested=0
* move union below
* don't use _instance for simple unions
* add a config variable to add extra overlay components
* add integration test
* Apply suggestions from code review
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
* move benchmarks and add some more
* change key and paths
* parametrize tests
* more specific ignore
* rename fixture
* remove previous file
* add tests for _compile_stateful_components
* remove base_state from event types
* pyi that guy
* unpack is new
* woops
* use type alias type to remove ambiguity of where types go
* use same thing with LAMBDA_OR_STATE
* do it for event type
* add the watermark class
* remove shortcut exposing badge publicly for now
* Rename as "sticky" because "watermark" has a negative connotation
* Add config `show_built_with_reflex`
This config option is available for authenticated users on various plan tiers
* py3.11 compatible f-string
* sticky badge inherit from A instead of using on_click/redirect
* fix integration test
* Move export checking logic to reflex CLI
* rx.logo: make it accessible to screen readers
Add role="img" aria_label="Reflex" and title="Reflex".
* Hide the built with reflex badge for localhost
* Revert "fix integration test"
This reverts commit a978684d70.
* experimental: do not show warning for internal imports
Only show experimental feature warnings when accessing the names through the
rx._x namespace.
If reflex internally imports the names via deep imports, then this bypasses the
warning to avoid showing it to users that have no control over how the
framework uses experimental features.
* add help link for show_built_with_reflex option
* pre-commit fixes
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
* improve rx.Field ObjectVar typing for sqlalchemy and dataclasses
* enable parametrized objectvar tests for sqlamodel and dataclass
* improve typing for ObjectVars in ArrayVars
* ruffing
* drop duplicate objectvar import
* remove redundant overload
* allow optional hints in rx.Field annotations to resolve to the correct var type