James Grugett
c35d0a8bc6
Split out "Your bets" from "For you"
2022-07-20 15:30:07 -05:00
James Grugett
44afa92b58
Turn off for you by default
2022-07-20 15:05:48 -05:00
James Grugett
e45d81513c
Don't filter by personal unless pills enabled
2022-07-20 14:49:16 -05:00
Sinclair Chen
0870397fea
Show line in menu on mobile
2022-07-20 12:36:23 -07:00
Sinclair Chen
202132868f
lint and prettier
2022-07-20 12:35:04 -07:00
mantikoros
d65a60984d
make group invite link more prominent
2022-07-20 11:45:53 -05:00
mantikoros
45b883477d
generic copy link button
2022-07-20 11:42:49 -05:00
mantikoros
b60892fada
group 'rankings' => 'leaderboards' (friendlier, more consistent terminology)
2022-07-20 11:15:55 -05:00
Marshall Polaris
c8361f1748
Make it so that if you sign in on / you get redirected to /home ( #672 )
2022-07-20 01:59:14 -07:00
mantikoros
b517f7cfa7
eslint; remove unused tags import
2022-07-20 00:35:27 -05:00
mantikoros
2b13085dff
search: use default categories for non-authed users
2022-07-20 00:23:00 -05:00
mantikoros
0013f76873
search defaults to 'for you'; hide pills for additional filters
2022-07-20 00:03:03 -05:00
mantikoros
83e9408d69
remove tags from info panel
2022-07-19 23:48:09 -05:00
Marshall Polaris
bacd546e5d
Fix unused import from Ian's code
2022-07-19 20:10:54 -07:00
Marshall Polaris
61094ea17d
Properly handle expired ID token cookie, be robust to errors ( #671 )
2022-07-19 20:08:33 -07:00
James Grugett
b2c89d36cf
Home: Show pills that are groups (in addition to All, For you)
2022-07-19 18:23:52 -05:00
mantikoros
b48e910f70
fix areaBaselineValue
2022-07-19 18:20:03 -05:00
mantikoros
bab828412b
group: add question button
2022-07-19 18:16:03 -05:00
Ian Philips
4aface583d
Remove pesky loading spinner
2022-07-19 16:41:11 -06:00
Ian Philips
2152e5286a
Score & sort by unique bettors in last 3 days
2022-07-19 16:29:41 -06:00
James Grugett
58d6286361
Fix chart area extending into labels below
2022-07-19 17:22:58 -05:00
James Grugett
6124ea01f6
Fix a DOM error in console
2022-07-19 16:57:32 -05:00
Marshall Polaris
6d3490cd68
Turn off Next.js font inlining ( #668 )
2022-07-19 14:20:23 -07:00
James Grugett
af6552958f
Show all-time profit on UserPage
2022-07-19 16:05:50 -05:00
Marshall Polaris
f9aab39039
Clean up font loading and see if it fixes our problem ( #667 )
2022-07-19 13:57:32 -07:00
James Grugett
fc9e261601
Fix build
2022-07-19 15:45:47 -05:00
James Grugett
e9ad30cc74
Increase number of contracts shown in bets list
2022-07-19 15:43:37 -05:00
James Grugett
2684c8bcca
Default to weekly leaderboard
2022-07-19 15:39:40 -05:00
James Grugett
6c070464dd
Use static props to load leaderboard fast
2022-07-19 15:39:17 -05:00
Ian Philips
b5ef7490c3
NotificationSettings to its own file
2022-07-19 14:24:36 -06:00
Ian Philips
6dcad6225b
Next/Previous => Older/Newer
2022-07-19 14:16:20 -06:00
James Grugett
b6c8390a46
Show order book button even on Quick bet
2022-07-19 15:01:15 -05:00
Ian Philips
a1e03c3a25
Allow opening notifs in new tabs, return newest notifs
2022-07-19 13:58:51 -06:00
James Grugett
74760b1062
Reorder orderbook columns
2022-07-19 14:53:33 -05:00
Marshall Polaris
61cbb07bd5
Fix some broken stuff on the homepage contract search routing ( #664 )
...
* Use Next router more appropriately
* Replace instead of push when modifying search query params
2022-07-19 12:33:53 -07:00
mantikoros
12567074cc
fix log scale graph
2022-07-19 12:31:26 -05:00
Marshall Polaris
0d282a962c
Don't setQuery
on group selector component during initial render ( #660 )
2022-07-19 09:35:43 -06:00
Ian Philips
a203f43142
Cache all notifs
2022-07-19 09:29:12 -06:00
Ian Philips
c236eb15b1
Cache notifs in local, gives instant load of old notifs ( #662 )
...
* Cache notifs in local, gives instant load of old notifs
* Small refactor, add ss auth
* unused vars
* Add back in replaceAll
* Save all notifs
* Memoize paginated notifs
* Replace all => replace with regexp
2022-07-19 09:04:47 -06:00
Austin Chen
2bae7dc200
Fix error on no portfolio history
2022-07-19 02:54:05 -07:00
Marshall Polaris
55775d9d37
Also handle case where there are no cookies yet
2022-07-19 01:35:34 -07:00
Marshall Polaris
c256e9c0cc
Attempt to fix up overly sensitive cookie parsing
2022-07-19 01:33:00 -07:00
Austin Chen
f6d2c56e43
Fix /create
2022-07-19 01:23:36 -07:00
Marshall Polaris
a103a2ee2c
Initial draft of Vercel Firebase auth ( #593 )
...
* Set a cookie with an up-to-date Firebase ID token
* Implement server-side authentication cookie reading logic
* Change index page to redirect for authed users
* No branch necessary for logged in users on index page
* Add helpers for creating server-side redirects
* Add some common sense redirects
2022-07-19 00:50:11 -07:00
Austin Chen
d1ad0716c8
Fix import
2022-07-19 00:34:53 -07:00
Austin Chen
b501776e33
Remove quadratic matching from /charity
2022-07-19 00:20:18 -07:00
mantikoros
8793288dc8
contract description: less prominent edit buttons
2022-07-18 19:17:45 -05:00
Marshall Polaris
f2a7a145e4
Add React key prop to homepage filter widget ( #661 )
2022-07-18 18:37:46 -05:00
James Grugett
61a21d34b2
Order limit bets in sorted order on mobile
2022-07-18 18:19:30 -05:00
Austin Chen
47a27bf3fe
Label "Since June" for users who had an account prior to 2022-06-20 ( #659 )
2022-07-18 15:55:17 -07:00
Sinclair Chen
781de79b97
Make description text style more consistent
...
- links and blockquotes have light font weight, like other text
- font size in editor matches font size in description
- old descriptions have same style as new
- placeholder text matches editor style
- decrease line-height a bit
2022-07-18 14:03:05 -07:00
Ian Philips
e2a72dd0a2
Fix /create date input
2022-07-18 15:01:50 -06:00
mantikoros
65e4f24531
groups: only change layout if sidebar chat, smaller leave button
2022-07-18 12:55:49 -05:00
Ian Philips
39c38a669e
Referrals bug fix and attribute group
2022-07-18 10:40:44 -06:00
Ian Philips
db537a97ba
Allow click on group card avatar
2022-07-18 08:35:59 -06:00
Ian Philips
229d270d25
Set max width on avatars
2022-07-18 08:34:20 -06:00
Ian Philips
eb4906cb97
Remove query from notif isSeen logic
2022-07-18 08:18:40 -06:00
Ian Philips
906cfc29c8
Endswith=>includes to handle sort query in group chat
2022-07-18 07:59:21 -06:00
Ian Philips
a247e6d0de
Default to created time if no chat activity
2022-07-18 07:38:02 -06:00
Austin Chen
f393246e4f
Let users edit descriptions and questions ( #654 )
...
* Use rich text editor on the description
* Write a new line to description when the question is changed
* Stop showing categories
* Allow anyone to edit their own question
2022-07-17 22:22:44 -07:00
mantikoros
281b712258
move group chat to sidebar on desktop
2022-07-17 15:56:39 -05:00
mantikoros
b5f0b58898
usePing
2022-07-17 15:17:31 -05:00
mantikoros
07bfdadd25
remove OnlineUserList b/c of responsiveness issues
2022-07-17 14:40:21 -05:00
James Grugett
c1d77f48e3
Fix tag filter
2022-07-16 18:56:21 -05:00
James Grugett
1edc1993e1
Cache follows in localstorage
2022-07-16 14:58:25 -05:00
Austin Chen
60f4e43cf3
Prettier fix
2022-07-16 12:51:22 -07:00
James Grugett
7feacbd961
Tweak wording
2022-07-16 14:37:03 -05:00
James Grugett
7b6344d976
Order book button opens full table of limit orders in dialog
2022-07-16 14:21:25 -05:00
Austin Chen
32cb19d01f
Randomize image upload path to avoid collisions
2022-07-16 11:39:58 -07:00
Austin Chen
1bc49dc0a2
Tweak placeholder copy
2022-07-16 11:39:58 -07:00
Austin Chen
349772a2f9
Description typography: font-light, text-base
2022-07-16 11:39:58 -07:00
Austin Chen
916618be31
Disable quotation marks in quotes
2022-07-16 11:39:58 -07:00
ingawei
7d24a3e4a2
Inga/manalink bug fixes ( #653 )
...
* fixed manalinks bug of claiming own manalink, and also rerouting to home upon claiming if not logged in
* no more multiple hardcoded manalink messages
2022-07-15 20:42:37 -05:00
Ian Philips
eed7990c3c
Lighten unseen notifs
2022-07-15 16:57:58 -06:00
Sinclair Chen
2543bdcdfc
refactor string matching ( #649 )
2022-07-15 14:16:00 -07:00
Marshall Polaris
38c26f8b5c
Add API endpoints for fetching user info by username and ID ( #652 )
...
* Add an API endpoint for fetching user info by username
* Add endpoint for querying users by ID, too
* Add very simple docs about user APIs
2022-07-15 14:03:34 -07:00
James Grugett
feba0b58ee
Turn search filters into pills
2022-07-15 15:06:33 -05:00
Ian Philips
a6cbb6b759
Small notifications ux improvements
2022-07-15 11:53:30 -06:00
James Grugett
1ca73ecd4d
Add size prop to button
2022-07-15 12:24:07 -05:00
James Grugett
ec682788e0
Put back old Yes/No bet buttons
2022-07-15 11:03:42 -05:00
Ian Philips
0be38c4e09
Online users list ui, remove from followers list
2022-07-15 09:32:03 -06:00
Ian Philips
50447cf8d3
Unused vars
2022-07-15 08:48:35 -06:00
Ian Philips
d54a72c431
Remove extra comment
2022-07-15 08:47:19 -06:00
Ian Philips
dd9d24e657
Show online users on desktop
2022-07-15 08:45:52 -06:00
Ian Philips
2610f32521
Correct my username
2022-07-15 07:35:17 -06:00
Ian Philips
47579e8509
Fix network spam with modified deps array
2022-07-15 07:28:04 -06:00
Ian Philips
9c49f2e2d7
Revert "Revert "Order groups by most recent chat activity ( #650 )""
...
This reverts commit 17c9beca28
.
2022-07-15 06:52:08 -06:00
James Grugett
36851ae9f9
Exclude more mobile options from private instances
2022-07-15 00:45:50 -05:00
James Grugett
64c83c4ef0
Don't show portfolio no history message
2022-07-14 23:56:30 -05:00
James Grugett
590c63e911
Small fixes for limit order table
2022-07-14 21:27:00 -05:00
James Grugett
17c9beca28
Revert "Order groups by most recent chat activity ( #650 )"
...
This reverts commit 6e1aa4b0f4
.
2022-07-14 20:51:38 -05:00
ingawei
2f02e4d3e0
minor tweaks of manalink form ( #647 )
...
* minor tweaks of manalink form, adding M$ in front of amount and changing expire time to dropdown instead of calendar selection
* made minimum for uses and amount 1, it seems otherwise it does not generate a link at all
2022-07-14 19:43:06 -05:00
Ian Philips
44d993a588
Bold group for old chat notif
2022-07-14 17:03:08 -06:00
Ian Philips
6e1aa4b0f4
Order groups by most recent chat activity ( #650 )
...
* Order groups by most recent chat activity
* Use group chat slug constant
* Match source slug and isSeenOnHref
* Listen for group member changes
2022-07-14 16:46:45 -06:00
James Grugett
be64bf71a7
Limit the amount of bets and comments sent to the client through getStaticProps
2022-07-14 14:57:17 -05:00
Ian Philips
d9279e42cc
Don't collapse/expand notifs with ctrl/cmd click
2022-07-14 11:56:40 -06:00
Ian Philips
6a28643215
Notifications ux
2022-07-14 11:48:04 -06:00
Ian Philips
27a544205f
Optimistically join groups
2022-07-14 11:09:28 -06:00
James Grugett
8daf1b2ba8
Return undefined instead of null for useUserById(undefined)
2022-07-14 12:03:29 -05:00
Sinclair Chen
a93e64c830
fix: let useUserById accept undefined userId ( #648 )
2022-07-14 12:02:46 -05:00
James Grugett
0c328bc398
Move getStorage() into init.ts after initializeApp() is called.
2022-07-14 11:44:52 -05:00
Ian Philips
4eba3c8124
Try new way of calculating rankings for large groups
2022-07-14 09:09:12 -06:00
Ian Philips
709ce5377a
Remove extra key assignment
2022-07-14 07:57:33 -06:00
Ian Philips
ee01328553
Remove group slugs from contracts on delete group
2022-07-14 07:53:41 -06:00
Sinclair Chen
5ebd4498a0
Remove deprecated useUserById implementation ( #571 )
...
* Remove duplicate useUserById implementation
* fix bug: firebase doesn't accept empty paths
2022-07-13 17:43:20 -07:00
Sinclair Chen
095af10d4f
replace raw checkbox w/ Checkbox component
...
also run prettier
2022-07-13 16:50:08 -07:00
James Grugett
f4b7b9efd0
Only show probabilty update with arrow if probability changes
2022-07-13 18:39:32 -05:00
James Grugett
67b3450924
Use quick vs limit bet in mobile dialog
2022-07-13 18:28:33 -05:00
James Grugett
9240cd3d1c
Bet panel: Quick vs Limit pill buttons. Also, pill buttons for Yes vs No.
2022-07-13 18:23:36 -05:00
Sinclair Chen
98192ee580
simplify rich text link styles
2022-07-13 16:14:44 -07:00
Sinclair Chen
664e55a40b
Add typing, pasting links ( #646 )
2022-07-13 15:56:15 -07:00
Ian Philips
45fb3803c1
Limit member search to 100
2022-07-13 16:24:35 -06:00
mantikoros
e1b6619e9c
embeds: don't show bet button after resolution
2022-07-13 17:22:50 -05:00
Ian Philips
7a49549389
Ignore rankings/members for huge groups for now
2022-07-13 16:20:56 -06:00
Sinclair Chen
f08d6bda93
when adding package, don't put ^ before version ( #645 )
2022-07-13 15:14:06 -07:00
ingawei
a4e2cce4aa
initial commit for manalinks UI improvements ( #642 )
...
* manalinks UI improvements
* made manalink look more like card
* changed new link to pulsing indigo instead of green
2022-07-13 16:57:34 -05:00
Ian Philips
55c91dfcdd
Categories to groups ( #641 )
...
* start on script
* Revert "Remove category filters"
This reverts commit d6e808e1a3
.
* Convert categories to official default groups
* Add new users to default groups
* Rework group cards
* Cleanup
* Add unique bettors to contract and sort by them
* Most bettors to most popular
* Unused vars
* Track unique bettor ids on contracts
* Add followed users' bets to personal markets
* Add new users to welcome, bugs, and updates groups
* Add users to fewer default cats
2022-07-13 15:11:22 -06:00
James Grugett
e868f0a15a
Fix pagination component going one page too far + tweaks
2022-07-13 15:15:03 -05:00
James Grugett
9075a6f33a
Add headers to limit orders table
2022-07-13 14:59:51 -05:00
Sinclair Chen
a92eda3af2
fix bug where descriptions not showing
2022-07-13 12:36:01 -07:00
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
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
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
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
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
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
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
James Grugett
80ae551ca9
🧾 Limit orders! ( #495 )
...
* Simple limit order UI
* Update bet schema
* Restrict bet panel / bet row to only CPMMBinaryContracts (all binary DPM are resolved)
* Limit orders partway implemented
* Update follow leaderboard copy
* Change cpmm code to take some state instead of whole contract
* Write more of matching algorithm
* Fill in more of placebet
* Use client side contract search for emulator
* More correct matching
* Merge branch 'main' into limit-orders
* Some cleanup
* Listen for unfilled bets in bet panel. Calculate how the probability moves based on open limit orders.
* Simpler switching between bet & limit bet.
* Render your open bets (unfilled limit orders)
* Cancel bet endpoint.
* Fix build error
* Rename open bets to limit bets. Tweak payout calculation
* Limit probability selector to 1-99
* Deduct user balance only on each fill. Store orderAmount of bet. Timestamp of fills.
* Use floating equal to check if have shares
* Add limit order switcher to mobile bet dialog
* Support limit orders on numeric markets
* Allow CORS exception for Vercel deployments
* Remove console.logs
* Update user balance by new bet amount
* Tweak vercel cors
* Try another regexp for vercel cors
* Test another vercel regex
* Slight notifications refactor
* Fix docs edit link (#624 )
* Fix docs edit link
* Update github links
* Small groups UX changes
* Groups UX on mobile
* Leaderboards => Rankings on groups
* Unused vars
* create: remove automatic setting of log scale
* Use react-query to cache notifications (#625 )
* Use react-query to cache notifications
* Fix imports
* Cleanup
* Limit unseen notifs query
* Catch the bounced query
* Don't use interval
* Unused var
* Avoid flash of page nav
* Give notification question priority & 2 lines
* Right justify timestamps
* Rewording
* Margin
* Simplify error msg
* Be explicit about limit for unseen notifs
* Pass limit > 0
* Remove category filters
* Remove category selector references
* Track notification clicks
* Analyze tab usage
* Bold more on new group chats
* Add API route for listing a bets by user (#567 )
* Add API route for getting a user's bets
* Refactor bets API to use /bets
* Update /markets to use zod validation
* Update docs
* Clone missing indexes from firestore
* Minor notif spacing adjustments
* Enable tipping on group chats w/ notif (#629 )
* Tweak cors regex for vercel
* Your limit bets
* Implement selling shares
* Merge branch 'main' into limit-orders
* Fix lint
* Move binary search to util file
* Add note that there might be closed form
* Add tooltip to explain limit probability
* Tweak
* Cancel your limit orders if you run out of money
* Don't show amount error in probability input
* Require limit prob to be >= .1% and <= 99.9%
* Fix focus input bug
* Simplify mobile betting dialog
* Move mobile limit bets list into bet dialog.
* Small fixes to existing sell shares client
* Lint
* Refactor useSaveShares to actually read from localStorage, use less bug-prone interface.
* Fix NaN error
* Remove TODO
* Simple bet fill notification
* Tweak wording
* Sort limit bets by limit prob
* Padding on limit bets
* Match header size
Co-authored-by: Ian Philips <iansphilips@gmail.com>
Co-authored-by: ahalekelly <ahalekelly@gmail.com>
Co-authored-by: mantikoros <sgrugett@gmail.com>
Co-authored-by: Ben Congdon <ben@congdon.dev>
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-07-10 13:05:44 -05:00
mantikoros
d063e209dd
Revert "expand search bar when typing on mobile"
...
This reverts commit 43b1096313
.
2022-07-09 22:04:50 -04:00
Marshall Polaris
480b3e7c54
Make referral stuff not busted ( #632 )
2022-07-09 14:38:23 -07:00
mantikoros
43b1096313
expand search bar when typing on mobile
2022-07-09 17:27:39 -04:00
Marshall Polaris
67a05c2f1b
Migrate transact function to v2 ( #635 )
2022-07-09 13:54:15 -07:00
Marshall Polaris
581a42f288
Migrate stripeWebhook and createCheckoutSession to v2 ( #636 )
2022-07-09 13:43:18 -07:00
mantikoros
e7e686d579
return creator liquidity after resolution
2022-07-09 13:53:50 -04:00
Marshall Polaris
c1ca1471a1
Migrate createAnswer function to v2 ( #634 )
...
* Migrate createAnswer function to v2
* Remove unhelpful toString on APIError
2022-07-09 00:26:56 -07:00
Marshall Polaris
fdde73710e
Migrate claimManalink function to v2 ( #628 )
...
* Implement helpful `toString` on client `APIError`
* Migrate claimManalink function to v2
2022-07-08 15:28:04 -07:00
Marshall Polaris
d9f42caa6a
Migrate addLiquidity and withdrawLiquidity functions to v2 ( #627 )
2022-07-08 15:08:17 -07:00
Marshall Polaris
ed0544212d
Migrate changeUserInfo function to v2 ( #626 )
2022-07-08 15:00:03 -07:00
mantikoros
93b293ca0e
remove quick betting for FR markets
2022-07-08 12:50:46 -04:00
mantikoros
50c5f8b6eb
reenable fees on share sales; rename getCpmmFees()
2022-07-08 12:34:16 -04:00
Ian Philips
b1b016f9e0
Enable tipping on group chats w/ notif ( #629 )
2022-07-07 17:23:13 -06:00
Ian Philips
d6136a9937
Minor notif spacing adjustments
2022-07-07 17:17:10 -06:00
Ben Congdon
c3bc25a4b9
Add API route for listing a bets by user ( #567 )
...
* Add API route for getting a user's bets
* Refactor bets API to use /bets
* Update /markets to use zod validation
* Update docs
2022-07-07 15:36:02 -07:00
Ian Philips
999c1cd8e3
Bold more on new group chats
2022-07-07 15:52:28 -06:00
Ian Philips
e456b9a855
Analyze tab usage
2022-07-07 15:24:13 -06:00
Ian Philips
3eee4a4103
Track notification clicks
2022-07-07 15:06:29 -06:00
Ian Philips
3ff8b26312
Remove category selector references
2022-07-07 14:55:28 -06:00
Ian Philips
d6e808e1a3
Remove category filters
2022-07-07 14:45:26 -06:00
Ian Philips
cfbb78af48
Use react-query to cache notifications ( #625 )
...
* Use react-query to cache notifications
* Fix imports
* Cleanup
* Limit unseen notifs query
* Catch the bounced query
* Don't use interval
* Unused var
* Avoid flash of page nav
* Give notification question priority & 2 lines
* Right justify timestamps
* Rewording
* Margin
* Simplify error msg
* Be explicit about limit for unseen notifs
* Pass limit > 0
2022-07-07 14:41:50 -06:00
mantikoros
a22b29ad6d
create: remove automatic setting of log scale
2022-07-07 12:36:34 -04:00
Ian Philips
7f8617832f
Unused vars
2022-07-07 07:05:12 -06:00
Ian Philips
b8748fd49a
Leaderboards => Rankings on groups
2022-07-07 06:54:00 -06:00
Ian Philips
93b2900015
Groups UX on mobile
2022-07-07 06:53:14 -06:00
Ian Philips
a23c744c3e
Small groups UX changes
2022-07-06 17:24:53 -06:00
Ian Philips
e969540c72
Slight notifications refactor
2022-07-06 15:06:41 -06:00
Ian Philips
54b4f97a84
Move timestamp to same line
2022-07-06 13:45:31 -06:00
Ian Philips
de20ee9fb9
Show tip notifications ( #623 )
...
* Show tip notifications
* Optimizing notifications for mobile
* Unused vars
* Move income reason logic to income notif
* Remove unnecessary icons
* Unused vars
2022-07-06 13:30:51 -06:00
Austin Chen
2d1e76eae8
When duplicating, add the original link in description
2022-07-06 10:39:19 -07:00
Ian Philips
434b8b9dbe
Just show first names to save space
2022-07-06 07:51:32 -06:00
Ian Philips
83a02c4b20
Small notifications ux improvements
2022-07-06 07:45:47 -06:00
Ian Philips
a6143c1abb
Always group income
2022-07-06 07:27:21 -06:00
Austin Chen
029021b351
Remove Categories from /create
2022-07-05 17:20:37 -07:00
Austin Chen
b71944607b
Simplify Tweet text
2022-07-05 16:48:59 -07:00
Austin Chen
cb25a7752d
Duplicate a question from '...' screen ( #622 )
...
* Duplicate a question from '...' screen
* Remove unused code
2022-07-05 16:26:58 -07:00
Ian Philips
3a6d28e2c2
Bold groups with recent chat activity ( #621 )
...
* Bold groups with recent chat activity
* Cleanup
* Cleanup
2022-07-05 17:18:37 -06:00
Sinclair Chen
270a5fc139
also filter by username when adding people
2022-07-05 14:34:16 -07:00
Marshall Polaris
9bff858696
Fix up lint configuration, lint line endings ( #615 )
...
* Make sure we ignore all built code in common and functions
* Add lint for Unix line endings
* Fix line endings in withdraw-liquidity.ts
2022-07-05 12:25:44 -07:00
Ian Philips
b26648c1ce
Daily trading bonuses ( #618 )
...
* first commit, WIP
* Give trading bonuses & paginate notifications
* Move read & update into transaction
* Move request bonus logic to notifs icon
2022-07-05 11:29:26 -06:00
Sinclair Chen
af2b148b34
show names on admin user table
2022-07-04 13:25:44 -07:00
Ian Philips
790fdad1e3
Display refered by publicly
2022-07-04 09:18:01 -06:00
Ian Philips
22f917e250
Avatar sizes to 24, size 20 is broken
2022-07-04 08:32:51 -06:00
Ian Philips
e712ad8289
Allow users to choose who referred them ( #611 )
...
* Allow users to choose who referred them
* Refactor
* Rewording
* Match list styles
* Match empty text styles
2022-07-04 07:49:41 -06:00
mantikoros
d78bbcb3df
fix navbar tracking
2022-07-03 23:43:18 -04:00
Austin Chen
9839b7b5a4
Allow customizing starting balance & antes
2022-07-03 16:46:15 -07:00
Pico2x
960f8a1b3d
Toggle weekly leaderboard and daily/weekly/alltime portfolio graph ( #616 )
...
* Toggle weekly leaderboard and daily/weekly/alltime portfolio graph
* Formatmoney for tooltip value
2022-07-03 14:18:12 -05:00
mantikoros
1a6afaf44f
Pseudo numeric market ( #609 )
...
* create pseudo-numeric contracts
* graph and bet panel for pseudo numeric
* pseudo numeric market layout, quick betting
* Estimated value
* sell panel
* fix graph
* pseudo numeric resolution
* bets tab
* redemption for pseudo numeric markets
* create log scale market, validation
* log scale
* create: initial value can't be min or max
* don't allow log scale for ranges with negative values (b/c of problem with graph library)
* prettier delenda est
* graph: handle min value of zero
* bet labeling
* validation
* prettier
* pseudo numeric embeds
* update disclaimer
* validation
* validation
2022-07-02 14:37:59 -05:00
Ian Philips
2dce3e15a1
Correct margin on tabs
2022-07-01 17:03:26 -06:00
Ian Philips
b9931e65da
Allow adding anyone's contract to a group
2022-07-01 16:37:30 -06:00
James Grugett
cb68530e2a
Use client side contract search for emulator
2022-07-01 12:26:45 -04:00
Ben Congdon
d29115b05a
Nitpick on Manalinks claim page ( #608 )
2022-07-01 08:40:43 -07:00
Ian Philips
5034a43c3c
Filter for ian's deleted users
2022-07-01 08:29:12 -06:00
Ian Philips
3165e42119
Referrals ( #592 )
...
* add trigger for updated user
* Add referral bonuses and notifications for them
* Cleanup
* Add share group button, cleanup
* Cleanup
* Add referrals list to user profile
* Remove unused
* Referral bonus => constant
* Refactor
* Add referral txn to helper fn
* Move reads into firebase transaction
* Use effects to write referral info
* Flex-wrap profile objects
* Small ui changes
* Restrict referral user to one update
* Remove rogue semicolon
* Note about group referral query details
* Track referrals, add them to settings list
2022-07-01 07:47:19 -06:00
Ben Congdon
7fc1ec6bd2
Clear suggested FR answer after submission ( #603 )
2022-06-30 15:13:59 -07:00
Ben Congdon
c5efd5b7d0
Market Resolution API ( #600 )
...
* Add market resolution API
* Add additional free market resolution validation
* Address review comments
* Refactor resolution validation code somewhat
Co-authored-by: Marshall Polaris <marshall@pol.rs>
2022-06-30 15:11:45 -07:00
Marshall Polaris
fc7f19e785
Finalize v2 resolvemarket migration ( #598 )
...
* Update resolve-market to be a v2 function
* Cleanup API error responses
* Update frontend to use v2 version of resolvemarket
* Appease ESLint
* Address review comments
* Appease ESLint
* Remove unnecessary auth check
* Fix logic bug in FR market validation
* Make it so you can specify runtime opts for v2 functions
* Cleanup to resolve market API resolutions input, fixes
* Fix up tiny lint
* Last minute cleanup to resolvemarket FR API input validation
Co-authored-by: Benjamin <ben@congdon.dev>
2022-06-29 16:47:06 -07:00
Marshall Polaris
2fbbc66029
Point v2 functions @ localhost during emulation ( #597 )
2022-06-29 16:31:53 -07:00
Austin Chen
7bbc425690
Only show "My Groups" when there is at least 1 group
2022-06-29 17:54:08 -05:00
Austin Chen
19d12c949a
Add a line spacer on the sidebar
2022-06-29 17:51:11 -05:00
Marshall Polaris
3b4666ba3e
Add Firebase schema collection helpers (kind of an RFC) ( #583 )
...
* Add Firebase schema collection helpers
* Decentralize definitions from schema file (James feedback)
* Add lint comment
2022-06-29 12:21:40 -07:00
Austin Chen
8132fa595b
Don't add space when there are 0 groups
2022-06-29 13:08:01 -05:00
Austin Chen
2d79d7f8db
Rework nav to show list of groups ( #596 )
...
* Rework nav to show list of groups
* Fix lint
* Replace Portfolio with Profile link
* Lint: remove unused vars
2022-06-29 12:33:20 -05:00
Ian Philips
8c3c30c707
Show groups on user page, allow to join/leave ( #594 )
...
* Show groups on user page, allow to join/leave
* Link to groups
* Unused var
2022-06-29 11:00:43 -05:00
Forrest Wolf
7f9b0557c4
Reorganize verify scripts ( #589 )
...
* Update verify to match check for functions
* Give each subdirectory a verify:dir script
2022-06-28 12:46:25 -07:00
Austin Chen
c18a0378e9
Tweak nav items around
2022-06-28 11:18:55 -05:00
Austin Chen
2f434c849d
Remove portfolio link; user icon links to portfolio
2022-06-28 11:03:14 -05:00
Marshall Polaris
0b585d1c98
Typescript project references take 2 ( #586 )
...
* More liberal .gitignores on TS output directories
* Use project references for Typescript functions project
* Use /dist dir for Cloud Functions deployment payload
* Fix Github actions functions tsc job
2022-06-27 13:32:24 -07:00
James Grugett
4107d5fedb
Fix weird layout on refreshing create page
2022-06-27 14:40:40 -05:00
James Grugett
1e904f567a
Revert "Use Typescript project references, improve functions build/deploy ( #575 )"
...
This reverts commit 4edad9f19b
.
2022-06-27 12:30:22 -05:00
Sinclair Chen
54356b8d2f
Remove undo. Show full tip amount. Linear scale. ( #573 )
2022-06-27 11:18:15 -05:00
Austin Chen
c1765ca0cb
Use green for FR (and numeric) cards
2022-06-26 19:44:10 -05:00
Ben Congdon
3b6ba76db6
Add market liquidity addition events to bets feed ( #578 )
...
* Add liquidity events to bets feed
* Use larger avatar for liquidity feed items
2022-06-26 19:00:02 -05:00
Marshall Polaris
0067bee94b
Compute stats in Firebase instead of Vercel ( #584 )
...
* Add stats updating cloud function
* Read stats from database on client instead of computing them
* Improve logging for stats updater
* Tidying up
2022-06-26 14:42:42 -07:00
Marshall Polaris
2e5d852a77
Fix lint
2022-06-25 18:20:54 -07:00
Marshall Polaris
11f6a57c54
Fix types on API LiteUser
2022-06-25 18:20:10 -07:00
Justin
fa86f5e89a
Add Users API endpoint ( #547 )
...
* add users endpoint to API
* docs, url
* tweak docs
2022-06-25 16:28:01 -07:00
Ben Congdon
5e768aa57c
Prevent duplicate Free Response answers ( #581 )
...
* Prevent duplicate Free Response answers
* Address review comments
2022-06-25 16:18:49 -07:00
Marshall Polaris
4edad9f19b
Use Typescript project references, improve functions build/deploy ( #575 )
...
* More liberal .gitignores on TS output directories
* Use project references for Typescript projects
* Use /dist dir for Cloud Functions deployment payload
* Disable `next build` typechecking
* Fiddle with GitHub tsc jobs
2022-06-24 22:41:30 -07:00
Austin Chen
3123021d94
Rename "Details" to "About"
2022-06-24 18:41:02 -05:00
Austin Chen
da81035e58
Group leaderboards show members only by default
2022-06-24 18:38:39 -05:00
Austin Chen
8357361038
Remove unused function
2022-06-24 18:06:20 -05:00
Austin Chen
f224fc2e28
Clean up Group Sidebar by moving into Details tab
2022-06-24 16:02:05 -05:00
Ian Philips
969cdcaa16
Search group contracts
2022-06-24 12:32:59 -05:00
James Grugett
b7dbcaaadf
Run prettier
2022-06-24 12:27:03 -05:00