For the context, I am working on my GSoC project that is to make a browser-extension to search CC Licensed content in the public domain by interacting with CC Catalog API.
Previous Blogs:
Work Done
These weeks were spent on adding bookmarking feature to the extension and writing some unit tests.
On clicking the bookmark icon, that appears when the image thumbnail is hovered on, the image will be bookmarked. Under the hood, the unique image identifier is saved in the local storage of the extension. The images ids are enough to get all the required image and attribution data needed using the /image/{identifier}
endpoint of CC Catalog API.
Bookmarked images persist even when the extension session terminates. User can view, inspect, delete the bookmarked images in the 'Bookmarks' section. There is also a button to delete all the bookmarks at once.
To let the users organize and share bookmarks, importing and exporting feature is also added. The buttons to export and import the bookmarks are in the options page. Simple json
files are used for this feature.
The rest of the time was spent on writing tests for the extension. One positive side-effect of this was cleaner and modular code. Finally, the CircleCi config file was modified to let the tests to run in CI pipeline.
Coming Up
- Write more tests.
- Test and fix bugs.
- Modifying webpack config to spit out code for production.
You can check out the project on Github and join the discussion on #gsoc-browser-ext
channel on slack.