getCategoryAppDataList
Extracts a list of CategoryAppData from a given list of AppData.
This function iterates through the input list and performs the following:
If an item is a GroupAppData, it flattens its
appDataList
and filters for CategoryAppData.If an item is a CategoryAppData, it's included in the result.
Other types of AppData are ignored.
Return
A list containing only CategoryAppData extracted from the input list.
Parameters
list
The list of AppData to process.