You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming a flat array of features that include at least name and parent:
get the parents and their order (parent's parent > parent) so we can render the buttons for selecting which parents to summarize.
Expand all features that are children of a selected parent.
Summarize all features that are children of a unselected parents by showing the count of unique rows if their parent was expanded.
This returns:
An array of parents to be used as buttons
An array of features ordered by parents with a new property summarized.
Then, compute how each row should appear in the table based on that.
Parents above expanded children should be summarized by showing the name feature of the parent level, e.g., conditions.map(condition => condition.name).
Parents below the last expanded parent should appear as a number showing how many rows would appear if that parent were expanded, e.g. behaviors.length
Internal representation
GPT response:
The text was updated successfully, but these errors were encountered: