Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

A simple facebook-like notification extension for HP Pronq IDE

Notifications You must be signed in to change notification settings

korya/hp-ide-notification-extension

Repository files navigation

Notifications for HP IDE Pronq

The extension provides a very simple facebook-like notification service. The implementation is really very basic: no message types, no aggregation of messages. Just a list of notifications, new ones are marked as unseen; after the notification is shown it is marked as seen, but yet remains in the list. It is possible to clear the notification list.

Folded notification bar

Unfolded notification bar

Install

Fast and easy way:

$ cd <IDE source>
$ curl -s https://raw.github.com/korya/hp-ide-notification-extension/master/install.sh | sh

Otherwise, use the steps below.

Manual installation

We will use jsontool in order to modify JSON-formatted configuration files, so first make sure it's installed:

$ npm install -g jsontool

Now clone the extension into your tree:

$ cd <IDE source>
$ git submodule add \
    https://github.com/korya/hp-ide-notification-extension.git \
    app/extensions/hpsw/notifications/1.00

Tell the server to load the extension in server/file-system/extensions/manifest.json:

$ json -I -f server/file-system/extensions/manifest.json \
  -E 'this.defaultExtension.push({"id":"notifications","version":1,"author":"hpsw"})'

In current implementattion, in addition to the installation of the extension, you have to apply a patch, that reserves a space for notification icon by putting a placeholder for it. To apply the patch:

$ cd <IDE source>
$ patch -p1 <app/extensions/hpsw/notifications/1.00/patch.d/00-notification-placeholder.diff

API

The extensions provides angular service notification-service with following signature:

  • getAll get the list of current notifications
  • find find notification by its id
  • add add a new notification (the notification is marked as unseen)
  • rem remove a notification
  • setSeen mark a notification as seen

Example

The extension is used in Code Review extension. For example look here.

About

A simple facebook-like notification extension for HP Pronq IDE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published