QueryJane is a web application developed with Django that allows to connect with companies and experts in different sectors of the cannabis industry. Beta version is available here.
In order to offer a better UX experience to the users in the messages module, I have made some structure changes that allow to reply messages from the same modal in which users can check new messages detail, and full conversation detail. Also, now company administrators can reply messages from users using the company name.
before, the way in which the messages were handled required a little more work from the users. If a Users had a new private message, he could read it on de inbox page or by clicking the new messages notification section in the header navigation bar, and, if the users wanted to reply a message, they should go to the user's profile and click the "send message" button. The same thing happened with the messages that users sent to companies, they should always go to the company's detail page to compose a new message. It was done in two steps a process that can be done in one. There were two modal components, one to compose new messages, and other one to check received messages detail. These two modal have been reduced to one with both functionalities.
If a user send a message to other user in the platform, the message detail will be showed in the following modal component:
It is a modal with the "new message form" integrated, and with the full history of messages between these users. User can reply immediately a received message. It works from all section in which new messages can be read: Messages menu in the header bar, inbox page, other user page profile, dashboard page. It has required a code recovery, new JS and Python functions to manage messages functionalities in a simpler way, and a redesign of the messages model. I have created a new model called Conversation, that allows to regroup messages and permissions in a easiest way.
Code changes related to this feature can be found in the following commits: 550b6, 6df097, 93304, 0c223, 6d4fe, 5a8da, d38a6, b8f23.
By clicking a new message from a user in the received messages panel in the company administration section, administrators will have available de message detail, and the compose message form to reply it immediately.
Administrator can reply it, and the new message will be displayed it in the following way in the user section:
New message notification:
Short message detail:
Message detail and compose message form to reply it immediately. As I said previously, this functionalities are available from all section in which users have interaction with the messages module:
Code changes related to this new feature can be found in this commit.
QueryJane has been developed using the Django framework. You can fork the project, and run it locally is very easy. Follow the steps described in the open source repository installation guide. The project has been configured using Docker. you only need to install Docker and follow these steps.
Take a look to our public trello board. This is the easiest way to know our roadmap.
If you want to contribute, please join my Discord.
Have happy days ✌