manifold/web/hooks
Ian Philips 798253f887
Challenge Bets (#679)
* Challenge bets

* Store avatar url

* Fix before and after probs

* Check balance before creation

* Calculate winning shares

* pretty

* Change winning value

* Set shares to equal each other

* Fix share challenge link

* pretty

* remove lib refs

* Probability of bet is set to market

* Remove peer pill

* Cleanup

* Button on contract page

* don't show challenge if not binary or if resolved

* challenge button (WIP)

* fix accept challenge: don't change pool/probability

* Opengraph preview [WIP]

* elim lib

* Edit og card props

* Change challenge text

* New card gen attempt

* Get challenge on server

* challenge button styling

* Use env domain

* Remove other window ref

* Use challenge creator as avatar

* Remove user name

* Remove s from property, replace prob with outcome

* challenge form

* share text

* Add in challenge parts to template and url

* Challenge url params optional

* Add challenge params to parse request

* Parse please

* Don't remove prob

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Add to readme about how to dev og-image

* Add emojis

* button: gradient background, 2xl size

* beautify accept bet screen

* update question button

* Add separate challenge template

* Accepted challenge sharing card, fix accept bet call

* accept challenge button

* challenge winner page

* create challenge screen

* Your outcome/cost=> acceptorOutcome/cost

* New create challenge panel

* Fix main merge

* Add challenge slug to bet and filter by it

* Center title

* Add helper text

* Add FAQ section

* Lint

* Columnize the user areas in preview link too

* Absolutely position

* Spacing

* Orientation

* Restyle challenges list, cache contract name

* Make copying easy on mobile

* Link spacing

* Fix spacing

* qr codes!

* put your challenges first

* eslint

* Changes to contract buttons and create challenge modal

* Change titles around for current bet

* Add back in contract title after winning

* Cleanup

* Add challenge enabled flag

* Spacing of switch button

* Put sharing qr code  in modal

Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-08-04 15:27:02 -06:00
..
use-admin.ts More absolute imports (#156) 2022-05-09 09:04:36 -04:00
use-algo-feed.ts Make a React context to be the source of truth for authenticated user (#675) 2022-07-21 00:38:26 -07:00
use-answers.ts More absolute imports (#156) 2022-05-09 09:04:36 -04:00
use-bets.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
use-charity-txns.ts Comment tips (attempt 2) (#539) 2022-06-17 22:28:16 -05:00
use-comments.ts Various group & mobile ux improvements 2022-06-24 12:16:37 -05:00
use-contract.ts Add Firebase schema collection helpers (kind of an RFC) (#583) 2022-06-29 12:21:40 -07:00
use-contracts.ts Groups (#510) 2022-06-22 11:35:50 -05:00
use-event.ts Fix line endings 2022-06-05 18:57:49 -07:00
use-focus.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
use-follows.ts Cache follows in localstorage 2022-07-16 14:58:25 -05:00
use-group.ts Groups contracts (#709) 2022-08-01 21:15:09 -06:00
use-has-created-contract-today.ts Set timeout to reset the free market banner (#367) 2022-06-01 07:54:48 -06:00
use-is-iframe.ts Show embed view of normal market links in iframes (#254) 2022-05-19 17:34:08 -07:00
use-is-visible.ts Infinite scroll: automatically load new page of results 2022-05-17 19:29:46 -04:00
use-liquidity.ts return creator liquidity after resolution 2022-07-09 13:53:50 -04:00
use-measure-size.ts Refactoring (#401) 2022-06-02 17:30:34 -07:00
use-notifications.ts Allow opening notifs in new tabs, return newest notifs 2022-07-19 13:58:51 -06:00
use-ping.ts usePing 2022-07-17 15:17:31 -05:00
use-preserve-scroll.ts Preserve scroll on back 2022-01-14 18:43:00 -06:00
use-propz.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
use-referrals.ts Referrals (#592) 2022-07-01 07:47:19 -06:00
use-save-referral.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
use-seen-contracts.ts Make a React context to be the source of truth for authenticated user (#675) 2022-07-21 00:38:26 -07:00
use-sort-and-query-params.tsx Use custom search index for search results. Hide sort options while there's a query. 2022-07-29 18:13:53 -07:00
use-state-check-equality.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
use-time-since-first-render.ts Track latency of feed and portfolio page. 2022-04-21 01:00:08 -05:00
use-tip-txns.ts Enable tipping on group chats w/ notif (#629) 2022-07-07 17:23:13 -06:00
use-tracking.ts Tracking (#511) 2022-06-15 16:34:34 -05:00
use-user-bets.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
use-user.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
use-users.ts migrate useUsers hook to react-query (#674) 2022-07-20 16:31:18 -07:00
use-warn-unsaved-changes.ts Warn about unsaved changes on create page. 2022-06-15 15:12:16 -05:00
use-window-size.ts Shorter graph on mobile 2022-01-18 17:10:21 -06:00