Coder Social home page Coder Social logo

susi_chromebot's Introduction

Chrome extension to access SUSI.AI

Codacy Badge Build Status Join the chat at https://gitter.im/fossasia/susi_server Twitter Follow

This is a chrome extension to access SUSI.AI.

In certain situations the user wants to access certain functionalities of SUSI.AI without leaving the tab they are currently browsing. In those situations, using a chrome extension could turn out to be a viable option, and that is exactly what we're trying to accomplish.

Installation

$ git clone https://github.com/fossasia/susi_chromebot
$ cd susi_chromebot
$ cd src
  1. Clone this repository.
  2. Goto chrome://extensions on your chrome browser.
  3. Turn on developer mode if not already on.
  4. Load unpacked extension from src folder.
  5. Click on the SUSI icon you see on your browser toolbar (or) Use the keybkeyboard shortcut Alt+Shift+s to open.
  6. Right click on the manifest icon (SUSI.AI icon on chrome), then click on Options. Allow mic-access from there.

Working GIF

SUSI_CHROMEBOT_GIF

Want to Contribute?

Check Issues here.

Read CONTRIBUTING.md here.

Communication

Our chat channel on gitter can be found here.

susi_chromebot's People

Contributors

0x48piraj avatar akshatnitd avatar ananthavijay avatar anubhavp28 avatar arnav-mandal1234 avatar ashishkrgoyal avatar atnitesh avatar championballer avatar championpaddler avatar codacy-badger avatar divyam3897 avatar fragm3 avatar gabru-md avatar haquezameer avatar hongquan avatar kundan28 avatar mariobehling avatar ms10398 avatar neeraj3029 avatar orbiter avatar prateekiiest avatar rupav avatar sachincool avatar saikat041 avatar samagragupta avatar sansyrox avatar techpool avatar tusharfc avatar vatz88 avatar vramazing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

susi_chromebot's Issues

Wrong response read from server

actual behaviour
Currently, the answers[0].data[0] field is being read. This is not the correct response to read. Wrongly, the request is being send twice from the client side.
image

Expected behaviour
Send the request only once for one query. Read the correct response which is the actions attribute.
Please refer to the API doc at https://dev.susi.ai/skills/susi_chat_api.html

Would you like to work on this ?
No

Reduce redundancy in code

Currently there is too much redundancy in creating new messages. I will put them into separate methods so that redundancy is reduced.

Yes I will work on this.

Keyboard shortcut for popup.

I'm submitting a ... (check one with "x")

Current behavior:

n.a
Expected behavior:

A keyboard keys combinations for opening the popup
This is similar to the work in susi_firefoxbot.

Would you like to work on the issue?
Yes

Fixing UI issues

image
As we can see some fixing needs to be taken care of.

Would you like to work on this one?
Yes

UI Enchancement(Scrollbar)

Its a UI enchancement now the scrollbar is really simple I would like to enchance its look and make it attractive.

@zamhaq @gabru-md Whats your opinion?

Clean up the repo and add a GIF

move all the Extension related data inside a src folder.
Leaving only README and LICENSE outside it.

And add a GIF to the README demonstrating the working of extension.

@ms10398 @zamhaq I will work on this only if you guys agree to it as an enhancement.
Thanks!

fixing UI bug

This is basically small bug regarding size of input text by increasing its size.

Would you want to work on this issue?
Yes

Add .eslintrc file

For javascript linting purposes.

Would you like to work in this issue?
Yes

Autofocus on textarea when extension pops up

Actual Behaviour

When extension is clicked focus is not on the textarea

Expected Behaviour

When extension is clicked focus should be on the textarea

Yes I would like to work on it and make a relevant PR soon.

UI Improvement

Input box can be adjusted to fill the white space available.
@zamhaq @gabru-md
Whats your opinion

Screenshot of the issue

screenshot from 2017-09-25 03-18-18

Yes I would like to work on the issue if this change is required

Clear all button

Current Behaviour:
There is no option to clear the chats

Expected Behaviour:
There should be clear option in the chat

I want to work on this issue

Mic is not working

On clicking mic, there is no response, "SPEAK NOW" comes on top and vanishes quickly.
It is not registering our chat using mic.
2017-10-01 3
Would you like to work on it?
Yes.

copy previous message in chat when 'up/down' key is pressed

Actual Behaviour

Nothing happens on pressing the "up" or the "down" key in chat

Expected Behaviour

On pressing the "up" key the previous message should be copied. And on pressing the "down" key, the following message should be copied.
Often the user wants to copy the previous message. This would enable the user to easily send previous messages with little or no modification to the message.

Steps to reproduce it

Open the chat, and press the "up" or "down". Nothing happens.

Would you like to work on the issue?

Yes, I would like to work on this feature.

Make chat data persistent

I'm submitting a ... (check one with "x")

Current behavior:
Once the browser action is closed all chat data is lost.

Expected behavior:
Chat data should be preserved unless user closes it.

Yes. I would work on this.

Add some information on the new tab that opens

Actual Behaviour :-

When the new tab opens on clicking settings, it is completely blank.

Expected Behaviour :-

Add some information into the page regarding microphone access.

Yes, I would work on this.

integrating SUSI API

Integrate SUSI in this chromebot using susi api.
So that a decent platform can be established for further refurbishments in UI and UX.

I would like to work on this.

Theme Change error

Expected Behaviour
Changing the theme causes the previous messages to remain in same way.

Actual Behaviour
It must be changed and should adapt to the changed theme.

Yes I will work on this.

Theme Preferences

Feature Request

There should be light and dark theme supported as Susi Chat.

Would you like to work on it?

Yes I would like to work on it.

Add SUSI Chat styled send button

Remove the ordinary Submit button and replace it with SUSI style send button.

Yes I'll be working on it and sending a PR soon

Auto scrolling when text overflows

Actual behaviour
When messages overflow the div that contains messages then scroll is added, but it does not scrolls automatically.
Expected behaviour
Scroll automatically when messages overflow.
textoverflow

Fixing arrows which are always visible

Actual Behavior

Scrolling arrows are always visible even when text is not overflowing

Expected Behaviour

Arrows should be visible only when there is overflowing text.

Yes I would like to work on it

Display error message when unable to connect to susi api

Actual Behaviour
When message is sent, if susi_chromebot fails to connect to SUSI api then SUSI does not responds anything and stay idle.
error
Expected Behaviour
Show "could not connect" message to user.

Would you like to work on this ?
Yes.

Incoroporate chat.susi.ai theme into susi_chromebot

Currently the susi_chromebot has a very basic look.
susi
It would be great if it looks something similar to https://chat.susi.ai/.
chatsusiai
The UI improvements would include the following changes :-

  1. Colors from chat.susi.ai
  2. fonts similar to as used in chat.susi.ai
  3. speech bubbles for sent messages.

Yes I would like to work on it.

Susi styled side menu and navbar

I'm submitting a ... (check one with "x")

Current behavior:
A settings icon is used

Expected behavior:
Replacing setting icon with navbar

Your operating system
Mac OS

Would you like to work on the issue?
Yes , I would like to work on this issue.

add loading animation

Display a loading animation like chat.susi.ai while message is being generated.

Yes I would like to work on this

UI improvement

@zamhaq @gabru-md Time of the message being sent can be shown with the message.
Whats your thought
Yes I would like to work on it if you approve this improvement

Leading spaces

Leading space in chat :
2017-09-25 5

How to reproduce it?
Follow the steps in readme to make SUSI work, then start chatting.

I would like to work on it, if thats an issue.
A little guide where to look for will be really helpful?
Thanks.
I am new to Javascript.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.