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

Refactor the tree provider #35

Merged
merged 14 commits into from
Jan 28, 2025
Merged

Refactor the tree provider #35

merged 14 commits into from
Jan 28, 2025

Conversation

kaelemc
Copy link
Collaborator

@kaelemc kaelemc commented Jan 28, 2025

This PR includes:

  • Refactored the tree provider.
  • Modify some logging (the normalize path logging has been commented out for now).
  • Slight tweak of the context menu so the graph is in it's own section, and inspect is in the correct place now.

Tree Provider

Containers and lab items on the tree are now two separate classes. A lab node has it's children (lab containers) stored in itself as an array.

Everything is 'stricter' now that labs and containers are separate classes, and there are only minimal things that can be 'undefined' now.

I've added an enum for the lab states, which will help with getting the icons directly.

Overall the refactor improves the readability of the code, as well as making it easier to implement certain features down the line (such as the interface discovery for pcap, etc.)

@kaelemc kaelemc requested a review from FloSch62 January 28, 2025 08:23
@FloSch62 FloSch62 merged commit 699350b into main Jan 28, 2025
@FloSch62 FloSch62 deleted the refac-tree-provider branch January 28, 2025 21:40
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.

2 participants