- Issue created by @heiket
- ๐จ๐ญSwitzerland saschaeggi Zurich
This is also on our roadmap. If you have dev resources to implement this, we can move ahead with this.
- First commit to issue fork.
- ๐จ๐ญSwitzerland saschaeggi Zurich
saschaeggi โ changed the visibility of the branch 3356717-moving-the-save to hidden.
- ๐ง๐ชBelgium LRoels Ghent
Looking good and I agree this would be a timesaver.
Only place I still notice the button on the bottom is on block forms.
Might need to add this unless this is an intentional exception. - ๐จ๐ญSwitzerland saschaeggi Zurich
I've pushed another change to include a proof of concept to move other actions to a kebab menu. It uses a container so it would be possible to move things in or out of that menu, but by default we would show all buttons which are not primary functions (submits) to that kebab menu.
- ๐จ๐ญSwitzerland saschaeggi Zurich
We're making big progress here, I'm very exciting to finally have this unified across the UI ๐
- Status changed to Needs review
6 months ago 8:52pm 23 May 2024 - ๐บ๐ธUnited States jrockowitz Brooklyn, NY
This looks and feels like a nice improvement to the Webform form builder UI. There are a few minor issues that probably need to be fixed via Webform.
For example, the form builder uses Ajax to refresh to table when an element is added or updated. The 'Save' button is fine but the status message is not displaying and fading away.
- First commit to issue fork.
- ๐ฉ๐ชGermany volkerk
I tested this and moving the action buttons to static on configuration pages is a nice touch!
About the more actions dropdown I had a few thougths.* Does it make sense to have the more actions functionality only kick in when there is more than a number of actions?
Also might be nice to have that configurable.
* I would suggest that we introduce alter functionality to be able to exclude certain actions from the dropdown button.
* I am not sure about having the meta sidebar toggle inside the more dropdown button. It is somehow central to the edit experience and also shows state? - ๐จ๐ญSwitzerland saschaeggi Zurich
@volkerk
Does it make sense to have the more actions functionality only kick in when there is more than a number of actions?
I'd rather have it consistent.
I would suggest that we introduce alter functionality to be able to exclude certain actions from the dropdown button.
We actually thought about that as well, if you add
'#gin_action_item' => true
to form action items, they will always be visible (credit to Jรผrgen)I am not sure about having the meta sidebar toggle inside the more dropdown button. It is somehow central to the edit experience and also shows state?
The sidebar can be toggled with a shortcut. But we might want to move the toggle anyway to the sidebar element itself. Can be done in a follow-up though.
- ๐บ๐ธUnited States luke.leber Pennsylvania
saschaeggi โ credited Luke.Leber โ .
- ๐บ๐ธUnited States paul121 Spokane, WA
saschaeggi โ credited paul121 โ .
- ๐ฏ๐ดJordan Rajab Natshah Jordan
saschaeggi โ credited Rajab Natshah โ .
- ๐จ๐ญSwitzerland saschaeggi Zurich
Adding credits from people testing ๐
- Status changed to Fixed
5 months ago 7:20am 14 June 2024 - ๐จ๐ญSwitzerland saschaeggi Zurich
Thank you everyone involved here! This is a huge deal and will pave the way to integrate this into Core at a later point โค๏ธโ
- ๐จ๐ญSwitzerland saschaeggi Zurich
Special thanks to Jรผrgen with all your help, this would habe not been possible without your help!
- ๐ซ๐ฎFinland Onnia
I could not find any reason why the sidebar icon has been changed? To my eye that looks odd. Can I get some arguments why this has been done?
https://git.drupalcode.org/project/gin/-/merge_requests/420/diffs#6b572a... Maybe an automatic exception for the delete button could be made? I expect some less technical users losing their mind over the delete button "disappearing" from the form.
- ๐ณ๐ฑNetherlands zebda
Is there a way to get all the options out of the kebab menu? I don't find it very user friendly.
- ๐ฏ๐ดJordan Rajab Natshah Jordan
Thank you, Sascha, for having this in Gin + thanks for the API for it.
With further testing and trying to change the logic on the unlock or delete buttons.
After a review with our product owner.
The direction went to follow with the new change by the Gin Admin theme
Only keeping the logic in Issue #3436163 โ : Moved the Save as Draft moderation state element next to preview and Save in the Edit content with workflowWhen the Workflow module is enabled
Reverting- ๐ Fix regression for the Action buttons in sticky header, which Gin provided a new API for sticky form actions Needs work
- ๐ Fix regression for the Action buttons in sticky header, which Gin provided a new API for sticky form actions Fixed
Suggesting that maybe Gin could have support for the Moderation status position, when the workflow module is enabled, and the content/entity is configured to use it.
Automatically closed - issue fixed for 2 weeks with no activity.
- ๐ณ๐ฑNetherlands zebda
@Rajab I tried your code in the hook_form_alter but it doesn't work. How do you use this to exclude items from being hidden?