Commit Graph

349 Commits

Author SHA1 Message Date
Daniel Ternyak 35510b984f
Misc fixes (#418)
* CORS

* Parse float instead of bn

* Minimum to 0.001

* Unused import
2019-04-04 19:16:00 -05:00
William O'Beirne 339705207a
Default target to '0' (#413)
* Default proposal target to zero instead of None

* Add frontend validation and 1 ZEC minimum
2019-03-28 13:25:34 -04:00
William O'Beirne edd2260423
Update RFP copy + fix admin bug (#414)
* Update RFP copy and use dangerous html to get a link working. Also fix an RFP create bug.

* Capitalize
2019-03-28 13:13:12 -04:00
William O'Beirne 12b9953b2d
Add zfnd.org link to footer. (#415) 2019-03-28 13:12:00 -04:00
Will O'Beirne e9ed8f7892
Refresh page on chunk errors. 2019-03-22 15:54:50 -04:00
Daniel Ternyak a4a80bfe4c
Merge branch 'develop' into better-validation 2019-03-18 16:00:06 -05:00
Will O'Beirne fb42eca561
Max lengths on signup form 2019-03-18 15:05:08 -04:00
Will O'Beirne 0ce35629a2
More component maxlengths 2019-03-18 14:47:46 -04:00
Will O'Beirne adc2fd4d63
Stricter validation, truncate before db entry, env var proposal target limit 2019-03-18 14:35:08 -04:00
Will O'Beirne 6fc6fedab7
Prevent brief from overflowing. 2019-03-18 12:26:57 -04:00
Daniel Ternyak 495b50a9e9
Misc Fixes (#381)
* Fix Logging typo

* only allow consecutive milestone date estimates

* fix typo

* handle empty target

* validate max proposal brief size
2019-03-14 23:24:10 -05:00
William O'Beirne 94b8837bdc Create preview fix + extras (#382) 2019-03-14 22:38:04 -05:00
AMStrix 1d07997a7a Moar bugs (#379)
* #376 fix milestone passed to milestone_paid email

* #374 fix admin contribution PUT/POST status validation

* #373 fix updates & contributors tabs of Proposal
2019-03-14 22:26:28 -05:00
AMStrix ad844263dd Several bugs (#378)
* #375 admin long lines in proposal Detail card

* #371 comment_reply & proposal_comment email url typo

* #367 fix link to RFP from Proposal create, just use id

* #368 profile avatar removal, allow_none on /user PUT
2019-03-14 20:55:13 -05:00
William O'Beirne 5d7990a175 Testnet banner (#362)
* Scaffolding for banner

* Layout one

* Hide on homepage.

* Invert conditional
2019-03-14 14:37:50 -05:00
William O'Beirne 0069de7fc4 HeaderDetails on proposals and RFPs (#359)
* Set header details on proposal detail pages.

* Add RFP header details
2019-03-14 00:06:22 -05:00
William O'Beirne 1130d9f3be Slugify RFP urls (#358) 2019-03-14 00:06:02 -05:00
Daniel Ternyak 21a2a1f6ba
Add explanation for staking (#356) 2019-03-13 18:36:53 -05:00
William O'Beirne 9d0591918e Require refund address or confirm donation (#354)
* Add API check to disallow unsetting refund address.

* Require either refund address to be set or explicit consent for a donation. Dont have them show up as refundable in admin.

* Show donations on financials page

* Continue after entry

* Consider no_refund when checking for duplicate contribution.

* Fix types.

* Add a filter for all contributions that are considered donations. Update financial query to include donations.

* Elaborate in message.
2019-03-13 18:36:24 -05:00
AMStrix 1ae519e251 Address TODOs (#349)
* todos: simple ones, removals & modifications to NOTE

* rem-todo: reduced markdown images are removed by sanitizer

* be todo: add user validation to create

* be todo: improve test_invide_api tests

* be todo: remove todo comment

* fe todo: set error messages on reducers

* fe todo: upgrade and enable react-helmet

* todos - remove uneeded

* fe todos: remove unecessary

* be: fix remaining staking contribution calculation
2019-03-13 16:39:50 -05:00
William O'Beirne 4773c4a4ac Fix contact url (#350)
* Fix contact url

* Remove TODO
2019-03-13 14:20:54 -05:00
William O'Beirne 73d087bda7 Rate limits (#342)
* Implemented rate limits for most POST requests.

* Nicer error message for rate limited contributions

* Use error message for drafts and invites, limit invites on frontend.
2019-03-12 22:35:38 -05:00
William O'Beirne c92032e630 Add noscript messages (#341)
* Noscript warnings

* Incomplete sentence.
2019-03-12 22:08:50 -05:00
Daniel Ternyak c5979d5635 Various Fixes (#340)
* copy; ff

* Update PaymentInfo.tsx

* Update Final.tsx

* Update index.tsx
2019-03-12 19:04:32 -04:00
William O'Beirne 79db2b4001 Fix contribution confirmation on subsequent contribution (#336) 2019-03-12 17:20:11 -05:00
William O'Beirne e160380daa Prevent showing contribution instructions for canceled / expired proposals (#334) 2019-03-12 16:35:15 -05:00
William O'Beirne d4d9f5b2ab Use new logo + update meta tags (#332)
* Replace logo in header and footer.

* Update some meta tags.
2019-03-12 16:13:04 -05:00
William O'Beirne c6ad668d71 Better contribution error displays (#314)
* Handle blockchain_get failures better.

* tsc
2019-03-12 13:10:56 -04:00
Sonya Mann 403fb09513 change non-attributed contributions language (#316)
* non-attributed contributions copy
2019-03-12 12:38:35 -04:00
William O'Beirne 1905dfe7bf
Frontend error handlers (#312)
* Add componentDidCatch around routes with template, and outside routes at the top level.

* Remove error from ErrorWrap on navigation.
2019-03-08 16:13:13 -05:00
Will O'Beirne e9a052870c
Change homepage splash image to background image that keeps its place before loading. 2019-03-06 18:39:44 -05:00
William O'Beirne 312818d71a New footer (#300)
* Finalize design and layout.

* Change about page to redirect.
2019-03-06 15:50:32 -06:00
AMStrix 1d2228a394 Flexible Matching/Bounties + KYC (#277)
* BE: proposal rfp opt in & proposal bounty

* admin: proposal rfp opt in display & modify bounty

* FE: proposal rfp opt in / proposal.contributionBounty

* fix github merge (so close)

* add status field to update_rfp

* handle only showing canel and refund popover correctly

* undo unneeded change

* BE: make sure rfp.bounty is None when it is set to '0' or null during create/update
2019-03-06 14:25:58 -06:00
William O'Beirne 7bbefe8abe Update vulnerable packages (#302)
* Update frontend dependencies.

* Update admin packages.

* Fix content editor with new updates.

* Regenerate lock files.

* Revert "Regenerate lock files."

This reverts commit 93150fcac3.

* Fix tsc
2019-03-06 12:56:01 -06:00
Aaron bbf7b3eab0
FE: convert profile comment dateCreated to milliseconds 2019-03-05 11:40:25 -06:00
Aaron c600404540
FE: use Markdown for Profile comments 2019-03-05 11:35:40 -06:00
Daniel Ternyak a5ca90874f
Update Payment.tsx 2019-03-04 19:20:33 -06:00
Daniel Ternyak f7488d4018
Merge branch 'develop' into require-sapling-payout 2019-03-04 19:18:10 -06:00
Daniel Ternyak 78e86763bb
Merge branch 'develop' into mobile-menu-fixes 2019-03-04 17:04:29 -06:00
Daniel Ternyak fe504e47e4
Merge branch 'develop' into rfp-bounty-fixes 2019-03-04 16:44:49 -06:00
Will O'Beirne 937d894645
Require sapling payout address. 2019-03-04 15:02:51 -05:00
Will O'Beirne 9363d53378
Prevent overflow x on homepage. 2019-03-04 14:45:03 -05:00
Will O'Beirne 831488d54d
Highlight active page correctly. 2019-03-04 14:09:37 -05:00
Will O'Beirne d5e059a474
Close drawer on navigation. 2019-03-04 14:02:07 -05:00
Will O'Beirne 2cc5ade673
Sort homepage rfps by bounty. Fix admin views and some bounty logic. 2019-03-04 13:52:57 -05:00
Daniel Ternyak 5e6b46f8f4
Merge branch 'develop' into homepage-redesign 2019-02-27 17:11:42 -06:00
Daniel Ternyak 20e8480d14
PR review 2019-02-27 17:09:36 -06:00
Will O'Beirne 063dbdde7c
Don't show sign up if they're signed in. 2019-02-26 17:13:57 -05:00
Will O'Beirne c5463aea1e
i18n the homepage. 2019-02-26 17:08:04 -05:00
Will O'Beirne e9576b26a2
Size tweak 2019-02-26 16:40:19 -05:00
Will O'Beirne c7186ca567
Responsive for other sections. 2019-02-26 16:36:07 -05:00
Will O'Beirne 39102f6164
Responsive home intro 2019-02-26 16:23:36 -05:00
Will O'Beirne 3f7cbbc4df
SSR fetch, fix some states for requests loading. 2019-02-26 16:10:09 -05:00
Will O'Beirne 378765ebce
Initial pass at homepage full width. Not yet responsive or using localization. 2019-02-26 15:58:25 -05:00
Will O'Beirne 828be6ca01
Fix tsc 2019-02-26 12:41:39 -05:00
Will O'Beirne 560f63847e
More considerations for anonymous contributions on the frontend. 2019-02-25 14:46:47 -05:00
Will O'Beirne a2d89f2910
Pose a warning to user before contributing anonymously. Handle anonymous user in user row. 2019-02-25 14:26:02 -05:00
Will O'Beirne 6f7de989e7
Merge branch 'develop' into anonymous-contributions 2019-02-25 11:43:36 -05:00
AMStrix 77e25b1c7c Various fixes (#260)
* remove linkedin social media option

* fix ProfileEdit social media button white-space

* fix default profile tab for non-authed user

* filter out non live proposal contributions for GET user/<id>

* admin: remove 255 char limit on reject_reason
2019-02-25 11:41:00 -05:00
Will O'Beirne 06add917b5
Merge branch 'develop' into anonymous-contributions 2019-02-23 16:53:59 -05:00
AMStrix 0b2676563a fe: Placeholder loading state & use it for profile tabs + RFPs list (#255) 2019-02-23 16:46:35 -05:00
William O'Beirne 8bf7013b0f
Cancel proposal (#253)
* Backend setup for proposal canceling.

* Cancelable in admin, update all states to properly reflect a canceled proposal.

* Replace REFUNDING stage with CANCELED and FAILED to distinguish between the 2

* Fix pending contributions showing up as needing refunds.

* Fix some refund cases.

* Dont show failed & canceled proposals on list view. Hide their filters.

* Show when proposal was canceled.

* Remove edit action, make cancel an explanation to contact support.

* Fix PR comments

* Fix issues from develop merge.
2019-02-23 16:38:06 -05:00
Will O'Beirne 115b127962
Initial pass at anon contributions on frontend. 2019-02-23 15:31:07 -05:00
William O'Beirne ae62b726ce
Rip sprout out. (#254) 2019-02-23 15:19:33 -05:00
Will O'Beirne 6f50a7ae28
Merge develop in. 2019-02-21 12:17:48 -05:00
Daniel Ternyak 95c1f26153
Merge branch 'develop' into comment-moderation 2019-02-20 15:51:55 -06:00
Daniel Ternyak d128d110e6
Merge branch 'develop' into milestone-validation 2019-02-20 15:44:30 -06:00
Daniel Ternyak 5a7235ab49
Merge branch 'develop' into comment-moderation 2019-02-19 16:46:03 -06:00
Daniel Ternyak 58ebdeb9fa
Merge branch 'develop' into proposal-unlink 2019-02-19 16:36:59 -06:00
Will O'Beirne e05b210b29
Removes non-existent help link. 2019-02-19 16:56:25 -05:00
Will O'Beirne ebc4b8ceee
Stricter milestone validaiton. Dont try to be smart with percentages. 2019-02-19 16:42:40 -05:00
Will O'Beirne 5163d87172
Add link for unlinking proposals from requests. 2019-02-19 14:48:51 -05:00
Daniel Ternyak 9516d78190
Merge branch 'develop' into fix-body-more 2019-02-19 13:35:13 -06:00
Will O'Beirne 03865a9ff2
Use ref instead of random id 2019-02-19 14:08:27 -05:00
Aaron 054b49ecbb
Merge branch 'develop' into comment-moderation 2019-02-19 12:57:06 -06:00
Daniel Ternyak eecfbd3b3d
Merge branch 'develop' into comment-moderation 2019-02-19 10:24:13 -06:00
Daniel Ternyak ceefe0c403
Merge branch 'develop' into rfp-detail 2019-02-18 23:11:24 -06:00
Aaron 8ef9a7e5e4
comment reporting for moderation 2019-02-18 16:35:21 -06:00
Aaron 1a87cadc4d
Merge branch 'develop' into comment-moderation
# Conflicts:
#	backend/grant/utils/pagination.py
#	frontend/client/components/Proposal/Comments/index.tsx
2019-02-18 15:36:31 -06:00
Aaron e8c7dad87f
be & admin moderation & reporting for proposal comments 2019-02-18 15:31:20 -06:00
Daniel Ternyak 00b4a2fbc8
remove empty space 2019-02-18 12:12:25 -06:00
Daniel Ternyak 6183420a9d
Show tags and brief on RFP detail 2019-02-18 12:08:20 -06:00
Daniel Ternyak d51877d1e3
Update all profile tabs to use placeholders with both titles and subtitles 2019-02-17 16:37:11 -06:00
Daniel Ternyak 5e2fdbfea4
Use Modal to present social share option instead of direct pop-up 2019-02-17 15:57:57 -06:00
Daniel Ternyak 75ca7667d8
Refactor CopyInput out into it's own component 2019-02-17 15:57:06 -06:00
Daniel Ternyak 39250211b6
Merge branch 'proposal-and-comment-pagination' into modal-sharing-links 2019-02-17 15:01:06 -06:00
Daniel Ternyak 0ac4c0591d
rename and simplify user profile validation function 2019-02-17 14:36:17 -06:00
Daniel Ternyak 5fb6f4c36a
Merge branch 'develop' of https://github.com/dternyak/zcash-grant-system into fix-edit-profile 2019-02-17 13:56:09 -06:00
Daniel Ternyak edc5ce54d4
Merge branch 'develop' into proposal-and-comment-pagination 2019-02-17 13:49:41 -06:00
Aaron da889a4f58
paginate comments & "All" stages filter in frontend 2019-02-16 19:33:57 -06:00
William O'Beirne 1be2c5c945
Add bounty banner to campaign block. Reflect bounty in funded amount. Fix some of the cases that opens up. (#213) 2019-02-16 12:32:26 -05:00
Will O'Beirne cbe0ed659c
Add refund address to settings, editable on the account page. 2019-02-16 11:49:32 -05: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
Daniel Ternyak f2c2b70967
Fix 'Edit Profile' form being always disabled; remove email 2019-02-15 13:31:08 -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
Will O'Beirne 31345c57b6
Merge develop in 2019-02-14 19:08:18 -05: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 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