I am trying to implement a plugin to provide an alternative diff view for a certain file types during pull requests. I am trying to achieve something similar to this https://demo.bpmn.io/diff. But I am stuck. My requirements are the following:
- As the alternative view is graphical, I need to have a large dialog window (close to full screen) or a full page for it.
- I need to be able to switch between the classical diff view and the new one.
- As there are not so many files of the type I need the alternative view for, I would like to show the views “toggle” button based on the currently reviewed file type.
The only other possible solution with CSE seams to be the PageExtension. But there is the same problem: I don’t understand how can one add some custom css to the page.
I looked at Plugin modules and have not found anything suitable for my purposes among them either.
Could someone point me to the right direction please?