Commit Graph

477 Commits

Author SHA1 Message Date
Aaron 5554f18273
remove commented code 2019-02-15 21:43:32 -06:00
AMStrix 877bc53332 Milestone & Arbiter adjustments (#211)
* ms emails: fix link underline extra space

* fe: team member no arbiter ms action verbiage

* BE: no proposal matching changes after funding + pull proposal state changing into model funcs

* when funding reached with immediate payout skip MS to ACCEPTED (waiting for payment)

* email: fix another trailing link space

* arbiter may not be team-member

* add proposal hybrid property is_failed, true if not funded past deadline

* do not allow setting arbiter on failed proposals

* fix matching and arbiter related tests
2019-02-15 22:35:25 -05:00
Aaron f489b093f6
scripts were getting rendered to html twice, causing double init 2019-02-15 21:28:06 -06:00
Aaron 00dedfbfc0
trigger redux auth state update based on custom auth header 2019-02-15 21:07:41 -06:00
Daniel Ternyak f2c2b70967
Fix 'Edit Profile' form being always disabled; remove email 2019-02-15 13:31:08 -06:00
Daniel Ternyak d01827ec43
Merge branch 'develop' into user-banning 2019-02-15 12:12:18 -06:00
Will O'Beirne ac3bfb66c8
Tags for list view, bold bounty and matching on detail view. 2019-02-15 12:46:50 -05:00
Aaron f30d53c21c
Merge branch 'develop' into user-banning
# Conflicts:
#	backend/grant/utils/pagination.py
2019-02-14 22:25:03 -06:00
Aaron 1d811bb7d3
BE: user banning + silencing + pagination 2019-02-14 22:11:47 -06:00
Will O'Beirne 31345c57b6
Merge develop in 2019-02-14 19:08:18 -05:00
Aaron 16ed593304
Merge branch 'develop' into zcash-milestones
# Conflicts:
#	frontend/client/modules/create/utils.ts
2019-02-13 14:38:52 -06:00
Aaron 47f827693d
mileston payout emails + some bug fixes 2019-02-13 14:30:58 -06:00
Aaron fd9a4c5393
full payout flow operational 2019-02-13 10:54:46 -06:00
Aaron c47c69ea3c
tsc fixes 2019-02-11 23:42:21 -06:00
Aaron 380eec005e
payout endpoints + redux actions + ms UX refactors 2019-02-11 23:10:09 -06:00
Aaron dc92d3f297
Merge branch 'develop' into zcash-milestones
# Conflicts:
#	backend/grant/proposal/models.py
#	backend/grant/utils/enums.py
#	frontend/client/modules/create/utils.ts
#	frontend/stories/props.tsx
#	frontend/types/proposal.ts
2019-02-11 16:51:31 -06:00
Aaron ac5bef5c6f
FE: rework milestones first pass 2019-02-11 15:22:40 -06:00
Daniel Ternyak 7d6d38552c
remove DApp category 2019-02-10 16:15:36 -06:00
Daniel Ternyak f15c110f92
Merge branch 'develop' into arbiter-management 2019-02-10 15:53:29 -06:00
Daniel Ternyak c4b7e281a5
Merge branch 'develop' into comment-placeholder 2019-02-10 13:34:36 -06:00
Daniel Ternyak 536a98694c
handle not signed in users 2019-02-10 13:33:02 -06:00
Aaron 7a036058f6
FE: more robust arbiter + arbiter accept email validation code page 2019-02-09 21:03:19 -06:00
Will O'Beirne 2a0e12194c
Add resend button to email settings 2019-02-08 14:57:54 -05:00
Will O'Beirne 263764255b
Frontend for new RFP fields. 2019-02-08 14:02:34 -05:00
Daniel Ternyak fee2708334
Replace placeholder comment blocker with disabled markdown input and message 2019-02-08 11:14:16 -06:00
Daniel Ternyak d11fa489d5 Remove comments option from updates (#177) 2019-02-08 11:18:58 -05:00
Aaron 60575b4024
Merge branch 'develop' into proposal-arbiter
# Conflicts:
#	admin/src/components/Proposals/index.tsx
#	admin/src/store.ts
#	backend/grant/admin/views.py
#	backend/grant/proposal/models.py
2019-02-07 09:57:56 -06:00
Daniel Ternyak bd9c870e5c
Merge branch 'develop' into stake-topoff 2019-02-06 17:58:45 -06:00
Aaron 048cda8216
FE: user profile arbitrations tab 2019-02-06 16:37:45 -06:00
Aaron 2b78a17973
proposal_arbiter email 2019-02-06 14:56:21 -06:00
Will O'Beirne a1283f24eb
Allow topping off of partial stake contributions. Fix float innaccuracy errors in python. Allow staking proposals to be deleted. 2019-02-05 20:45:57 -05:00
Will O'Beirne f4f8d9312d
Merge branch 'develop' into proposal-date-fixes 2019-02-05 16:29:46 -05:00
Will O'Beirne a3a2392135
Convert milestone dates to unix timestamps to be inline with the rest of our entities. 2019-02-05 16:25:58 -05:00
Will O'Beirne bd740bd9fa
Fix tsc 2019-02-05 16:06:45 -05:00
Will O'Beirne 3b8d96ac51
Fix isImmediatePayout non-existant property on milestones. 2019-02-05 16:05:45 -05:00
Will O'Beirne f0303b26b4
Set valid dates on auto-create. 2019-02-05 16:05:16 -05:00
Will O'Beirne 6cd6520fbc
Use datePublished for deadline wherever possible. Disable past dates during milestone create, disable field when immediate payout is set. 2019-02-05 15:56:07 -05:00
AMStrix d696f7978d Proposal pagination & 404 fix (#151)
* BE: command to create fake proposals

* BE: pagination system + implemented for GET proposals/

* FE: overlay mode for Loader component

* FE: paginated Proposals

* refactor pagination.py a bit

* Proposals: set search input from store on construction

* admin: switch proposals to new pagination regime

* BE: test adjustments

* set app.proposals.page after fetch in a less-creepy way

* optimictic proposal.detail from proposal.page

* keep api interfacing on the api surface (one-dimentional page filters vs structured)

* rem MOST & LEAST_FUNDED prop sort + rename NEWST & OLDEST

* ProposalPagination fix default sort
2019-02-05 15:34:19 -05:00
William O'Beirne 08ed3e0417
Address validation (#156)
* Fix create step query

* Add basic regex validation for addresses to frontend.

* Check with zcash node if address is valid before final proposal submission.

* tsc

* Mock requests where needed. Come up with a function that mocks all blockchain requests.

* Remove print
2019-02-05 15:26:37 -05:00
Daniel Ternyak fe0cb6c220
Merge branch 'develop' into gdpr-and-cookies 2019-02-05 09:35:31 -06:00
Will O'Beirne fdc293185b
tsc 2019-02-05 01:26:05 -05:00
Will O'Beirne fa462175f3
Merge branch 'develop' into address-validation 2019-02-05 01:25:20 -05:00
William O'Beirne ce95dd7b0c
Fix create step query (#154) 2019-02-05 01:25:02 -05:00
Will O'Beirne df4b077a4a
Check with zcash node if address is valid before final proposal submission. 2019-02-05 01:24:17 -05:00
Will O'Beirne c7e18d19b0
Add basic regex validation for addresses to frontend. 2019-02-05 00:52:09 -05:00
Daniel Ternyak 2dc3e1df86
Merge branch 'develop' into gdpr-and-cookies 2019-02-04 21:58:52 -06:00
Will O'Beirne 7620d7f577
Fix create step query 2019-02-04 17:50:11 -05:00
Will O'Beirne 3967358531
Minimum tab heights on proposals and profiles. 2019-02-04 17:39:46 -05:00
Will O'Beirne 949f0cb115
Remove unused redux persist. 2019-02-04 15:45:20 -05:00
Will O'Beirne 29f59aa81d
Require agreement on signup. 2019-02-04 15:45:11 -05:00
Aaron 70adb40b75
replace antdp Ellipsis component 2019-02-01 16:07:15 -06:00
William O'Beirne 1f41181f33
Move loadables into dependencies. (#145) 2019-02-01 16:27:08 -05:00
AMStrix 1c72178b86 Create and use ExceptionPage for 404s (#138)
* create & use ExceptionPage for 404s, remove LinkButton

* ExceptionPage: set default 'desc' if not set on props
2019-02-01 14:25:17 -05:00
William O'Beirne c17145986f
Request for Proposal (Pt. 3 - Create & Link Proposals) (#131)
* Adjust rfp <-> proposal models. Add button to rfp detail page to make linked proposal.

* Add a block that links to the original request. Fix a bunch of preview issues.

* List proposals on RFP.

* Admin view for connected RFPs and proposals

* Fix TSC issues.

* Fix tab badge misalignment

* Redesign list page.

* Resolve PR issues.
2019-02-01 14:13:30 -05:00
Will O'Beirne 5310e813fe
Fix bad ssr action path. 2019-01-31 22:13:38 -05:00
Will O'Beirne 33ac4db564
Fix SSR, fix uncaught async errors, fix style cascade. 2019-01-31 22:09:52 -05:00
Will O'Beirne 95c63b8974
Merge develop in. 2019-01-31 20:50:26 -05:00
William O'Beirne 006ece5fe4 Check in WIP 2019-01-31 20:49:13 -05:00
AMStrix f8f3bd1707 Proposal staking (#134)
* BE: proposal/<id>/stake end-point basics

* BE: proposal staking tests

* add STAKING to ProposalStatusEnum

* BE: incremental staking related changes

* admin: staking status

* FE: proposal staking first pass

* ZCash -> Zcash spelling

* staking contribution confirmed email

* FE: staking related minor style changes

* FE proposal staking env var

* notify user of partially staked proposal contributions
2019-01-31 17:56:16 -05:00
William O'Beirne 4091deaf2f
Request for Proposal (Pt. 1 - Models & Admin) (#120)
* Convert constants into enums

* Initial RFP models and views.

* Fix model and enums

* RFP admin fully fleshed out.

* Fix tsc

* Fix tests and tsc

* Fix closed tag display

* Request for Proposal (Pt. 2 - Public View) (#125)

* RFP list page and backend endpoints. Scaffold of detail view.

* RFP detail view. Fix faulty addRfp action.

* Fix 0 showing up

* PR cleanup
2019-01-30 12:59:15 -05:00
AMStrix b0d16ace7d Proposal contribution matching (#117)
* BE: contribution_matching + admin proposal update end-point + tests

* admin: set proposal matching status

* frontend: contributionMatching

* improve CampaignBlock matching callout - thx Will

* adjust ProposalDetail matching confirmation popover child scope

* contributed & funded Proposal fields (hybrid props) + remove funded derivation from FE

* include "contributed" sum for ProposalDetail view

* fix branched migration revision
2019-01-29 18:50:27 -05:00
Daniel Ternyak 2c8a52013c
simplify authorization/validation logic for verified users making proposals. Prevent unverified users from making proposals of any kind 2019-01-28 18:51:10 -06:00
Daniel Ternyak 8d8dda46e6
Oofdah. Backend refactoring based on PR review, and adding a more obvious UI for users who haven't yet verified their email before posting comments. 2019-01-28 16:46:04 -06:00
Daniel Ternyak f9237c8544
Merge branch 'develop' of https://github.com/dternyak/zcash-grant-system into require-email-verification 2019-01-28 15:48:29 -06:00
Daniel Ternyak 5b985e7fd7
Merge branch 'develop' into remove-profile 2019-01-28 15:45:36 -06:00
Daniel Ternyak 18bab43a65
Merge branch 'develop' into explorer-url-env-var 2019-01-28 15:21:24 -06:00
Daniel Ternyak 7e41de9c81
Styling to Create proposal error page 2019-01-27 21:16:04 -06:00
Daniel Ternyak b0a5a8e03d
Handle comment prevention without email verification 2019-01-27 20:03:38 -06:00
Daniel Ternyak 01d61fce9f
Undo errouneous reformats 2019-01-27 16:17:09 -06:00
Daniel Ternyak 97db9d69f9
Merge branch 'develop' of https://github.com/dternyak/zcash-grant-system into remove-profile 2019-01-27 16:13:49 -06:00
Daniel Ternyak 5f606d6204
merge 'develop' into 'remove-profile 2019-01-27 15:44:16 -06:00
Will O'Beirne af9486ef52
Keep new email in the field after changing it. 2019-01-24 14:49:04 -05:00
William O'Beirne 69fefdb2ea
Merge branch 'develop' into change-email 2019-01-24 14:29:26 -05:00
Will O'Beirne 8d15a473fc
Adjusted settings mobile behavior. Fixed tsc error. 2019-01-24 14:19:33 -05:00
Will O'Beirne 3b9d15e62e
Implement change email & email confirmation. Adjust layout of settings more. 2019-01-24 13:53:26 -05:00
Will O'Beirne b6e921879e
Rework settings page frontend. Add account tab for email changes. 2019-01-23 17:28:27 -05:00
Daniel Ternyak 61d9b08a02
Remove user email on Profile view 2019-01-23 15:53:29 -06:00
Will O'Beirne 26aec7d530
Sort it alphabetically you LINT NAZI. 2019-01-23 16:34:14 -05:00
Will O'Beirne 3c8894fb12
Env var-ify the block explorer url 2019-01-23 16:30:03 -05:00
Will O'Beirne f8be65f6a3
Remove console logs 2019-01-23 15:53:24 -05:00
Will O'Beirne 737ec0e59c
Fix SSR, upgrade react router and loadable components. 2019-01-23 15:48:22 -05:00
Will O'Beirne 5b3e5522b0
Remove loadable-components. 2019-01-23 11:44:34 -05:00
Will O'Beirne da88825c7c
Standardize loader size 2019-01-23 11:35:03 -05:00
Will O'Beirne eddc0671d7
Replace spin with loader everywhere. 2019-01-23 10:15:59 -05:00
Will O'Beirne 80e658593b
Darken default user image. 2019-01-22 15:50:43 -05:00
Will O'Beirne 9181dec164
New logos (placeholder until approval.) 2019-01-22 15:46:50 -05:00
Will O'Beirne 31b4167c09
Remove alpha banner. Update markdown pages. Replace default user icon. 2019-01-22 14:56:48 -05:00
Will O'Beirne 32840da648
Grant.io -> ZF Grants 2019-01-22 13:40:20 -05:00
Will O'Beirne 837f6b0c95
Remove a bunch of leftover ETH platform stuff. 2019-01-22 13:09:42 -05:00
Will O'Beirne 0f979412aa
Basic color and font changes. 2019-01-22 13:01:21 -05:00
Aaron e41892898f
Merge branch 'sentry-release-env-no-git' of https://github.com/dternyak/zcash-grant-system into sentry-release-env-no-git 2019-01-21 12:53:11 -06:00
Aaron f8def1ae67
comment out SENTRY env vars for frontend .env example 2019-01-21 12:52:58 -06:00
Will O'Beirne 244a9f9168
Merge branch 'develop' into sentry-release-env-no-git 2019-01-21 12:52:35 -05:00
William O'Beirne 92ad6d3436
Better logging & add sentry to blockchain watcher (#93)
* Add sentry to blockchain watcher. Adjust frontend to allow for environment override.

* Replace all logging with winston. Fix sentry error reporting. Improve error logging for uncaught express errors.

* Remove dsn from .env.example
2019-01-18 19:34:11 -05:00
Aaron 5fd086c83a
linter doesn't like console.log, just remove it 2019-01-18 13:17:07 -06:00
Aaron 3383c0757b
remove git hashes for SENTRY_RELEASE 2019-01-18 12:33:51 -06:00
AMStrix 5848d33f29 code of conduct MD page (#89) 2019-01-18 12:21:03 -05:00
AMStrix c8ab0d0f37 location forward after authentication (#90) 2019-01-18 01:40:30 -05:00
Aaron f7d485db3c
Revert "code of conduct MD page"
This reverts commit 14c546b528.
2019-01-17 10:52:56 -06:00
Aaron 14c546b528
code of conduct MD page 2019-01-17 09:15:30 -06:00
AMStrix 48912c95cc markdown driven static pages (#40) 2019-01-16 18:19:34 -05:00
AMStrix 8de3b4e3c8 Email settings + unsubscribe (#75)
* user subscription_settings utils + tests

* UserSettings user/models updates

* GET /<user_id>/settings endpoint

* PUT /<user_id>/settings + more tests + refactoring

* Email Notifications settings tab

* email subscription verbiage

* email-unsubscribe page + refactors

* hook up send_email for proposal approval + add subscription checks to send_email

* fix merge bug

* Send email on contribution. Dont double-count contributions from the blockchain watcher.

* Proposal contribution email, and fix email admin.

* Send email to team on contribution received.

* Email comment creator of their replies.

* Send comments to proposal creator. Adjust templates for all comment emails.

* Send email on contribution update.
2019-01-16 17:26:44 -05:00
William O'Beirne 994b680f04
Link to specific tabs from query param (#71)
* Linkable tabs with scrolling behaior. Replace all tabs with linkable tabs.

* Link to specific tab wherever relevant.

* Fix bad tab name.
2019-01-15 15:19:59 -05:00
William O'Beirne f008b0fcfa
Word wrap (#70) 2019-01-15 15:19:44 -05:00
William O'Beirne 91efc28fa3
Fade auth in, invisible while checking. (#69) 2019-01-15 15:19:31 -05:00
William O'Beirne 98209f5fa6
Fix incorrect pending invites count. (#68) 2019-01-15 14:13:57 -05:00
AMStrix fbbd20ae90 Fix avatar load renegade POST (#58) 2019-01-10 16:51:34 -06:00
Will O'Beirne 16051f5f7a
PR fixes 2019-01-10 12:27:04 -05:00
Will O'Beirne badcb75203
Margins. 2019-01-09 18:05:45 -05:00
Will O'Beirne 6c8ce3f87d
Show send instructions on profile pending contributions. 2019-01-09 17:26:28 -05:00
Will O'Beirne 5a922cefee
Merge latest develop in. 2019-01-09 16:57:15 -05:00
Will O'Beirne 7a7cbb77c7
Delete expired transactions. 2019-01-09 16:32:51 -05:00
Will O'Beirne b338fc9d2e
Contributions tab on proposal view. 2019-01-09 15:48:41 -05:00
William O'Beirne 7ade6b5715
Merge branch 'develop' into zcash-contributions 2019-01-09 14:08:51 -05:00
Will O'Beirne 57e65e26d5
Rework proposal api a bit, render contributions and their status. 2019-01-09 14:07:50 -05:00
AMStrix 47c695f43b Proposal Approval Process (#39)
* endpoints and model support for proposal approval

* admin test + proposal approval tests

* GET user/<id> withPending support

* basic withPending suport for Profile

* change create publish to sumbit for approval

* admin proposal filter by status + some refactoring

* admin: update antd

* backend: admin get single proposal + populate date_approved

* admin: rework Proposals + support approval

* backend: approval process updates

* admin: review count on home + cosmetic

* frontend: proposal approval flow

* Profile ZEC/ZAT adjustments

* fix regression in formatUserFromGet + update error type in users/reducers

* fix merge tsc issues

* publish warning vebiage change

* fix ssr fetchProposal 404 hang bug

* proposals/<id> - limit status non-LIVE to team member, exclude DELETED

* various adjustments to Proposal based on `status`

* remove comments

* Proposal statuses to banner style + fix up CreateFlow - Preview mode

* Proposal tsc fix
2019-01-09 13:23:08 -05:00
Will O'Beirne e28f1b50d7
Tsc fixes 2019-01-07 16:56:01 -05:00
Will O'Beirne fc10366232
Fix type, dont close on mask click. 2019-01-07 12:56:27 -05:00
Will O'Beirne c444e5152d
Hook up blockchain to backend, backend to frontend for contributions. 2019-01-07 01:58:33 -05:00
Will O'Beirne e6fb844b40
Finish out UI for contribution. 2019-01-07 00:42:24 -05:00
William O'Beirne 99fdedb816 Initial work on contribution modal flow and contribution model overhaul. 2019-01-06 17:48:07 -05:00
William O'Beirne 98d68961b5 Merge develop in. 2019-01-04 14:29:09 -05:00
AMStrix 15acce1865 Rework Proposal Comments & Updates (#36)
* test proposal updates + adjustments for comments

* remove comment signed message stuff

* use authed user id to check if user can update, remove 'account'

* ts adjustment
2019-01-04 14:03:37 -05:00
AMStrix 22f8a0415c Verify User Social via OAuth (#30)
* BE social oauth verify

* FE social oauth verification

* readme updates

* README social verification setup instructions

* adjust tests socialMedias

* BE add social verify tests

* save changes before leaving to OAuth

* Fix migration.

* Adjust social button styles.

* Remove question mark.

* merge fix

* fix migration branch
2019-01-02 12:23:02 -06:00
William O'Beirne ec76cb414f Initial Proposal rework (#32)
* Rework proposal model to remove ethereum specific stuff. Removed most traces of those fields around the backend.

* Refactor to a state where /proposlas loads.

* Get rid of the ProposalWithCrowdFund type.

* Fix padding on create flow.
2018-12-28 17:05:34 -06:00
Will O'Beirne ba5e5e34a1
Fix all tsc issues. 2018-12-27 14:08:14 -05:00
Will O'Beirne ac053e7660
Fix hydration. Real milestone amount. 2018-12-27 13:37:30 -05:00
Will O'Beirne f954646170
Fill in target and funded amounts from real proposal data. Funded is stubbed. 2018-12-27 13:00:04 -05:00
Will O'Beirne f4e918481c
Convert all units to ZEC from ETH. 2018-12-27 12:41:26 -05:00
Will O'Beirne 4ac7bb0da8
Fix padding on create flow. 2018-12-27 11:58:48 -05:00
Will O'Beirne 9b555aa8fa
Get rid of the ProposalWithCrowdFund type. 2018-12-21 13:47:50 -05:00
Will O'Beirne 5931de5460
Refactor to a state where /proposlas loads. 2018-12-21 13:27:39 -05:00
AMStrix 6ea75e6bda User Recovery Flow (#26) 2018-12-17 12:33:33 -06:00
AMStrix 50cc377b48 User Auth Conversion (#19) 2018-12-14 13:36:22 -06:00
Daniel Ternyak 35eecc24db
Setup in-app SSL redirects for Heroku (#238)
* setup in-app ssl redirects for Heroku

* add typings

* use trustProtoHeader

* BE w3 read fix for read_user_proposal

* No HTTPS redirect on dev
2018-12-05 17:49:45 -06:00
AMStrix 1144b0b0e2 Remove Unserializables from Redux (#234)
* remove web3 instance from redux

* remove Web3Container, use redux state instead

* remove web3 from Web3Container ;)

* cache result of fetchCrowdFundJSON

* fix error action type

* remove contracts from redux

* fetchCrowdFundJSON error & reporting

* remove unused ref

* check factory networkId against MM networkId during initialization
2018-12-03 20:08:29 -06:00
AMStrix e1b2d21532 Upgrade FE Nodemon (#236)
* upgrade nodemon

* exit nodemon when its child exits (fix lingering cmd output post-exit)

* travis cache yarn (frontend)

* adjust exit handler

* cancel travis cache experiment
2018-11-30 23:36:52 -06:00
AMStrix 4980670e8c Populate Profile Data (#233)
* BE profile deets

* BE real user data web3 populate + misc

* FE real profile data
2018-11-30 17:52:00 -06:00
Daniel Ternyak 138c4381fb
Remove dead team validation (#231) 2018-11-28 12:39:39 -06:00
AMStrix a780b235b9 SSR Preload /proposals (#230)
* resolve web3 when page is interactive OR complete

* SSR preload `/proposals`
2018-11-28 12:33:21 -06:00
Will O'Beirne a8778f20bf
I am an idiot. 2018-11-27 14:47:54 -05:00
Will O'Beirne 1438468768
Merge branch 'develop' into working-comments 2018-11-27 14:30:41 -05:00
Will O'Beirne a37fb152b4
Rebuild contract if missing. Simplify some logic. 2018-11-27 13:21:54 -05:00
Will O'Beirne c3985a07a3
Merge in develop 2018-11-27 13:21:11 -05:00
Will O'Beirne 708eaca511
Merge upstream changes. 2018-11-26 20:29:33 -05:00
Will O'Beirne 02b1260573
Merge in latest changes. 2018-11-26 20:14:00 -05:00
Will O'Beirne f9b4f65ac4
Merge develop in. 2018-11-26 18:47:24 -05:00
Will O'Beirne 5afdb2011d
Merge develop in. 2018-11-26 18:25:02 -05:00
Daniel Ternyak 00219e65c8
Only Runtime Contracts (#225) 2018-11-25 22:02:35 -06:00
Daniel Ternyak 8a97142d82
Avoid childprocess until neccesasary 2018-11-22 15:42:07 -06:00
AMStrix 7abeac7bd7 Sentry Integration (#221)
* BE sentry setup w/ user scope

* FE sentry integration + user scope

* FE env adjustments

* FE: use NODE_ENV for Sentry

* BE: use FLASK_ENV for Sentry

* BE: remove email, acct & ip from Sentry user scope

* comment .env.example SENTRY* for CI

* fix merge artifact
2018-11-21 23:45:29 -06:00
AMStrix 968974d8d7 E2E - Web3 interaction & more tests (#202)
* account switching & setting gas for e2e web3

* e2e web3 interaction + new specs

* refund after payout spec

* use send instead of sendAsync + update ganache script cmd

* sign intercept + deterministic accounts

* add authentication to creation tests

* adjust cy.request call

* refactor + WIP fiddle with xhr

* xhook to modify incoming api requests
2018-11-21 21:20:09 -06:00
AMStrix d367e6e474 Track proposal contributions (#219)
* BE proposal contribution tracking

* FE proposal contribution tracking

* validate contributions

* make sure we catch errors in the 'confirmation' listener

* remove console.log

* lowercase from address compare

* remove validate_contribution_tx from post_proposal_contribution
2018-11-21 21:18:22 -06:00
AMStrix a95a8ff080 Server-side API calling/preloading. (#224)
* make sure BACKEND_URL gets set for server in production mode

* ssr api calls by path

* turn off redux logger on server

* massage preloaded state (BNify JSONed BNs)

* make sure fetchProposal returns async/promise

* make sure render works on ssr (check window refs)

* linting issue
2018-11-21 21:17:49 -06:00
Daniel Ternyak f8910b1e09
Contract Build Improvements (#215) 2018-11-21 17:24:33 -06:00
Will O'Beirne a6902a464f
Clear comments on posting. Show error message on errors. 2018-11-20 11:38:01 -05:00
Will O'Beirne 117acc7a0a
Require logged in for create. 2018-11-20 11:02:57 -05:00
Will O'Beirne fcf13deea1
Fix tsc 2018-11-19 15:40:21 -05:00
Will O'Beirne c51b1e2dab
Finish up user and social media conversions. 2018-11-19 15:23:56 -05:00
Aaron e6cc99aa5c
fix reducer logic mistake 2018-11-16 22:24:41 -06:00
Aaron 866be8e62c
alert margin 2018-11-16 21:56:43 -06:00
Aaron 52f1f54442
avatar upload & download 2018-11-16 21:33:25 -06:00
Will O'Beirne d7e4c1c533
Check in user refactor. Incomplete, but computer is crashing routinely. 2018-11-16 18:05:17 -05:00
Will O'Beirne 89c1c3345d
Fix some zeroes, default fields. 2018-11-16 14:23:42 -05:00
Will O'Beirne 8eeee61498
Fix pending in review. 2018-11-16 14:19:13 -05:00
Will O'Beirne c1d7b88924
Dont show accepted invites. 2018-11-16 14:18:27 -05:00
Will O'Beirne 95a963f2c8
Fix cyclic dependency. 2018-11-16 14:17:09 -05:00
Will O'Beirne df9ea60300
Invite tab on profile, allow accepting and rejecting invites. 2018-11-16 13:50:47 -05:00
Will O'Beirne ce3425ba0a
Add warnings to publish. Warn if outstanding invites. 2018-11-16 11:57:03 -05:00
Will O'Beirne a3cfbda3e2
Working invitations + deletions. 2018-11-16 11:16:52 -05:00
Will O'Beirne 8c96470826
Merge server-side-drafts in 2018-11-15 11:27:27 -05:00
Will O'Beirne 50cdf45882
Draft deleting. 2018-11-15 11:02:16 -05:00
AMStrix b177e7efa9 Backend Proposal Reads Pt. 2 (#209)
* web3 flask + read proposal

* tests

* use build/contracts indtead of build/abi

* fail if endpoint not set

* batched calls

* add web3 read to GET proposal(s) endpoints

* basic  integration of BE crowdFund data into FE

* handle dead contracts & omit on FE

* allow web3-free viewing & move crowdFundContract out of redux store

* upgrade flask-yolo2API to 0.2.6

* MetaMaskRequiredButton + use it in CampaignBlock

* convert to tuples

* farewell tuples

* flter dead proposals on BE

* give test_proposal_funded deadline more time
2018-11-14 17:24:56 -05:00
Will O'Beirne e11be1569d
Publish proposal 2018-11-14 17:03:50 -05:00
Will O'Beirne a7debd0bed
Fixup outstanding ts issues. 2018-11-14 16:21:41 -05:00
Will O'Beirne 8fc00d7d70
Remove team editing, always defaults to 1 member team of authd user. 2018-11-14 16:18:40 -05:00
Will O'Beirne 9c60af93d1
Stop filling in team for example. 2018-11-14 14:04:17 -05:00
Will O'Beirne 84daa1cba9
Rename a bunch of fields to their original values. Get draft saves working. 2018-11-14 12:59:48 -05:00
Will O'Beirne a6175e530c
Merge in develop 2018-11-14 12:03:40 -05:00
Will O'Beirne 8245795306
Temporary checkin, fuckup all of the types on the frontend. 2018-11-14 11:43:00 -05:00
Will O'Beirne 95c765834a
Setup draft list component, edit page from route. 2018-11-13 17:51:02 -05:00
Daniel Ternyak 3d34daba50
add npm command for now deployments 2018-11-13 13:01:51 -05:00
William O'Beirne 50f99dd298
Add nowignore (#204) 2018-11-13 12:47:33 -05:00
Will O'Beirne 2c804a412a
Add frontend changes too 2018-11-13 11:07:37 -05:00
Will O'Beirne 829d072b8c
Check in work on proposals, drafts 2018-11-13 11:07:09 -05:00
Daniel Ternyak 56df655c05
Merge branch 'auth-endpoints' into working-comments 2018-11-13 15:24:25 +01:00
William O'Beirne a418f3d5b6 Authenticate endpoints (#193)
* Add auth to endpoints.
2018-11-13 15:17:06 +01:00
Daniel Ternyak 35ba78fadd
Merge branch 'develop' into auth-endpoints 2018-11-13 15:16:47 +01:00
Will O'Beirne 6000d015ff
UI for adding by address. 2018-11-09 14:54:04 -05:00
AMStrix 22487b331b Fix regressions from Readable URLs #190 (#200)
* admin adjustments for proposalId / proposalAddress

* ensure fetchProposal called with proposalId

* have ProposalCard display proposalAddress
2018-11-09 13:48:55 -05:00
Will O'Beirne c9d6e58e19
Hide reply actions if logged out. 2018-11-08 14:38:00 -05:00
Will O'Beirne 7ee7a53b3b
tsc 2018-11-08 14:16:42 -05:00
Will O'Beirne c4950b0b27
Remove unnecessary props, fix comment id. 2018-11-08 14:14:52 -05:00
Will O'Beirne 828bd1f636
Show correct avatar for comment author. 2018-11-08 13:52:36 -05:00
Will O'Beirne 7c023da066
Create and show replies to comments succesfully. 2018-11-08 13:42:19 -05:00
Will O'Beirne 1862b69169
Properly signing, creating, fetching comments. Fix incorrect types. Setup scaffolding for replies. 2018-11-08 13:29:29 -05:00
Will O'Beirne 5a1cf5ae2a
Add auth to endpoints. 2018-11-07 14:19:12 -05:00
William O'Beirne 250d5fb7a9
EIP-712 signatures for login & signup (#189)
* Signup requires valid EIP-712 signature. Refactor some auth reducer nomenclature for consistency.

* Add auth endpoint for logging in that checks for valid signature, like create user.

* Fix tests, move dummy data into test_data.py.

* No strict slashes.
2018-11-07 14:08:42 -05:00
AMStrix d8eba48847 Readable Proposal URLs (#190)
* proposal_id -> proposal_address & exposed proposal_id is prooposal.id

* FE proposalId to number + proposalUrlId generation and use
2018-11-07 12:33:19 -05:00
William O'Beirne 0670eaa054
Web3 Only Auth + MetaMask future proofing (#187)
* Setup ethereum.enable() flow, change login to only use web3.

* Fix sign in icon to be white again.
2018-11-06 13:42:45 -05:00
William O'Beirne 79773ea4da Prevent helmet crash (#178)
* Add key to helmet to prevent it from crashing.

* Undo key fix, comment out header details component.
2018-11-05 20:41:54 +01:00
AMStrix c3649d322b Frontend i18n Infrastructure (#174) 2018-11-04 19:26:34 +01:00
William O'Beirne 118d7b645e
Proposal updates (#171)
* Add models & endpoints

* Implement proposal updates.

* Reset state on close. Add missing key. Prompt on close if they will lose stuff.

* Dont warn if they submitted.
2018-11-02 12:24:28 -04:00
William O'Beirne cdc3ea0107
Email verification (#172)
* Add email_verification table and endpoints, setup email verification page, adjust emails to actually verify.

* Add User.create method
2018-11-02 12:07:06 -04:00
AMStrix f823488abb Misc bugs & cleanup (#173)
* fix Final.create getting called multiple times

* give moment the non-standard format string to parse with

* remove unused package & refs for nprogress

* remove unused file: theme.ts
2018-11-02 11:47:25 -04:00
William O'Beirne 8eeb9fc78a
New color palette & redesigned splash screen (#170)
* Use name and icon logos where possible. Add favicon and other general web meta info.

* Unused import

* Update icons and logos.

* Variablize all colors. Switch to purple primary.

* Redesign homepage. Slight color tweaks.

* Fix blue button
2018-10-31 17:05:35 -04:00
William O'Beirne b8e93994cb Require message signature on sign up / sign in (#165) 2018-10-31 00:18:26 +01:00
William O'Beirne 30a476a285
Logos, Icons, Manifest.json (#163)
* Use name and icon logos where possible. Add favicon and other general web meta info.

* Unused import

* Update icons and logos.
2018-10-30 13:58:05 -04:00
AMStrix 2d75150dff Profile edit (#160)
* cleanClone helper

* redux/store support for user update

* ProfileEdit and supporting UI

* ts fix

* fix spelling

* backend update user basics

* delete photo

* remove comments

* ignore leftover errors from previous update attempts

* fix ts unused arg

* make update user endpoint params optional

* connect ProfileUser for authUser & updateUser

* improve cleanClone function
2018-10-30 10:40:21 -04:00
AMStrix eae0e81ff0 Setup meta tags for social sharing and SEO (#156)
* PUBLIC_HOST_URL env variable

* default SEO stuff

* HeaderDetails component

* HeaderDetails usage in Home and Profile

* strict fix for urlToPublic
2018-10-22 12:16:15 -05:00
William O'Beirne 2895d1045a AddressInput component & Donation address (#157)
* Add donation address constant. Add AddressInput component. Replace using those 2 where needed.

* Fix invalid defaultValue logic
2018-10-22 02:51:29 -05:00
William O'Beirne f406cec255
Strict Typescript (pt. 1) (#150)
* Enable noImplicitThis, alwaysStrict, and strictFunctionTypes configs.

* Enable all strict rules. Implement typedKeys function for better typing. (#152)
2018-10-19 18:03:37 -04:00
AMStrix de32965012 thumb friendly proposal social buttons (#149) 2018-10-18 20:30:48 -05:00
AMStrix 45054ec573 Standard pages (#151)
* pages, routes &  links

* generic legal document style

* Tos component + dummy text

* Privacy component.

* Contact component.

* About component.
2018-10-18 20:59:49 -04:00
William O'Beirne 795117b44d Fix mobile styles on proposal detail page. (#148) 2018-10-16 15:18:12 -05:00
AMStrix b1099770f4 Use UserAvatar on Review (#141) 2018-10-09 12:30:09 -07:00
AMStrix 9cb71923d5 Autofill first team member with auth'd user (#140) 2018-10-08 21:21:40 -07:00
William O'Beirne 3dd4253acb TREZOR & Ledger Address Selection (#139)
* Add trezor selection

* Fix SSR by making providers lodable.

* Adjust identity styles.

* Add packages.

* Adjust style.

* Ledger address selection.

* Common use component for ledger and trezor.
2018-10-08 18:06:41 -07:00
AMStrix 1aab0915c0 Type Refactor (#133) 2018-10-04 23:27:02 -05:00
William O'Beirne ad0a153e7a Unify template & reduce web3 complexity (#132)
* Check in auth flow work.

* More work on auth steps. Check in before redux state.

* Create auth reducer and actions

* Stubbed out profile page to test auth aware routes. Minor style fixes.

* Fill out provider components

* Handle missing origin

* Fix reducer mistake. Show user info in profile page.

* Reflect auth state in header.

* tslint

* Actual user creation.

* Implement sign in

* Fix redux types.

* Add redux persist to config.

* Add sagas, fix persistence.

* Remove console log

* Split out header auth into own component. Add a menu, logout page, stub for settings page.

* Add mobile menu drawer.

* Adjust styles, fix sticky logout.

* Tslint

* Fix menu icon on transparent.

* Fix configureStore changes.

* All routes are config objects. Move template outside of routes. Combine AntWrap and Web3Page into one component.

* Sagafy web3 bootstrapping, remove it from components.

* Get errors rendering. Fix SSR issue with initial web3 error.

* Fix auth menu, sign out page.

* Simplify logic

* Remove console logs
2018-10-03 21:42:20 -05:00
Daniel Ternyak b2ca92362d
[RE-OPENING TO DEVELOP] Auth UI Menu (#130)
* Check in auth flow work.

* More work on auth steps. Check in before redux state.

* Create auth reducer and actions

* Stubbed out profile page to test auth aware routes. Minor style fixes.

* Fill out provider components

* Handle missing origin

* Fix reducer mistake. Show user info in profile page.

* Reflect auth state in header.

* tslint

* Actual user creation.

* Implement sign in

* Fix redux types.

* Add redux persist to config.

* Add sagas, fix persistence.

* Remove console log

* Split out header auth into own component. Add a menu, logout page, stub for settings page.

* Add mobile menu drawer.

* Adjust styles, fix sticky logout.

* Tslint

* Fix menu icon on transparent.

* Fix configureStore changes.
2018-10-03 15:12:26 -05:00
William O'Beirne 24350ec77f User Authentication UI (Pt 3 - Persistence) (#127)
* Check in auth flow work.

* More work on auth steps. Check in before redux state.

* Create auth reducer and actions

* Stubbed out profile page to test auth aware routes. Minor style fixes.

* Fill out provider components

* Handle missing origin

* Fix reducer mistake. Show user info in profile page.

* Reflect auth state in header.

* tslint

* Actual user creation.

* Implement sign in

* Fix redux types.

* Add redux persist to config.

* Add sagas, fix persistence.

* Remove console log
2018-10-03 14:08:14 -05:00
AMStrix 94aec1fdd3 Milestone Enhancements (#117)
* use antd Steps for Proposal/Milestones

* MilestoneAction component.

* Proposal/Milestones modifications.

* Proposal/Governance modifications.

* rename Governance tab to Refunds + hide if not contributor

* Story modifications for ProposalMilestones.

* Remove old Governance/Milestones + update story

* Make sure active step updates after mount via componentDidUpdate.

* have ProposalMilestones fill horizontal space

* allow outsiders to view state of MilestoneAction

* refactor + add is-count-n style

* count styles

* dynamic num milestones + rando titles

* geometryCases of 1 - 10 milestones

* better selected milestone visual hint

* dynamic step title overflow check + styles

* nowrap milestone title
2018-10-03 14:04:08 -05:00
AMStrix 1db0cd2adb Profile UI (#128)
* basic users redux + Profile page, route

* UserRow links to Profile

* Update UserRow story with BrowserRouter for Link

* display basic profile info

* render + style created and funded proposals

* clean up unused vars

* ProposalComment + misc. adjustments

* auth user adjustments

* user not found redirect to 404 + don't fetch if no user id param

* use PlaceHolder for empty proposal & comments
2018-10-03 13:11:44 -04:00
William O'Beirne 7ca1fc8de4 User Authentication UI (Pt 2 - Real Users) (#125)
* Check in auth flow work.

* More work on auth steps. Check in before redux state.

* Create auth reducer and actions

* Stubbed out profile page to test auth aware routes. Minor style fixes.

* Fill out provider components

* Handle missing origin

* Fix reducer mistake. Show user info in profile page.

* Reflect auth state in header.

* tslint

* Actual user creation.

* Implement sign in

* Fix redux types.
2018-10-01 18:22:56 -05:00
William O'Beirne 5c0430d37a User Authentication UI (Pt 1 - The Basics) (#123)
* Check in auth flow work.

* More work on auth steps. Check in before redux state.

* Create auth reducer and actions

* Stubbed out profile page to test auth aware routes. Minor style fixes.

* Fill out provider components

* Handle missing origin

* Fix reducer mistake. Show user info in profile page.

* Reflect auth state in header.

* tslint
2018-10-01 16:01:20 -05:00
AMStrix 5d674c1a01 SocialShare component + add to Proposal (#121) 2018-10-01 12:29:36 -04:00
AMStrix 73bbb1e7cd Add 404 Page (#118) 2018-09-27 22:03:53 -05:00
William O'Beirne e47b598739 Functioning proposal teams (pt 2 - the views) (#116)
* Team create flow step

* Show team on review step.

* Fix image types.

* Get team into ideal format. Properly post it to backend.

* Validate team forms and show errors.

* Adjust team member buttons.

* Add social medias to examples.

* Transform post and get responses to align with the TeamMember type.

* Split out user row and address row components. Use user row in the team block on proposal view.

* Use team on proposal card. Make user avatar component, use in create flow.

* Fix proposal preview.

* Fix up stories, add new one for UserRow
2018-09-27 15:39:37 -05:00
William O'Beirne 3b161f3476 Functioning proposal teams (pt 1 - the form) (#115)
* Team create flow step

* Show team on review step.

* Fix image types.

* Get team into ideal format. Properly post it to backend.

* Validate team forms and show errors.

* Adjust team member buttons.
2018-09-27 15:25:49 -05:00
Daniel Ternyak 0510cf3c8d
Fix Proposal Create 2018-09-26 03:46:30 -05:00
William O'Beirne 2886042c33 Style tasks (#103)
* Upgrade ant. Adjust header icon and styles.

* Remove unused newsletter form component.

* Fix up missing fonts, weights, spacings. Add some minor overrides to Ant.

* Fix progress percent going gren.

* Move styles to less.
2018-09-25 15:14:51 -05:00
Daniel Ternyak 397079869a
"Fuller" Users (#96)
* check in progress

* revert

* fix up API, add tests

* remove unused milestone commands

* support filtering users via proposalId

* get UI working

* refactoring / add minimum team size.

* fix proposal create API to properly support both email and account based
2018-09-25 15:09:25 -05:00
William O'Beirne 15f83f7d51 Fix body to be height of sidebar. (#104) 2018-09-25 14:52:08 -05:00
Daniel Ternyak 537db7b841
Use local accounts for proposal autofill (#105) 2018-09-25 14:49:47 -05:00
William O'Beirne 75f0b72022 Cancel / Refund proposal (#100)
* Cancel / refund modal for proposals. Fix some states where frozen contract still allowed interaction.

* Add more refund states. Move styles to less.

* Fix tsc, simplify logic
2018-09-25 14:41:47 -05:00
AMStrix 8be518fff7 Integrate Storybook (#98)
* add missing static alias + include ./stories in tsconfig

* add storybook dep + script + babel-core bridge dep.

* storybook setup

* expose unconnected Component for storybook

* fix discovered styling issue

* dummy props (ProposalWithCrowdFund)

* Basic stories.
2018-09-25 15:02:29 -04:00
Daniel Ternyak a8266eb4ac
Allow Proposal Auto-fill on Production (#97) 2018-09-25 13:31:17 -05:00
AMStrix e05fc5ec91 Markdown & MarkdownEditor to less. Remove styled-components SSR/dependencies. (#92)
* Markdown to less.

* MarkdownEditor to less.

* remove markdownStyles

* Remove styled-components loaders.

* Remove styled-components SSR.

* Remove styled-components dependency.

* Give shared markdown styles mixin a dedicated file.

* checkBodyOverflow on mount if proposal already loaded
2018-09-23 00:09:12 -05:00
AMStrix 694c7aebda NewsletterForm & ShortAddress to less. (#91)
* NewsletterForm to less.

* ShortAddress to less.
2018-09-22 11:57:04 -05:00
AMStrix 6f67d08985 Comment, Placeholder & Routes to less. (#88)
* Placeholder to less.

* Comment to less.

* Routes globals to less.

* remove comments
2018-09-22 11:53:22 -05:00
AMStrix f8321be39e Proposal style to less. (#90)
* Proposal CampaignBlock to less.

* remove comments

* ProposalComments to less.

* Capture heirarchy CampaignBlock -> ProposalCampaignBlock

* ProposalGovernance to less.

* ProposalMilestones to less.

* ProposalUpdates to less.

* Proposal root style to less.
2018-09-22 11:44:55 -05:00
AMStrix c1fa67234a Fix Naked Initial Load (#86)
* include more stats data for SSR to inspect

* more efficient/aggressive splitting

* include chunks with loadable chunk common origins

* use same uglify plugin as the webpack pkg to avoid es module errors during build
2018-09-20 19:45:02 -05:00
William O'Beirne e0b94d06e1 Create Flow (first pass) (#76)
* Initial work on create flow.

* Redux and validation initial work.

* Fix typescript issues

* Review page

* Misc fixes

* Example fill in, and initial state setting.

* Milestone timeline in review

* Initial markdown state

* Draft saving, loading, resetting. Using local storage for now.

* Fix initial milestone state. Make steps clickable.

* Preview functionality.

* Create governance step that handles all contract data.

* Proposals can now be created with new flow. Team has been dismantled.

* Replace old create with new flow. Adjust url casing.

* Convert styles to less

* Fix form reset

* Remove team step

* tsc

* Show errors.

* Prevent publish if there are any errors.

* Remove comments, variablize time.

* Reset crowd fund deploy state when form is mounted to prevent getting error / success message from previous deploy.
2018-09-20 13:58:47 -05:00
AMStrix c77ecdf761 UserRow & Web3Page to less (#80)
* Web3Page to less

* import React

* UserRow to less
2018-09-19 20:57:05 -05:00
AMStrix 224d95cdbe Header, Footer & Home styled to less conversion (#75)
* Header to less

* Header - remove  redundant React.Fragments

* Home to less

* Footer to less
2018-09-19 20:48:49 -05:00
Daniel Ternyak 30b89b1493
Fix Zeit Deployments (#81)
* check-in attempt at whitelisted files for zeit

* working zeit uploading
2018-09-19 20:45:51 -05:00
AMStrix c768292d2e Convert proposals to less (#74)
* main component to less

* add classnames dep

* ProposalCard to less

* fix css naming violations
2018-09-19 10:49:45 -04:00
Daniel Ternyak 6613d99e8a
Route Enhacements (#70) 2018-09-18 17:20:17 -05:00
William O'Beirne 4542dccfa9 Stubbed out comments UI (#57)
* Check in progress on comments.

* Reduced markdown options for comments.

* Comment replies.

* Fix tsc

* TSC fix
2018-09-18 17:15:01 -05:00