Skip to content
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

Open
wants to merge 54 commits into
base: main
Choose a base branch
from

Conversation

cutoffthetop
Copy link
Contributor

@cutoffthetop cutoffthetop commented Feb 5, 2025

Added

  • add color mode toggle to login screen
  • added new/remove buttons for additive rules for string fields
  • add event handlers for adding/removing additive value input cards
  • added text input field for email, string and temporal fields
  • add event handler for setting string input values

Changes

  • combine EditState.editor_fields and EditState.fields
  • update transformation logic to handle strings from additive rules

@cutoffthetop cutoffthetop changed the base branch from main to feature/mx-1768-url-params-3 February 10, 2025 08:48
Base automatically changed from feature/mx-1768-url-params-3 to main February 18, 2025 09:04
Copy link
Contributor

@rababerladuseladim rababerladuseladim left a 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/

@@ -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),
Copy link
Contributor

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???

Copy link
Contributor Author

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

@cutoffthetop
Copy link
Contributor Author

I stumbled upon one UI issue: primary source switches are sometimes not visible

fixed in b051831

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants