Sinclair Chen
9a11f55762
Rich content ( #620 )
...
* Add TipTap editor and renderer components
* Change market description editor to rich text
* Type description as JSON, fix string-based logic
- Delete make-predictions.tsx
- Delete feed logic that showed descriptions
* wip Fix API validation
* fix type error
* fix extension import (backend)
In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`
Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *
If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.
* Stop load on fail create market, improve warning
* Refactor editor as hook / fix infinite submit bug
Move state of editor back up to parent
We have to do this later anyways to allow parent to edit
* Add images - display, paste + uploading
* add uploading state of image
* Fix placeholder, misc styling
min height, quote
* Fix appending to description
* code review fixes: rename, refactor, chop carets
* Add hint & upload button on new lines
- bump to Tailwind 3.1 for arbitrary variants
* clean up, run prettier
* rename FileButton to FileUploadButton
* add image extension as functions dependency
2022-07-13 11:58:22 -07:00
mantikoros
83d8f18bd7
fix bet summary selling
2022-07-13 13:20:53 -05:00
James Grugett
50eee33a6e
Redeem shares of makers after matching with limit bets
2022-07-13 12:51:19 -05:00
James Grugett
f1eea66588
Show all limit orders in a tab
2022-07-13 12:15:00 -05:00
mantikoros
737d803903
bet row: default to YES
2022-07-13 11:20:29 -05:00
Ian Philips
18abad38b6
Unused var
2022-07-13 09:13:34 -06:00
Ian Philips
cc1431da60
Disable enter submit on mobile on group chat
2022-07-13 09:12:43 -06:00
Ian Philips
490eabf977
Revert "Revert "Disable enter to submit on mobile group chat""
...
This reverts commit e3f7f0efda
.
2022-07-13 09:08:32 -06:00
Ian Philips
e3f7f0efda
Revert "Disable enter to submit on mobile group chat"
...
This reverts commit b3f4c2f009
.
2022-07-13 08:44:27 -06:00
Ian Philips
b3f4c2f009
Disable enter to submit on mobile group chat
2022-07-13 08:34:14 -06:00
Ian Philips
9e90f849a8
Show group scrollbars only when needed
2022-07-13 07:57:51 -06:00
Ian Philips
96a378f25f
Handle free response resolution
2022-07-13 07:41:58 -06:00
mantikoros
1f2bdf40d0
bet row: fix labels
2022-07-13 00:07:12 -05:00
Austin Chen
10c510fc6b
Feature Wild Animal Initiative
2022-07-12 18:27:22 -07:00
mantikoros
68343701ca
answer bet panel: scroll up on ios
2022-07-12 17:47:48 -05:00
mantikoros
5c166b9dd5
bet row: 'higher' 'lower' labels
2022-07-12 17:47:28 -05:00
mantikoros
38aad40569
Simplify bet buttons ( #644 )
...
* mono-button bet row
* "bet yes" => "yes"
* prettier
2022-07-12 17:34:10 -05:00
mantikoros
dd9fdc381f
track limit orders
2022-07-12 16:55:00 -05:00
mantikoros
24896e44b4
"limit bet" => "limit order"
2022-07-12 16:46:03 -05:00
Marshall Polaris
5fd42df1ed
Don't run share redemption after adding liquidity ( #631 )
2022-07-12 12:36:31 -07:00
Marshall Polaris
43b30e6d04
Don't "warm up" resolveMarket anymore ( #638 )
2022-07-12 12:36:10 -07:00
James Grugett
0882f1c0d6
Remove top Pagepadding on small screens
2022-07-11 19:07:37 -05:00
James Grugett
b8d7c2ee17
Size group chat window & nav bar list of groups precisely. Update Page margin/padding.
2022-07-11 18:40:25 -05:00
James Grugett
24fac1fc0b
Fix erronous 0 prob shown in table
2022-07-11 15:53:13 -05:00
Ian Philips
ed9a2c0d35
Set min height for group chat
2022-07-11 14:52:16 -06:00
James Grugett
90a75985dd
In market bets tab, show limit orders' total order amount
2022-07-11 11:46:09 -05:00
mantikoros
61300e93a4
more validation for creating numeric markets
2022-07-11 11:38:51 -05:00
Ian Philips
7b60cc63ce
Fix annoying create description scrolling on firefox
2022-07-11 09:56:10 -06:00
James Grugett
9b252b93ab
Fix fee calculation in bet panel tooltip
2022-07-11 10:54:37 -05:00
James Grugett
dd6f5e5ef4
Show better limit order stats in bets table
2022-07-11 10:49:36 -05:00
Ian Philips
52d688885d
Group income notifs by source title
2022-07-11 08:11:52 -06:00
Ian Philips
86c256cbf7
Unused var
2022-07-11 08:01:26 -06:00
Ian Philips
a2a08b90ff
Show numeric resolution contract value
2022-07-11 07:51:48 -06:00
James Grugett
1e68267e8e
Use relative import
2022-07-10 23:09:46 -05:00
James Grugett
098f20ccad
Fix limit bet filter to exclude cancelled and filled bets
2022-07-10 22:28:29 -05:00
James Grugett
89d48d6c34
Use hook to fetch user bets
2022-07-10 22:28:04 -05:00
James Grugett
99fcfa6be7
Add portfolio filter for limit bets.
2022-07-10 22:15:07 -05:00
James Grugett
9586e81e95
Show limit bets in bets table
2022-07-10 22:07:42 -05:00
James Grugett
fd7384a099
Hide referrals button on user page
2022-07-10 19:59:23 -05:00
James Grugett
67edc7b639
UserPage: Load user with getStatic props
2022-07-10 19:42:34 -05:00
James Grugett
5e1ed17cdf
Load contracts at UserPage top level instead of in BetsList
2022-07-10 19:19:35 -05:00
James Grugett
f294189e20
Refactor notifications to use Pagination component
2022-07-10 18:50:59 -05:00
James Grugett
162e73912e
Paginate bets list
2022-07-10 18:41:33 -05:00
James Grugett
5c6a143614
Change portfolio graph option labels
2022-07-10 18:26:06 -05:00
James Grugett
78ceac0659
Don't load user bets twice 👀
2022-07-10 18:22:21 -05:00
Marshall Polaris
4700ceb14c
Refactor some backend-related stuff ( #639 )
...
* web/lib/firebase/api-call -> common/api, web/lib/firebase/api
* Reuse `APIError` type in server code
* Reuse `getFunctionUrl` in server code
2022-07-10 15:03:15 -07:00
Marshall Polaris
6462d4a2ed
Migrate createUser function to v2 ( #633 )
2022-07-10 14:02:32 -07:00
Marshall Polaris
eb9b14d6d5
Migrate unsubscribe function to v2 ( #637 )
...
* Migrate unsubscribe function to v2
* Move Stripe import because I forgot to do it before
2022-07-10 13:46:00 -07:00
James Grugett
83c5f9b323
Fix unused var
2022-07-10 14:55:10 -05:00
James Grugett
f2df32e710
PseudoNumeric markets store resolveValue in resolved notification and render it
2022-07-10 14:52:31 -05:00