Marshall Polaris
89b30fc50d
Fix tournaments page loading indicator and turn page size back down
2022-09-03 14:07:34 -07:00
mantikoros
085b9aeb2a
remove simulator
2022-09-03 14:58:42 -05:00
Marshall Polaris
c0383bcf26
Make tournament page efficient ( #832 )
...
* Make tournament page efficient
* Fix URL to Salem contract
* Use totalMembers instead of deprecated field
* Increase page size to 12
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-09-03 09:55:10 -07:00
Ian Philips
272658e5dc
Use most up-to-date user on groups page
2022-09-03 06:52:51 -06:00
Marshall Polaris
861fb7abbd
Use the magic auth
prop for groups SSR ( #851 )
2022-09-03 06:51:55 -06:00
Ian Philips
2d88675f42
Move & more out of the loop
2022-09-03 06:33:33 -06:00
James Grugett
bfa88c3406
Turn off react-query notification subscription because it's buggy
2022-09-02 22:57:23 -05:00
Marshall Polaris
784c081663
Enable source maps in production ( #852 )
2022-09-02 19:43:22 -07:00
Marshall Polaris
8318621d51
Some changes to make auth better ( #846 )
...
* Handle the case where a user is surprisingly not in the DB
* Only set referral info on user after creation
* More reliably cache current user info in local storage
* Don't jam username stuff into user listener hook
2022-09-02 19:39:27 -07:00
Marshall Polaris
e924061c54
Don't re-create visibility observer for no reason ( #849 )
...
* Don't re-create visibility observer for no reason
* `IntersectionObserver.unobserve` instead of `.disconnect`
2022-09-02 19:39:07 -07:00
Ian Philips
25a0276bf7
Auth user server-side on groups page
2022-09-02 19:52:38 -06:00
Ian Philips
c74d972caf
Pass user and members via props
2022-09-02 19:36:49 -06:00
Ian Philips
57b74a5d09
Use cached values
2022-09-02 18:12:55 -06:00
Ian Philips
9577955d2d
Remove null check
2022-09-02 18:08:53 -06:00
Ian Philips
cf508fd8b6
Members and contracts now subcollections of groups ( #847 )
...
* Members and contracts now documents
* undo loans change?
* Handle closed group
* Slight refactoring
* Don't allow modification of private groups contracts
* Add back in numMembers
* Update group field names
* Update firestore rules
* Update firestore rules
* Handle updated groups
* update start numbers
* Lint
* Lint
2022-09-02 18:06:48 -06:00
James Grugett
231d3e65c4
Fix incorrect error message for no bets
2022-09-02 16:19:10 -05:00
mantikoros
b6449ad296
fix bet panel warnings
2022-09-02 15:32:54 -05:00
Marshall Polaris
245627a347
Temporarily patch groups loading to make dev deploy work
2022-09-02 13:00:38 -07:00
Marshall Polaris
a429a98a29
Tidy up some dead code and markup in sidebar ( #842 )
2022-09-02 12:52:27 -07:00
Marshall Polaris
b1bb6fab5b
Disable SSR on /home ( #839 )
2022-09-02 12:51:41 -07:00
Marshall Polaris
21b9d0efab
Clean up some old pre-Amplitude tracking code ( #841 )
2022-09-02 12:51:27 -07:00
Marshall Polaris
4c429cd519
Remove some old code related to the old feed ( #843 )
2022-09-02 12:51:14 -07:00
mantikoros
0cb20d89ed
numeric market labels: LOW/HIGH instead of MIN/MAX; eliminate payout <= MIN, etc.
2022-09-02 10:35:41 -05:00
Marshall Polaris
4406e53121
Make prefetching correctly use context cache ( #835 )
2022-09-01 19:38:09 -07:00
Marshall Polaris
dca7205a47
Disable group prefetching from contract links ( #836 )
...
* Kill dead code
* Stop prefetching groups when viewing contract
* Tidy markup
2022-09-01 19:37:41 -07:00
Sinclair Chen
04e8bb248b
Fix Salem Center market url
2022-09-01 18:15:10 -07:00
Austin Chen
51fe44f877
Show the number of open markets on each groups page
2022-09-01 16:12:09 -07:00
Ian Philips
00ba3b0c48
Show avatars of tippers and unique bettors ( #837 )
...
* Show avatars of tippers and unique bettors
* Make transparent the avatar bg
* fix import
2022-09-01 16:23:12 -06:00
Marshall Polaris
7508d86c73
Clean up contract overview code ( #823 )
...
* Don't call Date.now a million times in answers graph
* Refactor contract overview code so that it's easier to understand
2022-09-01 14:42:50 -07:00
FRC
1208694d2d
http to https to avoid blocked requests ( #833 )
2022-09-01 17:54:46 +01:00
FRC
96be4e8992
Add embedded ContractGrid to Posts ( #822 )
...
* Add embedded market grids
* Hacky way to set height
I haven't figured out a way yet to get the height of the actual iframe's content, so I did some bad estimate for now to unblock shipping the feature, while I continue investigating.
2022-09-01 17:47:45 +01:00
Ian Philips
7310cf3d4a
fix import
2022-09-01 10:11:08 -06:00
Ian Philips
8922b370cc
Show challenge on desktop, simplify modal
2022-09-01 10:02:41 -06:00
Ian Philips
fecf976ab9
Show all group contracts if less than 5 open
2022-09-01 09:11:14 -06:00
Ian Philips
0823414360
Adjust group name padding on mobile
2022-09-01 08:52:49 -06:00
Ian Philips
c6eac97b64
Show group based on most recent creator added group
2022-09-01 08:29:56 -06:00
Ian Philips
6706fe7350
Show user balance on bet panels
2022-09-01 08:12:46 -06:00
Ian Philips
a7c8b8aec4
Hide bet panel when signed out
2022-09-01 07:34:02 -06:00
Ian Philips
5dec6b4a22
Medium includes 10 bettors
2022-09-01 07:23:43 -06:00
Ian Philips
a8d7e91a02
Clean comments
2022-09-01 07:01:49 -06:00
Ian Philips
fec4e19c1d
Selectively force long polling for ios only
2022-09-01 07:01:02 -06:00
Marshall Polaris
0568322c82
Dramatically improve server auth stuff ( #826 )
2022-08-31 22:13:26 -07:00
Marshall Polaris
42548cea2a
Fix prefetching to not populate useless state ( #827 )
2022-08-31 21:59:58 -07:00
mantikoros
879d6fb2dd
bury profile stats in Comments until we find a better place for them
2022-08-31 23:20:20 -05:00
Sinclair Chen
7c1e663b26
Editor tweaks ( #829 )
...
* Show border around selected embeds
* Make editor tooltips not animate
2022-08-31 20:52:12 -07:00
James Grugett
ee76f4188b
For you: remove contracts bet on by anyone you follow.
2022-08-31 21:57:11 -05:00
Sinclair Chen
58e671e640
Upload dropped images
2022-08-31 17:18:35 -07:00
Ian Philips
26aba26da5
force long polling ( #824 )
2022-08-31 15:38:55 -06:00
Austin Chen
7c8b33597a
Add "Duplicate Contract" into "..." menu
2022-08-31 14:33:24 -07:00
James Grugett
3660830ec1
Don't server side render Notifications page for improved perf
2022-08-31 15:41:34 -05:00
James Grugett
83696cca21
Fix dayjs fromNow bug (it requires plugin, so use our util instead)
2022-08-31 15:35:47 -05:00
Sinclair Chen
d06b725f52
Let admins add and edit posts to any group ( #820 )
...
- show add post UI to admins
- change firebase permissions
2022-08-31 11:29:49 -07:00
Marshall Polaris
149204f6ca
Fix my other foolish bug
2022-08-31 11:17:36 -07:00
Ian Philips
5a9d8e3f5d
Show how much you've tipped a market
2022-08-31 09:27:37 -06:00
Ian Philips
37d2be9384
Show only relative time if same day on close date
2022-08-31 08:49:35 -06:00
Ian Philips
5df594e46a
Make details fit on one line, make group a link
2022-08-31 08:29:35 -06:00
Marshall Polaris
27b46f4306
Fix order of comments in threads and under answers
2022-08-31 01:16:57 -07:00
Marshall Polaris
d336383a93
Fix my foolish bug
2022-08-31 01:02:10 -07:00
James Grugett
a3569280a4
Add your bets section to /experimental/home
2022-08-31 00:30:31 -05:00
James Grugett
ccb6fd291e
Move components out of /pages into /components
2022-08-30 23:53:12 -05:00
James Grugett
849402ed70
Rearrange home sections. Load more in carousel.
2022-08-30 23:47:09 -05:00
Marshall Polaris
7dddff52b8
Tidying some feed code up ( #818 )
...
* Clean up some markup & dead code
* Order comments in Firestore instead of on client
* Order bets in Firestore instead of on client
* Make indexes file up to date with production
2022-08-30 20:28:30 -07:00
mantikoros
40f1c09002
Auto-remove unused imports
2022-08-31 01:56:03 +00:00
mantikoros
ec90b041ee
upgrade firebase, nextjs versions
2022-08-30 20:54:32 -05:00
Sinclair Chen
c202c5de68
clarify closed/open group copy
2022-08-30 16:28:49 -07:00
Ian Philips
aad5f6528b
new market view ( #819 )
...
* Show old details on lg, don't unfill heart
* Hide tip market if creator
* Small ui tweaks
* Remove contract. calls
* Update high-medium-low
* Remove unused bets prop
* Show uniques
* Remove unused bets prop
2022-08-30 17:13:25 -06:00
James Grugett
3e1e84ee5e
Experimental Home: Add links. Single layer carousel for < 6 cards
2022-08-30 17:14:22 -05:00
James Grugett
f83b62cf50
Implement double carousel for /experimental/home
2022-08-30 16:18:42 -05:00
Austin Chen
d658a48b66
Revert "hide quick bet on mobile"
...
This reverts commit 3d073da97e
.
2022-08-30 10:31:35 -07:00
Ian Philips
74c9406191
Use cached user ids while likes is loading
2022-08-30 09:52:14 -06:00
Ian Philips
a0402830c5
liking markets with tip/heart ( #798 )
...
* WIP liking markets with tip
* Refactor Userlink, add MultiUserLink
* Lint
* Lint
* Fix merge
* Fix imports
* wip liked contracts list
* Cache likes and liked by user ids on contract
* Refactor tip amount, reduce to M
* Move back to M
* Change positioning for large screens
2022-08-30 09:38:59 -06:00
FRC
e1f19c52ab
Post in a group about page. ( #803 )
...
* Dashboards in Group about page
* Rename group dashboard to 'About Post'
* Fixed James nits
2022-08-30 13:39:10 +01:00
Marshall Polaris
7debc4925e
De-feedify contract tab contents ( #808 )
...
* De-feedify contract bets list
* De-feedify contract comments lists
* Clean up a bunch of duplicated work in the comments list stuff
* Remove wrapper markup from comment replies list
* Fix sort order on comments I broke
* Kill now unhelpful `CommentRepliesList` wrapper component
* More random cleanup
* More cleanup and fix some styling I had broken
* Make bet calculations less wrong
* Keep up to date with master
* Make copy link component copy better URL
* Make highlighted comments align properly
* Make user header left align with content on comments
* Fix some free response UI stuff up
2022-08-30 02:41:47 -07:00
Marshall Polaris
1e3a0ca3d9
Upgrade Typescript, ESLint, Prettier ( #817 )
...
* Bump Typescript to 4.8.2, eslint, prettier
* Fix some loose typing
* Fix prettier complaint
2022-08-30 01:44:45 -07:00
James Grugett
c7452796f0
Recommend contracts you haven't bet on
2022-08-30 00:22:12 -05:00
Marshall Polaris
1369f3b967
WIP persistence work ( #762 )
...
* WIP persistence work
* Fix up close date filter, kill custom scroll restoration
* Use built-in Next.js scroll restoration machinery
* Tweaking stuff
* Implement 'history state' idea
* Clean up and unify persistent state stores
* Respect options for persisting contract search
* Fix typing in common lib
* Clean up console logging
2022-08-29 21:56:11 -07:00
James Grugett
1d948821ca
Turn off react query subscription for user bets and portfolio history
2022-08-29 16:47:21 -05:00
James Grugett
84432e5ac4
Add creatorId to lite market
2022-08-29 14:25:58 -05:00
FRC
851cffd73e
Dashboards ( #791 )
...
* Create backend for Dashboards
* Rm lastupdatetime for now
* Added a create-dashboard and sharable view dashboard page
* Various nit fixes.
* Renamed Dashboards to Posts
* Fix nits
2022-08-29 16:06:17 +01:00
Austin Chen
1d1b09c938
Append question changed text to end of description (instead of start)
2022-08-28 23:23:40 -07:00
Austin Chen
8f338a8d88
Prevent embeds from breaking in Chrome incognito ( #814 )
2022-08-28 22:40:57 -07:00
James Grugett
7ea6777d6b
Add margin bottom to tournament cards to reveal shadow
2022-08-29 00:29:59 -05:00
James Grugett
ecacce0796
Remove console.log. Log onIdTokenChanged error.
2022-08-29 00:26:12 -05:00
James Grugett
71dfcc4dd9
Add tracking for clicking recommended card & tournament card
2022-08-29 00:23:31 -05:00
Austin Chen
6c64c9f1cd
Remove hot volume from /tournaments
2022-08-28 22:21:28 -07:00
mantikoros
6facf3b7a7
sidebar ordering
2022-08-29 00:01:04 -05:00
James Grugett
62e72b2091
Loan dialog wording tweak
2022-08-28 23:51:43 -05:00
James Grugett
4dad954820
Change limit order label "at" => "up to" or "down to"
2022-08-28 23:47:11 -05:00
Austin Chen
f0727a65fc
Add SF 2022 Ballot to /tournaments
2022-08-28 21:33:13 -07:00
akrolsmir
c7be227865
Auto-remove unused imports
2022-08-29 04:00:14 +00:00
Austin Chen
cf58fc9fd4
Remove Groups from sidebar
2022-08-28 20:59:14 -07:00
James Grugett
996b4795ea
⚡ Cache user bets tab with react query!! ( #813 )
...
* Convert useUserBets to react query
* Fix duplicate key warnings
* Fix react-query workaround to use refetchOnMount: always'
* Use react query for portfolio history
* Fix useUserBet workaround
* Script to back fill unique bettors in all contracts
* React query for user bet contracts, using uniqueBettorsId!
* Prefetch user bets / portfolio data
2022-08-28 18:03:00 -05:00
mantikoros
7e00f29189
back to "sign up to bet"
2022-08-28 16:55:29 -05:00
mantikoros
1ff453d64c
eslint
2022-08-28 16:38:59 -05:00
mantikoros
e4c66e08f5
clean up add markets dialog
2022-08-28 16:26:36 -05:00
mqp
3fd07da1b0
Auto-prettification
2022-08-28 21:15:31 +00:00
mantikoros
eb070f0b07
Auto-remove unused imports
2022-08-28 21:14:44 +00:00
mantikoros
c88621de19
hide group edit dialog when signed out
2022-08-28 16:14:02 -05:00
mantikoros
2e96721a5c
"sign in" => "add my answer"
2022-08-28 16:14:02 -05:00
mantikoros
0a5fb4752a
CreateQuestionButton: use Button component
2022-08-28 16:14:02 -05:00
mantikoros
cae2154893
sign in button
2022-08-28 16:14:02 -05:00
mantikoros
926929880a
"Sign up to bet" => "Place my bet"; "Sign in to comment" => "Add my comment"; rename button to BetSignUpPrompt
2022-08-28 16:14:02 -05:00
James Grugett
9c15d5b96c
React-query-ify notifications ( #812 )
...
* Use single react query to subscribe to notifications
* Remove 'preferred' in variable names
2022-08-28 15:20:21 -05:00
mantikoros
3d073da97e
hide quick bet on mobile
2022-08-28 14:07:19 -05:00
mantikoros
d63dd12056
admin unlisted toggle
2022-08-28 13:37:34 -05:00
mantikoros
133e7a9c3f
change label to admin
2022-08-28 13:37:34 -05:00
mantikoros
98861ccc19
remove typo
2022-08-28 13:37:34 -05:00
Marshall Polaris
1e11491369
Tidy up rendering of info tooltips
2022-08-28 01:43:13 -07:00
James Grugett
7c798a063c
Improve edit close date UI
2022-08-28 00:35:24 -05:00
mantikoros
03e07037ea
ban users from posting ( #810 )
2022-08-28 00:23:25 -05:00
James Grugett
2acc1a8433
Double daily loans rate to 2% 💰 💰
2022-08-28 00:11:28 -05:00
James Grugett
e4f46c48f1
Fix recommended markets not updating when navigating
2022-08-27 22:35:46 -05:00
James Grugett
cb08a114ae
Better recommended contracts. Include from first group.
2022-08-27 22:26:39 -05:00
James Grugett
e7f369e2b4
Load recommended markets even when navigating from home
2022-08-27 22:26:39 -05:00
Marshall Polaris
b21051ced5
Fix up copy link toast styling
2022-08-27 19:15:55 -07:00
Marshall Polaris
ef77c7c9a3
Clean up markup in CopyLinkDateTimeComponent ( #809 )
2022-08-27 19:05:46 -07:00
James Grugett
d7793841d1
Fix NaN invested (floating point error)
2022-08-27 17:13:29 -05:00
Marshall Polaris
4b513a894d
Make tooltip rendering more efficient ( #807 )
...
* Don't use very slow dayjs formatter on timestamp tooltips
* Kill dead code in feed-bets.tsx
* Clean up tooltip markup
2022-08-27 13:46:35 -07:00
mantikoros
305acbb18f
"current value" => "expected value"
2022-08-27 14:17:19 -05:00
Marshall Polaris
5d8f5d41fc
Fix some efficiency problems with ContractProbGraph
( #806 )
...
* Memoize bets input to ContractOverview
* Optimize a bunch of nonsense in `ContractProbGraph`
2022-08-27 01:09:17 -07:00
Marshall Polaris
3e976eadac
Make portfolio graph loading more efficient ( #805 )
...
* Make portfolio graph on profile not load extra data
* Clean up unused props
* Tidy up markup
* Enable "daily" option again on portfolio history picker
2022-08-27 01:09:01 -07:00
James Grugett
51ceb62871
Fix console error on create page
2022-08-27 01:14:24 -05:00
James Grugett
a9ea335cd1
Fix create page serverside vs clientside render discrepancy console error
2022-08-27 01:07:39 -05:00
James Grugett
a040df2732
Fix console error from non-react-style attributes on trophy icon
2022-08-27 01:02:59 -05:00
James Grugett
2e3c2d4dcb
Tweak to add market to group UI
2022-08-27 00:59:00 -05:00
mqp
5ff847fba3
Auto-prettification
2022-08-27 05:01:29 +00:00
jahooma
f641569bcc
Auto-remove unused imports
2022-08-27 05:00:37 +00:00
James Grugett
8e4dd407f6
Test with unused import
2022-08-26 23:59:56 -05:00
James Grugett
86cf956894
Add eslint plugin to remove unused imports
2022-08-26 23:49:03 -05:00
James Grugett
e4d6bb35b5
Fix floating button to be on top of quick bet arrows. Switch icon.
2022-08-26 23:10:10 -05:00
Marshall Polaris
902d9e140c
Create and use new usePagination
hook for paginating loading ( #769 )
...
* Create and use new `usePagination` hook for paginating loading
* Fix index for new comment list code
2022-08-26 20:18:08 -07:00
Sinclair Chen
9698895c22
Update fr chart colors
2022-08-26 17:39:46 -07:00
Austin Chen
a2da319e7c
Remove unused import
2022-08-26 17:35:59 -07:00
Austin Chen
1dbef921b0
Sort markets on /tournaments by %
2022-08-26 17:13:49 -07:00
Sinclair Chen
59aa76a474
Add Salem Center tournaments (card screenshots) ( #804 )
2022-08-26 16:23:44 -07:00
James Grugett
99bff6b794
Improve group market selection UI
2022-08-26 18:17:15 -05:00
James Grugett
5735864fd1
Add pencil to edit group on contract page
2022-08-26 17:25:05 -05:00
Sinclair Chen
8903b1ef95
Replace style props with tailwind classes ( #800 )
...
* add utility class for `word-break: break-word`
* refactor visuallyHidden style out of Page
* refactor out ref sizing hack in sidebar
* replace style props with tailwind classes
2022-08-26 14:23:06 -07:00
Austin Chen
3255806891
Support Figma embeds
2022-08-26 12:41:39 -07:00
Austin Chen
ba7d0f45db
Close Add Market modal on Cancel
2022-08-26 12:41:29 -07:00
Sinclair Chen
490115d890
Add tournaments to sidebar ( #802 )
...
* Add tournaments to sidebar
* Remove unused import
* Reposition tournaments tab
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-08-26 10:45:01 -07:00
Sinclair Chen
803091db06
Add tournament home page ( #797 )
...
* Add tournament home page
* Preload markets, follow count
* organize imports
* Fix card width
* Make entire title clickable
* plural /tournament -> /tournaments
* prettier
* Fix /tournaments when groupIds are invalid
* Restyle /tournaments page
* Reintroduce Salem, tweak styles
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-08-26 10:31:25 -07:00
James Grugett
31db330319
Show "(max)" on streak payout if it is the max payout
2022-08-26 11:38:08 -05:00
James Grugett
b1ccee73fd
If there is a group for a market on market page, clicking it goes to group
2022-08-26 01:23:50 -05:00
James Grugett
74ce98913c
Make graph start from left side for new markets
2022-08-26 01:08:16 -05:00
Austin Chen
26a2eb2391
Switch to a different color scheme
2022-08-25 22:31:05 -07:00
James Grugett
6f2e2a3bbb
Render graph for multiple choice embeds
2022-08-26 00:23:50 -05:00
James Grugett
539bfba70c
Decrease starting time window for free response graph
2022-08-26 00:21:06 -05:00
James Grugett
e5777f02d8
Expand notifications by default if <= 3 items
2022-08-26 00:00:44 -05:00
Sinclair Chen
1b029ce8dd
bump tiptap version to fix multi-italic bug ( #801 )
2022-08-25 20:56:38 -07:00
Austin Chen
4faab4fcdc
Clean up Featured code
2022-08-25 19:42:40 -07:00
Austin Chen
0f49effade
Tweak Featured badge design
2022-08-25 19:17:50 -07:00
James Grugett
7773234138
Add debug console.log
2022-08-25 17:21:51 -05:00
Ian Philips
91bb4dfab2
With play money on numeric & center text
2022-08-25 12:06:42 -06:00
James Grugett
97b648a51e
Move recommended markets below market white bg onto gray bg
2022-08-25 12:59:26 -05:00
Ian Philips
b785d4b047
With play money
2022-08-25 10:02:22 -06:00
Ian Philips
dc89d5d4d0
Feature markets on trending
2022-08-25 07:05:26 -06:00
Ian Philips
b9f0da9d3b
Give all users 5 free markets
2022-08-25 05:51:56 -06:00
Ian Philips
6e3b8fdd4d
Show old streak for old streak notifs
2022-08-25 05:10:38 -06:00
Ian Philips
465e219bfc
Show old streak for old streak notifs
2022-08-25 05:10:24 -06:00
James Grugett
93739e7990
Fix betting streak number
2022-08-24 23:40:27 -05:00
James Grugett
cffd5dcd31
Weekly => daily loans
2022-08-24 22:03:07 -05:00
James Grugett
0caa5e24e8
Some other follow to watch changes
2022-08-24 21:23:12 -05:00
James Grugett
25eca71846
Convert heart to eye and follow to watch
2022-08-24 21:16:38 -05:00
James Grugett
a8da5719fe
Create experimental home page
2022-08-24 18:30:31 -05:00
Ian Philips
7a38d67c5b
Reduce share row top margin on mobile
2022-08-24 17:11:48 -06:00
Ian Philips
7a22c7d76a
Gap adjustment
2022-08-24 17:09:07 -06:00
Ian Philips
8d1cebf4db
Move share button back down, small spacing tweaks
2022-08-24 17:07:22 -06:00
Ian Philips
b6e636cbc0
Small ux tweaks for signed out market page
2022-08-24 16:41:46 -06:00
mantikoros
5bf135760e
fix sidebar tracking
2022-08-24 17:23:34 -05:00
SirSaltyy
74a0479cbd
Change about button ( #796 )
...
About button name change and now directs to "Help and About Center" super.so
2022-08-25 06:51:33 +09:00
Ian Philips
52a89d0783
Remove bolded More from navbar
2022-08-24 15:42:09 -06:00
Ian Philips
d553aae71e
Shrink icon
2022-08-24 15:11:38 -06:00
Ian Philips
5365fa6175
💔 💔 💔
2022-08-24 15:09:28 -06:00
mantikoros
d5ac560f0c
eslint
2022-08-24 15:36:57 -05:00
mantikoros
de74b2987a
eslint
2022-08-24 15:34:00 -05:00
mantikoros
d390b39e0a
eliminate fees
2022-08-24 15:29:48 -05:00
James Grugett
d6d1e8e86f
Fix types
2022-08-24 13:29:35 -05:00
James Grugett
1c323c5a7f
Simple recommended contracts based on contract creator
2022-08-24 12:59:23 -05:00
Ian Philips
3eb1b66e9a
Lint
2022-08-24 11:58:32 -06:00
Ian Philips
c72bf506c3
Heart button on xl style
2022-08-24 11:53:29 -06:00
Ian Philips
432ee387ec
Show all groups on sidebar
2022-08-24 11:23:07 -06:00
Ian Philips
a5812a5a73
Remove group chat display
2022-08-24 11:15:38 -06:00
Ian Philips
f50b4775a1
Allow to follow/unfollow markets, backfill as well ( #794 )
...
* Allow to follow/unfollow markets, backfill as well
* remove yarn script edit
* add decrement comment
* Lint
* Decrement follow count on unfollow
* Follow/unfollow button logic
* Unfollow/follow => heart
* Add user to followers in place-bet and sell-shares
* Add tracking
* Show contract follow modal for first time following
* Increment follower count as well
* Remove add follow from bet trigger
* restore on-create-bet
* Add pubsub to dev.sh, show heart on FR, remove from answer trigger
2022-08-24 10:49:53 -06:00
James Grugett
78780a9219
Dedup contract leaderboards code from contract slug (merge error?)
2022-08-23 19:25:57 -05:00
Sinclair Chen
7da4eb8fe9
Fix bet modal probability sticking ( #793 )
...
* Fix button group styles
* Reset prob strike-out when bet modal closed
2022-08-23 14:31:52 -07:00
Ian Philips
bea94d58c5
Add extra text-sm
2022-08-23 07:55:26 -06:00
Sinclair Chen
b476a7e3f8
Take descriptions out of LiteMarket ( #789 )
2022-08-22 18:18:51 -07:00
Sinclair Chen
20fd286756
Fix link classes duplicating on paste ( #788 )
2022-08-22 17:45:23 -07:00
Austin Chen
552f9add70
Reduce min time on contract graph to 1h
...
Allows more resolution on real-time markets, where a lot of trading happens within minutes
2022-08-22 17:23:59 -07:00
mantikoros
571cf80e13
markets api: only load 500 markets by default
2022-08-22 14:42:23 -05:00
mantikoros
3313b55853
listAllContracts: sort by createdTime by default
2022-08-22 14:23:52 -05:00
Austin Chen
650aa68bcd
Fix imports
2022-08-22 11:31:33 -07:00
Austin Chen
7736f1e3c1
Make duplicating better: description, closetime, logscale
...
Known issue: some markets like https://manifold.markets/FFSX/rojo-ronald-jones don't duplicate because too much stuff in JSON...?
2022-08-22 10:49:54 -07:00
Austin Chen
0cd61eb214
DX: Link to Firestore console from "..."
2022-08-22 10:48:21 -07:00
mantikoros
2530171721
don't run next-sitemap post build
2022-08-22 12:09:16 -05:00
mantikoros
009c85b61a
listAllContracts: order by popularity score
2022-08-22 12:07:05 -05:00
mantikoros
7a0d64e72f
host sitemap manually (delete nextjs sitemap)
2022-08-22 12:02:08 -05:00
mantikoros
40a22b31f3
fix sitemap
2022-08-22 11:52:05 -05:00
mantikoros
8ea9a79760
loan emoji
2022-08-22 10:31:23 -05:00
Ian Philips
571d3e71b5
Only show most recent streak notif, relative econ imports, pubsub emulator
2022-08-22 06:31:30 -06:00
Austin Chen
b7790a9678
Show Referrals count for each user
2022-08-21 22:53:02 -07:00
Austin Chen
88bf678ce3
Allow custom environments to override any economic aspect ( #787 )
...
* Extract monetary constants to a single file economy.ts
* Add missing import
* Allow environments to override any econ variable
* Update imports
* Update more imports
* Fix import
2022-08-21 22:37:26 -07:00
James Grugett
8b7cd20b6f
Loans2: Bets return you some capital every week ( #588 )
...
* Remove some old loan code
* Almost complete implementation of updateLoans cloud function
* Merge fixes
* Use invested instead of sale value, check if eligible, perform payouts
* Run monday 12am
* Implement loan income notification
* Fix imports
* Loan update fixes / debug
* Handle NaN and negative loan calcs
* Working loan notification
* Loan modal!
* Move loans calculation to /common
* Better layout
* Pay back loan on sell shares
* Pay back fraction of loan on redeem
* Sell bet loan: negate buy bet's loan
* Modal tweaks
* Compute and store nextLoanCached for all users
* lint
* Update loans with newest portfolio
* Filter loans to only unresolved contracts
* Tweak spacing
* Increase memory
2022-08-22 00:22:49 -05:00
Austin Chen
3158740ea3
Minor tweaks for custom instances
2022-08-21 22:13:42 -07:00
Austin Chen
258b2a318f
Default to showing weekly bet graph
2022-08-21 21:02:56 -07:00
Austin Chen
aa3647e0f3
Handle case when no charity txns
2022-08-21 20:55:04 -07:00
James Grugett
d18dd5b8fb
Fix a case of limit order sorting
2022-08-21 15:58:49 -05:00
James Grugett
645cfc65f4
Update sort order of limit orders (older bets first b/c they are filled first)
2022-08-21 12:57:00 -05:00
James Grugett
f4ebb2b504
Fix wrapping on "Add market" button
2022-08-20 15:19:05 -05:00
Sinclair Chen
a9f846e8fc
Fix tooltip styles in your bets ( #783 )
...
* Only show answer tooltips if truncated
* Always wrap in tooltip
* refactor. make title in dialog less big
2022-08-20 13:05:33 -07:00
James Grugett
099764a931
Show unlisted markets in groups and under your markets
2022-08-20 14:38:15 -05:00
James Grugett
09e8993cd4
Implement visibility option for new markets
2022-08-20 14:31:32 -05:00
mantikoros
dd6c5dc97a
betting streaks copy
2022-08-20 13:47:26 -05:00
James Grugett
2fef413d88
Don't show fantasy football in newest sort
2022-08-20 13:46:14 -05:00
James Grugett
474304d284
Revert " 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 "
...
This reverts commit fc8487dca0
.
2022-08-20 11:45:13 -05:00
Austin Chen
6791da0fc8
Fix "Most Recent Donor" on /charity
2022-08-19 17:28:08 -07:00
Sinclair Chen
c850cfe97f
Revert "Revert "fix firefox visual glitch - single card wrapping""
...
This reverts commit 63a5241b2e
.
2022-08-19 16:59:42 -07:00
Austin Chen
51c843d765
Use masonry on contract cards, sorted correctly ( #773 )
...
* Revert "Revert "Tile contract cards in masonry layout (#761 )""
This reverts commit 62728e52b7
.
* Sort the contracts in the correct masonry order
* Fix ordering on single columns
* Use react-masonry-css to accomplish masonry view
* Improve comment
* Remove gridClassName
Everything is spaced with m-4, too bad
2022-08-19 16:57:23 -07:00
Ian Philips
fc8487dca0
🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥
2022-08-19 16:00:40 -06:00
James Grugett
b67a26ad61
Don't show bets streak modal on navigate each tab
2022-08-19 16:51:52 -05:00
Ian Philips
36bfbe8f42
Change betting streak modal, tweak trending email query
2022-08-19 14:37:16 -06:00
Ian Philips
a0f62ba172
Markets emails ( #764 )
...
* Send out email template for 3 trending markets
* Rich text to plaintext descriptions, other ui changes
* Lint
* Filter for closed markets
* Change sign
* First order must be closeTime
* Send 6 emails, check flag twice
* Exclude contracts with trump and president in the name
* interesting markets email
* sendInterestingMarketsEmail
* Change subject line back
Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-08-19 11:43:57 -06:00
Ian Philips
ba5dabd613
Increase gap between profit and streak
2022-08-19 11:24:28 -06:00
Ian Philips
00c9fa61c3
betting streaks ( #777 )
...
* Parse notif, show betting streaks modal, schedule function
* Ignore streaks of 0
* Pass notifyFills the contract
* Turn 9am into a constant
* Lint
* Up streak reward, fix timing logic
* Change wording
2022-08-19 11:10:32 -06:00
Sinclair Chen
4f3202f90b
Simple bet interface in embeds ( #775 )
...
* rename BetRow -> BetButton
* Replace bet modal in embed with inline betting
- Also simplifies graph height calculation
* Move bet row above graph, in "mini modal"
* Show signup button if not signed up
* Show probability change
* Show error after modal
- Show balance if insufficient funds
- Clear error from amount input if amount deleted entirely
* Fix error state conditions
- Reset amount input on success
- Reset success state on user input
* Make input smaller (80px)
2022-08-19 10:07:48 -07:00
Sinclair Chen
98a0ed99c9
Fix (i) alignment
2022-08-19 09:53:16 -07:00
Sinclair Chen
4d7df00a68
Make Avatar component update when avatarUrl updates ( #780 )
2022-08-19 09:47:00 -07:00
Marshall Polaris
0972de9025
Make typing for comments more fancy ( #776 )
2022-08-19 01:06:40 -07:00
Sinclair Chen
f2764e9258
Remove keyboard accessibility for tooltips ( #779 )
...
Headless UI's Modal component autofocuses the first focusable item
inside it when opened. This is by design for accessibility reasons.
See https://headlessui.com/react/dialog#managing-initial-focus
Ironically this means we'll have to remove keyboard focus for tooltips
because this causes the tooltips to pop up unnecessarily for all users
whenever the dialog is opened. The alternative is managing focus
manually for several dialogs, which may not be possible as some of our
modals lack a sensible element to focus by default.
2022-08-18 18:54:09 -07:00
Sinclair Chen
2537663a57
Fix user avatar in mention list not updating ( #778 )
2022-08-18 17:20:40 -07:00
Marshall Polaris
0cf9a90cfb
Remove some dead code related to tags, categories, and old feed stuff ( #765 )
...
* Remove dead image storage code
* Kill tag page
* Kill tag and categories related component UI
* Kill some old algo feed kind of code
2022-08-18 15:46:11 -07:00
Marshall Polaris
c37997bcb7
Add comment type field to comments ( #772 )
2022-08-18 12:47:35 -07:00
Austin Chen
c2db558b85
Describe why subsidizing is good
2022-08-18 10:12:38 -07:00
James Grugett
097000c9da
Don't scroll to top on search change except on home
2022-08-18 11:23:16 -05:00
Ian Philips
c9c3a95d2a
Condense user profile bits
2022-08-18 09:54:30 -06:00
Ian Philips
68a949de35
Change Challenge page wording
2022-08-18 08:22:37 -06:00
Ian Philips
33edd3c0fb
Create challenge without previous market ( #718 )
...
* Create challenge without previous market
* Check if they've balance to create both on fe
* Change wording slightly
* Finish merge
2022-08-18 08:15:20 -06:00
Ian Philips
c3d09e5323
Add links to challenge page
2022-08-18 07:53:19 -06:00
Marshall Polaris
97fa5fa636
Replace /markets
with /home
( #766 )
...
* Make /home not kick out logged out users
* Point people at /home instead of /markets
2022-08-17 23:15:25 -07:00
marsteralex
fb67010c0e
include draft innovation basics ( #771 )
...
* fix https
* add beasts
* Remove extra file
* Prettier-ify code
* Prettier-ify
* add basic land guesser
also added fetcher to filter all cards instead of only unique art
* default to original
makes basic better
* added set symbol to basics
added set symbol to the basics game mode. Changed name to "How Basic"
* cleanup
* changed some pixels
* only load set data if needed
* hacked fix for removing image from name
* removed check from original
* remove check from original
* sort names by set instead of by set symbol
* include battlebond
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-08-17 18:17:29 -07:00
marsteralex
5bf39a7a92
sort by set name ( #770 )
...
* fix https
* add beasts
* Remove extra file
* Prettier-ify code
* Prettier-ify
* add basic land guesser
also added fetcher to filter all cards instead of only unique art
* default to original
makes basic better
* added set symbol to basics
added set symbol to the basics game mode. Changed name to "How Basic"
* cleanup
* changed some pixels
* only load set data if needed
* hacked fix for removing image from name
* removed check from original
* remove check from original
* sort names by set instead of by set symbol
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-08-17 18:01:59 -07:00
marsteralex
2c97be815b
remove check from original ( #768 )
...
* fix https
* add beasts
* Remove extra file
* Prettier-ify code
* Prettier-ify
* add basic land guesser
also added fetcher to filter all cards instead of only unique art
* default to original
makes basic better
* added set symbol to basics
added set symbol to the basics game mode. Changed name to "How Basic"
* cleanup
* changed some pixels
* only load set data if needed
* hacked fix for removing image from name
* removed check from original
* remove check from original
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-08-17 16:03:02 -07:00
marsteralex
ce3d092497
Add Basic Lands to MTG Guesser ( #716 )
...
* fix https
* add beasts
* Remove extra file
* Prettier-ify code
* Prettier-ify
* add basic land guesser
also added fetcher to filter all cards instead of only unique art
* default to original
makes basic better
* added set symbol to basics
added set symbol to the basics game mode. Changed name to "How Basic"
* cleanup
* changed some pixels
* only load set data if needed
* hacked fix for removing image from name
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-08-17 12:40:59 -07:00
Sinclair Chen
99009f841b
Make text of old chats same size as current
2022-08-17 10:45:30 -07:00
mantikoros
bf64f5b3a9
redirect /about; more content in welcome email
2022-08-17 11:21:29 -05:00
Ian Philips
a00857cb45
Fix wrapping close date and truncate group name
2022-08-16 16:03:55 -06:00
Sinclair Chen
59565416b6
Api fixes ( #704 )
...
* Add min, max, isLogScale to numeric market API return
* Add lastUpdatedTime to market API
* Return a string description in market API
* Accept string descriptions in market POST api
* install prettier eslint config. fix import
* fix another import
2022-08-16 15:01:03 -07:00
James Grugett
8c2f3c56d3
Limit orders: Subtract fees from "profit if both filled"
2022-08-16 15:51:04 -05:00
James Grugett
62728e52b7
Revert "Tile contract cards in masonry layout ( #761 )"
...
This reverts commit 4002c23bee
.
2022-08-16 13:03:04 -05:00