rubycentral / cfp-app

Rails app for managing a conference CFP
MIT License
223 stars 154 forks source link

Create event sponsor #270

Closed codyjamesbrooks closed 2 years ago

codyjamesbrooks commented 2 years ago

🟢 Starting to look ok. Always appreciate some extra eyes

Description of Change

This PR seeks to add a Sponsor model to a CFP Event. The PR also handles CRUD for said Sponsor Model (except for the show page, I plan on building that out with Gina's wireframes in mind)

Reason for Change

Both RubyConf sites and RailsConf sites allow admins to submit Sponsors that are displayed on the conference websites. In order for the CFP app to be able to recreate the conference websites, it will need to be able to store event Sponsors.

Changes

Here is a quick break down of the sponsor model that needs to be recreated

Conference sites Sponsor Model New CFP Sponsor Model (this PR)
name name
tier tier
published published
score
url url
other_title other_title
description
offer_headline
offer_url
banner_url
primary_logo primary_logo
footer_logo footer_logo
banner_ad banner_ad

The links/buttons/path to interact with the Sponsors resource has been positioned inside the website sub nav. For the time being any event organizers will have the ability to perform any resourceful action on an Event Sponsor.

Minor

It made sense to me to link sponsors to Events. I figured it might be valuable to ask if folks thought that was the correct call. I can see an argument even though the reason we are adding them to the CFP application is to display them on the Website. I wasn't 100% sure if that was the right call so I figured I would bring that up here.

Who doesn't love a preview

Sponsor CRUD

Preview made locally with imported production data