-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Explicit state and event id minification #6100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
benedikt-bartscher
wants to merge
89
commits into
reflex-dev:main
Choose a base branch
from
benedikt-bartscher:explicit-event-id-minification
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 31 commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
2656ee5
feat: Add explicit state ID minification for states
benedikt-bartscher 1c5114d
drop uploaded_files, don't allow state_id for mixins
benedikt-bartscher 62bf127
Update reflex/state.py
benedikt-bartscher 0858c9e
ruffing
benedikt-bartscher be13be5
minify event names as well
benedikt-bartscher e53c76a
wip fixing minifed state names + add cli
benedikt-bartscher fc4c5e1
wip cli
benedikt-bartscher 6d13bec
wtf prettier
benedikt-bartscher b2c3f58
Merge remote-tracking branch 'upstream' into explicit-event-id-minifi…
benedikt-bartscher f2f1ac7
Merge remote-tracking branch 'upstream' into explicit-event-id-minifi…
benedikt-bartscher db97e3a
update pyi_hashes
benedikt-bartscher 6b4c5fa
unique per sibling
benedikt-bartscher a230be2
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher 1647c1e
fix test state ids
benedikt-bartscher e375b7e
add best-effort mode for event ids
benedikt-bartscher a94c98b
minify json poc
benedikt-bartscher ee4c7f1
fix codespell
benedikt-bartscher bcc4b49
add support for dynamic event handlers, streamline event handler form…
benedikt-bartscher fc787e6
forgot to remove this state prefix
benedikt-bartscher 5b6e124
more streamline with format event handler
benedikt-bartscher ae477ae
allow to enable/disable state and event ID minification independently…
benedikt-bartscher e13073b
fix: prevent parent-child minified name collision in substate resolution
benedikt-bartscher d669571
fix: consistent plural naming for state minification env vars
benedikt-bartscher ed085c0
make integration tests use our typed env helpers
benedikt-bartscher b2c2ff0
prefer assert isinstance over cast.
benedikt-bartscher 8f44d49
drop old state_id parameter from BaseStateMeta
benedikt-bartscher cf7b614
fix: drop unused EVENT_ID_MARKER constant
benedikt-bartscher 3074c84
fix: correctly count events in minification cli
benedikt-bartscher ca73b45
fix: adjust minify lookup cli for new minify.json, add tests
benedikt-bartscher d5f159c
fix: reflex minify validate - warn and exit 1 if missing entries
benedikt-bartscher f964c7a
fix: use get_event_handler in upload
benedikt-bartscher 1aac145
Merge remote-tracking branch 'upstream' into explicit-event-id-minifi…
benedikt-bartscher 019e6f3
fix: avoid assertion in runtime, prefer raising TypeError
benedikt-bartscher 5f57707
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher dbb1fb6
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher e713b5b
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher e2ca73e
bump packaging upper-bound to <27 (#6102)
masenf 9201f0e
Bump python-multipart in the uv group across 1 directory (#6103)
dependabot[bot] f2e4e5a
fix: Preserve event_actions from @rx.event decorator in mixin event h…
benedikt-bartscher e2e6d14
Fix socket reference shape mismatch in queueEvents (#6094)
Dadzemovic b132303
fix: Preserve object identity when pickling MutableProxy (#6097)
benedikt-bartscher 413901b
fix: Copy ID even when it is a var. (#6105)
abulvenz 8d9ed97
Origin/matthew collins nz/adddataeditorrowcheckboxvisible (#6082)
MatthewCollinsNZ 29965cf
Catch all exceptions in health checks (#6089)
masenf 73901cd
Run external servers with `sys.executable -m` (#6095)
masenf 3934bc4
Use homogenous tuple annotation in BaseStateMeta.__new__ (#6096)
masenf 087c024
adding row selection mode (#6090)
MatthewCollinsNZ 0580d84
use get_event_handler in upload, cherry-pick from #6100 (#6130)
benedikt-bartscher 7405808
Data editor search props (#6113)
MatthewCollinsNZ 7c0b6c2
Bump pillow from 12.1.0 to 12.1.1 in the uv group across 1 directory …
dependabot[bot] 64da061
Allow granian log level to be set (#6131)
masenf 63121f6
cache get_type_hints for heavy init subclass stuff - improve import p…
benedikt-bartscher c8c2ab1
0828dev (#6136)
adhami3310 ca28a6e
Unlink broken symlinks in the assets folder (#6140)
masenf 5cd8397
feat: add vite_allowed_hosts config option for Vite dev server (#6147)
milochen0418 129b904
fix: include frontend_path in sirv prod command for correct 404.html …
masenf b89c80b
fix: make disable_plugins accept Plugin types instead of strings (#6155)
masenf 5716a9e
bump devcontainer to python:3.14-trixie (#6158)
masenf 9bd6ad1
Merge branch 'main', remote-tracking branch 'upstream' into explicit-…
benedikt-bartscher e8b5724
fix: use actual parent class for sibling grouping in minify sync/vali…
benedikt-bartscher 30bf7a3
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher 43815c0
Merge remote-tracking branch 'upstream' into explicit-event-id-minifi…
benedikt-bartscher 10434bd
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher 9e73376
ruff format
benedikt-bartscher 79b735d
pre-commit
benedikt-bartscher 052beca
test adjustments
benedikt-bartscher 1cc98a8
migrate minify to registry name resolver
benedikt-bartscher bd63210
pre-commit
benedikt-bartscher 5ad6e3e
add support for dynamic states in minification
benedikt-bartscher 66dcbe5
cleanup
benedikt-bartscher 673243c
wip
benedikt-bartscher 6cdf383
cleanup
benedikt-bartscher 050727a
dry it up
benedikt-bartscher de1804a
dry up the tests
benedikt-bartscher c99b450
typing improvements and cleanup
benedikt-bartscher 05fde77
cleanup
benedikt-bartscher 9b57ec1
wip
benedikt-bartscher fc0ba15
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher b0983ed
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher bc3890a
try to improve benchmark
benedikt-bartscher aa32843
cache event handler names
benedikt-bartscher f83afad
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher 228b8ed
fix: record parent path in minify.json state entries so orphaned ids …
benedikt-bartscher af4219f
fix codespell
benedikt-bartscher d378a59
Merge remote-tracking branch 'upstream/main' into explicit-event-id-m…
benedikt-bartscher c5cceb6
fix: prevent state definition before minify is active
benedikt-bartscher 1bafa2d
fix ruff
benedikt-bartscher c3e0f1c
greptile
benedikt-bartscher 44fefa1
cleanup
benedikt-bartscher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,4 +21,5 @@ reflex.db | |
| node_modules | ||
| package-lock.json | ||
| *.pyi | ||
| .pre-commit-config.yaml | ||
| .pre-commit-config.yaml | ||
| uploaded_files/* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.