Skip to content
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

Add more images to admin site customization #4833

Merged
merged 5 commits into from
Aug 17, 2022
Merged

Add more images to admin site customization #4833

merged 5 commits into from
Aug 17, 2022

Conversation

decabeza
Copy link
Collaborator

Objectives

To make CONSUL customization easier this PR adds more images to the site customization /admin/site_customization/images.

The images have been added:

  • budget_investment_no_image
  • welcome_process
  • auth_bg
  • favicon

These images already exist in the repository but it will now be possible to modify them from the administration panel. 👩🏻‍🎨

@decabeza decabeza self-assigned this May 19, 2022
@decabeza decabeza added the Admin label May 19, 2022
@javierm javierm added this to Reviewing in Consul Democracy via automation May 20, 2022
@javierm javierm self-assigned this Jul 20, 2022
@javierm javierm force-pushed the admin_images branch 5 times, most recently from 55694f4 to 707b9ab Compare August 3, 2022 14:57
Apparently the dashboard branch wasn't updated after we extracted a
common head for all layouts in commit 6e4f697, so when said branch was
merged we reintroduced the duplication. Furthermore, we forgot to add to
the dashboard layout the changes we were applying to the common head
partial.
This way it'll be easier to write tests for it. We also get rid of
another helper file :).
Consul Democracy automation moved this from Reviewing to Testing Aug 3, 2022
@taitus taitus self-assigned this Aug 17, 2022
We forgot to change the line rendering the image in commits 3574bf8
and 810bdae, and so the custom image was being ignored.

Note that, in the test, we're stubbing a constant instead of adding a
new image. The main reason is that, if we add a new image, forks would
have to change the image when they change the `VALID_IMAGES` constant;
otherwise the tests would fail.
This way it'll be possible to overwrite the valid mime types in a custom
model.
@javierm javierm merged commit 6f060d4 into master Aug 17, 2022
Consul Democracy automation moved this from Testing to Release 1.6.0 Aug 17, 2022
@javierm javierm deleted the admin_images branch August 17, 2022 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants