Commit Graph

514 Commits

Author SHA1 Message Date
TaiJuWu
57ec6d0d5a
Fix README.md translation link (#1405) 2023-07-22 18:39:34 -07:00
Nikhil Rao
c94b2e4636
Fix foreach indexing (#1403) 2023-07-21 20:09:20 -07:00
Nikhil Rao
d3deade107
Bump version to 0.2.2 (#1400) 2023-07-21 12:00:55 -07:00
Thomas Brandého
06f6e1e7bd
improve 404 logic (#1398) 2023-07-21 11:51:04 -07:00
Masen Furer
77c4451d24
integration/test_server_side_event.py: tests for set_value (#1390) 2023-07-21 11:50:51 -07:00
Elijah Ahianyo
d4abf5ff2b
Update tests for Foreach (#1394) 2023-07-21 11:49:55 -07:00
Elijah Ahianyo
549ab4e708
rx.App state arg should not be required (#1361) 2023-07-21 11:47:38 -07:00
Kabir Goel
278b9ab7e2
Allow custom Tailwind content (#1399) 2023-07-21 11:47:06 -07:00
Siddhant Goel
6f5ac6ace2
fix: check bun installation exit code during reflex init (#1385) 2023-07-21 11:43:15 -07:00
Thomas Brandého
9510c58296
Fix datatable rendering (#1360) 2023-07-21 11:23:51 -07:00
Nikhil Rao
723105d8bb
Fix foreach index type (#1389) 2023-07-20 13:03:28 -07:00
Masen Furer
915685c073
state.js: do not shadow outer state var (#1375) 2023-07-19 18:09:55 -07:00
Elijah Ahianyo
4505279d5d
Synchronize Event Namespace (#1370) 2023-07-19 18:05:42 -07:00
Masen Furer
370e1fd04c
table: allow rows to be a Var (#1374) 2023-07-19 18:01:44 -07:00
Nikhil Rao
d1924bb4a6
Fix sitemap output dir (#1382) 2023-07-19 17:55:52 -07:00
Mendie Uwemedimo
23fa6d5ec4
enable SQL statements echo with SQLALCHEMY_ECHO config constant for debugging (#1369) 2023-07-19 14:06:17 -07:00
Masen Furer
bfec196d84
Expose Script component from next/script (#1355) 2023-07-18 18:57:50 -07:00
Masen Furer
3cbee575fe
reflex db cli: catch exception in makemigrations (#1362) 2023-07-18 14:07:16 -07:00
Elijah Ahianyo
ca11b82432
Yield with uploads (#1339) 2023-07-18 14:06:57 -07:00
Nikhil Rao
3f151f054d
Generate sitemap on export (#1358)
* Generate sitemap on export

* Remove prints
2023-07-17 23:14:37 -07:00
Alek Petuskey
be9120b251
Export Error Handling + Improved CLI (#1359) 2023-07-17 22:50:57 -07:00
Masen Furer
4a661a5395
reflex db migrate CLI and associated config (#1336) 2023-07-17 18:06:50 -07:00
Steven Yu
391135e235
Add Simplified Chinese version of the README (#1341) 2023-07-17 13:45:01 -07:00
pigeon
d6b191538e
Add custom message when the user exits an app (#1345) 2023-07-17 11:45:48 -07:00
Nikhil Rao
7397cd795a
Optimize dev mode compile (#1348) 2023-07-17 11:42:07 -07:00
Masen Furer
c589af84c1
pyproject.toml: bump httpx to ^0.24.0 (#1353) 2023-07-17 11:15:03 -07:00
Elijah Ahianyo
40953d05ac
Strict type checking for indexing with vars (#1333) 2023-07-13 15:46:15 -07:00
Masen Furer
2c97c1e7ca
reflex.testing.AppHarness: tools for testing reflex apps (#1326) 2023-07-13 15:45:57 -07:00
Masen Furer
3a07e990be
respect "env" from rxconfig (#1338) 2023-07-13 15:44:50 -07:00
Thomas Brandého
c15839da40
parameter for turning off nextJS compression (#1316) 2023-07-13 15:33:01 -07:00
Nikhil Rao
bb6be16963
Fix codeblock import (#1337) 2023-07-12 17:09:24 -07:00
Masen Furer
5505d10989
rx.Model: automigrate using alembic (#1321) 2023-07-12 15:47:19 -07:00
Alek Petuskey
fc87589434
Added input element addons left/right (#1335) 2023-07-12 15:37:41 -07:00
Alek Petuskey
f79ba97ce3
Add input element addons left/right (#1335) 2023-07-12 15:37:06 -07:00
Elijah Ahianyo
7f0fc86816
Computed vars tuple and str indexing support (#1322) 2023-07-12 15:26:34 -07:00
Masen Furer
5cbf7da952
state.js: accumulate incoming events (#1313)
If the backend yields multiple events from a single event handler, ensure that
each event gets appended to the pending result before being transferred to the
state. Previously each incoming event would overwrite any other pending
event(s) leading to racy and unpredictable behavior when yielding events from
the backend in quick succession.

Fixes #1309

Bonus Fix: when setting `processing: false` after client-side events (like
_console), spread from `result`, not `state` to avoid accumulating duplicate
queued events. I think this was originally an undiscovered bug that was exposed
by the main fix.
2023-07-07 12:58:13 -07:00
Thomas Brandého
0a6c9d35e7
Update bug_report.md (#1312) 2023-07-06 16:00:38 -07:00
Masen Furer
333e2b3184
component: do not create ref for dynamic id (#1307)
allow dynamic id (BaseVar) to be specified (from state value or foreach), but
do not create a react reference for it, since that must be known at compile
time.

if a react ref is needed, then specify a string _at compile time_, not from
state.

fix #1302
2023-07-06 06:16:13 -07:00
Masen Furer
8cb12c756c
poetry.lock: update pinned versions (#1308) 2023-07-06 06:15:30 -07:00
Thomas Brandého
d4964886fd
fix the link toward docs in default apps (#1292) 2023-07-06 05:53:56 -07:00
Masen Furer
20e2a25c9a
vars: unbox EventHandler and functools.partial for dep analysis (#1305)
When calculating the variable dependencies of a cached_var, reach into objects
with .func or .fn attributes and perform analysis on those.

Fix #1303
2023-07-05 16:05:49 -07:00
Masen Furer
e9592553c4
pyproject.toml: update homepage and documentation links (#1299)
the site has moved to reflex.dev
2023-07-05 15:50:59 -07:00
Alek Petuskey
178ef3c201
Change readme to reflex (#1289)
* Change reame to reflex

* Change reame to reflex  fix typo

* Change reame to reflex fix pr comments

* Update readme

---------

Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Nikhil Rao <nikhil@pynecone.io>
2023-07-05 15:47:02 -07:00
Siddhant Goel
59c4a5e962
Replace pkg_resources with importlib (#1301)
* Install importlib_metadata for Python 3.7

* Replace pkg_resources with importlib
2023-07-05 11:10:03 -07:00
Masen Furer
51452a6e5a
reflex export: get_app before setup_frontend (#1286) 2023-06-30 17:58:31 -07:00
Sheldon
6b54b2500c
fix pc export (#1265) 2023-06-30 14:26:15 -07:00
Nikhil Rao
72fe55ae72
Add default styles to markdown (#1284) 2023-06-30 13:16:30 -07:00
Thomas Brandého
903c81dd21
fix silent compilation error (#1281) 2023-06-30 09:46:17 -07:00
Masen Furer
5d4f402987
link: clear as property if link has no href (#1272) 2023-06-29 18:45:34 -07:00
Milo Chen
bc5d5c61f2
Fix the zh translation (#1262) 2023-06-29 16:11:12 -07:00