How do I make all child advancements permanently visible (even if not completed)

Basically I’m looking to replicate this effect but I cannot find the answer in this datapacks code. Advancements are displayed only 2 deep into the tree. I countered this by making an advancement that’s completed on game tick on the end of the line but it looks ugly, is there a way to like hide it?
Continue to help post