freeCodeCamp / chapter

A self-hosted event management tool for nonprofits
BSD 3-Clause "New" or "Revised" License
1.92k stars 359 forks source link

Redirect to venue creation after chapter creation #2346

Open gikf opened 1 year ago

gikf commented 1 year ago

Discuss your ideas or share your views:

After chapter is created, the page redirects to the venue creation. The redirect was added to lead user to something required, before being able to create event (which isn't online-only).

That constraint is no longer in place, as event can have TBD venue selected. Therefore the redirect to venue creation could be removed.

ojeytonwilliams commented 1 year ago

What do you think to redirecting them to the new event page instead?

The only issue with that is that if they create an offline event they should still create a venue. Might be worth redirecting after the first event has been created (if they have no venues at that point)

Sboonny commented 1 year ago

We can redirect them to events, but if they are adding new event with physical or online and physical type selected, we can add a logic in the form that goes like.

{venues.isPysical.length < 0 && <Link>Create physical venue<Link>}
gikf commented 1 year ago

My main problem with current redirection, or swapping it for redirection to creating event, is making it appear as a fully linear few step process.

Maybe redirection to the individual chapter dashboard, with some indication of the lack of created venue(s) and event(s) would work?

Sboonny commented 1 year ago

if I understood you, you mean navigating to /dashboard/chapters/{createdChapterId}/chapter. This will work 👍, we should go with this

gikf commented 1 year ago

/dashboard/chapters/{createdChapterId} yes. With some additional visual cues when no events and no venues are created.

Sboonny commented 1 year ago

I have created a quick PR, to display chapter data.

Chapter can have multiple events and multiple venues, if I am not wrong 🤔, what about:

but crude, but it should be simple that changing it later won't be an issue 🤔