-
Notifications
You must be signed in to change notification settings - Fork 123
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
Org Page Content Epic: As staff I can upload a Hero Image and up to two About Us images #592
Comments
Can I give this one a crack? @kasugaijin |
@ErinClaudio yes sounds good! This ticket is actually blocked by this one #552 but PR is ready for review so if you want to wait then all good |
For clarification, the functionality for updating the Hero Image and About Us Images should be integrated directly within the 'Page Text' navbar option, as opposed to introducing a separate button? |
My notes for the issue |
Yes I should be able to click Page Text in the sidebar if the dashboard and then see the form to edit text and attach images. |
Yes looks good! You might run into questions on some details along the way so hit us up as usual! Thanks @ErinClaudio and let me know if anything is unclear before diving in so as to save you any headaches |
@kasugaijin @mononoken @nsiwnf Here's my progress so far. However, I don't believe it's correct. I think one of the following approaches would be better:
I lean towards the first option but am open to either. |
@ErinClaudio This looks ok to me? Then we can display each attached image in a table below the submit button to show current attachments. What do you not like about this current setup? Two submit buttons on a form can be problematic. The first option of a separate form would be easier to maintain I think. I am also not opposed to going that route, either., But, since the information is directly related in this form you have currently, it makes sense to me to keep it like this. Controller logic shouldn't be too different? I think we just need to accept appended images in the accepted params? |
@ErinClaudio haha nice cow :) |
@kasugaijin This issue is Mooooooooving along |
@kasugaijin @nsiwnf @mononoken I could use a little feedback. The delete button layout feels cluttered. Consider:
|
@ErinClaudio could we re-use the partials for image uploads - place them where the existing upload inputs are in your UI. Then, under the submit button, reuse the table partial to display uploaded images? See Pet Images tab for reference |
@kasugaijin |
Currently blocked by #480
As staff, you can go to the dashboard and see the Page Text navbar option, where you can update the Hero Text and About Us text. This also needs to allow staff to update their Hero Image (1 image) and About Us Images (1 or 2 images) on the org's root/home page.
Implementation Criteria:
has_one_attached :hero_image
andhas_many_attached :about_us_image
As next steps (different issue) we will want to look into recommending image dimensions and handling resizing of image variants. Feel free to include in this issue if you want to.
I may have forgotten something here - hit me up in Slack!
The text was updated successfully, but these errors were encountered: