TSML UI is a React web app that makes the 12 Step Meeting List interface available for use on any web page, regardless of platform.
Here's a demo of what the meeting finder looks like with no styling, here's another demo embedded into a different design.
To use TSML UI on your website you only need to add some HTML to your web page. To get started, use our TSML UI configuration helper.
See src/helpers/settings.js for options that can be set by extending your tsml_react_config
object. You can customize many of the behaviors and any text string that the app uses. It's only necessary to specify those values you wish to override.
You don't need to do anything other than enable HTTPS on your website. To ensure all users see this functionality, make sure that anyone who enters a http://
address for your site is redirected to the https://
address.
Here is an example of extending the tsml_react_config
object to include a definition for an additional meeting type.
var tsml_react_config = {
timezone: 'Pacific/Honolulu',
strings: {
en: {
types: {
BEACH: 'Beach Meeting',
},
},
},
};
A list of AA meeting types can be found in the Meeting Guide format spec.
Maps are not shown on meetings that are not meeting in person, which results in a lot of empty space on large screens. If you'd like to display a custom graphic here specifically for online meetings, try adapting this CSS to your needs.
#tsml-ui .meeting.online .map::after {
background-image: url(https://images.unsplash.com/photo-1588196749597-9ff075ee6b5b?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=1440&ixid=MnwxfDB8MXxhbGx8fHx8fHx8fHwxNjIyMTIzODkw&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1920);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
bottom: 0;
content: '';
left: 0;
opacity: 0.25;
position: absolute;
right: 0;
top: 0;
}
The search function has three options:
default
: west chester|brooklyn|manhattanor
: west chester OR brooklyn OR manhattanquoted
: "west chester" brooklyn manhattan
The default requires the pipe character for search, but is also the most straight forward; most users will likely only be search for one town ("West Chester"), a ZIP code ("19147"), or a meeting name ("Happy Hour"). However, the two other search options allow for more precise searching; you can return multiple results for adjacent towns.
For more details, please see: Search: How It Works.
Metatypes are types that are not specified explicitly in the data, they are inferred from the data based on this logic:
-
A meeting is considered
In-Person
if it doesn't have a type ofLocation Temporarily Closed
and it has a specific street address. -
A meeting is considered
Online
if it has aconference_url
that matches our recognized formats and/or it has aconference_phone
-
A meeting is considered
Active
if it'sIn-Person
orOnline
, otherwise it'sInactive
.
This app exists to help people find AA meetings, and after much discussion we decided that Hybrid was not a useful filter type for that purpose. We believe that people on the whole do not set out looking for a hybrid meeting, they simply want to know whether their online or in-person meeting happens to be hybrid. They will know this by its appearance in the list.
Second, while we can infer that a meeting is "online" if there is a Zoom URL (for example) in the listing, the app should not assume that, when there are online and in-person options, that means it is an actual "hybrid" meeting with a video screen and speakers in the room.
Web servants may add their own meetimg types of course.
If you have inactive meetings in your data that you can't remove but you'd prefer not be shown at all, then you can extend your config object like so:
var tsml_react_config = {
show: {
inactive: false,
},
};
This will also hide the "Active" and "Inactive" filtering options.
- Hierarchical region dropdown
- Alternate appearance of
TC
meetings (hide directions and cross out address) - Alternate appearance of approximate addresses (no location list group, zoom out map, no popup)
- Display group info on inside page
- Distance dropdown instead of regions when in near me or location mode
- Spanish
- French
- Near location mode with geocoding
- Filter-clearing buttons when no results
- Accessibility improvements
- Select multiple dropdown items on mobile
- Proper
href
attributes (instead of#
) in controls for SEO
Pull requests are welcome. To get started, clone this repository, run yarn
, and point your web root at the public
folder.
While developing, run yarn watch
to compile assets as you edit them. When you're ready to commit, run yarn prod
to prepare them for production.
This project uses React JS and Bootstrap CSS.