-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feed config expandGroup
does not work as expected
#35
Comments
expandGroup is indeed not working. I've removed it from the documentation. |
This does not seem to work. If I prefix the "field" of a match (which seems to be the group name), or the court name with a '+', this somewhat has the desired effect, but only because it actually causes that group to be listed first, alphabetically sorted before the rest: This works for me as a hack for now, but it's not possible to actually expand more than one group this way. |
Can you try and 'divide' your matches in 'sections' like in this example https://squore.double-yellow.be/demo/demo.matches.json For this example the second section name "+Session 4, Week 3, no Ids" will be expanded by the app. This should allow your matches to be grouped by whatever you want: some people want them grouped by court, i typically use a 'week' FYI: If no section has a plus in front of it, the first section is typically expanded by the app. |
I now got this working, somewhat, using the following JSON structure: If I load the feed for the first time, the first group ("No court assigned") always gets opened, but also the one for Court 2. If I collapse the first group and reload, then it stays collapsed. I also wonder why "No court assigned" shows up first, but I think this may be because capital letters sort before lowercase letters, and #34… |
I am playing with a test tournament. I have a feed that provides a couple of games, each with a draw name in the "field" attribute:
Unfortunately, if I pass
expandGroup
as part of the feed config like so:no change is visible, i.e. if I refresh the feed, the first group is still expanded, and not the second.
Note that this is the same if I opt to "Order by Court". My courts are named e.g. "Court 1", but setting
expandGroup
to "Court 1" (or "court 1" due to court names being lower-cased) doesn't have the desired effect either.The text was updated successfully, but these errors were encountered: