Marshall Polaris
0568322c82
Dramatically improve server auth stuff ( #826 )
2022-08-31 22:13:26 -07:00
James Grugett
3660830ec1
Don't server side render Notifications page for improved perf
2022-08-31 15:41:34 -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
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
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
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
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
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
James Grugett
7ea6777d6b
Add margin bottom to tournament cards to reveal shadow
2022-08-29 00:29:59 -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
Austin Chen
f0727a65fc
Add SF 2022 Ballot to /tournaments
2022-08-28 21:33:13 -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
e4c66e08f5
clean up add markets dialog
2022-08-28 16:26:36 -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
03e07037ea
ban users from posting ( #810 )
2022-08-28 00:23:25 -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
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
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
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
2e3c2d4dcb
Tweak to add market to group UI
2022-08-27 00:59:00 -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
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
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
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
6f2e2a3bbb
Render graph for multiple choice embeds
2022-08-26 00:23:50 -05:00
James Grugett
e5777f02d8
Expand notifications by default if <= 3 items
2022-08-26 00:00:44 -05:00
James Grugett
97b648a51e
Move recommended markets below market white bg onto gray bg
2022-08-25 12:59:26 -05: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