Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ensure consistent ordering of nodes to match ViewerLayoutPanel #2279

Merged

Conversation

andrewwallacespeckle
Copy link
Contributor

Description & motivation

Currently, in the viewer, the Model panel has a different ordering to the Scene Explorer. This task aims to correct this by ordering Scene Explorer as Model panel currently is:
Model w/ version > Model > Folder name > Object ID

Changes

Correctly classify and order nodes into versionNodes, modelNodes, folderNodes, allModelNodes, and objectNodes

Copy link

linear bot commented May 22, 2024

@andrewwallacespeckle andrewwallacespeckle marked this pull request as ready for review May 22, 2024 10:15
@benjaminvo
Copy link
Contributor

@andrewwallacespeckle I don't completely understand this sorting: "Model w/ version > Model > Folder name > Object ID". Can you explain?

@andrewwallacespeckle
Copy link
Contributor Author

andrewwallacespeckle commented May 23, 2024

@andrewwallacespeckle I don't completely understand this sorting: "Model w/ version > Model > Folder name > Object ID". Can you explain?

I'm not entirely sure why this was order was chosen, but it is very intentional. There is even a comment about it:

     * Flatten results into an array of items that are properly ordered according to resource identifier priority.
     * Loading priority: Model w/ version > Model > Folder name > Object ID

We can easily update this, but I'd assume that order was chosen for a reason. This PR uses the same ordering method in Scene Explorer to replicate Models order.

@andrewwallacespeckle
Copy link
Contributor Author

Latest changes made on pairing call with @fabis94

fabis94
fabis94 previously approved these changes Jun 19, 2024
@andrewwallacespeckle andrewwallacespeckle merged commit 67b778b into main Jun 21, 2024
21 of 23 checks passed
@andrewwallacespeckle andrewwallacespeckle deleted the andrew/web-899-sort-models-and-scene-explorer-the-same branch June 21, 2024 14:20
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.

3 participants