Closed WanniCode closed 5 years ago
seems to be duplicate of #195 @NotWowe can you confirm if you're migrating the diff panel UI logic into the diff panel component? How is the file service's on click handler for a selected file being linked to the diff panel?
closed for now - after some discussion, we figured it might be best to pair on #195 since it encapsulates this issue
This refactor is best done independently of #195
This refactor is best done independently of #195
merged as separate PR now
Added approved label as it was mistakenly not added before
updated size to Large since the refactor was larger than expected - in particular, a methodology for directly connecting components (file.panel.component.ts and diff.panel.component.ts) had to be added as a separate service, leading to more additions than anticipated.
Currently, file.service.ts handles the UI logic/updates of the diff panel: for example, displaying the line number git diff when selecting a file from the file panel. Instead, this logic should be handled by the diff panel component (diff.panel.component.ts), which is more idiomatic Angular.
This will also help create a cleaner and more consistent linking between the diff service (currently being written, see #149) and the rest of the application, in particular the diff panel UI component.