The toolbar currently uses logic to populate the DOM based on the selected view which has led to a huge file - we should try and split this up more to make this clearer.
Additionally, tooling within the toolbar often requires access to contexts which are included lower in the DOM which causes challenges. We should look into whether we move the toolbar in the DOM or use tools such as portals to populate the tool bar from lower in the DOM
The toolbar currently uses logic to populate the DOM based on the selected view which has led to a huge file - we should try and split this up more to make this clearer.
Additionally, tooling within the toolbar often requires access to contexts which are included lower in the DOM which causes challenges. We should look into whether we move the toolbar in the DOM or use tools such as portals to populate the tool bar from lower in the DOM