-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support for editable states and alias expressions for fields #3645
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 11978385757Details
💛 - Coveralls |
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.
Nice :) I have just a bunch of small comments, but generally it looks good 👍🏻 @uclaros can I ask you to have a look here please?
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.
Looks good!
I'd love some docstrings for the new items in FormItem
.
Maybe add some comments to the new private members, as I see that's the only thing that's documented already :)
!isReadOnly, | ||
editableExpression, |
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.
We are still missing the logic when there is "default value on update enabled". In that case we do not want to set the field to be editable. Let's not read the expression in case field.defaultValueDefinition().applyOnUpdate()
is set (see line https://github.com/MerginMaps/mobile/pull/3645/files#diff-1cac530c00b6b3114d6f3da9d8dc0fefd2a486a7eefc58814e9e8dd1c0da69acR255)
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.
Screen.Recording.2024-10-17.at.08.28.44.mov
Resolves #2607, Resolves #3494