(DRAFT) Create an initial CODE_CONVENTIONS.md and CODE_STYLE.md (Frontend)#5938
(DRAFT) Create an initial CODE_CONVENTIONS.md and CODE_STYLE.md (Frontend)#5938lgeggleston wants to merge 1 commit into
Conversation
tdonohue
left a comment
There was a problem hiding this comment.
Thanks @lgeggleston ! I finally had a chance to give this a closer read. Overall, I think it looks like a great start. I only had a few minor suggested improvements inline below. (These are just suggestions though, so if you disagree or other developers disagree, I'm also OK with how this is currently structured)
|
|
||
| ## Accessibility Guidelines | ||
|
|
||
| The DSpace User Interface strives to align with [WCAG](https://www.w3.org/WAI/standards-guidelines/wcag/) AA criteria. Some AAA criteria may also be supported. For more information see [Accessibility documentation](https://wiki.lyrasis.org/spaces/DSDOC10x/pages/408944958/Accessibility). |
There was a problem hiding this comment.
I think we may want to move this into its own section, so that we can have two guidelines under this Accessibility Guidelines header:
- Align with WCAG (Web Content Accessibility Guideliens) AA criteria
- (Put the existing content under this subheader)
- Align with DSpace's User Interface Accessibility Guidelines
| ### Document methods and classes using TypeDoc | ||
|
|
||
| Write [TypeDoc](https://typedoc.org/) comments for all new (or modified) public methods and classes, as well as for large or complex private methods. | ||
|
|
There was a problem hiding this comment.
Per the discussion last week (above keeping the user interface guidelines in the wiki), I think we may want a new section here that says something like:
### Align with DSpace's User Interface Design Guidelines
That way we have a reference back to the wiki page where these guidelines currently exist.
References
Related to discussion that occurred in our DSpace Developer Meeting on June 25, 2026 and July 02, 2026
Related to initial Code Conventions PR created for
DSpacerepo: DSpace/DSpace#12739Description
This PR creates two documentation files in our codebase:
CODE_STYLE.mdis a copy of the short Angular section in the existing Code Style Guide in the wiki.CODE_CONVENTIONS.mdis a draft of a new "coding best practices" guide for the frontend which could be used by developers or reviewers as a reference for code review. I added only a few guidelines so far, based on the overarching principles described in User Interface Guidelines & Accessibility.Instructions for Reviewers
CODE_CONVENTIONS.mdto describe coding best practices. Move style guide toCODE_STYLE.mdDSpace#12739, but if that doesn't work as well fordspace-angularwe can absolutely change it.