Skip to content

A Zendesk app that looks at Viper's backend for user information

Notifications You must be signed in to change notification settings

tomgatzgates/sundown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sundown

Sundown is a Zendesk App which looks up the ticket requester's email in Viper.

Local Development

Dependencies

  • Ngrok gem install ngrok
  • Zendesk App Tools gem install zendesk_apps_tools

Developing

From within rails app folder for Viper

  • Set the following environment variables ZENDESK_API_URL, ZENDESK_USERNAME, ZENDESK_TOKEN*.
  • Run the main rails app (Viper) locally rails s -b ::
  • Run ngrok ngrok [rails app port number] and make a note of the ngrok address

*You can find the environment varaible values in Viper's Heroku config.

Within Sundown folder

  • Start the Zendesk App Server zat server*
  • Set the API_URL to the ngrok address
  • Set the ADMIN_URL to your local rails server address

*You can run zat validate before hand to lint the app. The app will not package unless it lints successfully.

In the browser

*Make sure you click the shield in the address bar and allow unsafe scripts

Refreshing the page will reload the data from the API, refreshing the app using the reload icon will just reload the app with the existing data.

Documentation

Uploading the App

  • Increase the version number according to semver.
  • Add to the change log (below)
  • Run zat update to build the app*

*The current config is set to update the test app. Swap the id to the production app to update the production version.

Production App ID: 75162 Test App ID: 80833

Changelog

2.2.0

  • Remove preparation and grind from orders since Viper no longer has them on the order.

2.1.0

  • Display the total number of orders. This does not distinguish between created, billed, shipped and cancelled.

2.0.0

  • Display the more of the user's account information such as addresses and orders.
  • Add a button which links to the add voucher form for that user.
  • Add a button which links to the add adhoc order form for that user.

1.0.0

  • Display's the user's first and last name as a link to user's page the Viper Admin System
  • Add PactCoffee icons

About

A Zendesk app that looks at Viper's backend for user information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published