Commit Graph

285 Commits

Author SHA1 Message Date
Teemu Patja 9cb48b5183
Bounties view + related backend functionality & more
Changes to bounty/pull-request data model and logic
* save git sha of pull request's HEAD instead of possible merge commit
  and save it for opened, merged and closed events
* only look for bounties being accepted in pull-request closed via
  merge events (no need for compilicated logic with issue-closed event)
* pull_request now has issue_id column to make many sql queries
  simpler

Frontend
* owner-bounties app-db structure changes
* bounties view with confirm pending payout UI

Other
* removed lots of unused legacy code
* bug fixes + refactoring
* added comments + TODOs
2017-02-25 00:15:44 +02:00
Teemu Patja ec5f07a578
DB query refactoring, save PRs also when opened
* store pull-requests to DB also when opened instead of only when
  merged to allow for showing bounty claims
* refactor SQL queries
* look for PR keywords also in title
* improve PR keyword regexes
2017-02-24 11:05:13 +02:00
Teemu Patja 1ad6fb3b93
Inline logo svg, remove old svg's 2017-02-23 18:52:14 +02:00
Teemu Patja 9cb1028c16
Debug logging 2017-02-23 13:48:11 +02:00
Teemu Patja b112155134
Add debug logging, add forgotten column constraint 2017-02-23 13:23:20 +02:00
Teemu Patja 2d2d11fc9d
Fix issues with injected web3 and advanced cljs compilation
* use stub js for web3 externs
* upgrade clojurescript

Fixes: #21
2017-02-23 12:26:29 +02:00
Teemu Patja 66a65277ae
Remove broken + unneeded /docs route 2017-02-22 22:54:48 +02:00
Teemu Patja 0b69459638
Do not checksum validate address by default
* make checksum validation optional in valid-address?
* update test
2017-02-22 21:51:47 +02:00
Teemu Patja 6bc3ca8937
Define goog.DEBUG false for uberjar to avoid showing re-frisk in prod 2017-02-22 21:15:39 +02:00
Teemu Patja b868996308
Do not expose user's email addresses to client side, rename parameter 2017-02-22 19:46:11 +02:00
Teemu Patja c2065fa973
Improve repo loading error handling + UI tweaks 2017-02-22 11:57:38 +02:00
Teemu Patja 1d49767da9
Repositories view improvements
* show personal repos group before other groups
* CSS tweaks
2017-02-22 11:31:38 +02:00
Teemu Patja 32392a4405
Fix bug caused by stale session
* in case API AJAX calls start failing, make sure user is logged out
  to avoid frontend being in a corrupt state
2017-02-22 10:56:14 +02:00
Teemu Patja f932b3705d
Do not leak Github API access token to client side 2017-02-22 10:47:53 +02:00
Teemu Patja 89475a9365
Close success flash messages via delayed dispatch 2017-02-21 23:00:53 +02:00
Teemu Patja 4e627be1e0
UX improvements + address validation
* error/success flash notification support
* disable spellcheck for address editbox
* validate user's Ethereum address when saving
* update button state styles
2017-02-21 21:43:35 +02:00
Teemu Patja 1663669163
Ethereum address validation + unit test
* utility function for validate Ethereum addresses
* unit test
2017-02-21 21:41:39 +02:00
Teemu Patja d5ebf3b0bc
Fix glitch with responsive grid 2017-02-21 15:05:28 +02:00
Teemu Patja f383ab9a0d
Fix build errors + problem with webhook routes
* remove unnecessary servlet context middleware
* do not apply unnecessary ring middleware to webhook routes
2017-02-21 14:55:40 +02:00
Teemu Patja 9b972625e0
Rewrite Github comment PNG functionality
* removed old swing JEditorPane based html to png rendering due to
  it's lack of support for modern css
* new implementation uses wkhtmltoimage (on prod server via wrapper
  script using xvfb)
* no longer generating image on every GET request for QR, but rather
  generating image when a bounty is cretaed or contract balance
  changes
