-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add formMeta menu in "View in Forms" and add unload protect to "Use Localized Field Labels" #5416
Conversation
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!
good to see few useEffect hooks being removed
specifyweb/frontend/js_src/lib/components/FormMeta/Definition.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Max Patiiuk <max@patii.uk>
Triggered by c2db63a on branch refs/heads/issue-2514-2
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.
- Create a new query
- Run the query and click "Browse in Forms"
- Check that the form meta button is there
- Make sure the settings within form meta work as expected
- Check Unload Protects:
- Click Form Meta -> Form Definition
- Click close and make sure no Unload Protect appears
- Click Form Meta -> Form Definition and toggle "Use Localized Field Labels"
- Click close and make sure an Unload Protect appears
- Save the query and try again
- Click close and make sure no Unload Protect appears
- Do the same for the Form Meta button in Data Entry
Looks good, didn't run into any issues--though I'm attaching a video to make sure I understood what you wanted from the unload protect testing. Let me know if I misunderstood it!
firefox_02-17_16-14.mp4
Good work! 👍
@combs-a Yep that looks good! The unload protect I added is triggered by the close button on the Form Definition dialog, so as long as it catches any unsaved changes before it forces a refresh then its working as intended. |
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.
- Check that the form meta button is there
- Make sure the settings within form meta work as expected
- Click close and make sure no Unload Protect appears
- Click close and make sure an Unload Protect appears
- Click close and make sure no Unload Protect appears
- Do the same for the Form Meta button in Data Entry
Looks great, good job!
Triggered by a5ec979 on branch refs/heads/issue-2514-2
Fixes #2514
Expansion of #3594
Adds a formMeta button the "View in Forms" in query results (#3594) and adds an unload protect so toggling Localized Fields in Form Meta doesn't erased unsaved queries
Checklist
and self-explanatory (or properly documented)
Testing instructions