Commit Graph

2305 Commits

Author SHA1 Message Date
mantikoros
f2ab9454a5 bigger link icion 2022-08-04 22:15:42 -07:00
mantikoros
6ce8f237b2 eslint 2022-08-04 22:14:21 -07:00
mantikoros
2e51b42a8a Merge branch 'main' into share-row 2022-08-04 22:12:04 -07:00
mantikoros
935ded939a merge issue 2022-08-04 22:06:30 -07:00
mantikoros
f6b9f74328 share modal 2022-08-04 22:00:37 -07:00
mantikoros
8f17284707 merge conflict 2022-08-04 21:37:58 -07:00
James Grugett
277352a64e Revert "Switch comments/chat to rich text editor (#703)"
This reverts commit f52da72115.
2022-08-04 21:36:35 -07:00
Sinclair Chen
745d8e0faa Switch comments/chat to rich text editor (#703)
* Switch comments/chat to rich text editor

* Remove TruncatedComment

* Re-add submit on enter

* Insert at mention on reply

* Update editor style for send button

* only submit on enter in chat

* code review: refactor

* use more specific type for upload

* fix ESlint and errors from merge

* fix trigger on every render eslint warning

* Notify people mentioned in comment

* fix type errors
2022-08-04 21:36:35 -07:00
Sinclair Chen
3e4350cf27 Notify mentioned users on market publish (#683)
* Add function to parse at mentions

* Notify mentioned users on market create

- refactor createNotification to accept list of recipients' ids
2022-08-04 21:36:35 -07:00
Ian Philips
ccb147f689 Remove max height 2022-08-04 21:36:35 -07:00
Ian Philips
d84a34aca7 See challenges you've accepted too 2022-08-04 21:36:35 -07:00
Ian Philips
7f007baba4 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 21:36:32 -07:00
SirSaltyy
c871135260 500 mana email (#687)
* Create 500-mana.html

* Update 500-mana.html

Fixed typos and links not working

* Added "create a good market" guide

added page creating-market.html
For Stephen to set up condition (email 3 days after signing up)

* Update 500-mana.html

updated 500 Mana email (still need to make changes to create market guide)

* email changes

* sendOneWeekBonusEmail logic

* add dayjs as dependency

* don't use mailgun scheduling

Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-08-04 21:33:36 -07:00
James Grugett
31d7333ec7 Add lite market endpoint 2022-08-04 21:33:36 -07:00
mantikoros
b8bb184ff9 market share row 2022-08-04 21:30:15 -07:00
James Grugett
33906adfe4 Revert "Switch comments/chat to rich text editor (#703)"
This reverts commit f52da72115.
2022-08-04 16:49:59 -07:00
Sinclair Chen
f52da72115
Switch comments/chat to rich text editor (#703)
* Switch comments/chat to rich text editor

* Remove TruncatedComment

* Re-add submit on enter

* Insert at mention on reply

* Update editor style for send button

* only submit on enter in chat

* code review: refactor

* use more specific type for upload

* fix ESlint and errors from merge

* fix trigger on every render eslint warning

* Notify people mentioned in comment

* fix type errors
2022-08-04 16:34:04 -07:00
Sinclair Chen
edae709f5f
Notify mentioned users on market publish (#683)
* Add function to parse at mentions

* Notify mentioned users on market create

- refactor createNotification to accept list of recipients' ids
2022-08-04 15:35:55 -07:00
Ian Philips
912ccad530 Remove max height 2022-08-04 16:09:33 -06:00
Ian Philips
c93f9c5483 See challenges you've accepted too 2022-08-04 15:58:48 -06:00
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
Ian Philips
88c6c1f793 Spacing of switch button 2022-08-04 15:07:09 -06:00
Ian Philips
839f19520a Add challenge enabled flag 2022-08-04 15:05:50 -06:00
Ian Philips
313c10c33a Cleanup 2022-08-04 14:51:19 -06:00
Ian Philips
82f853e5fd Add back in contract title after winning 2022-08-04 14:50:06 -06:00
Ian Philips
d909c507cb Change titles around for current bet 2022-08-04 14:49:05 -06:00
Ian Philips
5890673b01 Changes to contract buttons and create challenge modal 2022-08-04 14:43:21 -06:00
mantikoros
eeb50fe54a eslint 2022-08-04 13:39:39 -07:00
mantikoros
1e0feae186 put your challenges first 2022-08-04 12:28:26 -07:00
mantikoros
40b7877f1d qr codes! 2022-08-04 12:25:51 -07:00
SirSaltyy
2d3ca47b52
500 mana email (#687)
* Create 500-mana.html

* Update 500-mana.html

Fixed typos and links not working

* Added "create a good market" guide

added page creating-market.html
For Stephen to set up condition (email 3 days after signing up)

* Update 500-mana.html

updated 500 Mana email (still need to make changes to create market guide)

* email changes

* sendOneWeekBonusEmail logic

* add dayjs as dependency

* don't use mailgun scheduling

Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-08-04 13:03:02 -05:00
Ian Philips
8b4bd64421 Fix spacing 2022-08-04 11:05:47 -06:00
Ian Philips
cd4051c082 Link spacing 2022-08-04 11:02:02 -06:00
Ian Philips
9c4191dc79 Make copying easy on mobile 2022-08-04 10:55:37 -06:00
Ian Philips
7cc4710ab1 Restyle challenges list, cache contract name 2022-08-04 10:25:35 -06:00
Ian Philips
5d0d2d0b46 Orientation 2022-08-04 09:41:10 -06:00
Ian Philips
ca726da4a9 Spacing 2022-08-04 09:39:35 -06:00
Ian Philips
c361dc22e7 Absolutely position 2022-08-04 08:22:11 -06:00
Ian Philips
d46c56a994 Columnize the user areas in preview link too 2022-08-04 08:13:21 -06:00
Ian Philips
a38e06c16c Lint 2022-08-04 06:55:22 -06:00
Ian Philips
10e6f86219 Add FAQ section 2022-08-04 06:38:59 -06:00
Ian Philips
a528e75f9a Add helper text 2022-08-04 06:10:53 -06:00
Ian Philips
aad49e7032 Center title 2022-08-04 05:58:14 -06:00
Ian Philips
4dbabd2a77 Add challenge slug to bet and filter by it 2022-08-04 05:53:35 -06:00
Ian Philips
ee3b0b32e6 Fix main merge 2022-08-04 05:14:16 -06:00
James Grugett
7e46188107 Add lite market endpoint 2022-08-03 22:21:22 -07:00
Ian Philips
625c8944bd Merge branch 'main' into challenges 2022-08-03 20:47:26 -06:00
Ian Philips
d83e103fab Ignore clicks when hidden 2022-08-03 18:42:40 -06:00
Ian Philips
5bc905b358 Bottom padding works on mobile, broken on desktop :( 2022-08-03 16:42:51 -06:00
Ian Philips
b4c6b99e09 Remove bottom bar height correction 2022-08-03 16:38:00 -06:00