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

Hierarchical dimensions: Group together related values of a dimension #507

Open
japsu opened this issue Jun 14, 2024 · 0 comments
Open

Hierarchical dimensions: Group together related values of a dimension #507

japsu opened this issue Jun 14, 2024 · 0 comments
Labels
guide-v2-embedded Program Guide V2 Embedded

Comments

@japsu
Copy link
Contributor

japsu commented Jun 14, 2024

Consider, for example, dimension room in event ropecon2024, that has values like

              {
                "slug": "halli-3-perhealue",
                "title": "Halli 3 Perhealue"
              },
              {
                "slug": "halli-3-tanssiharjoitussali",
                "title": "Halli 3 Tanssiharjoitussali"
              },
              {
                "slug": "halli-3-turnaussali",
                "title": "Halli 3 Turnaussali"
              },
              {
                "slug": "halli-3-vapaa-pelialue",
                "title": "Halli 3 Vapaa pelialue"
              },

There's a lot of values in the dimension, and some of them have a hierarchy.

We would like to group together related values of the dimension, so that for example sub-areas of Hall 3 would be somehow visually together. Perhaps also hide sub-areas until their parent is selected?

In the GraphQL API this could be done eg.

              {
                "slug": "halli-3",
                "title": "Halli 3"
                "children": [
                  {
                    "slug": "halli-3.tanssiharjoitussali",
                    "title": "Halli 3 Tanssiharjoitussali"
                  },
                  {
                    "slug": "halli-3.turnaussali",
                    "title": "Halli 3 Turnaussali"
                  },
                  {
                    "slug": "halli-3.vapaa-pelialue",
                    "title": "Halli 3 Vapaa pelialue"
                  },
                ]
              },

and the hierarchy also shown in the slug using a dotted path.

@knomepasi knomepasi added the guide-v2-embedded Program Guide V2 Embedded label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guide-v2-embedded Program Guide V2 Embedded
Projects
Status: No status
Development

No branches or pull requests

2 participants