On the tags page, load in all primary tags on load, but paginate in secondary tags
On the admin tags page, set up a paginated table / grid for secondary tags. Load in all primary tags on load though.
Send in the number of primary tags usable via API, use that as criteria for showing/disabling the "select tags" button.
In the tag discussion modal, lazy-load in children when a top-level primary tag is selected (make the code from IndexPage.currentTag into a util). Add search (and show only 10-20 most recent results) instead of showing ALL of them.
Improve scalability of the admin permissions dashboard (also through pagination of some sort, maybe a scope selector too).
This way, it should be possible to have thousands or tens of thousands of secondary tags without any performance impact whatsoever.
Followup to https://github.com/flarum/core/issues/2177
I propose the following changes:
IndexPage.currentTag
into a util). Add search (and show only 10-20 most recent results) instead of showing ALL of them.This way, it should be possible to have thousands or tens of thousands of secondary tags without any performance impact whatsoever.