ApoorvaPasbola/rusty-notepad

Simplify Component Interations

Closed this issue · 0 comments

There are a lot many component interactions and too many redundant Outputs and event emitters. We need to simplify this so that they are easily controlled and follow the Single Responsibility principles .

Solution

  • We should have a main fileEvent Subject in the rusty-view service
  • This subject will be getting streams of events from different components
  • Relevant components will subscribe to the Subject and pick up respective events based on the the event type

Affected Components

  • Folder-tree
  • Folder
  • Tabs
  • Workpad
  • Rusty-view service and component

This would allow us to simplify and sync component interactions and trigger events in future from the source itself . Also enable us to add more events in future to all the components