Code Monkey home page Code Monkey logo

project-3-1819's Introduction

Jiskefet Notifications

jiskefet notifications

This project is a proof of concept with working notifications for the Jiskefet bookkeeping system. Check the demo here.

Bonus: it's also responsive.

Responsive notification Responsive notifications tab
responsive notifications responsive notifications

Table of contents

Concept

The idea was to create a notification system form the Jiskefet bookkeeping system.

User story (in Dutch)

ALS Gebruiker WIL IK live op de hoogte gehouden worden van FLP informatie (counters) ZODAT Ik deze informatie kan gebruiken zonder de webapplicatie te moeten refreshen.

So the task was to create a nice UX for notifications, which have to be implemented using WebSockets to receive them in real-time.

Sketches

I made a few sketches to visualize my idea. Forgive me for the super basic sketches.


Sketch 1 Notice the new notification bell icon.

Sketch 2 A notification card will slide in if the WebSocket receives a new notification. If a doesn't manually close the notification, a notification count will appear on top of the notification bell to remind them that they might not have seen the notification.

Sketch 3 If the user clicks the bell icon, the notification area will slide out and the user can scroll through their notifications. It's possible to delete them one by one, or delete all notifications at once.

localStorage

I've also added the user of localStorage to save the current notifications between page reloads.

Design decisions

I chose to go with a traditional slide out widget area because one of the requirements was that a user wouldn't need to permanently give up screen real estate for notifications.

I also chose to show a notification count icon only when a user hasn't interacted with the notification to reduce visual load. Still, all notifications will be visible in the notification area until the user removes them from there. This prevents removing a notification by accident if you initially close them on receiving.

Installation

Enter the following commands in your terminal:

git clone https://github.com/jeroentvb/project-3-1819.git
cd project-3-1819
npm install

Usage

Run the server

npm start
# Or
nodemon

Navigate to localhost:3000, and you should see the jiskefet dashboard. It's also the only page that works.

If you navigate to localhost:3000/triggers in a seperate tab you see a few buttons.

Notification trigger buttons

notification trigger buttons

These buttons trigger a notification in real time.

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.