Problem/Motivation
The admin page allows privileged users to store an API key, then optionally specify a default Brandfolder, then to optionally specify a default Collection within that Brandfolder. There is no asynchronous form submission, so an admin must submit the form three times in order to configure all three of these items. However, the status messages displayed on the admin page do not communicate this flow clearly. There is also the possibility that an API connection error will result in an inaccurate message being displayed to the user.
Steps to reproduce
Visit admin page after installing the module. Note the status message(s) displayed. Note the field values. Submit the form. See attached video.
Proposed resolution
Improve messaging based on current stored config values and API connection success/response.
Remaining tasks
Code updates.
User interface changes
Different messages displayed on admin page based on current state.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2.jpg | 97.66 KB | gregory claeyssens |
| 2020-09-14_brandfolder_module_d8_admin_ux.mp4 | 20.95 MB | ndewhurst |
Comments
Comment #2
gregory claeyssens commentedI'd also suggest proper messages when an API key is set that is incorrent. The only indication is that the dropdowns below are empty.
Comment #4
ndewhurstI improved the workflow and messaging here. It is now possible to reset previous Brandfolder/Collection choices. There is form validation to ensure that the given API key grants access to at least one Brandfolder. Finally, if you remove a previously-set API key, the Brandfolder and Collection settings (if any) will be properly cleared out as well.