Skip to content

Conversation

joshreisner
Copy link
Contributor

@joshreisner joshreisner commented Aug 22, 2025

close #368

the main problem this ticket tries to solve is: currently TSML UI will not show the regions dropdown if it's all grouped by a single top-level region. the reason for this is that we remove filters that apply to every meeting. (if every meeting was in the morning, for example, we would not show the Any Time filter because it would not have any utility)

this solves this by removing regions that have all the meetings of their parent region. this has the effect of "hoisting" regions to be more useful. for example:

  • United States (14)
    • California (14)
      • Los Angeles (7)
      • San Francisco (7)

becomes

  • Los Angeles (7)
  • San Francisco (7)

@joshreisner joshreisner requested a review from gkovats August 22, 2025 15:33
@joshreisner joshreisner self-assigned this Aug 22, 2025
@joshreisner joshreisner linked an issue Aug 22, 2025 that may be closed by this pull request
Copy link

netlify bot commented Aug 22, 2025

Deploy Preview for tsml-ui ready!

Name Link
🔨 Latest commit 2b4dd0e
🔍 Latest deploy log https://app.netlify.com/projects/tsml-ui/deploys/68a88de864865a00089fcd40
😎 Deploy Preview https://deploy-preview-463--tsml-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@joshreisner joshreisner changed the title recursively hoist single-child region nodes recursively hoist regions that duplicate their parent Aug 22, 2025
Copy link
Collaborator

@gkovats gkovats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recreated the same situation described, 14 meetings with a USA > Georgia > [local town] Region hierarchy, and all local towns displayed as expected. Checked on main, and no regions display.

@joshreisner joshreisner merged commit fd217bd into main Aug 23, 2025
6 checks passed
@joshreisner joshreisner deleted the 368-regions-dont-show-when-top-level-region-is-always-the-same branch August 23, 2025 15:25
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

Successfully merging this pull request may close these issues.

Regions don't show when top-level region is always the same
2 participants