Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Ability to collapse regions and subregions in meeting list drop-down for TSML UI #411

Open
intuitivecat opened this issue Sep 14, 2024 · 8 comments
Assignees

Comments

@intuitivecat
Copy link

intuitivecat commented Sep 14, 2024

Contact Details

[email protected]

Requested Feature/Enhancement

We (https://buddhistrecovery.org/meetings/) use the 12 step meeting list module to list buddhist recovery meetings from all over the world, we partner with and import from Recovery Dharma. They use the newer TMSL-UI but felt the need to move away from listing meetings by city due to the drop down in the meeting search not supporting collapsing/expanding regions and subregions. With subregions their drop-down list was unmanageably long for users, it ends up being around 300+ regions.

Legacy-UI
legacy-ui

TSML-UI
tsml-ui

Is there any work-around for them to be able to do this?

Another idea might be to have an option to not show subregions int he drop-down but still have them internally. Users would need a way to see the subregions in the list view for that to work.

Also open to any suggestions on injecting something from another (custom) Wordpress plugin to customize the behavior without modifying the core code? I found a parallel custom plugin approach a helpful way to manage certain needs, e.g. read in the regions/subregions using Wordpress queries and inject the old-style drop-down. I understand the new TSML-UI may be React though, so that seems tricky to inject from vanilla JS into React+VDOM.

For us the answer is simple, stay with the Legacy-UI until this and code4recovery/12-step-meeting-list#1344 can be sorted out.

But I would like to help them and our meeting goers find meetings by subregion (city) instead of only by region (state/province/country)

@tim-rohrer tim-rohrer transferred this issue from code4recovery/12-step-meeting-list Sep 14, 2024
@kiyote33
Copy link

Hi @intuitivecat,
Sorry for the slow response to your question? Our team has been dealing with a lot of stuff this weekend.
Have you considered a reorganization of your regions to aid drilling down on the regions? I see you currently have a state/city type configuration. Would you consider adding a 3rd level (i.e. country/state/city)? That would be fairly easy to create and would work for TSML UI as well as the Legacy UI.

@kiyote33
Copy link

Or maybe even a 4th level with something like Continent as the top level.

@joshreisner
Copy link
Contributor

thanks for the request - i agree that list looks like it's getting pretty unwieldy

i'm not sure yet if the best solution is to re-implement the dropdown accordion from legacy - it's still a little clunky especially when handling multiple tiers

we have some other tickets around the dropdowns as well: adding checkboxes, and not letting them get taller than the viewport. it might be that we need a more fundamental redesign of the filters

but we will definitely make long lists like yours collapsible in some way

@intuitivecat
Copy link
Author

kiyote33 sorry about the crazy weekend!

interesting suggestion, I played with it but I don't think it solves the issue of managing the large list in TSML-UI without an accordion to collapse/expand and our primary audience is United States. I like the flexibility TMSL provides here, we can mix it and order it as works best.

@steve970
Copy link

I'm trying to use the TSML to show a list of international meetings all over the world. Ideally the Region dropdown wouldn't have the counts because that list is very, very long and would be an accordian. Any direction would be great. Thanks!

@gkovats gkovats self-assigned this Nov 16, 2024
@steve970
Copy link

To expand a little bit further. I currently working with an ISO to implement the TSML plugin and there are 2,000+ meetings to display all over the world. Ideally, I'd be able to organize the data in a way where the Country would be the top level, followed by the city, and if possible, another level to the city. In the current set up, there's just far too many countries and states, to make it a workable option. Any direction, one way or another would be appreciated. The reason we chose to go with the TSML UI over the Legacy UI is because of the open Timezone option that the TSML UI provides. Thanks!

@joshreisner
Copy link
Contributor

hey @steve970 , @gkovats has made some great progress on this, i think the basic coding is pretty much ready, i just have some feedback about UI polish before we release it to all users. if you'd like to preview it go here: https://deploy-preview-430--tsml-ui.netlify.app/tests/timezones.html

if you want to test this canary version in production, you could also just grab the actual app bundle from here: https://deploy-preview-430--tsml-ui.netlify.app/app.js and save it locally

if you're using TSML, you can change the path to TSML UI by adding this to your wp-conflig.php

define("TSML_UI_PATH", "/path/to/your/app.js");

@steve970
Copy link

steve970 commented Dec 2, 2024

Thank you for getting the according option added so quickly. If I added this canary version into my production, should I be following the configuration instructions in this repo vs. 12-step-meeting-list instructions? I am trying to add custom types and need some guidance. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants