New Forms

@Marvelxy

For the two forms, we already have most of the text fields in i18n. I’ll review them and update when we start work on the task.

Both text’s are in this file but there is a second one also already built which we can repurpose.

If you search the codebase for the handles/tags i18n searches for you’ll easily find the code it all links up to.

The way the original worked was there was one form with a toggle to switch between posting an event, or posting yourself onto the map. This was a constant source of problems so when we rebuild it we should separate them out into two forms.

The 1st form will operate as it currently does, with the user clicking the ‘Gather’ button.

The 2nd form will become part of the sign up process, and should load if unser who haven’t completed it, or logged in, click any activity or profile on the map. so i’ll see if i can build it in Discourse as part of the existing signup.

We’d also need to build a button somewhere on the site which allows users to see and edit their profile. I suggest a floating footer to mirror the floating footer on the Docuss side. Probably the easiest way to do this is just to use the floating footer on the Docuss side, since i already have a task to set it up to recognise the homepage.

If we do that we should probably move the Gather button there too for consistency. That’s a 2 min task so no stress, we just comment out the current gather button and add the create new event url to the floating footer in Discourse. I think its ‘new=1’

I can use that to make the Discourse footer show on the maps, but with different buttons. So you’d need to send me the link to the forms (which currently already have an edit option, if we manage to get those working again).

One of the fields will be:

‘i’m available to meet’ (this means other users can invite you to join their public happiness activities nearby).

Users will want to toggle this to ‘currently unavailable to meet’ sometimes.

We also have a popup modal which opens after users post an activity to the map, which has social media sharing buttons. Here it is in i18n. Again searching the i18n handle/tags in the codebase will locate the rest of the code, which can hopefully be mostly reused.

I’m investigating why the old forms broke before we start building new ones and came across an issue which might mean nothing, or might be important once the forms are working.

The forms load by adding ‘?new=1’ to the url.

On the React version this works: https://fl-maps.publichappinessmovement.com/map?new=1

On the https://publichappinessmovement.com/ version Docuss blocks this url change, but the modal still opens so maybe it’ll be an issue and maybe not.