Skip to content

Commit 3fa4b33

Browse files
authored
Merge pull request creativecommons#112 from makkoncept/master
Add blog post: CC Browser Extension Week 9, 10
2 parents f413eb0 + 7027492 commit 3fa4b33

File tree

1 file changed

+39
-0
lines changed
  • content/blog/entries/cc-browser-extension-week9-10

1 file changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
title: CC Browser Extension Week 9, 10
2+
---
3+
categories:
4+
gsoc
5+
gsoc-2019
6+
cc-browser-extension
7+
open-source
8+
---
9+
author: makkoncept
10+
---
11+
pub_date: 2019-08-12
12+
---
13+
body:
14+
15+
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.
16+
17+
**Previous Blogs**:
18+
- [CC Browser Extension - A GSoC Project](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-a-gsoc-project/)
19+
- [CC Browser Extension Week 5, 6](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-week5-6/)
20+
- [CC Browser Extension Week 7, 8](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-week7-8/)
21+
22+
### Work Done
23+
These weeks were spent on adding bookmarking feature to the extension and writing some unit tests.
24+
25+
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](https://github.com/creativecommons/cccatalog-api).
26+
27+
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.
28+
29+
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.
30+
31+
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.
32+
### Coming Up
33+
- Write more tests.
34+
- Test and fix bugs.
35+
- Modifying webpack config to spit out code for production.
36+
37+
You can check out the project on [Github](https://github.com/creativecommons/ccsearch-browser-extension) and join the discussion on `#gsoc-browser-ext` channel on [slack](https://opensource.creativecommons.org/community/#slack).
38+
39+
*Special Thanks*: [Alden](https://creativecommons.org/author/aldencreativecommons-org/), [Timid](https://creativecommons.org/author/timidcreativecommons-org/) and [Kriti](https://creativecommons.org/author/kriticreativecommons-org/).

0 commit comments

Comments
 (0)