Closed seanmarcia closed 1 year ago
@prajectory & @nathanbaleeta What do you think? Since I'm also working on another issue on the registry page
Hey Nathan, I'm happy to work on this. I'll shortly be submitting a decently sized PR that is a refactor of the registry page that should make future contributions .
Basically, it breaks the page into several components.
I did a small mock up of how I've broken things up here:
Basically, I've taken all the logic in the main page and broken it out into two components. with filter having 4 sub components and List having
@seanmarcia that looks interesting. Can't wait to have a look when you're done.
Links have been added. Closing for now...
Summary
Currently, people who come to the Digital Public Goods (DPGs) registry don't have an easy way to view the code of the repositories. This forces them to visit the project, search for a link to GitHub (or other hosting platform) and then navigate there. For some DPGs this is a frustrating experience as this is something available. I'd like to add a link in the registry to the code.
Justification
This will allow technologists and others who are interested in contributing to DPG projects to quickly find the source code and not leave frustrated. Several projects link to production sites and finding the code requires internet searches or more. Some of the key benefits I see of listing this are:
Details
It looks like this could be accomplished by adding a link in the
ListItem
function in following file:packages/registry/src/index.js
which appears to be generating the registry.It would involve editing the sections which set the
name
attribute and specifically it could be accomplished in lines 261-266 of the above file.Other considerations
The
json
payload contains arepositories
section with a link to the repository/source code of the project. It should be noted that a few projects list multiple repositories so I'd propose taking the first repository and using it.Criteria for completion
Source Code
link in the name section of the registry that links to the source code if it exists.