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
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
2e3c2d4dcb
Tweak to add market to group UI
2022-08-27 00:59:00 -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
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
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
539bfba70c
Decrease starting time window for free response graph
2022-08-26 00:21:06 -05: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
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
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
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
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
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
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
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
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
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
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
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
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
Sinclair Chen
99009f841b
Make text of old chats same size as current
2022-08-17 10:45:30 -07:00
Ian Philips
a00857cb45
Fix wrapping close date and truncate group name
2022-08-16 16:03:55 -06: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
James Grugett
63a5241b2e
Revert "fix firefox visual glitch - single card wrapping"
...
This reverts commit ec7263da18
.
2022-08-16 13:02:55 -05:00
Marshall Polaris
59ca1f7640
Denormalize some contract comment fields ( #760 )
...
* Make `groupConsecutive` more capable
* Put denormalized `contractQuestion` and `contractSlug` on comments
* Update user profile UI to use new denormalized fields
* `/Austin` -> `/market`
2022-08-15 22:43:46 -07:00
Sinclair Chen
ec7263da18
fix firefox visual glitch - single card wrapping
2022-08-15 22:08:09 -07:00
Sinclair Chen
4002c23bee
Tile contract cards in masonry layout ( #761 )
2022-08-15 17:41:53 -07:00