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

Refactor image preview on upload field in partner admin in stimulus #1424

Merged
merged 6 commits into from
Aug 9, 2022

Conversation

aaaaargZombies
Copy link
Contributor

@aaaaargZombies aaaaargZombies commented Aug 2, 2022

fixes #1421

I slightly altered the original functionality to allow for an upload preview even if no image had been uploaded before. See app/views/admin/partners/_form.html.erb line 26. Otherwise changes are as described in the issue.

@github-actions github-actions bot added chore patch Bump version 0.0.X labels Aug 2, 2022
@aaaaargZombies aaaaargZombies changed the title 1421 partner image preview refactor add a stimulus controller to handle image preview in partner admin Aug 2, 2022
@aaaaargZombies aaaaargZombies marked this pull request as ready for review August 2, 2022 16:16
@kimadactyl kimadactyl changed the title add a stimulus controller to handle image preview in partner admin Add image preview to upload field in partner admin Aug 3, 2022
@kimadactyl kimadactyl added enhancement and removed patch Bump version 0.0.X labels Aug 3, 2022
@kimadactyl
Copy link
Member

OK this is cool but not sure how it got on the backlog, it doesn't remove any behaviours files and doesn't solve an existing ticket?

Only note on it is to take out the sample image for copyright reasons, maybe replace with something from unsplash.com?

@kimadactyl
Copy link
Member

kimadactyl commented Aug 3, 2022

Apologies - I read the base ticket, so this is getting rid of part of the code. I have no memory whatsoever that we had a js handler for this, lol.

So yeah just update the image and I'm happy to merge this.

@kimadactyl kimadactyl changed the title Add image preview to upload field in partner admin Refactor image preview on upload field in partner admin in stimulus Aug 3, 2022
@github-actions github-actions bot added the patch Bump version 0.0.X label Aug 3, 2022
@aaaaargZombies aaaaargZombies merged commit 25113e0 into main Aug 9, 2022
@aaaaargZombies aaaaargZombies deleted the 1421-partner-image-preview-refactor branch August 9, 2022 09:43
@kimadactyl
Copy link
Member

Screenshot 2022-08-22 at 12 21 29

confirmed working on staging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Bump version 0.0.X
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move partner image preview to a stimulus controller
2 participants