You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them. #96
Good First IssueThis issue is beginner friendly! It shouldn't take much experience to get up and running.Help WantedExtra attention is neededMVPUI/UXThis issue deals with UI/UX
The DB already has event_sponsors and sponsors tables
We need a resolver and client GraphQL queries to access the data
On /events/[id] we'd need basic UI which just has a link on the event page. That's enough to move forward
/dashboard/events/[id]/edit would need an input element to select a sponsor
Since there's been a fair amount of discussion surrounding the sponsor types, we should track those details in a separate issue before closing this. However, I do think the above implementation would be a solid start.
@joelrozen if you'd like to create a new issue for any future user stories that are different than the two mentioned then please do so and post more detailed thoughts on that issue. Then, we can close the issue and link to it from #84 for future reference.
Does it explicitly have to be strongly typed as "food", can we make this more abstract with a entity called "provides" (or something), and let the user defined "food" themselves or have "food" exist as a "preset" in the database
@QuincyLarson you want to update the title on this to say "As an organizer I can add a sponsor(s) to the event with a link to their website as a way of thanking them for sponsoring." It wouldn't seem to impact the MVP scope much, if at all.
@allella Thanks for your patience - I thought I had responded to this earlier. Yes - I agree with us having an "other" value and we can expand upon that later if necessary.
changed the title [-]As an organizer I can add a food sponsor to the event with a link to their website as a way of thanking them for food.[/-][+]As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/+]on Nov 30, 2019
changed the title [-]As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/-][+]API: As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/+]on Nov 30, 2019
changed the title [-]API: As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/-][+]As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/+]on Feb 11, 2020
@allella, @ojeytonwilliams , Can Event have multiple sponsors ? like having one sponsor for venue and another sponsor for food etc.
If Yes, then our form in Create event should have facility to add more then one sponsor, and also in edit event form we should be able to add and remove sponsors.
Could you please let me know if my understanding is correct?
I posted this in the chat as well, but here's a question related to this issue and being flexible in how we manage roles
So, it may be helpful to consider what other things we might append to these tables to see if we're going in the right direction.
One question / example that came from #96 is regarding the various roles.
Chapter is currently defining the roles as constants and that may not scale well when organizers have some sort of new / clever sponsorship type or event role, like a Code of Conduct Contact.
We might be fine to keep the roles as more general constants, perhaps to help control authorization, but we could possibly allow the administrator or organizer to save a custom "custom_role_name" so if you had an event with a food sponsor and a venue sponsor, it might look like
This is just a rough thought, but an issue we're likely to run into.
The other option would be to have a roles table and have core roles for administrator, organizer, user and allow the administrators and/or organizers to add roles that fit their needs.
So, it may be helpful to consider what other things we might append to these tables to see if we're going in the right direction.
One question / example that came from #96 is regarding the various roles.
Chapter is currently defining the roles as constants and that may not scale well when organizers have some sort of new / clever sponsorship type or event role, like a Code of Conduct Contact.
We might be fine to keep the roles as more general constants, perhaps to help control authorization, but we could possibly allow the administrator or organizer to save a custom "custom_role_name" so if you had an event with a food sponsor and a venue sponsor, it might look like
This is just a rough thought, but an issue we're likely to run into.
The other option would be to have a roles table and have core roles for administrator, organizer, user and allow the administrators and/or organizers to add roles that fit their needs.
Similarly, you might have a general sponsor for a local chapter, so user_chapter_roles (or whatever we end up calling it) may benefit from a similar level of flexibility
I don't recall if we talked about chapter specific sponsors, since much of the conversation was around event sponsors, but even if it's post-MVP the issue remains as with events.
@ojeytonwilliams , I'm trying to add list of sponsor fields to the the create & edit event form as shown in the gif below.
However, to render a list of components we have to use key prop with unique value and to generate the unique value, I used uuid package. As the package is not already an existing dependency, I wanted to check if it is ok to add an extra dependency or if you have any other suggestion that I can use instead of uuid ?
The other option would be to have a roles table and have core roles for administrator, organizer, user and allow the administrators and/or organizers to add roles that fit their needs.
@allella yep, that sounds good. I can see some value in owners and admin being able to create custom roles, so that's definitely something to keep in mind. It might be something that's better deferred until after the MVP, but I'll circle back to this when I get to tackling authentication properly.
we could possibly allow the administrator or organizer to save a custom "custom_role_name" so if you had an event with a food sponsor and a venue sponsor,
I don't think we want to have an explicit sponsor 'role'. Let's keep roles for authentication.
We do already have sponsors.type which is just a varchar at the moment. We generate it as if it was an enum, but it's not. So, if we just keep the sponsors.type a varchar and allow, say, admins and owners full CRUD access to them I think that works. They'd need to be unique strings, but that's probably all we need to change. What do you reckon?
Chapter sponsors sound good. We'll need to think about where they get mentioned (on every event?), but, from a DB perspective, whatever we do for EventSponsors should work just fine for ChapterSponsors.
@Ravichandra-C the UI looks lovely, honestly, nice work!
Now that I see it, I realise I didn't specify this well enough. On the event creation dashboard we should be able to select from existing sponsors. So, the UI you've shown is nearly there, but we'd want Sponsor Name and Sponsor Type as the two dropdowns. Once you select a name, it should restrict the Type to the ones that are available for that Sponsor name. I think that's a reasonable UX, but ideas are very welcome.
Potentially we can also allow Sponsor creation on this page, but that's not necessary to close this issue.
Regarding keys, I don't think uuid is the way to go. Since keys need to be stable between renders you'd have to store them in a ref or something equally hacky. What I recommend is to generate the keys from the content. If you simply concatenate the type and the name and require the combination to be unique, that's a perfectly good key. After all, it makes sense for one sponsor to provide, say, food and the venue, but not food twice.
but we'd want Sponsor Name and Sponsor Type as the two dropdowns.
Since our schema only supports storing the sponsors at event level, Should Organizer create the sponsor for every event and then those sponsors that are created will be displayed in the dropdown? To put in another way , what should be the options in sponsor name dropdown, what should be the mutation to fetch those values?
Potentially we can also allow Sponsor creation on this page, but that's not necessary to close this issue.
Ok, So I'll just show two dropdown for Sponsor name and Sponsor type.
What I recommend is to generate the keys from the content
While creating the event when we click on the Add sponsor button, we will not have the content by the time element is added to the UI. What should be done in that scenario?
Since our schema only supports storing the sponsors at event level, Should Organizer create the sponsor for every event and then those sponsors that are created will be displayed in the dropdown? To put in another way , what should be the options in sponsor name dropdown, what should be the mutation to fetch those values?
That's an excellent question. @allella might have some thoughts, but this is the basic idea:
If we're updating an event, we'd need to know which Sponsors can be added. To do that, we need to know which Sponsors are already EventSponsors for that event. Those existing EventSponsors would be used to populate the UI. Then, if an organizer wants to add a new Sponsor to the event, then it should be possible to pick from all the Sponsors that have not yet been added to the event.
If we're creating a new event, it's basically the same, but there shouldn't be any existing EventSponsors.
Finally, the mutation would modify the EventSponsors when the Event is created.
Potentially we'll want to restrict the available Sponsors further (to ChapterSponsors, possibly), but that's a minor issue and easily addressed later.
While creating the event when we click on the Add sponsor button, we will not have the content by the time element is added to the UI. What should be done in that scenario?
Hard to say without looking at the code, I'm afraid. Do you mind pushing up a draft I can look at?
My current thinking is that organizers would not be able to create a Sponsor. They would just be allowed to add them to specific events. i.e. an admin would be responsible for negotiating with, say, a catering company and then creating a Sponsor entry for that company that has the type = 'FOOD'. An event organizer wouldn't be able to do that, but would be able to say that said catering company is providing the food for a new event without needing to ask an admin.
I'm not sure if that's the perfect way to go about things, but that's what I'm basing my thinking on.
@ojeytonwilliams , @allella , Could you please provide feedback on the sponsors view on Event Page. If we don't have sponsors for the event then I'm not displaying the entire Sponsors Card and Sponsor Names are clickable which will navigate to the website provided while registering a sponsor .
Hi @A3lli0t , Please go through the Contributing Guide and if you face any issues or have any doubts , Please ping in the chat. Maintainers are very friendly and are always happy to help
Good First IssueThis issue is beginner friendly! It shouldn't take much experience to get up and running.Help WantedExtra attention is neededMVPUI/UXThis issue deals with UI/UX
Activity
allella commentedon Oct 28, 2019
@joelrozen if you'd like to create a new issue for any future user stories that are different than the two mentioned then please do so and post more detailed thoughts on that issue. Then, we can close the issue and link to it from #84 for future reference.
jacobbogers commentedon Nov 9, 2019
Does it explicitly have to be strongly typed as "food", can we make this more abstract with a entity called "provides" (or something), and let the user defined "food" themselves or have "food" exist as a "preset" in the database
allella commentedon Nov 11, 2019
Agreed on offering more than food sponsorship.
The current schema allows for multiple sponsors and a sponsor type.
The sponsor type is currently set as an enumerated field with the options of ('FOOD', 'VENUE', 'OTHER'), which is further confirmation of the plans.
@QuincyLarson you want to update the title on this to say "As an organizer I can add a sponsor(s) to the event with a link to their website as a way of thanking them for sponsoring." It wouldn't seem to impact the MVP scope much, if at all.
QuincyLarson commentedon Nov 30, 2019
@allella Thanks for your patience - I thought I had responded to this earlier. Yes - I agree with us having an "other" value and we can expand upon that later if necessary.
[-]As an organizer I can add a food sponsor to the event with a link to their website as a way of thanking them for food.[/-][+]As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/+][-]As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/-][+]API: As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/+][-]API: As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/-][+]As an organizer I can add a sponsor to the event with a link to their website as a way of thanking them.[/+]Ravichandra-C commentedon Oct 6, 2021
@allella, @ojeytonwilliams , Can Event have multiple sponsors ? like having one sponsor for venue and another sponsor for food etc.
If Yes, then our form in Create event should have facility to add more then one sponsor, and also in edit event form we should be able to add and remove sponsors.
Could you please let me know if my understanding is correct?
ojeytonwilliams commentedon Oct 6, 2021
I wasn't part of the original discussion, but yes, I think a single event should be able to have multiple sponsors.
What you're proposing sounds good 👍
2 remaining items
allella commentedon Oct 6, 2021
I posted this in the chat as well, but here's a question related to this issue and being flexible in how we manage roles
So, it may be helpful to consider what other things we might append to these tables to see if we're going in the right direction.
One question / example that came from #96 is regarding the various roles.
Chapter is currently defining the roles as constants and that may not scale well when organizers have some sort of new / clever sponsorship type or event role, like a Code of Conduct Contact.
We might be fine to keep the roles as more general constants, perhaps to help control authorization, but we could possibly allow the administrator or organizer to save a custom "custom_role_name" so if you had an event with a food sponsor and a venue sponsor, it might look like
role_name = SPONSOR
custom_role_name = "Pizza Sponsor"
role_name = SPONSOR
custom_role_name = "Venue Sponsor"
This is just a rough thought, but an issue we're likely to run into.
The other option would be to have a roles table and have core roles for administrator, organizer, user and allow the administrators and/or organizers to add roles that fit their needs.
allella commentedon Oct 6, 2021
So, it may be helpful to consider what other things we might append to these tables to see if we're going in the right direction.
One question / example that came from #96 is regarding the various roles.
Chapter is currently defining the roles as constants and that may not scale well when organizers have some sort of new / clever sponsorship type or event role, like a Code of Conduct Contact.
We might be fine to keep the roles as more general constants, perhaps to help control authorization, but we could possibly allow the administrator or organizer to save a custom "custom_role_name" so if you had an event with a food sponsor and a venue sponsor, it might look like
role_name = SPONSOR
custom_role_name = "Pizza Sponsor"
role_name = SPONSOR
custom_role_name = "Venue Sponsor"
This is just a rough thought, but an issue we're likely to run into.
The other option would be to have a roles table and have core roles for administrator, organizer, user and allow the administrators and/or organizers to add roles that fit their needs.
Similarly, you might have a general sponsor for a local chapter, so user_chapter_roles (or whatever we end up calling it) may benefit from a similar level of flexibility
I don't recall if we talked about chapter specific sponsors, since much of the conversation was around event sponsors, but even if it's post-MVP the issue remains as with events.
user_chapter_roles.role_name = SPONSOR
(optional) user_chapter_roles.custom_role_name = "Hiring Sponsor"
Example of a general sponsors listed on the main meetup and events page in Meetup
Ravichandra-C commentedon Oct 7, 2021
@ojeytonwilliams , I'm trying to add list of sponsor fields to the the create & edit event form as shown in the gif below.
However, to render a list of components we have to use key prop with unique value and to generate the unique value, I used uuid package. As the package is not already an existing dependency, I wanted to check if it is ok to add an extra dependency or if you have any other suggestion that I can use instead of uuid ?
Please let me know your thoughts!
Ravichandra-C commentedon Oct 7, 2021
@allella @ojeytonwilliams Also, Could you please let me know how is the look and feel of UI and if you feel any other changes are needed in the UI.
ojeytonwilliams commentedon Oct 7, 2021
@allella yep, that sounds good. I can see some value in owners and admin being able to create custom roles, so that's definitely something to keep in mind. It might be something that's better deferred until after the MVP, but I'll circle back to this when I get to tackling authentication properly.
I don't think we want to have an explicit sponsor 'role'. Let's keep roles for authentication.
We do already have sponsors.type which is just a varchar at the moment. We generate it as if it was an enum, but it's not. So, if we just keep the sponsors.type a varchar and allow, say, admins and owners full CRUD access to them I think that works. They'd need to be unique strings, but that's probably all we need to change. What do you reckon?
Chapter sponsors sound good. We'll need to think about where they get mentioned (on every event?), but, from a DB perspective, whatever we do for EventSponsors should work just fine for ChapterSponsors.
ojeytonwilliams commentedon Oct 7, 2021
@Ravichandra-C the UI looks lovely, honestly, nice work!
Now that I see it, I realise I didn't specify this well enough. On the event creation dashboard we should be able to select from existing sponsors. So, the UI you've shown is nearly there, but we'd want Sponsor Name and Sponsor Type as the two dropdowns. Once you select a name, it should restrict the Type to the ones that are available for that Sponsor name. I think that's a reasonable UX, but ideas are very welcome.
Potentially we can also allow Sponsor creation on this page, but that's not necessary to close this issue.
Regarding keys, I don't think uuid is the way to go. Since keys need to be stable between renders you'd have to store them in a ref or something equally hacky. What I recommend is to generate the keys from the content. If you simply concatenate the type and the name and require the combination to be unique, that's a perfectly good key. After all, it makes sense for one sponsor to provide, say, food and the venue, but not food twice.
Ravichandra-C commentedon Oct 7, 2021
@ojeytonwilliams
Since our schema only supports storing the sponsors at event level, Should Organizer create the sponsor for every event and then those sponsors that are created will be displayed in the dropdown? To put in another way , what should be the options in sponsor name dropdown, what should be the mutation to fetch those values?
Ok, So I'll just show two dropdown for Sponsor name and Sponsor type.
While creating the event when we click on the Add sponsor button, we will not have the content by the time element is added to the UI. What should be done in that scenario?
ojeytonwilliams commentedon Oct 7, 2021
That's an excellent question. @allella might have some thoughts, but this is the basic idea:
If we're updating an event, we'd need to know which Sponsors can be added. To do that, we need to know which Sponsors are already EventSponsors for that event. Those existing EventSponsors would be used to populate the UI. Then, if an organizer wants to add a new Sponsor to the event, then it should be possible to pick from all the Sponsors that have not yet been added to the event.
If we're creating a new event, it's basically the same, but there shouldn't be any existing EventSponsors.
Finally, the mutation would modify the EventSponsors when the Event is created.
Potentially we'll want to restrict the available Sponsors further (to ChapterSponsors, possibly), but that's a minor issue and easily addressed later.
Hard to say without looking at the code, I'm afraid. Do you mind pushing up a draft I can look at?
ojeytonwilliams commentedon Oct 7, 2021
My current thinking is that organizers would not be able to create a Sponsor. They would just be allowed to add them to specific events. i.e. an admin would be responsible for negotiating with, say, a catering company and then creating a Sponsor entry for that company that has the type = 'FOOD'. An event organizer wouldn't be able to do that, but would be able to say that said catering company is providing the food for a new event without needing to ask an admin.
I'm not sure if that's the perfect way to go about things, but that's what I'm basing my thinking on.
Ravichandra-C commentedon Oct 17, 2021
@ojeytonwilliams , @allella , Could you please provide feedback on the sponsors view on Event Page. If we don't have sponsors for the event then I'm not displaying the entire Sponsors Card and Sponsor Names are clickable which will navigate to the website provided while registering a sponsor .
ojeytonwilliams commentedon Oct 18, 2021
Thanks for the demo, @Ravichandra-C, this looks great!
I'll get on with reviewing (and figuring out what's going wrong in CI) so we can get this in.
allella commentedon Oct 19, 2021
Looks good. Thanks @Ravichandra-C
We'll likely rethink the sponsor "Type" values, but no need to hold up what you've done.
A3lli0t commentedon Oct 21, 2021
Hello everyone! I'm new to open-source and I really want to contribute to this but I don't know how to start? Could someone please guide me?
Ravichandra-C commentedon Oct 21, 2021
Hi @A3lli0t , Please go through the Contributing Guide and if you face any issues or have any doubts , Please ping in the chat. Maintainers are very friendly and are always happy to help