Problem/Motivation
Currently, the DAM configuration form combines both authentication settings and image style configurations in a single form. As a result, any time a user updates image style-related configurations, the authentication settings are also resaved. This coupling can potentially lead to accidental changes or unnecessary authentication updates when only image styles are being modified.
Proposed Resolution
We should refactor the configuration interface to clearly separate DAM authentication settings from image style configurations. By creating dedicated forms for each, we can:
- Reduce the risk of unintentional changes to authentication details,
- Improve the user experience by making configuration sections more focused,
- Make maintenance, troubleshooting easier.
Steps to Reproduce
- Go to the current DAM configuration form.
- Notice that both authentication and image style configurations are present together.
- Update any image style-related setting and save.
- Observe that authentication settings are also rescanned and saved.
Acceptance Criteria
- Authentication and image style configurations have separate forms/pages.
- Updating image style settings does not trigger a resave of authentication settings, and vice versa.
- Documentation/update notes reflect this segregation for end users.
This change will ensure clearer separation of concerns, reduce risk, and improve the overall configuration workflow.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | dam-config-form.png | 262.66 KB | rajeshreeputra |
| #5 | dam-current-config-form-duplicate-buttons.png | 338 KB | rajeshreeputra |
| #5 | dam-proposed-config-form.png | 349.03 KB | rajeshreeputra |
| #5 | dam-updated-config-form-with-disabled-field.png | 276.54 KB | rajeshreeputra |
Issue fork acquia_dam-3549173
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 #3
rajeshreeputraRequesting review.
Comment #4
japerryI changed the title to reflect a few more UI changes that should occur here:
1) The image styles menu should be dependent on being connected to the DAM. If you're not authenticated, don't show the image styles tab.
2) The 'authenticate site' and 'save dam configuration' buttons seem redundant. With the image styles moved, the main page should be for authentication details only, with 'Authenticate Site' and 'Disconnect Site' being the two buttons options (depending on the state of the site)
3) While authentication type is greyed out, domain is not. We have some logic that disconnects the site.. but instead we should just grey all of this out and require someone to 'disconnect' before changing any of the credential details.
Comment #5
rajeshreeputraUpdated MR with following:
After disconnecting a site, the authentication button appears twice. I believe it would be more effective not to display the Site Authentication button in first fieldset.


current:
Proposed:
Comment #6
rajeshreeputraUpdated MR with proposed solution, requesting review.
Comment #7
japerryExactly what I was looking for! thanks @rajeshreeputra! Will rebase and run tests, assuming they're good, I'll get it merged.
Comment #8
japerryThere are some more tests that need updating, moving to NW.
Comment #9
rajeshreeputraUpdated tests and it's green now, Hence moving ahead!
Comment #11
japerryLooks great! Merged
Comment #13
japerryWhile not specifically caused by this issue, it is easier to see in this issue -- if you put a url schema for the domain in the form, it says the domain passes validation, but redirects improperly. Rolling a fix momentarily to fix that.
Comment #15
rajeshreeputraUpdated service to remove protocol or trailing slashes from domains while using key module, requesting review.
Comment #17
japerryYah, thats probably a good check. Merged!