GithubHelp home page GithubHelp logo

chat's Introduction

What is this?

Chat is an activity used to exchange messages with friends or classmates. You can chat about a topic you are studying or you can share something private that happened in your life.

How to use?

Chat is part of the Sugar desktop. Please refer to;

chat's People

Contributors

0xdaf avatar aniket21mathur avatar chimosky avatar cscott avatar devabnull avatar erikos avatar fdanesse avatar godiard avatar humitos avatar i5o avatar jirwin avatar leonardcj avatar mukgupta avatar nirbheek avatar nswarup14 avatar pootle-sugarlabs avatar quozl avatar rbuj avatar rdrsadhu avatar rhl-bthr avatar ruichen-03 avatar samdroid-apps avatar saumya-mishra9129 avatar tomeuv avatar vipulgupta2048 avatar walterbender avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chat's Issues

Issue with user mode switching

When the connection to the chat room status (multiuser mode) is activated, it is not possible to click the button on the left to return to single-user mode; the only option is to exit the chat room.
Uploading image.png…

Feature: drawing and quoting

Some of the original design features not yet implemented are drawing and quoting.

  • increase the height of the entry widget and accept touchscreen or mouse drawing, as well as text,
  • transmit the drawing and text to the shared activity instance,
  • receive and render both the drawing and the text,
  • add a clear entry button to the entry widget,
  • in the chat history, for each transmission add a quote button, which will load the entry widget with the drawing and text.

Reference: http://wiki.laptop.org/go/Chat

User Feedback Integration

Create a mechanism for collecting user feedback within the chatbot interface and incorporate it into the model training process for continuous improvement.

Feature: advise of connection progress

When a second or subsequent instance of the activity is started by others, there is little explanation for the delay that ensues. Like the Maze activity says "Joining a maze", say "Joining a chat" or whatever message is appropriate given the other messages in use now.

Community Engagement

Encourage community participation by organizing virtual hackathons or developer meetups to collaborate on enhancing the chatbot functionality and expanding its feature set.

flake8 - Do not use bare except

./utils.py:64:9: E722 do not use bare except'
./activity.py:34:1: E722 do not use bare except'
./chat/box.py:176:13: E722 do not use bare except'
./chat/box.py:215:13: E722 do not use bare except'

The anticipated exception should be characterised instead.

Prevent user from sending smileys when disconnected

Users are able to send smileys when disconnected. Like sending text, sending smileys should also be disabled when the user isn't connected.

Tested on:
Sugar 0.117-3, Debian Bullseye
Sugar 0.117, Sugar Live Build
OLPC OS 18.04

Warnings on Ubuntu 19.04

When joining a shared activity, both the inviter and the responder see these log warnings;

(sugar-activity:10643): Pango-WARNING **: 17:01:12.866:
  failed to create cairo scaled font, expect ugly output.
  the offending font is 'Noto Color Emoji 109'

(sugar-activity:10643): Pango-WARNING **: 17:01:12.866:
  font_face status is: file not found

(sugar-activity:10643): Pango-WARNING **: 17:01:12.866:
  scaled_font status is: file not found

(sugar-activity:10643): Pango-WARNING **: 17:01:12.866:
  shaping failure, expect ugly output. shape-engine='PangoFcShapeEngine',
  font='Noto Color Emoji 109', text='✌'

Bug Fix

Issue where the chatbot occasionally fails to respond to user queries due to a timeout error, investigate and fix the root cause to ensure consistent performance.

Performance Optimization

Optimize the chatbot's response time by implementing caching mechanisms or improving the efficiency of natural language processing algorithms.

Security Enhancement

Conduct a security audit to identify potential vulnerabilities in the chatbot integration and implement measures to safeguard user data and privacy.

Loss of focus on up arrow key

Reproducer: be connected and chatting with others, decide to repeat what you said, and press the up arrow to do it.

Observed result: focus leaves the input text widget, and any further key presses make a beep noise.

Expected result: either no effect of up arrow key, or previously sent lines should be offered for editing.

Feature: searching

One of the original design features not yet implemented is searching.

  • add a search widget to the tool bar with shortcut ctrl+f which highlights the first result and if necessary changes the scrollback position to do so,
  • add a search next widget with shortcut ctrl+g,
  • add a search previous widget with shortcut shift+ctrl+g,
  • add a activity shortcut esc which is to cancel the search and restore previous position,

Reference: http://wiki.laptop.org/go/Chat

TypeError: ord() expected string of length 1, but int found

Chat activity reports a traceback;

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 669, in <lambda>
    func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
  File "/usr/share/sugar/activities/Chat.activity/utils.py", line 44, in _io_in_cb
    if ord(data[10]) == 1:  # SW_TABLET_MODE
TypeError: ord() expected string of length 1, but int found

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.