8000 GitHub - gomaps/zendesk: Zendesk Apps · GitHub
[go: up one dir, main page]

Skip to content
gomapsPublic

About

Zendesk Apps

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

Zendesk Sell Apps

This is a collection of Zendesk Apps. Currently claimCommander and claimsInfo are two apps that can be integrated with Zendesk Sell as widgets for Go Claims.

For the development of Zendesk Apps, Zendesk App Tools(ZAT) are required.

ZAT Installation

This guide covers macOS installation. For other platforms, refer to the official documentation.

ZAT requires Ruby version 2.6.9. Use rbenv to manage Ruby versions on macOS.

Installing rbenv and Ruby:

brew install rbenv
echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
source ~/.zshrc
rbenv install 2.6.9

Setting Ruby version:

rbenv global 2.6.9
ruby -v  # Verify the correct version.

Installing ZAT:

gem install rake
sudo gem install nokogiri -v 1.13.10
sudo gem install zendesk_apps_tools
zat -v  # Verify ZAT installation.

Running Development Environments

For the claimsCommander or claimsInfo app:

cd ./claimsCommander
make dev

This command copies relevant files from ./common and starts the ZAT server. Preview the app in Zendesk Sell by appending ?zat=true to a deals page URL. For example: https://d3v-gotestclaims.zendesk.com/sales/deals/160874453?zat=true

Here https://d3v-gotestclaims.zendesk.com is Go's Sell sandbox or dev account.

Note: Access Go's Sell sandbox or dev account credentials via Lastpass.

These apps are essentially shells; their contents are loaded into an iframe from other web apps. Here the contents of the apps are loaded from https://agents-dev.gocarinsurance.com

For detailed codebase, see the sell_app directory in the go-agents-js repo.

Running locally

  1. Start the Agent Site app:
yarn start

This will start the agent site app locally running at http://localhost:3000. Refer to the documentation here for more details.

  1. Navigate to the specific app directory and start it:
cd ./claimsCommander
make local

Preview the app in Zendesk Sell by appending ?zat=true to a deals page URL, similar to the dev environment mentioned above.

Building App For Development or Production

cd ./claimsCommander
make dev (or make prod)

This will prepare files and create either dev.zip or prod.zip in the build folder, which can be uploaded to the Sell portal for installation.

NOTE: Files under ./common are copied to the individual apps during the build process. Do not make local changes as it will get overwritten. Always make changes to the files in ./common

Creating A New App

make APP={app-dir-name} new

e.g. in order to create a new app claimsCommander in the folder claimsCommander:

make APP=claimsCommander new
zat new
Enter this app author's name:
 Dinesh Nair
Enter this app author's email:
 dinesh@gosafeinsurance.com
Enter this app author's url:
 
Enter a name for this new app:
 Claims Commander
Enter your iFrame URI or leave it blank to use a default local template page:
 (assets/iframe.html) 
Enter a directory name to save the new app (will create the dir if it does not exist):
 (./) claimsCommander
      create  claimsCommander
      create  claimsCommander/README.md
      create  claimsCommander/assets/iframe.html
      create  claimsCommander/assets/logo-small.png
      create  claimsCommander/assets/logo.png
      create  claimsCommander/assets/logo.svg
      create  claimsCommander/manifest.json
      create  claimsCommander/translations/en.json
Enter the remote path (https://agents.gocarinsurance.com/{path}): claim-commands
cp ./common/Makefile ./claimsCommander
rm ./claimsCommander/assets/iframe.html
rm ./claimsCommander/assets/logo*

Update the manifest.json - by default it creates a location param for ZD Support - update it for ZD Sell:

    "location": {
     "sell": {
     "deal_card": "assets/iframe.html"
    }
  },

For more details, refer to the official ZAT documentation.

About

Zendesk Apps

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

0