Commit Graph

400 Commits

Author SHA1 Message Date
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
AMStrix d977d990c4 Post nextjs cleanup (#66)
* remove next deps

* remove next related files

* remove other unused deps

* remove more deps + their *.d.ts

* add explicit core-js dep (for babel-preset-evn/polyfill)

* use abs path for node_modules to limit resolution to package dir
2018-09-18 12:12:59 -04:00
Aaron 3aa2af4355
env var to disable ts check during dev building 2018-09-18 09:17:13 -05:00
AMStrix 6807232a54 Fix title comment bug (#67) 2018-09-17 23:36:24 -05:00
AMStrix fe1e2a8df3 Replace nextjs (#54)
* add new deps

* remove .babelrc

* add main files

* package scripts + add missing typings

* tslint ignore json

* replace next/router

* replace next/link

* HMR + configureStore + fontawsome header link

* Use Link instead of Redirect to solve same page redirect problem.

* Home svg import.

* hide filter button even if ant styles load first

* Integrate Helmet

* adjust style loading + fix font-face url format

* import style higher in render tree for improved SSR

* dev.js - nodemon only watch build/server dir

* precedence order fixed

* keep_fnames=true to keep uglifyjs from mangling BN

* small cleanup
2018-09-17 15:55:49 -05:00
Daniel Ternyak cf8e621528
Hidden Proposal Form auto-complete (#53) 2018-09-17 15:15:22 -05:00
Daniel Ternyak c93b0526c8
Contribution Tab Copy Change (#55) 2018-09-17 11:01:01 -05:00
William O'Beirne 210b656939
Merge pull request #49 from grant-project/show-contribution-amounts-frontend
Show Proposal Contribution Amounts
2018-09-17 11:59:27 -04:00
Daniel Ternyak 7ee1a9b098
fix imports 2018-09-17 10:55:20 -05:00
Daniel Ternyak 2eff37c401
address PR comments 2018-09-17 10:53:50 -05:00
Daniel Ternyak 6edec49575
handle no contributors 2018-09-16 14:59:32 -05:00
Daniel Ternyak fbe9361846
Update Tagline 2018-09-16 14:19:18 -05:00
Daniel Ternyak f1ca2bfa66
revert 2018-09-16 01:53:22 -05:00
Daniel Ternyak 3862b18670
Fix Funding Progress calculation
Fix BN types
Add contributors tab
Adjust UserRow to optionally show amount as secondary text
Add contributionAmount to contributors in crowdFund
General cleanup
2018-09-16 01:46:40 -05:00
William O'Beirne 0b50fcc4e1 Convert all units to BN, type web3 (#47)
* BigNumber and type web3 all the things.

* Remove logs
2018-09-14 16:54:27 -05:00
Will O'Beirne d3a46499e9
Ignore vscode files. 2018-09-14 10:54:52 -04:00
Will O'Beirne b344cce349
Exclude static & next built files. 2018-09-14 10:53:41 -04:00
Daniel Ternyak 276e3a2b94
Update Tagline (#45)
* Update landing page tagline

* One more update
2018-09-13 23:12:31 -05:00
William O'Beirne df1160acf5 Working Refunds (#32)
* Add and use placeholder component.

* Allow debugging from truffle

* Implement refunding

* Fix tsc

* Double transaction for first refund.
2018-09-13 22:48:01 -05:00
William O'Beirne ab66cf6ea4 Conditionally show "See more" button (#38) 2018-09-13 21:45:25 -05:00
William O'Beirne 5df7f93df7 Redux dev tools in production (#39) 2018-09-13 18:42:49 -05:00
William O'Beirne e4779d1410 Mobile-friendly search filters (#37)
* Remove affixed filters. Replace with responsive drawer filters.

* Fix ts error
2018-09-13 16:49:43 -05:00
William O'Beirne 0e3c6c6fc0 Unify markdown, make styles consistent (#36)
* Unify markdown engines.

* Switch to Markdown component everywhere. Style markdown consistently.

* Upgrade typescript to 3.0.3

* Remove non-working highlighter
2018-09-13 16:05:36 -05:00
William O'Beirne 4305143312 Upgrade typescript to 3.0.3 (#35) 2018-09-13 15:34:36 -05:00
Will O'Beirne aee19744f6
Fix window and styled errors. 2018-09-11 13:18:57 -04:00
Will O'Beirne f8faaf115a
Fix all ts errors, any and todo ones that cant be. Squashed history due to master rebase. 2018-09-11 12:16:57 -04:00
Will O'Beirne 1a20ea18e0
Swap out background. 2018-09-10 16:49:59 -04:00
Daniel Ternyak 2f513d0ce6
initial commit 2018-09-10 11:55:26 -05:00