2.0.0 • Published 2 years ago

sanktionsfrei-admin-app v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

📠 Sanktionsdev private api 🐺

This is the fax administration backend for Sanktionsfrei. Displays all outstanding faxes (with a status of ready_for_review) for review and approval, to be sorted by nextAppointment, because that indicates urgency.

Current state of the panel

Rejecting a fax will set its status from ready_for_review to rejected. Clicking Vorschau will load the corresponding fax’s pdf attachment into an iFrame/object on the right, under which there will be another red Ablehnen-Button, as well as a green Abschicken! button. Clicking the latter will set the status to approved. The pdf preview is important, because we don’t trust PhantomJS to always generate these correctly.

The admin backend should also include a tab bar at the top so admins can switch between faxes that have the status ready_for_review, error, faxed and rejected.

See the Data Models spec for more details.

Development

This Hapi-backend currently uses server-side Handlebars templating and vanilla CSS with Bootstrap 3 included. Moment.js is available. There's no build process for frontend assets.

Run the backend with node server.js and view it at http://localhost:8080/

Data

The data source is currently a static json file formatted like a CouchDB view (data/confirmed_view.json).