Commit Graph

484 Commits

Author SHA1 Message Date
Austin Chen
2f7ab18429 Stop flooring inputs into formatMoney 2022-02-16 18:48:59 -08:00
Austin Chen
a2e4893be8 Don't include trailing !:,.; in links 2022-02-16 10:32:44 -08:00
mantikoros
95242d94ac sort trades by resolved 2022-02-16 00:08:16 -06:00
James Grugett
4917d4084b Break words in questions 2022-02-14 20:27:43 -06:00
Austin Chen
95fbfb7db0 Tweak padding 2022-02-14 15:39:59 -08:00
Austin Chen
86b4b1a907 Use badges in Your Trades 2022-02-14 15:29:29 -08:00
mantikoros
443acdbcf8 beautify trades page 2022-02-14 16:00:46 -06:00
Austin Chen
97bf1049b5 Show gray probabilities for closed markets 2022-02-14 13:34:05 -08:00
mantikoros
a8abd4ecbb trades page: show pnl 2022-02-14 13:00:20 -06:00
James Grugett
cef9eebbdf Add lowercase tags when editing tags 2022-02-13 22:41:00 -06:00
Austin Chen
0e640bf53b Show the current % instead of "MKT" in Your Trades 2022-02-13 18:20:46 -08:00
Austin Chen
5c3370ded8 Clean up Resolve Market panel 2022-02-13 15:41:08 -08:00
Austin Chen
7338bdd47a
Automatically sort Tailwind classes with Prettier (#45)
* Add Prettier Tailwind plugin

* Autoformat Tailwind classes with Prettier
2022-02-11 10:40:22 -08:00
James Grugett
9b50d67313 Render graph with bets from static props immediately 2022-02-10 14:36:19 -06:00
Austin Chen
bcc011c1fd Allow admins to edit questions 2022-02-09 10:58:33 -08:00
James Grugett
b0a1da62d2 Add sort options for /trades. Can sort by
profit or newest!
2022-02-08 23:28:20 -06:00
James Grugett
e66564cd1f Add current prob to trades items 2022-02-08 22:52:09 -06:00
James Grugett
6214b6e425 Truncate leaderboard name 2022-02-08 22:45:02 -06:00
James Grugett
096ac8f512 Put profile underneath bet popup 2022-02-08 00:57:34 -06:00
James Grugett
192b54f986 Darker text on gray resolve buttons. 2022-02-07 23:52:03 -06:00
James Grugett
041bfe5ac0 Fix latestTime graph calculation 2022-02-07 23:43:35 -06:00
James Grugett
1cf7b42597 Better handle graphs of resolved markets that had an earlier close time. 2022-02-07 22:48:36 -06:00
Austin Chen
99a5612c8d Display avatar in contract details 2022-02-05 23:02:52 -08:00
Austin Chen
359bfbf614 Show your own avatar for your feed trades 2022-02-05 22:22:13 -08:00
Austin Chen
0223ecdac2 Use Avatar in leaderboard
Removes the extra ring
2022-02-05 22:13:13 -08:00
Austin Chen
4c3119c9ec Display all avatars as a circle 2022-02-05 22:12:23 -08:00
mantikoros
3baffd4a35 bet row: auto-close dialog after a trade is submitted 2022-02-05 12:26:11 -06:00
mantikoros
f7b981c55c "winnings" => "trader profits" 2022-02-04 17:42:08 -06:00
James Grugett
247f5e9275 Add oldest sort 2022-02-04 16:04:30 -06:00
Austin Chen
0959ec7679 Show avatar on contract cards 2022-02-04 10:30:56 -08:00
mantikoros
03f36cf954
User profile (#44)
* add id, userId to comment

* change user info cloud function and script; move cleanUsername to common

* change user info script

* fix rules

* add fund button: useLocation hook

* profile page

* merge

* profile stuff

* avatar uploading to storage bucket

* changeUserInfo: use transaction

* Styles for profile page

* Edit mode for profile, and more styles

Co-authored-by: James Grugett <jahooma@gmail.com>
2022-02-03 21:04:56 -06:00
James Grugett
6a542e4530 Switch Folds menu option to Communities 2022-02-03 19:55:00 -06:00
James Grugett
ca89fd158d Make home communities look better on mobile. Add Covid & AI. 2022-02-03 19:00:17 -06:00
James Grugett
00f632ec47 Remove tw-elements for now 2022-02-03 18:10:19 -06:00
James Grugett
c36ce3e521 Change home tags to communities 2022-02-03 17:40:37 -06:00
James Grugett
e5f553fa1a Merge branch 'main' into custom-feed 2022-02-03 17:33:12 -06:00
James Grugett
587e1e5d61 Add loading spinner while feed loads 2022-02-03 17:12:09 -06:00
mantikoros
55aa2db553 resolution panel creator fee 2022-02-03 17:07:30 -06:00
James Grugett
3cf4cb7a77 Show custom feed of contracts from folds your follow or have bet on. 2022-02-03 16:54:08 -06:00
James Grugett
6c9f566d3d Add hashtag in tags of fold card 2022-02-03 14:13:51 -06:00
Austin Chen
6d6e127f7b Change Follow button to black 2022-02-03 01:49:53 -08:00
Austin Chen
65ff3ebdac "24 hour" => "24h" to save space 2022-02-03 01:48:44 -08:00
Austin Chen
e7433c2eec Save comment and description on ctrl+enter 2022-02-03 01:12:37 -08:00
Austin Chen
d0766fa7c3 Use the latest bet time for a feed group 2022-02-03 00:56:49 -08:00
James Grugett
00ac581736 Show your performance in fold 2022-02-02 23:34:35 -06:00
James Grugett
32ce410092 Show Market tags if no communities. 2022-02-02 15:29:26 -06:00
mantikoros
6ad40cf75d bottom nav bar: change last item to your trades 2022-02-02 12:56:02 -06:00
James Grugett
0a091831de Restyle tags 2022-02-01 15:03:06 -06:00
James Grugett
d6b855f0de Improve create fold button with icon and 'New' label 2022-02-01 14:10:40 -06:00
James Grugett
96c1410f01 Rename Fold => Community in UI 2022-02-01 12:12:55 -06:00
James Grugett
565ded1063 Add folds links in market, hide tags behind Show tags toggle. 2022-02-01 12:06:42 -06:00
Austin Chen
64fc0c74ff Replace bottom border with shadow 2022-01-31 17:07:12 -08:00
Austin Chen
6234b12f89 Bring up numeric keyboards on mobile 2022-01-31 17:05:01 -08:00
Austin Chen
7549cf6a89 Show a bottom navbar on mobile devices 2022-01-31 17:02:17 -08:00
James Grugett
6427e1bd06 Save tags unique and case-insensitive. Don't clear added tags on updating description. 2022-01-30 21:25:52 -06:00
mantikoros
f06ca8305c
Resolve prob (#41)
* rename MKT to PROB; show resolved probability; move format utilities to common

* ProbabilitySelector

* resolve to PROB

* prob and mkt labels
2022-01-30 15:51:30 -06:00
James Grugett
855256816e Include tags in contract search 2022-01-30 15:30:49 -06:00
jahooma
967ac1b08d Negative margin prevented clicking on top half of bet row button 2022-01-29 21:21:57 -06:00
jahooma
9fa457dec8 Hide bet row when trading not allowed 2022-01-29 21:08:06 -06:00
jahooma
482654d06b Update folds SEO to include curator. 2022-01-28 13:45:32 -06:00
jahooma
f04d66d5c8 Don't focus feed create unless there's no question yet 2022-01-28 13:23:44 -06:00
jahooma
836c87b371 Make graph's fake datapoint farther out 2022-01-28 13:19:32 -06:00
jahooma
f75dc0200d Remove link create a market in placeholder 2022-01-28 12:54:15 -06:00
jahooma
53a6748c6d Hide negative earners on leaderboard. Show empty message if none on leaderboard. 2022-01-28 12:43:35 -06:00
jahooma
d5742900b0 Remove border on ask question form. Add padding to fold title on mobile 2022-01-28 12:13:12 -06:00
jahooma
acc95bbd9c Remove spacer in feed create 2022-01-27 18:07:12 -06:00
jahooma
1ab71f8521 Flip nav folds and markets 2022-01-27 17:55:23 -06:00
jahooma
99bb8fdeea Switch to regular text area for question b/c causing jump, and no new expansion necessary 2022-01-27 17:52:24 -06:00
jahooma
23ea1d72b7 Home menu option goes to /home if signed in 2022-01-27 17:33:50 -06:00
jahooma
49bc3c5735 Tweak profile menu width 2022-01-27 17:31:41 -06:00
mantikoros
63ca394d6e profile menu: use avatar component 2022-01-27 17:24:44 -06:00
mantikoros
bdb2cfd710 avatar component 2022-01-27 17:14:45 -06:00
jahooma
0cc108e1ac Fix the width of profile menu 2022-01-27 17:12:18 -06:00
James Grugett
649c6f4642
Make navbar render signed in or signed out by page (#39) 2022-01-27 17:06:31 -06:00
mantikoros
bd6c215cd3
use img instead of next js image for avatar, logo (#38) 2022-01-27 16:50:55 -06:00
jahooma
9b59ea9fbe Bring back global leaderboards linked from profile menu 2022-01-27 16:43:45 -06:00
jahooma
f2c4d3e9c1 Change to white backgrounds for content. Remove page's margin, set individually. 2022-01-27 16:37:43 -06:00
jahooma
77eaf070e6 Make clicking feed create focus input. Shrink create market button 2022-01-27 15:22:18 -06:00
mantikoros
6e2d16225e feedcreate: simplify design 2022-01-27 15:08:28 -06:00
jahooma
077eeec2c7 Fix hiding bet row on market page 2022-01-27 15:02:47 -06:00
jahooma
aebf572dc9 Shrink and label bet row 2022-01-27 14:49:59 -06:00
mantikoros
f451d94295 feedCreate: use hook for randIndex 2022-01-27 14:46:23 -06:00
mantikoros
e697024f52 FeedCreate: change placeholders, cycle through randomly 2022-01-27 14:40:46 -06:00
jahooma
bb788d5201 Change placeholder in fold create question 2022-01-27 14:05:59 -06:00
jahooma
6696ac2a15 Make about optional for folds 2022-01-27 12:57:36 -06:00
jahooma
9764a03189 Add create market to top of fold activity. Auto-adds the primary tag of the fold. 2022-01-27 12:45:35 -06:00
jahooma
64d46b7cdd Add folds navigation option on mobile 2022-01-27 01:30:51 -06:00
jahooma
61d2557c35 Launch folds in nav bar, update copy. 2022-01-27 01:10:28 -06:00
jahooma
d83fe1a202 Make feed create avatar not load glitchily 2022-01-27 00:49:23 -06:00
jahooma
769763d006 Tweaks 2022-01-27 00:38:42 -06:00
jahooma
da695c33f4 Fix profile menu opening underneath links 2022-01-27 00:38:42 -06:00
mantikoros
1eccdb7b4f homepage tweaks 2022-01-26 18:44:36 -06:00
Austin Chen
549926a323 Show Buy buttons next to prob on mobile 2022-01-26 18:31:01 -06:00
mantikoros
d9c67e8d49 new signed-out homepage 2022-01-26 18:21:25 -06:00
jahooma
33c8fe2bc0 Append tags from market page 2022-01-26 17:45:07 -06:00
jahooma
2e7a8210bb No symbols in fold primary tag. Limit Name to 140 chars 2022-01-26 17:45:07 -06:00
Austin Chen
c047365bb4 Include "Buy" tag inside buttons 2022-01-26 16:28:57 -06:00
jahooma
348c8d565a Fold delete 2022-01-26 14:56:15 -06:00
jahooma
b1abfcda8b Placeholder when no activity on folds page 2022-01-26 14:39:25 -06:00
Austin Chen
e4377ee3a3
Allow betting directly from the activity feed (#36)
* Show a popup for betting on the Activity feed

* Replace the popup with a YES/NO selector

* Autofocus the bet amount

* Hide BetRow when not appropriate

* Make bet modal larger on desktop

* Default to YES if no bet choice has been made yet
2022-01-26 14:08:03 -06:00