QueryJane - Authenticated users dashboard

in #utopian-io6 years ago (edited)

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.


queryjanefull.png

Authenticated users were redirected to their profile page after submit the login form, or when visiting the home page url https://queryjane.net/. This didn't allow interaction with registered companies or published job offers in a different way than direct notifications. Also, links to registered companies list and to created job offers list are in the footer, and they are not very visible. In order to make more visible registered companies and created job offers, I have created the dashboard page. Let me show you what it is about:

New Features

Dashboard.

I have added a new page under the https://queryjane.net/dashbaord/ url. To create this new page, I have used the Class-based views provided by Django. I have used the TemplateView class, that Renders a given template. (Take a look to the commit.)

By overriding the get_context_data method, I'm returning some information of interest to the authenticated user:


Screen Shot 2018-03-02 at 11.07.08 AM.png

Job offers:

Using the registered industry sectors in the user profile and the user's country, I'm returning a list of job offers that could interest to the user. In this way, the offers to which the user is most likely to apply are visible in the dashboard view. Also, a second list with random active job offers recently added is returned (excluding the job offers in the potential job offers list) to promote them:


Screen Shot 2018-03-02 at 11.39.13 AM.png

Detailed code changes can be found in this commit.

Companies:

A list of local companies is returned to the dashboard template. If the user has registered a country in his profile settings, a list of random companies filtered by country is returned. Also, a list of active companies is returned too to promote them:


Screen Shot 2018-03-02 at 11.49.41 AM.png


Screen Shot 2018-03-02 at 11.49.32 AM.png

Detailed code changes can be found in this commit and in this commit.

Unreviewed messages and notifications:

A section with unreviewed messages and unreviewed notifications has been added to the dashboard view. Now users can mark them as reviewed directly from the dashboard:


Screen Shot 2018-03-02 at 11.59.25 AM.png

To mark new messages and notification as reviewed, ajax requests are sent using the following functions:


Screen Shot 2018-03-02 at 12.46.01 PM.png



Source code

This functions are used to manage messages in the messages menu in the application header, in the inbox page and in the dashboard view, and to manage new notifications in the notifications menu in the application header, in the notifications page and in the dashboard view too. In this way, messages and notifications counter are reduced from the dashboard and marked as reviewed.

Detailed code changes related to this feature can be found in these commits: Commit 1, commit 2.

Profile settings and managed companies.

If the user does not have registered industry sectors in this profile settings, a link to account settings will be showed:


Screen Shot 2018-03-02 at 12.17.38 PM.png

If the user is administrator in some registered company, a link to the company settings is available in the dashboard view:


Screen Shot 2018-03-02 at 12.18.48 PM.png



Screen Shot 2018-02-03 at 10.23.10 PM.png


How to contribute?

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.

Future work.

Take a look to our public trello board. This is the easiest way to know our roadmap.

  • Activate Spanish site.
  • SEO optimization.
  • Advertising campaign.

If you want to contribute, please join my Discord.


Have happy days ✌



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

I would recommend you to give proper name to pull requests.

You can contact us on Discord.

[utopian-moderator]

Hey @kit.andres I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Great post tnx for sharing I just upvoted check out my new post.
upvote resteem comment @glclipse
steeemitalltheway.

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64118.79
ETH 3390.14
USDT 1.00
SBD 2.51