Skip to content

feat: Adding support for multiple views per script dynamic tabs - #414

Open
AlexDenfordSkyboxLabs wants to merge 2 commits into
mainfrom
sbl/alex.denford/multi-views
Open

AlexDenfordSkyboxLabs wants to merge 2 commits into
mainfrom
sbl/alex.denford/multi-views

Conversation

@AlexDenfordSkyboxLabs

@AlexDenfordSkyboxLabs AlexDenfordSkyboxLabs commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Hide whitespace changes to avoid seeing the crazy changes because of formatting.
Few changes needed to make this work

In App.tsx, a dynamic tab now stores an array of descriptors, previously, another descriptor with the same tab name replaced the existing descriptor. Now it is appended to that tabs views, and the rendering loop creates a separate control for each descriptor

I added a 'incrementalUpdates' which is true for scripting tabs where we only send partial update data from native. Whereas before we expected a full set of stats, which would erase the previous data from the other collector/view because the script cases wouldn't necessarily have all stats in each update. WHen incrementalUpdates is true, we ignore missing entries instead of removing them.

image

childStringValues.push([child.name, ...valueStrings]);
}
}
childStringValues.push([child.name, ...child.values.map(value => value.toString())]);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant