con2 / con2/kompassi

Hierarchical dimensions: Group together related values of a dimension

Open
#507 0 comments 0 reactions 0 assignees View on GitHub
guide-v2-embedded
Dominant language
Python
Stars
29
Forks
33
Avg merge
1d 22h
Merged PRs (30d)
19

Description

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

```json
{
"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.

```json
{
"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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.