Open lgarron opened 9 years ago
Copied from #115:
A natural extension of #110.
Worlds this year had a beautiful logo. It would be great to use it on the front page, and to style the WCA competition page.
This can already be done now we support markdown. See https://www.worldcubeassociation.org/competitions/Spain2018 for example.
With Active Storage set up, we could now allow organizers to add an official logo for a competition pretty easily, thus accomplishing two things:
I will label this as a good first issue!
I think this is a big more work than a "good first issue". In my mind, a good first issue should be something that an experienced member of the software team can do in <= 30 minutes. Things I can think of:
/competitions/:id
page, but I think there are a number of choices about how to do that, and they all impact what kind of images we'll ask the competition managers for (for example, are we going to want more of a horizontal banner, or more of a postage stamp)?
og:image
tag for individual competitions (as we did in https://github.com/thewca/worldcubeassociation.org/pull/3238/). It might be at least worth thinking through what that would look like, and if it affects the kind of image we'd ask the competition manager for.I think a good place to start with this issue is to put together a couple of designs showing how we want a page like https://www.worldcubeassociation.org/competitions/WC2019 to look with a competition logo in both desktop and mobile.
I just chatted with @AlbertoPdRF about this: we think this has the potential to be a good second issue, but it should wait until after we've figured out what's happening with the website redesign (do we have an issue for that?).
I don't think we have one! It's about time though, so I'll open it.
There it goes: #4310.
As now I have a bit more of time, I'll try to reply to the points made earlier (https://github.com/thewca/worldcubeassociation.org/issues/112#issuecomment-511216899.) Keeping the numbering:
WCA Competition Requirements
section of the WCA Competition Requirements Policy.og:image
is definitely something to think about in my opinion!
- not even a migration would be necessary
Really? How does that work? I may be misunderstanding something about ActiveStorage...
We just need to decide which those constraints should be.
Totally, but someone needs to decide what they should be.
Really? How does that work? I may be misunderstanding something about ActiveStorage...
Everything that needs to be done is described here.
Totally, but someone needs to decide what they should be.
Of course, and that can be done as soon as we get the new competition page after #4310.
Oh wow! I did not know about this table:
active_storage_attachments
is a polymorphic join table that stores your model's class name. If your model's class name changes, you will need to run a migration on this table to update the underlying record_type to your model's new class name.
Dayumnnn, that's cool. Please ignore what I said above about migrations.
I do think there would be some UI work to allow uploading/removing/describing? multiple pictures, though.
Regarding that last part, I'm not sure how would that exactly work: maybe making a common delete_attachment
method somewhere and then using it on the different places where we have Active Storage stuff? Not sure how the UI would look like either.
However, in this case, assuming we'll only have one logo per competition, this could work as it already does with Regional Organizations' logos, with no need for an extra UI.
I'm struggling to see how this is needed at the moment - but leaving it as a possible requirement for a future competition service rework
https://www.worldcubeassociation.org/ looks a bit drab. It would be awesome to have logos for Worlds and Nationals, at least.