James Grugett
e4064b89ff
Turn of lint for nextjs typos (triggered by getStaticPropz)
2022-03-09 21:31:38 -06:00
James Grugett
c24c9404a7
Hide bets on free response feed (except for feedType 'multi')
2022-03-09 21:23:17 -06:00
James Grugett
79bd299b68
Enforce max question length, description length, and tag length.
2022-03-09 11:08:57 -06:00
Austin Chen
da4ce99755
Merge Manifold for Teams infra into main codebase ( #61 )
...
* Add dev target for TheoremOne
* Restrict signups to theoremone.co emails
* Add new indices
* Forbid reads from unauthenticated users
* Client-side render pages that need auth
These pages are now client-side rendered:
- /home
- /leaderboards
- /market/...
- /fold/...
* Hide 404 for private Manifolds
* Brand instance for TheoremOne
* Hide "Add Funds" and "Personalize your feed"
* "M$" => "T$"
* Hide Discord & About Page too
* Update placeholders for teams
* Update firestore.indexes.json
* Switch /analytics to propz
* Migrate per-env code into common/
* More migrations to PROJECT_ID
* Conditionally use SSG depending on public vs private instance
* Fix props to be empty object
* Move more logic into access
* Spin out config files for each environment
* Generify most of the customizable brand stuff
* Move IS_PRIVATE_MANIFOLD to access.ts
* Rename access.ts to envs/constants.ts
* Add "dev:dev" alias
* Rever firestore rules to existing settings
* Fixes according to James's review
2022-03-08 18:43:30 -08:00
Austin Chen
9fbed63eaf
Show the market creator's bets in feed
2022-03-08 16:24:06 -08:00
James Grugett
b0e4f6d27a
Add time param to Twitter share url, so that the image preview is re-fetched
2022-03-08 15:36:15 -06:00
Austin Chen
a32bb57167
Update about page
2022-03-07 10:40:53 -08:00
James Grugett
a8fd4c8014
Better fix the create market focus issues. Expand to 4 lines when you add many chars to a question.
2022-03-06 00:48:08 -08:00
James Grugett
d8681b043c
Only autofocus question input if no question text and not focused.
2022-03-05 23:58:54 -08:00
James Grugett
4ee458d3f5
Align "See more..." right on mobile
2022-03-05 23:48:35 -08:00
James Grugett
d7d8fb94c4
Trim activity feed ( #60 )
...
* Trim activity feed: show only items from last 24 hours, remove contract description, shorter width.
* Preserve feed ordering based on initial fetch of bets
* Add see more button, description to explore items
2022-03-04 18:06:11 -06:00
James Grugett
e49b64ee9f
Flex shrink 0 on bet panel container
2022-03-04 10:33:38 -08:00
James Grugett
cb9fa0ceb2
Daily active users & comments
2022-03-03 12:59:12 -08:00
mantikoros
ed9b20b5ad
fast folds: add russia-ukraine
2022-03-03 13:57:59 -05:00
Austin Chen
b4f8fcf38e
Show profit/loss in sale panel
2022-03-03 02:10:20 -08:00
Austin Chen
ef77779cec
Format Tailwind classes with Prettier
...
Not sure why Husky hooks aren't enforcing this 🤷
2022-03-03 01:09:32 -08:00
Austin Chen
d9fb2c0557
Tweak padding
2022-03-03 01:07:21 -08:00
Austin Chen
c0ace53df2
Improve VisD & copy on landing page
2022-03-03 00:56:03 -08:00
Austin Chen
76c4cd6d68
Render timestamps client-side to fix timezone ( #58 )
...
* Render timestamps client-side to fix timezone
* Fix compilation error
2022-03-02 23:51:58 -08:00
James Grugett
c30962bf80
Create bet count and market count charts in our analytics
2022-03-02 17:52:41 -08:00
James Grugett
4d8af33c85
Invested value => Investment value
2022-03-02 15:48:38 -08:00
James Grugett
6285212a1e
Update your trades to show total profit, invested value
2022-03-02 15:42:59 -08:00
James Grugett
fa817c34a9
Fix more places where insufficient balance error was not accounting for loans
2022-03-02 14:28:23 -08:00
James Grugett
cd8b336635
Enforce a max comment length
2022-03-02 14:09:53 -08:00
James Grugett
405604adef
Fix insufficient balance error to use bet amount net loan
2022-03-02 14:02:44 -08:00
James Grugett
6abf235505
Show correct remaning balance for ante input when creating market
2022-03-02 13:50:19 -08:00
James Grugett
2a03751d49
Widen bet panel
2022-03-02 13:43:48 -08:00
James Grugett
1dd078562a
Fix to actually show investment instead of current value. And subtract bet amount from current value.
2022-03-01 21:09:33 -08:00
James Grugett
985cdd2537
🏦 Per-market loans! ( #57 )
...
* Loan backend: Add loanAmount field to Bet, manage loans up to max loan amount per market -- buy, sell, and resolve.
* Loan frontend: show your loan amount in bet panel, answer bet panel
* Resolve emails include full payout not subtracting loan
* Exclude sold bets from current loan amount
* Handle bets table for loans. Sell dialog explains how you will repay your loan.
* Floor remaining balance
* Fix layout of create answer bet info
* Clean up Sell popup UI
* Fix bug where listen query was not updating data.
* Reword loan copy
* Adjust bet panel width
* Fix loan calc on front end
* Add comment for includeMetadataChanges.
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-03-01 21:31:48 -06:00
Austin Chen
a3973b3481
Comment on cmd+enter too
2022-03-01 18:52:50 -08:00
James Grugett
ce30b34480
Fetch somewhat less data for fold static props
2022-03-01 18:08:46 -08:00
Austin Chen
6243f132aa
Add "closed" sort option
2022-03-01 18:02:07 -08:00
James Grugett
5944cada77
Quick fix: don't show points in graph when > 100 bets
2022-03-01 17:43:06 -08:00
James Grugett
c372a0af9d
Filter out undefined contracts in fold
2022-03-01 12:40:46 -08:00
James Grugett
415bd4990a
Check each word individually in markets search
2022-02-28 17:52:41 -08:00
James Grugett
71faee584c
Add funds menu option, and Add funds page
2022-02-28 17:32:53 -08:00
Austin Chen
445e90f2b9
Link to analytics page from /about
2022-02-28 17:11:37 -08:00
James Grugett
5a39ca4c5e
Don't show payout if chosen column for resolved markets
2022-02-28 16:44:25 -08:00
James Grugett
4bc2833e11
Add column to bets table with payout if chosen. Rearrange columns. Tweak sell dialog wording.
2022-02-28 16:38:09 -08:00
James Grugett
a680d80793
Free response: Show invested and payouts on market page, don't show payout if yes/no
2022-02-28 15:58:13 -08:00
James Grugett
c6eb729e46
Remove border on feed tabs
2022-02-28 15:22:01 -08:00
James Grugett
8884f1beb9
Expose resolutionTime in API ( #56 )
...
* Expose resolutionTime. Compute closeTime to be the min of resolution and close time
* Rename settled to resolved, newest to most recent
2022-02-28 11:40:48 -08:00
James Grugett
b7f94e65a7
Change Settled to Resolved, Newest to Most recent in trades sort options.
2022-02-27 16:52:58 -08:00
James Grugett
0ccba20d5c
Add explore tab on home feed that shows random inactive markets.
2022-02-27 13:37:11 -08:00
Austin Chen
8987a02975
Reapply Manifold for Teams config changes ( #54 )
...
* Reapply Manifold for Teams config changes
* Add Firebase config for TheoremOne
* Fix build
* Check in Firebase indexes
* Whitelist admins and new users by email
* Fix typo 🤦♂️
2022-02-26 23:29:33 -08:00
Austin Chen
492f777d0b
Revert "Manifold for Teams: Support different Firestore dbs ( #53 )"
...
This reverts commit ebed7c15c0
.
2022-02-26 22:19:16 -08:00
Austin Chen
ebed7c15c0
Manifold for Teams: Support different Firestore dbs ( #53 )
...
* Add Firebase config for TheoremOne
* Fix build
* Check in Firebase indexes
* Whitelist admins and new users by email
2022-02-26 22:08:50 -08:00
James Grugett
77b4ca4f22
FR: Don't show bet panel if resolving, or past close date.
2022-02-26 10:56:49 -06:00
James Grugett
2775bf44a2
Put back answer number on answer item
2022-02-26 10:51:36 -06:00
James Grugett
b1e0f3ee80
Linkify answer text
2022-02-25 22:00:23 -06:00
Austin Chen
0a98ffe05c
Remove sold bets from Your Trades
2022-02-25 16:57:28 -08:00
James Grugett
a3592f388b
Fix feed to actually sort by last bet
2022-02-25 16:19:32 -06:00
James Grugett
ab5ea0181d
Feed: Send only contracts with bets in last 24 hours. Instead of all contracts: 2.2MB => 0.8MB
2022-02-25 02:11:10 -06:00
James Grugett
cd590031e7
Feed updates: 1. Order by any bet instead of top 10 & comments 2. No resolved contracts 3. Show loading while fetching recent bets clientside so order preserved 4. Don't change order from new bets
2022-02-25 01:59:53 -06:00
James Grugett
8305ecd667
Match search query against contract answers
2022-02-24 17:35:30 -06:00
Austin Chen
952b7be94a
Show a mini-feed of comments & bets below each FR answer ( #52 )
...
* Take out <ul> from Feed
* Show a mini-feed under each FR answer
* Expand row on click
* Show feed item for FR answer submission
* Fix build
2022-02-24 11:26:01 -08:00
James Grugett
a2c1107e10
Update banner logo to have white rectangle around text
2022-02-24 01:21:55 -06:00
James Grugett
764ade0749
Change logo banner to use transparent background
2022-02-24 01:11:53 -06:00
James Grugett
aec690a106
Debounce search query url changes
2022-02-23 22:57:59 -06:00
James Grugett
bf2f289e29
Show pool amount in feed for all markets including resolved and without close date
2022-02-23 22:20:42 -06:00
Austin Chen
9b98c6f300
Reorder navbar options
2022-02-23 00:24:39 -08:00
James Grugett
702755c797
Prevent client error with > 10 tags on contract
2022-02-22 22:21:00 -06:00
James Grugett
7bc43682b8
Move tweet button into contract details
2022-02-22 21:38:53 -06:00
James Grugett
b7af65eec3
Move Twitter button above graph per Stephen's request
2022-02-22 21:22:24 -06:00
mantikoros
a6657a28fd
add @SG back to leaderboard
2022-02-22 19:41:57 -06:00
mantikoros
c24007012c
bets list: show message if no active bets
2022-02-22 16:55:06 -06:00
James Grugett
85c3a1532a
Undo timezone change. Production is different from local. Not sure how to render in local timezone...
2022-02-22 15:14:52 -06:00
James Grugett
72d0797b3f
Use local timezone for date time tooltip
2022-02-22 14:54:58 -06:00
James Grugett
185e68fa23
Fix 'undefined chance' in metatag description
2022-02-22 14:17:58 -06:00
James Grugett
8fe9f23d91
Fix hiding answers where all bets sold
2022-02-22 14:12:49 -06:00
James Grugett
858ce10b49
Re-order sell button and sale price to be first in bets table
2022-02-21 14:22:36 -06:00
James Grugett
6d3fb8f4ae
Remove balance from your trades page (looks better on mobile, cleaner)
2022-02-21 12:55:26 -06:00
Austin Chen
ed789aa4bb
Reroute /api and /api/v0 to our docs page
2022-02-21 10:50:20 -08:00
James Grugett
c32442ab41
Fix trades sort by newest
2022-02-21 12:42:51 -06:00
James Grugett
207a12df55
Listen to followed folds. Follow button retreives from local storage.
2022-02-20 23:12:35 -06:00
James Grugett
62b1966b21
Don't flash sign in to trade button until known to be logged out
2022-02-20 22:37:53 -06:00
James Grugett
793742b499
Trades page: Wait for all bets / contract data to load with loading indicator
2022-02-20 22:26:22 -06:00
James Grugett
561a7e2c75
Allow editing the close time
2022-02-20 22:04:00 -06:00
James Grugett
7c18f4b96b
Make feed auto-update again.
2022-02-20 21:06:10 -06:00
James Grugett
20a3966820
Filter out answers with 0 dollars
2022-02-20 17:19:45 -06:00
James Grugett
f5ab60b2df
You can sell your ante on a new answer. Minimum is M$ 1 instead of M$ 10
2022-02-20 17:02:00 -06:00
James Grugett
8580698c15
Split answers panel into 5 files
2022-02-20 16:25:58 -06:00
James Grugett
fd846254a0
Implement resolving to multiple answers, weighted by probability
2022-02-20 01:26:33 -06:00
mantikoros
42f88766b3
api: remove userId from bets
2022-02-19 22:51:51 -06:00
mantikoros
096a9e773a
refactor /home logic to useActiveContracts
2022-02-19 18:02:40 -06:00
mantikoros
60f72fa6ab
FastFoldFollowing: check if followedFoldIds is defined
2022-02-19 17:26:49 -06:00
mantikoros
2c572dd89a
FastFoldFollowing: check if user defined
2022-02-19 17:23:03 -06:00
mantikoros
13727bb19f
Fast fold following ( #51 )
...
* fast follow folds
* FastFoldFollowing component on homepage
2022-02-19 17:17:36 -06:00
James Grugett
0641db1f2d
Show sign in button instead of submit answer if logged out.
2022-02-19 11:42:27 -06:00
James Grugett
2a5172cb48
Switch to sending only recent bets and comments from static props
2022-02-18 12:43:13 -06:00
Austin Chen
963c578a73
Link to /home to create new markets
2022-02-17 18:32:15 -08:00
Austin Chen
3dd7b12e71
Iconify contract details; show relative closing time
2022-02-17 18:24:10 -08:00
Austin Chen
675f0a1599
Show BetRow on the bottom of long feeds
2022-02-17 17:56:03 -08:00
Austin Chen
a17342e55c
New, pretty user page ( #48 )
...
* Show bio, banner, and social links on user page
* Minor tweaks
* Allow edits to their user page
* Fix build; add a white ring around users
* From userpage, link to /profile (which is always editable now)
* Update userpage SEO
* Clean up Profile menu
* Fixes according to Stephen's code review
2022-02-17 17:16:58 -08:00
James Grugett
20ec09b7c6
Remove filter out of binary contracts
2022-02-17 18:39:06 -06:00
James Grugett
0a3b14883c
Update SEO for non-binary markets
2022-02-17 18:34:17 -06:00
mantikoros
8e33c2b639
for sales, show change in implied probability
2022-02-17 18:24:10 -06:00
James Grugett
c48913d91e
Sort bets/comments on client. Somehow server order is getting flipped?
2022-02-17 18:18:43 -06:00
Austin Chen
8f40350a75
API: Rename to LiteMarket/FullMarket; include creator avatar url
2022-02-17 16:04:05 -08:00
James Grugett
24e646640a
Resolution panel spacing
2022-02-17 17:47:23 -06:00