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.

Task list

  • Category select isn’t working .
  • Address selector.
  • Form content should stay when the form is closed.
  • Separate forms
    • Put Myself toggle on the Map hides the Categories model and auto selects ‘positive people nearby’
    • Find hints and date selector are hidden if the ‘put me on the map’ toggle is selected
  • Other options for repeating
  • Clean the form to prevent buttons from being hidden. Related to the “12. Forms bottom Buttons are hidden on mobile by the floating footer” comment below.
  • The events details page is not opening. Related to the “Bug: activities not opening” comment below.
  • Video host selection
    • Display the Host instead of the URL.
    • Make the URL field empty.
    • Add validation to the video URL field when a host is selected
  • Select a Host (approved video hosting companies)
  • Character limits on the description.
  • Proper form validation and error display

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.

@Marvelxy got the forms working again!!!

I’m gonna test them and drop tweaks and bugs needed here:

  1. Category select isn’t working. I suspect its related to how they categories are displayed as these are top level categories and not the actual activities underneath.

Long term
We want to switch this to a search, select format so users can type what they are looking for. The search format will mean we don’t need the top level categories at all, as users can search directly for the activity they are looking for.
I’m not sure if now is a good time for that while fixing or not, i’ll leave that up to you Marv.

The previous solution
was that the category select should be a drop down modal, and the top level items when clicked would expand to show the activities underneath.

Both
selecting a category is supposed to auto-fill in the short and long description from the texts in i18n. Users can edit this text, its just to save time and help them if they aren’t sure what to fill.

1 Like
  1. Character limits
    There should be character limits on the descriptions. Both for too short and too long. I forget what they are, but probably like 50% more than the auto-fill descriptions in i18n. I can edit any value you set in the future so no stress if it’s not perfect (as long as it won’t create a DB issue with pre-existing activities if i lower it).

  1. Address selector

The form should auto suggest addresses as the user types. This function might already be in our codebase, unless it was from the quick forms package we were using as it was working before.

The addresses would need to be being pulled from the map as the map needs to know where to put the activity. Currently we use google maps, although at some point we should switch to open maps before the site gets too active as i think google maps api is a lot more expensive now than when we built it.

  1. Notices and guides are working on the forms

Cool!

(the blue box)

  1. Form content should stay in cache

When users close the form, anything they’ve typed should be there when they reopen the forms. Currently it is wiped. Clicking off the form closes it and is something easily done by mistake, so users would be extremely frustrated when their almost finished activity is wiped.

  1. Separate forms

Create a Public Happiness Activity and Put myself on the Map! should be hidden and auto-selected based on which url is used to open the form. For example:

Create a Public Happiness Activity: https://fl-maps.publichappinessmovement.com/map?new=1

Put myself on the Map!: https://fl-maps.publichappinessmovement.com/map?new=2

  1. Put Myself on the Map hides the Categories model
    As users putting themselves onto the map do not want to select a category. We solved this last time by creating a Put Myself on the Map category which is auto-selected when the ‘Put Myself on the Map’ toggle is selected, and hiding the modal.

  1. Find Hints and Date Selector
    These options are hidden if the ‘put me on the map’ toggle is selected. Also lets change the name to ‘How to find us’ for when it is visible.

  1. Other options for repeating

Will need to have the ability to set an activity to repeat every week, month, 6 months, year.

It’ll also need users to be able to set:

  • ‘on this day every week/month/year’ for example Saturday. Or
  • ‘on this date every month/year’ for example the 15th, or the 15th Feb.

This function was previously working. Here’s some commits i found where the code was created/edited which may help rebuilding or fixing it.

Users were also able to click a ‘forever’ button to set a far out date for something which is fixed. This was very helpful for BTM as a lot of the resource centers for people who are homeless are just there. The person adding them to the map doesn’t know what year or month they might stop. Also when users add themselves to the map, it used this function (and hid the time/date module) so they weren’t adding themselves for a year then disappearing from our userbase.

  1. Select a Host

Isn’t working. I think this is for safeguarding, so if there’s something inappropriate then by allowing reputable video hosts with much bigger budgets than us, they should deal with it on their end.

  1. Forms bottom Buttons are hidden on mobile by the floating footer

Bug: activities not opening

Testing and bug hunting on 23/09/2025 update

Needs to be fixed before launch:

  1. Not sure if its validating the url correctly, so someone could share illegal and unpleasant content through our platform. Please confirm if it is as the error message is non-specific and comes when the form is sent:

  1. After clicking ’ Specific days of each week or Other options for repeating’ users are unable to deselect those toggles and return to standard date/time selection, which will lead to bad data being submitted to our database.

  2. My activity url is:

https://publichappinessmovement.com/docuss/m_2b

clicking done took me to:

https://publichappinessmovement.com/docuss/m_4

So there might be a Docuss setting that’s incorrect. Need to explore.

  1. Sharing icons are missing on most sharing options

  2. Clicking ‘Edit page’ brings up a blank form rather than the pre-filled one

  3. Remove ‘direct link’, we only want approved hosts who check the content for safeguarding issues.

  1. the validity check wipes the address and category when something flags as being an issue on the form. After this something is changed in the form and it can’t be submitted.

  2. these links need to be buttons and far bigger and more prominent. Also ‘share your experience’ isn’t the correct title here

  1. forum sidebar needs to hide on tag intersection urls like this: /tags/intersection
    right now it takes up half of the window in our activities wall/chat.

  2. No category is selected when posting via Docuss. I had to Alt-A to see it and add ‘hidden’ manually, which i think is the category Docuss is supposed to use. I’ll need to check Docuss settings. Also both tags and categories are supposed to be hidden and only visible with Alt+A. A Discourse update has changed that so only one is hidden now.

Non-Urgent:

  1. Some fields of the form aren’t remembered if users click off the form then open it again, so they have to be re-entered. like the category and added videos. Important fields are remembered.

  2. Other options for repeating need to be built

  3. Change the dark green to match the light green.