manifold/web/lib/firebase
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
..
answers.ts More absolute imports (#156) 2022-05-09 09:04:36 -04:00
api.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
auth.ts Cache notifs in local, gives instant load of old notifs (#662) 2022-07-19 09:04:47 -06:00
bets.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
challenges.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
comments.ts Groups chat ux (#713) 2022-08-03 15:38:35 -06:00
contracts.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
groups.ts Groups contracts (#709) 2022-08-01 21:15:09 -06:00
init.ts Move getStorage() into init.ts after initializeApp() is called. 2022-07-14 11:44:52 -05:00
liquidity.ts Liquidity withdrawal (#457) 2022-06-08 13:00:49 -05:00
manalinks.ts Add Firebase schema collection helpers (kind of an RFC) (#583) 2022-06-29 12:21:40 -07:00
notifications.ts Use react-query to cache notifications (#625) 2022-07-07 14:41:50 -06:00
server-auth.ts Properly handle expired ID token cookie, be robust to errors (#671) 2022-07-19 20:08:33 -07:00
stats.ts Compute stats in Firebase instead of Vercel (#584) 2022-06-26 14:42:42 -07:00
storage.ts Image compression (#689) 2022-07-25 12:51:51 -07:00
tracking.ts Make a React context to be the source of truth for authenticated user (#675) 2022-07-21 00:38:26 -07:00
txns.ts Enable tipping on group chats w/ notif (#629) 2022-07-07 17:23:13 -06:00
users.ts Fix group referrals not working 2022-08-02 17:18:08 -06:00
utils.ts Add Firebase schema collection helpers (kind of an RFC) (#583) 2022-06-29 12:21:40 -07:00