Ian Philips
7d8ccb78a4
Remove unused bets (redemptions, antes) and sort by desc in query ( #264 )
...
* Remove unused bets and sort in query
* remove console
* Explicitly ignore or include redemptions
* Pass options from parent function
* Fix let=>const
2022-05-19 10:03:37 -06:00
Ian Philips
8013862f15
Center question button on lg
2022-05-19 09:20:38 -06:00
Ian Philips
6935f8865d
Move comment btn to its own row on xs
2022-05-18 21:34:59 -06:00
Ian Philips
e6dabf97d9
Show prob at time of comment on binary markets ( #255 )
...
* Show prob at time of comment on binary markets
* unused import
2022-05-18 19:38:02 -06:00
James Grugett
6a30a41b10
Make analytics show data up to current hour
2022-05-18 18:53:53 -04:00
James Grugett
e9ee7e2355
Truncate user link
2022-05-18 17:08:46 -04:00
James Grugett
1f3f800a57
Show close time in cards on close date sort
2022-05-18 17:08:46 -04:00
Ian Philips
6d3aaf71d4
Any question => anything
2022-05-18 13:47:53 -06:00
Sinclair Chen
e2b03f31e9
Style current page on mobile nav bar
2022-05-18 15:45:08 -04:00
Ian Philips
daf6cadea9
Remove border from sidebar buttons
2022-05-18 10:52:00 -06:00
Austin Chen
7b3c8ea046
Revert "back to M$ — playtime is over"
...
This reverts commit ed41d99484
.
2022-05-18 12:09:24 -04:00
Ian Philips
ca9e93fe47
Show loading indicator on comment submit
2022-05-18 10:08:42 -06:00
Austin Chen
f17675bbcf
Fix typo
2022-05-18 12:07:36 -04:00
Austin Chen
44c53ae96d
Kill the ugly "Sign in" button
2022-05-18 12:06:41 -04:00
Austin Chen
89b05be5ec
Tweak "Ask a question" button VisD
2022-05-18 11:57:22 -04:00
Austin Chen
39870dd933
Bets on profile, again ( #251 )
...
* Revert "Revert "Show every user's bets on their profile (#170 )""
This reverts commit 142206b79a
.
* Fix typo
* Delete portfolio page
2022-05-18 11:52:12 -04:00
Ian Philips
eb3ac802c0
Fix #208 - check for comments without ids
2022-05-18 09:35:32 -06:00
Ian Philips
974d5a8d89
hide free daily market when signed out
2022-05-18 09:25:56 -06:00
James Grugett
142206b79a
Revert "Show every user's bets on their profile ( #170 )"
...
This reverts commit d50cc39c27
.
2022-05-18 10:59:08 -04:00
James Grugett
d51a20e2e0
Add back useState to import
2022-05-18 10:57:45 -04:00
James Grugett
acd59767e4
Move search and sort/filter options in one line on mobile
2022-05-18 10:42:56 -04:00
Boa
7b3c21cf98
Comments ux improvements and bugfixes ( #246 )
...
* Show majority stake on comments
* Darken comment input text
* Fix old FR comments displayed in general section
* Refactor feed comments and bets into files
* Only allow user to comment on most recent bet
* Fix overlapping sign in to comment
* Only calculate current users bets once
* Minor tweaks & is betting @ prob
2022-05-18 08:42:13 -06:00
Austin Chen
d50cc39c27
Show every user's bets on their profile ( #170 )
...
* Show user bets on their profile
* Add an alert for current users
* Replace `/portfolio` with `/Austin?tab=Bets`
* Replace `/Austin?tab=Bets` with `/Austin/bets`
* Use replaceState for better browser history
* Remove two console.logs
* Note a bug
* Fix path
* Write in description of why we're doing this
2022-05-18 10:36:17 -04:00
mantikoros
42c981a54d
remove border on ask question button
2022-05-18 10:21:03 -04:00
James Grugett
76ffe8eea1
Infinite scroll: automatically load new page of results
2022-05-17 19:29:46 -04:00
James Grugett
be9df7bcd8
Fix links beginning with https
2022-05-17 17:11:24 -04:00
mantikoros
ed41d99484
back to M$ — playtime is over
2022-05-17 15:34:58 -04:00
James Grugett
7da46050e5
Swap home and explore ( #244 )
...
* Add activity page. Copy explore page into home
* Update navbar with activity. Show explore instead if signed out.
* Move category selector into contract search
* Make algolia filter by category
* Default tag page to all filter
2022-05-17 12:56:10 -05:00
Sinclair Chen
1bf2073e61
refactor SiteLink to not repeat ( #125 )
2022-05-17 10:36:36 -07:00
Sinclair Chen
f8601af45c
Bet embed ( #204 )
...
* Add bet buttons to embed
- Make only title link to market
- Prevent avatar / username from being clicked on
* refactor: remove extra elem, de-indent
* adjust embed info row styles
* make bet panel smaller
* make sell panel smaller
2022-05-17 10:31:19 -07:00
Ian Philips
d458d8a299
Includes=>endsWith for multi digit answers
2022-05-17 10:13:29 -06:00
Ian Philips
ef98c16c26
Created contrac today => true to avoid free market flash
2022-05-17 10:06:00 -06:00
mantikoros
b98468c7ea
show none option in categories
2022-05-17 12:02:46 -04:00
Ian Philips
1afda07525
Handle linking from feed
2022-05-17 10:00:09 -06:00
Boa
8337cb251f
Enable url linking to comments and a copy to clipboard function [wip] ( #239 )
...
* Link to comments & highlight comment
* Copy link, show toast and fade bg
* Remove unused imports
* Standardize link copied toast
* Add linking to answer comment threads
* Refactor open answers component, use indigo highlight
* Distinguish chosen answer a bit more
2022-05-17 09:55:26 -06:00
mantikoros
5310da05e2
fix double hashtag
2022-05-17 11:49:10 -04:00
mantikoros
2858fd090c
"create market" => "ask question"
2022-05-17 11:32:20 -04:00
mantikoros
14ce820dcb
cache deservesDailyFreeMarket locally
2022-05-17 11:32:10 -04:00
mantikoros
f47d75c120
landing page tweaks
2022-05-17 10:25:51 -04:00
mantikoros
4860150334
change slogan
2022-05-17 10:02:29 -04:00
Austin Chen
a3c1cd2cc1
Unhardcode M$ in more locations
2022-05-17 08:17:22 -04:00
Austin Chen
8982dcae10
Replace "m1234" with "ϻ1234"
2022-05-17 08:13:12 -04:00
Marshall Polaris
cd7efb03ca
Implement onRequest
versions of createContract
, placeBet
functions ( #227 )
...
* Reimplement createContract and placeBet cloud functions
* Fix broken warmup function error handling
2022-05-16 21:43:40 -07:00
Marshall Polaris
aafd2a226f
Clean up some stuff with SellPanel and AmountInput ( #232 )
...
* Hoist SellAmountInput logic into SellPanel
* Ditch now-unnecessary SellAmountInput
* Clean up sale proceeds markup
* Clean unused imports
* BuyPanel doesn't need userBets
2022-05-16 20:27:37 -07:00
Austin Chen
6c6cbdc1a5
Redesign the contract card ( #235 )
...
* Redesign the card
* Limit to 1 category on a card
* Make card tags a lighter gray
* Righbar always starts from the bottom
2022-05-16 19:15:22 -04:00
Marshall Polaris
6f1c20571b
Upgrade HeadlessUI to 1.6.1 ( #234 )
...
https://github.com/tailwindlabs/headlessui/releases
2022-05-16 07:38:16 -04:00
Marshall Polaris
72b21925e5
Allow users to generate an API key in their profile ( #182 )
...
* Add /private-users/apiKey to DB
* Add field to edit API key on profile
* Move API key to bottom of profile page
Austin thinks this is better since most people don't care about it.
2022-05-15 20:41:07 -07:00
James Grugett
19da0c6c82
Default to 'all' feed category when loading page.
2022-05-15 23:09:49 -04:00
James Grugett
727d85ddac
Make text underneath filled green answer bar selectable
2022-05-15 23:07:38 -04:00
Marshall Polaris
ee91a94466
Clean up some bet panel markup and CSS ( #231 )
...
* Tidy up probability change markup
* Tidy up payout markup
2022-05-15 14:10:26 -07:00
James Grugett
c85b806bc1
Change analytics to 45 days instead of 90 to fix timeout
2022-05-15 15:50:28 -04:00
Marshall Polaris
07ded756d9
Remove unused imports from random files ( #224 )
2022-05-13 18:30:52 -07:00
Marshall Polaris
bc5cd5be45
Clean up some markup in the sidebar ( #220 )
...
* Remove wrapper div around logo
* Small refactor, remove wrapper around sidebar profile summary
* Remove random unused imports
* Replace random styles with Tailwind classes
2022-05-13 18:07:44 -07:00
Marshall Polaris
33c0471c29
Clean up some markup around the top of the page ( #189 )
...
* Remove unnecessary wrapper div around sidebar
* Remove extra column used for alignment on homepage
* Remove extra wrapper div around whole page
2022-05-13 16:47:50 -07:00
Marshall Polaris
babca140f1
Fix random errors ( #205 )
...
* Fix warning in ShareMarket component
* Fix NewContract component to use keys on category list
* Refactor NewContract component to assign `value` to `select`
2022-05-13 16:42:48 -07:00
James Grugett
8be6b79732
Remove 'Category' label
2022-05-13 16:19:15 -04:00
James Grugett
8ce3a09471
Shrink vertical padding on feed answer group
2022-05-13 16:16:46 -04:00
James Grugett
e660acab56
Put back hotjar code, but deactivate from hotjar site
2022-05-13 15:07:32 -04:00
James Grugett
67717bbde7
Prevent having to go back twice from profile / tag search page
2022-05-13 15:01:38 -04:00
James Grugett
b195dcdfd2
Print build info only once
2022-05-13 14:33:02 -04:00
James Grugett
5f59623be8
Disable hotjar
2022-05-13 14:31:03 -04:00
James Grugett
d62156b8c0
Hide scrollbar on categories
2022-05-13 14:27:47 -04:00
Austin Chen
805a997ba0
Fix hotjar typo
...
Copy+pasting is hard >.>
2022-05-13 10:59:47 -04:00
Austin Chen
bf07b45467
Add id to hotjar script
...
Apparently needed by NextJS
2022-05-13 10:49:01 -04:00
Austin Chen
c99cf7579b
Try out Hotjar
2022-05-13 10:11:57 -04:00
James Grugett
06cdf2a84a
Show category on market card ( #197 )
...
* Show category on market card
* Show multiple categories in contract description
* Tweak layout of contract card and show multiple categories
2022-05-12 18:28:21 -05:00
Austin Chen
e0d266887c
Show prob of FR answer as a bar chart ( #200 )
2022-05-12 14:04:51 -04:00
Austin Chen
25d3fbcc5f
Add a hover to the category selector
2022-05-12 13:47:07 -04:00
Ian Philips
c2f8aee89e
Touch up reply buttons
2022-05-12 10:27:52 -06:00
James Grugett
aafc08f24c
Prevent android chrome from defining categories on tap
2022-05-12 12:07:46 -04:00
Ian Philips
fed49d3040
Hide ante in FR bets tab
2022-05-12 09:48:19 -06:00
James Grugett
31f57f8ff2
Condense category names to just the tag name
2022-05-12 11:18:44 -04:00
James Grugett
49f900b298
Tags input: save on enter
2022-05-12 11:13:35 -04:00
mantikoros
9a4e5763f5
Categories ( #132 )
...
* basic market categories
* use tags to store market category
* display category in market
* display full category
* category selector component on feed
* Move feed data fetching to new file
* Decrease batch size for updating feed to prevent out-of-memory error
* Compute and update category feeds!
* Show feeds based on category tabs
* Add react-query package!
* Use react query to cache contracts
* Remove 'other' category
* Add back personal / friends to feed categories
* Show scrollbar temporarily for categories
* Remove 5 categories, change geopolitics to world
* finance => economics
* Show categories on two lines on larger screens
Co-authored-by: James Grugett <jahooma@gmail.com>
2022-05-12 10:07:10 -05:00
Boa
403156ed1a
FR ux changes, restore submit button for comments ( #195 )
2022-05-12 08:59:05 -06:00
James Grugett
696e6a7882
Revert "Fix hyperlinks when starting with an open paren"
...
This reverts commit 2fd9759bc1
.
2022-05-11 21:42:33 -04:00
Marshall Polaris
1063897c7c
Clean up extra wrapper and CSS on BetRow ( #178 )
2022-05-11 14:35:50 -07:00
Boa
02ed9bf7e1
Single threaded comments ( #175 )
...
* Remove unused hideOutcome in comments
* Remove unused hideOutcome in comments
* Add replyToComment fields to Comment
* Add 1 threaded replies to comments & answers
* Allow smooth scrolling within pages via #
* remove yarn-error log
* correct spelling
* Remove smooth-scroll-to-hashtag component
* Cleanup & show user position/bets in replies
2022-05-11 15:11:46 -06:00
Sinclair Chen
aa433e309c
restyle home page (separation between markets) ( #186 )
2022-05-11 12:51:45 -07:00
Austin Chen
2fd9759bc1
Fix hyperlinks when starting with an open paren
2022-05-11 15:28:28 -04:00
James Grugett
2b9e639281
Default to 'all' search filter for markets on user page
2022-05-11 00:19:29 -04:00
Marshall Polaris
b55e807c62
Truncate multi-line commit messages in console build info ( #180 )
2022-05-10 21:12:00 -07:00
Marshall Polaris
22c594eb79
Print out build info in console ( #179 )
...
* Print out build info in console
* Fix up build info printing per feedback
2022-05-10 20:57:09 -07:00
James Grugett
948d878222
Prevent 500 error on markets with no collected fees
2022-05-10 23:01:07 -04:00
Marshall Polaris
9b376fb11a
Reinstate eslint warning cleanup ( #174 )
...
* Reinstate eslint upgrade and related fixes
* Another shot at improving ContractLeaderboard
2022-05-10 14:49:24 -07:00
Marshall Polaris
4565430db5
Revert "Upgrade eslint, fix eslint warnings ( #149 )"
...
It's not 100% clear, but this could have caused some production
problems on the contract page, so let's revert it for now.
2022-05-10 14:22:57 -07:00
Marshall Polaris
6c9df223d8
Feed container markup cleanup ( #173 )
...
* Move FeedContainer stuff into ActivityFeed
* Greatly clean up ActivityFeed container markup
2022-05-10 13:59:19 -07:00
Marshall Polaris
167cf20bfc
Upgrade eslint, fix eslint warnings ( #149 )
...
* Add a couple missing dependencies for hooks
* Upgrade eslint
This newer eslint and typescript-eslint fixes some spurious warnings
that were bugs and supports our version of Typescript.
* Use Next Script component the way it wants us to
* Rephrase ContractLeaderboard component to avoid useEffect woes
* Use perhaps more idiomatic type for ContractLeaderboard props
* Make Folds data fetching more correct and more clear
2022-05-10 13:58:38 -07:00
Sinclair Chen
a297f6492d
move manaToUSD to format.ts ( #172 )
2022-05-10 11:14:24 -07:00
Austin Chen
b97301c6fa
Hardcode two new frontpage markets
2022-05-10 13:03:53 -04:00
mantikoros
264e5058ea
Separate out fees ( #169 )
...
* deduct market ante from profits
* display creator fees in stats
* show creator earnings in stats
* separate out creator, liquidity fees in payouts and deduct from profits
* include creator payout in resolution emails
* deduct liquidity from profits
* hide cost tooltip if daily free market
2022-05-10 08:49:14 -05:00
Marshall Polaris
d34907681a
Remove some random unnecessary wrapper divs ( #163 )
...
* Remove wrapper div in user comment feed item
* Remove wrapper div around feed market card title link
* Remove wrapper div around BetRow
2022-05-09 15:50:20 -07:00
mantikoros
ef43e46153
include fees in tooltip
2022-05-09 17:33:24 -04:00
Marshall Polaris
8a99f3772a
Cleanup avatar again ( #161 )
...
* Reinstate avatar component cleanup
This was reverted due to a bug, fixed in the subsequent commit.
* Kill additional wrapper divs around avatars
This also fixes a bug where the `w-8` answer row wrapper div was
constraining the width of the `w-10` avatar, leading it to be `w-8`
and `h-10` and appear as an oval.
2022-05-09 14:32:59 -07:00
mantikoros
5135135e79
Separate out fees ( #159 )
...
* deduct market ante from profits
* display creator fees in stats
* show creator earnings in stats
* separate out creator, liquidity fees in payouts and deduct from profits
2022-05-09 16:04:40 -05:00
Boa
a5b0372a6e
Free response markets with investment cap ( #157 )
...
* Show error message for FR bet
* Allow M$ limit for markets
* Allow M$ limit for markets
* Apply M$ limit to FR answer bets
* Improve error message
* Improve error message
* Only check stats if mana limit set
* Consolidate logic
* Remove unused variable
* absolute import
* absolute imports
2022-05-09 14:09:07 -06:00
James Grugett
d55990d5d4
Fix contract search not adjusting to new user
2022-05-09 15:47:18 -04:00
James Grugett
e8ab863557
🔍 Algolia search ( #136 )
...
* Add algolia and instantsearch packages
* Switch to hooks-web package
* Implement algolia search!
* Fix types
* Fix tags page
* Closed sort option
* Implement select for filtering on open, closed, resolved, all.
* Support search in dev environment
* Fix runtime error in landing page
2022-05-09 12:38:33 -05:00
Ian Philips
8fbbeffd38
Revert one more avatar component change
2022-05-09 10:33:52 -04:00
Ian Philips
5c1bc78408
Revert avatar component changes
2022-05-09 10:18:05 -04:00