Data 4 all
A open-source data handling platform for Kungsbacka municipality, with the goal of streamlining their work handling various datasets. The prototyped was built using Next.js, Tailwind CSS, PocketBase, and shadcn.
My contribution
- Implemented most API endpoints and call functions.
- Implemented simple search functionality.
- Implemented a feed / timeline so users can see if they’ve been tagged in a dataset or changes in datasets they own or curate.
- Built a simple script too seed and wipe the developers local database to ease development.
My thoughts
Working on the prototype was a great learning opportunity, but looking back on it there are some things i think could have been done better. but one in particular feels like a massive mistake;
User session: due to storing the authed user in a context, every fetch of data had to be done in client components using a useEffect instead of on the server which is how Next.js prefers it to be done by my understanding. This resulted in a lot of refactoring and every component needing a empty state even if the fetch would only take a few milliseconds.