Ticket #103 (closed enhancement: fixed)

Opened 20 months ago

Last modified 18 months ago

Chatting on appointment

Reported by: winfried Owned by: zeank
Priority: P1 Milestone: Book environment
Component: Webchat Version:
Severity: normal Keywords:
Cc:

Description (last modified by winfried) (diff)

Users logged in should be able to invite each other for a chat. Only users with an account should be able to invite and only users with an account should be able to be invited.

Design:

In stead of the normal 'chat' page, a page is displayed that lists two lists of invitations: send invitations and received invitations. Below those two lists, there is a form to send invitations.

Send invitations: By clicking on one of these, a chatwindow opens, waiting for an invitee.

Received invitations: A list. You con only click on an invitation when the person who invited you is online for that invitation. The click opens the chat.

In the chat the full name is as nickname.

Sending invitations: A form to enter the e-mail address of the person to be invited and a box for additional text. If the invited person is a registered user: the invitation is send by e-mail, otherwise an error is displayed.

Problem: The chatbot has quite a hardcoded way to determine who is who what function. I can't oversee well how this process will mess with storing the logs of the chat by the bot.

Change History

Changed 20 months ago by winfried

  • type changed from task to enhancement

Changed 20 months ago by winfried

(In [980]) Adding chat_Invitation table and ORM object, refs #103

Changed 20 months ago by winfried

  • status changed from new to assigned

Changed 20 months ago by winfried

(In [982]) Creating a base class for webchat pages, refactoring current webchat pages. refs #103

Changed 20 months ago by winfried

(In [987]) Updating docstrings, adding / improving invitation table. refs #103

Changed 20 months ago by winfried

  • description modified (diff)

Changed 19 months ago by zeank

  • owner changed from winfried to zeank
  • status changed from assigned to new

Changed 19 months ago by zeank

(In [1091]) some initial code to display invites (both directions) refs #103

Changed 19 months ago by zeank

(In [1092]) fixed panel names refs #103

Changed 19 months ago by zeank

(In [1093]) added form to send invite refs #103

Changed 19 months ago by zeank

(In [1094]) actually create an invitation and send an email with link refs #103

Changed 19 months ago by winfried

(In [1099]) Adding the oulines for 2 functions needed for: refs #103

Changed 19 months ago by winfried

(In [1100]) - Cleaning up configurations - Splitting chatting on invitation up to different script (untested) refs #103

Changed 19 months ago by winfried

(In [1101]) Changing some refs to old filename in ShowChatInvitations?, refs #103

Changed 19 months ago by winfried

(In [1102]) Changing config for new script for chatinvitations, refs #103

Changed 18 months ago by winfried

(In [1103]) Adding links to the chatinvitation lists, creating infrastructure to suppress links when invitator is not online. refs #103

Changed 18 months ago by winfried

(In [1104]) Adding checks to check if correct invitation is opened. And adding comments about next changes to make. refs #103

Changed 18 months ago by winfried

(In [1105]) Detection if an invitation is open or not, activating link when so. This introduces 2 new statusses: availableForInvitation and staffWaitingForInvitee. Note: the chatbot does not detect the statusses correct yet. refs #103

Changed 18 months ago by winfried

(In [1107]) Adapting the bot to the new invitation statusses. Fixing several bugs in other parts of the system of invitations. refs #103

Changed 18 months ago by winfried

(In [1108]) - Making the links for the invitation chat open in a new window. - Fixing the detection of a leaving inviter while waiting for invitee refs #103

Changed 18 months ago by winfried

  • status changed from new to closed
  • resolution set to fixed

(In [1109]) Finishing infrastructure for chatting on appointment, closes #103

Some remarks on this commit:

chat/db/classes: - Fixing some incorrect calls to flush - Removing unneeded function

bot/bot.py: - storing staff messages based on staff_id, should improve stability of storing messages along the way.

auth/db/services: - added refresh-function, not needed for now

Cleaning up some whitespace in: - cat/db/classes.py - uestionair/pages/RunCareSeekerPreChatQuestionair.py - web/pageBase.py

Note: See TracTickets for help on using tickets.