Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 2.5 KB

File metadata and controls

42 lines (32 loc) · 2.5 KB

title: CC Browser Extension Week 9, 10

categories:

gsoc gsoc-2019 cc-browser-extension open-source

author: makkoncept

series: gsoc-2019-browser-extension

pub_date: 2019-08-12

body:

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](https://github.com/creativecommons/cccatalog-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.

Special Thanks: Alden, Timid and Kriti.