-
Notifications
You must be signed in to change notification settings - Fork 0
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
feature/mx-1741 basic field editing #248
base: main
Are you sure you want to change the base?
Conversation
…itor into feature/mx-1768-url-params-3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh boi, this is a lot. I am far from understanding everything but tried to review as best as I could.
I stumbled upon one UI issue:
- primary source switches are sometimes not visible, e.g.: http://{editor-url}/item/27WuXh9ge9voadrk9y9t0/
mex/editor/edit/main.py
Outdated
@@ -67,35 +169,82 @@ def primary_source_name( | |||
rx.hstack( | |||
render_value(model.name), | |||
rx.cond( | |||
cast(rx.vars.ArrayVar, EditState.editor_fields).contains(field_name), | |||
~cast(rx.vars.BooleanVar, model.input_config), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this a boolean? Why can you apply ~
to it? What happens here???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~
is a var operation https://reflex.dev/docs/vars/var-operations/#and,-or-and-not
the casting to boolean was technically not correct, true. i changed it to ObjectVar
Co-authored-by: rababerladuseladim <[email protected]> Signed-off-by: Nicolas Drebenstedt <[email protected]>
Co-authored-by: rababerladuseladim <[email protected]> Signed-off-by: Nicolas Drebenstedt <[email protected]>
…itor into feature/mx-1741-basic-field-editing
…com/robert-koch-institut/mex-editor into feature/mx-1741-basic-field-editing
…itor into feature/mx-1741-basic-field-editing
fixed in b051831 |
Added
Changes