Commit Graph

456 Commits

Author SHA1 Message Date
AMStrix d4298e62cc Admin (#164)
* admin backend

* admin ui

* tslint ignore contracts

* fix name

* build & serve
2018-10-30 12:35:47 -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
Daniel Ternyak 357b4248c7
Tighten Backend Patterns (#159) 2018-10-22 17:31:33 -05: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 224174bb32 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 12:15:20 -05:00
William O'Beirne cb09e97df4 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:59 -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
Daniel Ternyak abc824b17e
EIP-712 User Authorization (#138)
* example auth service

* prep for merge

* MVP signed transaction based auth

* update auth service endpoint and delete checked-in auth service

* add readme explanation for AUTH_URL

* rename eip-712 headers

* fix test errors
2018-10-20 00:18:27 -05:00
William O'Beirne e63b03e5c3 Email Scaffolding + Signup Email (#153)
* Scaffolding for emails + signup email.

* Better docs and handling around config
2018-10-19 17:20:51 -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
Daniel Ternyak 9dc67865e9
Express Auth Service (#137)
* example auth service

* prep for merge

* check in `build` while proper deployment is worked out

* update package.json
2018-10-18 14:00:16 -05:00
William O'Beirne 795117b44d Fix mobile styles on proposal detail page. (#148) 2018-10-16 15:18:12 -05:00
Daniel Ternyak 4e03a637ac
Remove unused file 2018-10-14 14:02:14 -05:00
Daniel Ternyak 75a5027d2f
Remove unused file 2018-10-14 14:02:04 -05:00
Daniel Ternyak a455f7d9b9
Merge pull request #142 from grant-project/develop
Release 4
2018-10-09 12:33:17 -07:00
Daniel Ternyak d562407633
Merge branch 'master' into develop 2018-10-09 12:32:34 -07: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
Daniel Ternyak dd2446db1c Simplify conditionals (#136) 2018-10-03 23:19:58 -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 9e0ecaef02
User Resource Enhancements (#113)
* add tests to ensure already existing users get associated with a new proposal when they are specified in team

* serilaize avatar, social_medias on user; add tests

* add user resource GET API; test

* remove commented out serializer stuff
2018-09-26 14:42:40 -05:00
Daniel Ternyak 28d0ab76e6
Backend Regression Tests (#112) 2018-09-26 14:35:22 -05:00
Daniel Ternyak 5deddafded
Merge pull request #111 from grant-project/develop
[HOTFIX] Release 3
2018-09-26 03:58:20 -05:00
Daniel Ternyak 0510cf3c8d
Fix Proposal Create 2018-09-26 03:46:30 -05:00
Daniel Ternyak 43f5737c33
Merge pull request #109 from grant-project/develop
Release 3
2018-09-26 00:14:12 -05:00
Daniel Ternyak 52b04826bb
Check-in Contracts (#108)
* allow truffle contract compiled JSON

* remove PrivateFund deployment

* set ropsten deployment gas price

* check-in most recently deployed CrowdFundFactory
2018-09-26 00:09:09 -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
Daniel Ternyak 6c8325e683 [WIP] Fix naive refund (#95)
* fix amountToRefund computation bug

* Add new test to ensure refund works. Update old test to be more strict on refund.

* Move test back into main file.
2018-09-24 18:51:38 -04:00
Daniel Ternyak 5b6b9e35da
Freeze Reason (#94)
* add 'freezeReason' to describe why a crowdfund is freezed

* add tests
2018-09-24 15:42:57 -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