Builds the (invisible) root of the AI Configuration category tree from the ordered list of categories. Extracted as a pure function so the tree shape (children, separator, expansion) can be tested without a DOM.
Builds the (invisible) root of the AI Configuration category tree from the ordered list of categories. Extracted as a pure function so the tree shape (children, separator, expansion) can be tested without a DOM.