This is a prototype of the new Patient Advocate system’s push notifications. It’s built with Middleman.
- First, ensure you have a Ruby environment with Bundler on your computer.
- In your terminal,
cd
into this directory and runbundle install
. - Run
bundle exec middleman
and go to localhost:4567 in your browser.
After you have successfully run the app locally, use bundle exec middleman build
to create a new build. It will be in the /build/
directory.
As notifications are the main feature we’re testing with this, a few notifications tools are built into this. If you open the JavaScript console you can push new notifications via the autoNotify()
function. If you wish to push a high priority notification you can push autoNotify(1)
.
Specific notifications can be passed with the notify()
function. The structure of the function looks like this: notify('notification', 'firstName', 'lastName', 'caseNumber')
.
Notifications are scripted on lines 377 through 385 of /source/javascripts.script.js
.
There are two different variations of the prototype. /source/index.html.erb
is the variation without styling on the notification indicator and /source/index1.html.erb
has added styling around the notification indicator.