GithubHelp home page GithubHelp logo

coherence-chat's Introduction

coherence-chat

Chatservice for Coherence

Deployment pattern

During development, test with a dev flask server: NOALERTS=1 python bot.py.

Unit tests:

NOALERTS=1 pytest -vv

Before pushing to prod, test with gunicorn locally: NOALERTS=1 gunicorn -b 0.0.0.0:5000 bot:app --workers 1

Build the frontend into prod mode with yarn build inside the web/ directory.

Then you can safely push to prod.

alembic usage

python manage.py db migrate

python manage.py db upgrade

When you make a db migration, go to the alembic file and remove all the apscheduler references. There's some weirdness because those tables are not created by sqlalchemy.

ngrok for local dev

ngrok http 5000

Update twilio URL

git

reset N commits locally: git reset --hard HEAD~N

push a non master branch to heroku master: git push heroku +HEAD:master

data analysis

dump prod DB to local: delete local analysis_db, then heroku pg:pull postgresql-slippery-57674 analysis_db --app coherence-chat

stripe local testing setup

open new terminal tab and do stripe listen --forward-to 5000 to forward stripe test events to local

coherence-chat's People

Contributors

6peterlu avatar

Watchers

 avatar

coherence-chat's Issues

launch blocking UX

TODO:

  • card number styling
  • cvc explanation
  • link to homepage from payment verification page
  • make go home button more intuitive from payments page
  • make a settings page for timezones
  • bury subscription cancellation button
  • remove subscription section of menu unless user is within 7 days of trial end
  • add more stuff to profile settings so its clearer what it is
  • login screen responsiveness
  • link to this page from vancouverprimarycare.com
  • testimonials on the landing page [BLOCKED on someone's testimonial]
  • flip on prod stripe

login: for some users, login flow doesn't let them through

The token being stored in the browser doesn't match the one we're sending back.

Ex: miki:

setting cookie to eyJhbGciOiJIUzUxMiIsImlhdCI6MTYyMTgzNzY2MywiZXhwIjoxNjI0NDI5NjYzfQ.eyJpZCI6MTUyfQ.9WocLs5DpnI13EQ-CmBAfdTQYQDA0601AM5Fn5JGSlvmKiGJPPjEV1uk36ZewBcDvKYZTCko4EpFCEiZmhTiaQ
became
eyJhbGciOiJIUzUxMiIsImlhdCI6MTYyMDg0MjkyMCwiZXhwIjoxNjIzNDM0OTIwfQ.eyJpZCI6MTUyfQ.1jQ9u6Ggi25AU-NzcxPLCmSPYU2uyajBW6J9G2k1y9Pf8QNk6aw8YzxotgsJzrgrvQvSTD1PAq18bltkL2ophA in the browser

cause is still unknown and doesnt repro on my end for chrome or firefox.

LAUNCH CHECKLIST

REQUIREMENTS

  • one URL in app: hellocoherence.com.
  • augment login screen with marketing info
    TODO:
  • add marketing material to coherence login page
  • transfer heroku app to hellocoherence.com
  • fix ipad rendering issue
  • test early access code flow
  • create way to see signups in admin dash
  • allow easier filtering per user in admin dash

fast follow UX

TODO:

  • 7 days before subscription expiration, show a banner to push people to enter payment info
  • autoresume after subscription renewal
  • tell expired service people that their service is expired and give them customer service number
  • subscription renewal should put user in active state regardless of past orientation
  • send subscription end message instead of scheduled message if subscription expired (tabled)

ux: timezone sanity

TODO:

  • move dose windows on tz change, get it to work with the manual dropdown
  • show UX when web tz doesn't match tz on record and offer option to change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.