consider refactoring templates and Sass to maximize reuse/reusability #6157
Labels
CSS
(Formerly also included SASS)
HTML
journalist interface (JI)
needs/discussion
queued up for discussion at future team meeting. Use judiciously.
source interface (SI)
Description
While well beyond the scope of #5972, the UI refactoring and tweaking involved in #5986 and #5987 demonstrates that the separate templates and overlapping Sass stylesheets can be difficult to reason about between the Source and Journalist Interfaces. Once this accessibility-focused refactoring is complete, it would be good to investigate whether the two interfaces' templates and stylesheets can at least be made equivalently (homologously) intertwined, so that it's more obvious to contributors when and how changes to one interface have side effects in the other.
This could be as simple as inheriting from a common
base.html
template and templating reused widgets in HTML as well as in Sass—not unlike the component library proposed in freedomofpress/securedrop-client#1328.The counterargument to this proposal is that the Source and Journalist Interfaces should be completely separate in both their templates and their stylesheets. The exception might be widgets such as
locales.html
which are currently replicated, but could be shared, identically between the two interfaces.User Research Evidence
#6080
User Stories
As a contributor, I want to be able to reason easily about templates and Sass between the Source and Journalist Interfaces.
The text was updated successfully, but these errors were encountered: