This blog is about the work we have done and goals we have accomplished in the GSoC'22.
Let’s Dive in…
CircuitVerse is a Digital Logic Simulator on web. It is an educational tool for students interested in electronics to simulate and make circuits on their browser.
This project aimed to improve the main platform by integrating new features. So intially the project consist of 6 features but after mentor discussion we have added more features into the project context.
The features we have successfully implemented:
This feature enables user to authenticate using thier gitlab account in CircuitVerse. For achieving this, I used omniauth-gitlab
gem. Initially, I faced issues because of the old version of omniauth gem in CircuitVerse, so I first update the gem along with it’s dependencies and configurations. After omniauth update, gitlab authentication works smoothly. I also updated the documentation to integration application for config.
PR
SSO stands for Single-Sign On. I have used devise_saml_authenticatable
gem. For the testing I used Okta IDP. I faced issues during integration but as always mentor guided me the way, and I was able to solve it.
PR
This feature enables group to have multiple mentor. There will be 1 primary mentor(owner), and primary mentor can add mentors, make member a mentor and vise-versa. Mentors can grade, CRUD, and reopen assignments. Ruturaj has already raised a PR for it and had implemented mot of the stuffs, but there is still need to rafactor, cleanup and stimulus JS migration.
Owner view:
Mentor View:
PR
Initially the embed feature was basic. This feature advance it by providing the customization options. When a user click on embed button, a popup will be displayed with the options to customize your embed. The customization options:
Kartikay already have made a PR with the integration for Iframe width & height, border with & color. I worked on integrating advance options, revamp and cleanup.
PR
We already have element restrictions for the assignment i.e., to restrict the group members with the use of elements for the Project. But we have got quite a few complaints from professors that CircuitVerse allows cheating easily. For example, users can easily copy/paste any public circuit. They can give collaborators access to their own circuit and copy-paste etc. So it has been requested by professors to disable this feature. This PR enables that feature into CircuitVerse.
PR
Notifications are very important aspect, we were using activity_notification
gem before, but it makes the page lacky and the gem is not maintained any more, so we decided to shift to new gem, and we found noticed
gem for it.
Noticed gem is really very easy to use and had really cool and amazing features. You can learn about the noticed gem here.
We have covered 2 events for notification:
We have implemented a section in the navbar to get quick access to your notification.
Notification page for a respective user shows all the notification for the user logged in. You can mark a notification as read by clicking to it, or you can click mark_all_as_read to mark all notifications as read.
The noticed implementation was comparatively easy, but the major challenge was to migrate the old data under the activity_notifications
as both gem have different implementation, different schemas and methods. So we finally made a data migration file in which we made a script to migrate the data from notification
table to noticed_notification
table.
PR
We also reimplemented the web push notification, for which the PR is under review! There are some production issue we are facing, we are trying to solve it!
Notification api is used to provide the different endpoints for the Mobile-app.
/api/v1/notifications
To get all the notification for current authorized user.
/api/v1/notifications/mark_as_read/:notification_id
To mark a particular notification as read.
/api/v1/notifications/mark_all_as_read
To mark all notifications as read.
PR
This feature intends to improve tagging feature in projects. This feature helps to suggest tags for the project to the user in the project edit page. The tags are extracted from circuit elements used, project name, description.
We were able to accomplish this feature to suggest tags from circuit elements and project name. Extracting valid tags from description needs more complex logic as description includes some data which are irrelevant to be suggested as tags for the project.
We use slim-select
which is select2
alternative without jquery dependencies. Slim-select is an advanced select dropdown library.
The PR is still under review and work is under progress.
This feature needs more solified logic to increase the accuracy of valid suggested tags.
PR
This feature intends to increase user engagements in CircuitVerse. Contest are for all users to showcase there awesome creation using CircuitVerse simulator and get chance to feature there creation in CircuitVerse Featured Circuits. Winner of the contest will automatically get featured(after deadline).The winning circuit is shortlisted by the maximum votes gained.
The feature is under testing phase.
All Contest Page
Route: /contests
Contest Page
Route: /contests/:contest_id
Project Submission
Route: /contests/:contest_id/new
Withdraw Submission
Vote Submission
Completed Contest & Winners
PR
Issue is created for this here and is open for suggetion. Feel free to suggest more features to add up in CircuitVerse Main Platform. Thanks in advance!!!
I have experienced my best productive, learning phase of my life in GSoC with CircuitVerse. The mentors were so supportive. They helped me in every blocker, appreciate me in my good works and guided me for any failures. My bonding with mentors and other contributors becomes more close. I love contributing in CircuitVerse and will continue contributing in CircuitVerse. I wanted to thank specially Aboobacker, Ruturaj and Nitin for being great mentor. Pavan and Ayan for being so supportive during my starting phase in CircuitVerse. Devjit, Pulkit and Aman for being awesome co-workers and friend.
This project was of 15 weeks(extended). We were able to accomplish most of the task we decided. There are many features coming up in the future projects as well.
Thanks for reading!!!