Skip to content

Conversation

@yutotakano
Copy link
Member

@yutotakano yutotakano commented Nov 26, 2025

The codebase always assumes you want exactly two levels of tagging hierarchy (Meta 1, Meta 2).

But at UoE, we only use Meta 1 for SCQF and leave Meta 2 empty. This in effect creates a meta pair with Meta 2 left as an empty string, i.e. (SCQF, "").

When the home page (sorted by SCQF) tries to render collapsible arrows, it assumed the hiearchy to exist, causing visual bugs like below. This PR patches that code to check if Meta 2 is an empty string, and prevent collapsing if so.

BeforeAfter

The way we do it is not a perfect solution and more of a workaround, but unless we also rework the tagging system (to be arbitrary depth, or single-level deep) it's the best we can do.

@yutotakano yutotakano self-assigned this Nov 26, 2025
@yutotakano yutotakano merged commit 9cc8490 into compsoc-edinburgh:master Nov 26, 2025
5 checks passed
@yutotakano yutotakano deleted the fix-arrow-meta-categories branch November 26, 2025 14:50
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.

1 participant