This is the companion issue to #3188474: Move the config_enforce form to an off-canvas dialog because a lot of the form code is actually in Config Enforce, with Config Enforce Devel extending and building on top of said form code.
Problem/Motivation
See #3188474: Move the config_enforce form to an off-canvas dialog
Steps to reproduce
Use eyeballs.
Proposed resolution
Phase 1 in the the 1.0.x branch is to move the floating window into the normal flow of the parent form and wrap it in a a '#type' => 'details' along with some other minor improvements (such as adding an icon).
Phase 2 will be in the 2.x branch where we'll refactor it as a standalone form that's progressively enhanced in a Drupal dialog opened and submitted via Ajax.
Remaining tasks
TBD.
User interface changes
Here are some work in progress screenshots. First is with the details element collapsed (the default on loading a form):

Here it is expanded:

And yes, it works correctly on right to left language direction as well:

See #3188474: Move the config_enforce form to an off-canvas dialog for what it looks like when Config Enforce Devel is installed.
API changes
Hopefully none, but will probably deprecate a method or two used for the floaty form to be removed later.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | config-enforce-alpha3-after.png | 62.14 KB | star-szr |
| #22 | config-enforce-alpha3-before.png | 67.62 KB | star-szr |
| #7 | config_enforce-3341143-7-system.site-expanded.png | 101.04 KB | ambient.impact |
| #3 | config_enforce-3341143-system.site-rtl.png | 103.46 KB | ambient.impact |
| #3 | config_enforce-3341143-system.site-collapsed.png | 102.41 KB | ambient.impact |
Issue fork config_enforce-3341143
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ambient.impactComment #3
ambient.impactComment #4
ambient.impactComment #6
ambient.impactFixed failing test woooooo.
Comment #7
ambient.impactUpdated expanded screenshot with enforcement levels background colour ported over.
Comment #8
ambient.impact1.0.x changes have been merged. Changing version to 2.0.x and postponing for the second phase to be done at a later date.
Comment #12
star-szrThe main goal of this issue has already been accomplished: The off-canvas dialog aspect is being fully handled by Config Enforce Devel, and has been merged in #3188474: Move the config_enforce form to an off-canvas dialog.
We will therefore narrow the scope here to just output an indicator, because this hasn't been handled yet and is a regression in terms of UI/UX.
Any further UI improvements will be handled in standalone tickets such as #3556490: Update the enforced configs table via AJAX (when using off-canvas dialog).
Comment #20
star-szrComment #22
star-szrUploading some screenshots to use in release notes.