GithubHelp home page GithubHelp logo

mi-chat's Introduction

mi-chat's People

Contributors

afzalive avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mi-chat's Issues

Style ChatBot messages

userRole = 4

height will be < current list item height
no background/border

maybe iconize each action so it'd be more like how Google Hangouts displays "read up to here"

Actions:
Login
Logout
Error
Roll

Style user actions

Any message that starts with "/" is an action. No exceptions.

Should probably be styled the same way as ChatBot messages but slightly different to show which user invoked them.

For ChatBot

userRole = 4

height will be < current list item height
no background/border

maybe iconize each action so it'd be more like how Google Hangouts displays "read up to here"

Actions:
Login
Logout
Error
Roll

Sometimes, MessagesActivity isn't populated, trying to refresh

Have to investigate this but I think the issue is that the response is unexpected (probably logged out or timeout). No messages or users are found and the Activity remains unfilled.

Fix: If the response is "logged out", login again or redirect to Login Activity.

If we can find out exactly which step this happens at, we can just open LoginActivity instead of MessagesActivity directly.

Support for /delete

When a message starting with "/delete" is received, delete the proceeding message ID using the ContentResolver.

Login screen design suggestions

Background: McMaster building photo
Foreground: Box blurring the background with text boxes and button having a little border

Background: only the section Above and below the banner, text boxes and button with drop shadows from background to the mid-section

Background: only behind the banner with banner inside a box blurring the background
textboxes + buttons inside a section with drop shadows

Back-off algorithm

If last post less than 1 min old, refresh every 3 seconds.
Last post is 1 min old, refresh every 5 seconds.
Last post is 2 min old, refresh every 10 seconds
Last post 2.5 min old, refresh every 20 seconds
Last post 3 min old, refresh every 40 seconds

Seems like doubling the refresh interval every 30 seconds since the last post might be a good way.

Display images from [img] tags

TextView will not be able to display images, obviously.

Proposed solution:

Separate all [img] tags from posts.
Store the links in another column.
Attach some sort of expandable/clickable interface to view each image in the post.
Use Picasso to load the images.

Back-off algorithm

If last post is 30 sec old, refresh every 5 seconds.
Last post 1 min old, refresh every 10 seconds.
Last post 1.5 min old, refresh every 20 seconds
Last post 2 min old, refresh every 40 seconds
Last post 3 min old, refresh every 160 seconds

Seems like doubling the refresh interval every 30 seconds since the last post might be a good way.

Selectable list items

Make list item selectable to provide options like copy text.

Not sure if it should pop a dialog to let use select a part of the message and not all of it.

Does not compile

SlidingMenu from mvn-repo is vanilla, needs to extend SherlockFragmentActivity in SlidingFragmentActivity class instead of FragmentActivity.

Bug introduced in: 564f979

Parse XML instead of Json

Well, the code is built to parse Json. should be easy to switch to XML. Only need to change parseResponseBody() methods for this one.

Radio and Data Management

This may be totally random, but I recently came across it and thought it went through a lot of very important considerations when dealing with mobile apps that deal with data transfer.

https://developers.google.com/live/shows/601631694/

I'm sure you're an uber android brain and you likely know a lot of this stuff, or maybe it isn't completely applicible, but I thought it was worth showing nonetheless!

R

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.