Keri Warr
cfeb50826c
Add endpoint for reading currently authenticated user ( #710 )
2022-08-02 00:06:23 -07:00
Ian Philips
0b06ded5e5
Groups contracts ( #709 )
...
* Update group links in trigger and api
* Remove extra call during creation
* Remove grouplinks on frontend
* Deserialize
* Consolidate logic
* Move function locally
2022-08-01 21:15:09 -06:00
mantikoros
76dd07f82b
update question button
2022-08-01 17:44:24 -07:00
mantikoros
7acac0a5d6
beautify accept bet screen
2022-08-01 17:11:02 -07:00
mantikoros
48435c91ad
button: gradient background, 2xl size
2022-08-01 17:10:33 -07:00
Marshall Polaris
ec84245dd4
Add some API endpoints for reading group info ( #707 )
2022-08-01 14:59:45 -07:00
Ian Philips
89e8f7a4dd
Challenge card styling
2022-08-01 12:12:00 -06:00
Ian Philips
3634168a48
Challenge card styling
2022-08-01 11:16:26 -06:00
Ian Philips
216020d9f0
Challenge card styling
2022-08-01 10:54:11 -06:00
Ian Philips
086672dd4e
Don't remove prob
2022-08-01 10:33:37 -06:00
Ian Philips
ff6fa9db2b
Add in challenge parts to template and url
2022-08-01 09:49:57 -06:00
Ian Philips
0819c3918f
Most popular=> Trending
2022-08-01 09:03:46 -06:00
ingawei
ae2e7dfe30
noobify welcome demo ( #699 )
...
* noobify welcome
* also beginning to add greyscale color scheme
2022-07-30 02:50:03 -05:00
James Grugett
87f6949d80
Use custom search index for search results. Hide sort options while there's a query.
2022-07-29 18:13:53 -07:00
James Grugett
003301762c
Ignore filter on contract status when searching
2022-07-29 17:37:53 -07:00
James Grugett
d6cf4332da
Delete query param when empty
2022-07-29 17:37:34 -07:00
James Grugett
be01a15230
Refactor search to not use Algolia components ( #705 )
...
* In progress refactor to not use Algolia components
* Cleanup
* Only query when necessary
* Read and update url params for query and sort
* Don't push router
* Don't update url if using default sort
* Add popstate listener to improve home navigation
* Remove console.logs
2022-07-29 19:08:51 -05:00
mantikoros
079a2a3936
eslint
2022-07-29 16:06:22 -07:00
mantikoros
5812d8ed2e
manalink qr code
2022-07-29 16:02:18 -07:00
mantikoros
779b6dfc0c
manalink referrals
2022-07-29 15:09:48 -07:00
mantikoros
bdea739c55
multiple choice contract card
2022-07-29 09:20:49 -07:00
Austin Chen
693eb96d23
Include groupId when duplicating markets
2022-07-29 09:20:01 -07:00
mantikoros
ada3f0787c
create: add bottom margin
2022-07-28 11:44:07 -07:00
Ian Philips
d3da6de5dd
Groups default open
2022-07-28 11:37:26 -07:00
marsteralex
aa6d0d1750
add beasts ( #700 )
...
* fix https
* add beasts
* Remove extra file
* Prettier-ify code
* Prettier-ify
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-07-28 11:31:58 -07:00
Ian Philips
05b0ca5cdb
I want to see others' referrals
2022-07-28 11:16:48 -07:00
mantikoros
b6a70641a0
fix modal
2022-07-27 19:51:34 -07:00
mantikoros
1aaae93113
Multiple choice markets ( #698 )
...
* multipe choice answers
* create multiple choice cloud function
* multi choice market page
* show outcome '0'
* stats: multi choice type
* update place bet
* answer doc id = outcome
* update resolve market
* prettier
* fix
* fix resolution
2022-07-27 21:40:33 -05:00
James Grugett
b1c4f018f9
Expose cancel bet api
2022-07-27 17:38:25 -07:00
mantikoros
c0a5b6fd1c
share text
2022-07-26 18:23:00 -07:00
mantikoros
c8cf94f1ff
challenge form
2022-07-26 18:05:04 -07:00
Ian Philips
5d48530421
Remove s from property, replace prob with outcome
2022-07-26 18:03:51 -07:00
Ian Philips
dfd6831717
Remove user name
2022-07-26 17:51:49 -07:00
Ian Philips
d3a623e7c2
Use challenge creator as avatar
2022-07-26 17:48:36 -07:00
Ian Philips
ad7e3a46be
Remove other window ref
2022-07-26 17:38:36 -07:00
Ian Philips
356db47760
Use env domain
2022-07-26 17:32:07 -07:00
mantikoros
043717b399
challenge button styling
2022-07-26 17:21:31 -07:00
Ian Philips
8db67ad6a4
Get challenge on server
2022-07-26 17:19:47 -07:00
Ian Philips
cf653bd567
New card gen attempt
2022-07-26 17:11:50 -07:00
Ian Philips
013ff1d941
Show api error on create contract
2022-07-26 16:44:51 -07:00
Ian Philips
f32e995baa
Show referrals banner on user-page
2022-07-26 15:24:16 -07:00
Ian Philips
a28b3cad77
Change challenge text
2022-07-26 14:31:41 -07:00
Ian Philips
ce418d51a7
Edit og card props
2022-07-26 14:15:45 -07:00
Marshall Polaris
b506e96548
Implement "sell all shares" functionality in sellshares
and expose API ( #696 )
...
* Change `sellshares` to be able to sell all shares
* Sell all shares properly on bet panel UI
* Add API route for selling shares, document
2022-07-26 12:47:19 -07:00
Ian Philips
ffaca099cc
elim lib
2022-07-26 12:39:52 -07:00
Ian Philips
8507e4e1e3
Opengraph preview [WIP]
2022-07-26 12:38:16 -07:00
Marshall Polaris
ad46a60c4f
Clean up rendering of user bets list ( #694 )
...
* Clean up crufty markup in bets list
* Don't render bet tables in bets list until expanded
* Don't look up unfilled bets for every sell button
2022-07-26 00:10:22 -07:00
Marshall Polaris
7e4f4b9a87
Clean up a bunch of crufty stuff on user comments list ( #693 )
2022-07-26 00:10:11 -07:00
Ian Philips
af25a6c795
Allow adding multiple contracts to group in modal
2022-07-25 18:27:43 -07:00
mantikoros
3107c8fe30
large bet warning
2022-07-25 18:11:29 -07:00
mantikoros
24124ac86a
show sign up button on mobile on market page
2022-07-25 17:45:42 -07:00
Marshall Polaris
06948bb98b
Make setNotificationsAsSeen
return a promise ( #692 )
2022-07-25 16:37:23 -07:00
Marshall Polaris
64462d6ab4
Make tabs components better ( #691 )
...
* Make better tabs components, apply to user page
* Remove fishy unused href property from tabs
* Remove tab ID property
* Clean up crufty markup in tabs component
* Fix naming to be right (thanks James!)
2022-07-25 13:27:09 -07:00
TrueMilli
e4f8c14fab
Image compression ( #689 )
...
* added image compression
* removed TODO
2022-07-25 12:51:51 -07:00
mantikoros
d8f96876a0
PlayMoneyDisclaimer copy; hide order book for signed out users
2022-07-25 12:29:29 -07:00
mantikoros
d82c7d7f3e
“added liquidity” ⇒ “added a subsidy”
2022-07-25 12:22:38 -07:00
mantikoros
d982d0332c
play money wording
2022-07-24 23:38:57 -07:00
mantikoros
df91310d0f
PlayMoneyDisclaimer; hide limit orders for signed out users; infobox styling
2022-07-24 23:28:05 -07:00
mantikoros
e389f4cc3b
referrals text
2022-07-24 22:50:33 -07:00
Marshall Polaris
a1d5d161dd
Revamp backend code to support good local function development ( #657 )
...
* Move concurrently dep upwards
* Add express as explicit dependency
* Accept just one HTTP method per endpoint
* Fix endpoint option coalescing
* Expressification of cloud functions
* Nicer logging of API requests
* Refactor web package.json
* Add ts-node and nodemon to dev dependencies, bring back cors
* Add scaffolding to point dev server at local functions
* Enable emulator in dev server scaffolding
* Fix up a little stuff I broke
2022-07-24 00:26:38 -07:00
Austin Chen
6ad43b02c7
Show the number of comments and bets
2022-07-24 00:11:35 -07:00
Sinclair Chen
6c89e5f18f
Add @ mentions to editor ( #670 )
...
* Add @ mentions to editor
* Fix mention list not loading
* Sort mention list by prefix, follow count
* Render at mention with Linkify component
- mentions are now Next <Link> rather than <a>
- fix bug where editor.getText() returns [object Object] for mentions
- fix mention rendering for posted markets
2022-07-23 20:37:34 -07:00
Ian Philips
f4e4582913
Add group slug during create
2022-07-23 15:04:11 -06:00
James Grugett
64f2dbbe71
Fix unused var
2022-07-23 15:26:08 -05:00
James Grugett
f43df42449
Change card to show volume instead of pool
2022-07-23 15:23:47 -05:00
James Grugett
71b20eb61a
Tweak visually hidden style
2022-07-23 15:10:54 -05:00
James Grugett
7f42796724
Update algolia filters to use groupLinks.slug isntead of deprecated groupSlugs field.
2022-07-23 15:02:08 -05:00
Austin Chen
71880dfc98
Add a toolbar for images and iframes ( #688 )
...
* Add a toolbar for images and iframes
* Insert embed code via modal
2022-07-23 09:19:49 -07:00
James Grugett
408027dd6a
Fix bug
2022-07-22 22:44:21 -05:00
James Grugett
2116b86aec
Fix infinite loop in numeric limit bet
2022-07-22 21:03:08 -05:00
mantikoros
776e0cd86d
challenge button (WIP)
2022-07-22 17:48:28 -05:00
Ian Philips
5f074206de
Backfill and forward fill contracts with group info ( #686 )
...
* Backfill and forward fill contracts with group info
* No nested queries :(
* Fix filter
* Pass empty arrays instead of undefined
2022-07-22 16:28:53 -06:00
mantikoros
5252d63ef7
don't show challenge if not binary or if resolved
2022-07-22 17:27:10 -05:00
James Grugett
5899c1f3c0
Fix lints
2022-07-22 16:30:07 -05:00
James Grugett
135160dd92
Remove custom placeholders. Just show '0' for limit inputs
2022-07-22 16:18:36 -05:00
James Grugett
a1d51e3778
Update labels for numeric market outcomes
2022-07-22 16:07:59 -05:00
James Grugett
f800570845
Improve range limit order UI
2022-07-22 16:03:55 -05:00
Ian Philips
63d8e6739b
Add title, mobile flex
2022-07-22 13:53:19 -06:00
James Grugett
d3d472f5d2
Hide "Your bets" when signed out. "For you" becomes "Featured" when signed out.
2022-07-22 14:50:29 -05:00
Ian Philips
6fb9849007
Allow to add/remove from groups on market page ( #685 )
...
* Allow to add/remove from groups on market page
* remove lib
* Fix Sinclair's relative import from May
* Clean
2022-07-22 11:34:10 -06:00
mantikoros
163c990e9d
"bettors" => "traders"
2022-07-22 12:03:33 -05:00
mantikoros
c3a0326b1e
homepage seo
2022-07-22 12:01:52 -05:00
mantikoros
e13f4d3d4d
charity description
2022-07-22 11:59:25 -05:00
mantikoros
2c80133856
add SEO tags to everything
2022-07-22 11:56:03 -05:00
mantikoros
de53a13c84
fix referrals seo
2022-07-22 11:25:48 -05:00
mantikoros
624df76393
search: sort by liquidity; remove oldest
2022-07-22 11:24:25 -05:00
Austin Chen
7cace82b83
Render iframes inside the rich text editor ( #682 )
...
* Try embedding iframes in tiptap
* When iframe code is pasted, inject it into the editor
* Code cleanups and comments
* Remove clsx dependency
Cuz it doesn't exist in `common` anyways
* Rename to tiptap-iframe
2022-07-22 09:12:23 -07:00
Ian Philips
727b3ea4e0
Button on contract page
2022-07-22 07:56:19 -06:00
Ian Philips
595c3fddd2
Cleanup
2022-07-22 07:53:56 -06:00
Marshall Polaris
08fd27cb26
Make main login/logout buttons reload server side props ( #677 )
...
* Set cookies in auth handler before looking up user
* Make sidebar logout button trigger SSR reload
* Make sidebar login button trigger SSR reload
2022-07-22 00:03:16 -07:00
James Grugett
3b953a7c21
Range limit orders ( #655 )
...
* Prototype range limit order UI
* Conditionally show YES or NO max payout
* Range bet executes both bets immediately.
* Validate lowLimitProb < highLimitProb
* Show error if low limit is higher than high limit
* Update range order UI
* Revert "Validate lowLimitProb < highLimitProb"
This reverts commit c261fc2743
.
* Revert "Range bet executes both bets immediately."
This reverts commit 30b95d75d9
.
* Buy panel only non-limit orders
* Bet choice => outcome
* More iterating on range UI
* betChoice => outcome
* Lighten placeholder text
2022-07-22 00:57:56 -05:00
James Grugett
23b704ffe0
Fix excessive bottom margin on chart
2022-07-21 21:51:20 -05:00
James Grugett
ca5ca9b2b8
Refactor: Move ContractLeaderboard to its own file
2022-07-21 21:39:06 -05:00
ingawei
7474c0a0fd
Inga/manalinks pagination bug ( #678 )
...
* manalink pagination fix
* also fixed new manalink timing out bug
2022-07-21 20:22:17 -05:00
mantikoros
cded3f50ff
"question" => "market" (controversial!)
2022-07-21 18:17:02 -05:00
Ian Philips
b3d265be48
Remove peer pill
2022-07-21 16:30:58 -06:00
mantikoros
80b27fdf6e
Put leadeboards back in sidebar
2022-07-21 17:23:55 -05:00
Ian Philips
8017f83735
Probability of bet is set to market
2022-07-21 16:16:35 -06:00
Ian Philips
3681d696e9
remove lib refs
2022-07-21 15:48:32 -06:00
Ian Philips
71d8ffcee5
pretty
2022-07-21 15:43:51 -06:00