solid-site
solid-site copied to clipboard
refactor: adds centralized author map to streamline resource entries
Refactors the Resource entries under Utilities.data.ts to use new helper methods: packageBy and libraryBy.
Those two helper methods are meant to reduce the amount of repetitive entries for the author, author_url and type per each Resource record put into the list.
I think I like this since it co-locates all the unique library authors into a single map struct so one can appreciate all the work done by said individuals for the Solid community instead of all of them being "lost in the sea of records"
@davedbase whenever you have time, curious to get your thoughts on this approach here to consolidate things a bit and reduce the amount of repeated field entries for the records in this file.
Thanks so much for looking into this. The honest truth is that I was hoping to completely refactor this out of a JSON file. As the ecosystem is growing the file for storing this is growing, it makes more sense to put this in a different storage solution. For a while I was considering an API so that we can handle dynamic submissions and such.