* images stored to DB
* comment image design updated according to UI spec
2017-02-21 10:49:25 +02:00
Teemu Patja bb5d492631
Activity feed view
* beginnings of activity feed reagent UI
* uses place holder data for now
* CSS + other UI tweaks
2017-02-20 17:03:01 +02:00
Teemu Patja b8facb1a97
"Top hunters" UI
* front end support for "top hunters"
* placeholder data used for now
2017-02-19 19:52:22 +02:00
Teemu Patja 7ce1dc6cdc
Fix bug in handle-issue-labeled + logging 2017-02-19 14:33:02 +02:00
Teemu Patja 0fef7d931d
Add forgotten file 2017-02-19 14:32:13 +02:00
Teemu Patja 416178cf0a
Guard against invalid QR code requests 2017-02-19 11:01:02 +02:00
Teemu Patja d503c84928
Add sablono as dev dependency to avoid error
* reloading clj code in REPL does not work without sablono as a
  dependency (devcards issue)
2017-02-19 10:47:16 +02:00
Teemu Patja 97c7800e4d
CSS tweaks 2017-02-18 23:36:29 +02:00
Teemu Patja e265e967e2
Fix regression + UI tweaks 2017-02-18 22:46:59 +02:00
Teemu Patja 354c262301
New 'update address' view
* show web3.eth.accounts in dropdown in case web3 available, otherwise
  edit box
2017-02-18 22:43:11 +02:00
Teemu Patja d35b794ca4
New UX, webhook securing, atomic repo toggling etc.
Secure Github webhooks (Fixes #18)
* Use a unique random secret for webhooks
* Validate payload signature when receiving webhook

Make enabling + disabling a repo more robust
* store repository state instead of enabled flag in DB
* atomic toggle UI button (Fixes #17)

New UX for managing repos
* group repos by owner
* look and feel according to UI spec

General improvements
* only request user's repos via Github API once per session
* fix issue with cljs code figwheel reload
* simplify app-db structure
2017-02-18 11:07:51 +02:00
Teemu Patja 6e646280c2
WIP: new UX
* semantic UI + less based UI styling
* header, tabs, user-profile component
* store avatar URL in DB, show image in user
* unify :user and :user-profile in app-db for simplicity
2017-02-12 22:25:32 +02:00
Teemu Patja 6fc8702a34
Move inline SVG hiccup to separate module 2017-02-11 14:53:32 +02:00
Teemu Patja 5fb66d551e
Clean up project.clj
* remove unneeded dependencies
* simplify structure
* remove sassc related things
* add config less compiler
* add devcards config
2017-02-11 14:37:18 +02:00
Teemu Patja 4d0077d17f
Update README
* fix outdated build intructions
* improve testing instructions
* fix license URL
2017-02-11 14:33:58 +02:00
Teemu Patja 441ed2a022
Remove primer-css + sassc dependency 2017-02-05 20:10:00 +02:00
Teemu Patja e29dc1ae8a
Do not render manage page when not logged in 2017-01-30 21:57:03 +02:00
Teemu Patja 993b2a5064
Fix 'unknown prop' react warning 2017-01-30 21:34:12 +02:00
Teemu Patja c60db00f6d
Reorganize API endpoints 2017-01-30 21:26:02 +02:00
Teemu Patja fb136e656d
Show spinner when repos are loading 2017-01-30 21:06:17 +02:00
Teemu Patja da7107ce87
Upgrade dependencies, use CDN for bootstrap + fa 2017-01-30 20:33:25 +02:00
Teemu Patja 19de39d946
Add missed file 2017-01-30 17:57:23 +02:00
Teemu Patja 40f3bc0de4
Move gzip middleware to a better place 2017-01-30 17:45:45 +02:00
Teemu Patja 7f90f38b1e
Gzip compress all HTTP content 2017-01-28 09:29:22 +02:00
Teemu Patja 8812157789
Optimization: only provide needed repo map keys 2017-01-28 09:12:08 +02:00
Teemu Patja a4aafa1bd3
Enable re-frisk for dev profile 2017-01-28 08:24:05 +02:00
Teemu Patja 0192adf419
Remove unused template 2017-01-25 10:27:39 +02:00
Teemu Patja 4a25923454
Fix favicon path 2017-01-25 09:53:30 +02:00
Teemu Patja c8d67be3eb
Add new logo favicon 2017-01-24 22:34:45 +02:00
Teemu Patja 6fa72d3622
Update README 2017-01-23 08:19:16 +02:00
Teemu Patja 1c1a106916
Merge branch 'develop' 2017-01-22 12:44:46 +02:00