Currently, buyer menu and seller menu are two different files filled with 95% same content.
Commit a3f1fa2 proves current architecture is not very sustainable. What if we introduce a third role, should we copy-paste everything there as well?
So I suggest some kind of a "mixin" to put all this same logic on one place, and then only override the differences.
I'll get down to this as soon as I implement the invoices screen.
Currently, buyer menu and seller menu are two different files filled with 95% same content. Commit a3f1fa2 proves current architecture is not very sustainable. What if we introduce a third role, should we copy-paste everything there as well? So I suggest some kind of a "mixin" to put all this same logic on one place, and then only override the differences. I'll get down to this as soon as I implement the invoices screen.