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
refactor: Improve Form Builder UX #22968
refactor: Improve Form Builder UX #22968
Conversation
Also remove double scrollbar
Codecov Report
@@ Coverage Diff @@
## develop #22968 +/- ##
===========================================
- Coverage 62.19% 61.97% -0.23%
===========================================
Files 770 770
Lines 73806 74725 +919
Branches 6364 6364
===========================================
+ Hits 45904 46308 +404
- Misses 24279 24794 +515
Partials 3623 3623
Flags with carried forward coverage won't be shown. Click here to find out more. |
also reduced tab header height
also created AddFieldButton component
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 improvements 👍🏼
Few things to fix
- Focus on label on creating new field
- Merge "Details" + "Settings" tabs to "Settings"
- Add keyboard shortcut for adding (
ctrl+shift+n
) & selecting fields(arrow keys
) - Avoid magical delete (add a field in tab 2 and press enter)
- Delete/Backspace to delete tab/section/column/field if selected
Nice, what a huge improvement! The message “This site is in developer mode…” should probably appear in all tabs while disappearing if dismissed once. In the Quick Entry form, the “Custom” checkbox could probably use a description, particularly in contrast to the “Custom” Module. But this could be a followup as well. |
…field when it in on focus
Looking neat 👌 Few observations. Some unrelated to this change, just being pedantic because most used page for developers 😁
IMO creation of sections and columns is still kind of hard to understand for newbies 😅 maybe do some blind test with users who haven't used it yet. 😬 (or check posthog session recordings, if any.) |
|
… properties or label
I knew about this and I was working on it. Now fixed👍🏻
Yeah, let's not do this in this PR. I will probably ask Ritvik to work on the
If you see, sections/columns/fields have a + button in the action area and all do the same thing add a section/column/field.
let me know how and from where to access this. Will take a look |
It is consistent with others, and it is also self-explanatory I don't think the description is needed 🤨 |
Consistent with… others? Mhm… And what happens to make Custom DocTypes special?💁🏻♂️ No, really. For a seasoned Frappe developer this may be obvious, but for newcomers it isn't. Not even for newcomers in developer mode. Especially given how lacking documentation still is, questions like:
aren't stupid questions. Neither is mine... 🤷🏻♂️ Let's defer it to a followup though. This shouldn't distract from the huge improvements of your undertaking. |
There‘s no longer the traditional field list below the form builder, so the scrolling limitations on touchscreens will be even more consequential than it used to be: it‘s simply no longer possible to configure fields below the viewport via the UI. RPReplay_Final1698791403.movThe form shouldn‘t be limited to an arbitrary viewport. All other Frappe pages work okay on touchscreens, so should this one… |
Other settings label e.g Is Submittable, Is Tree. Yeah, I agree they have descriptions.
I agree, I think we can use the documentation link feature to redirect to the docs Screen.Recording.2023-11-01.at.1.36.30.PM.mov |
I will try to figure out a solution for touchscreens I am trying to remove the double scroll which is kind of annoying while working on form builder. Edit: Fixed. To move fields long press (200ms) and drag |
please do not hide fields table, because it is handy to create many fields via excel copy paste via fields table! |
if you need to add multiple fields by copy paste from excel
on_tab_change
event to control tab change logic from doctype's js fileScreen.Recording.2023-10-31.at.2.25.55.AM.mov