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
James Grugett
96ea325136
Sort initial bets
2022-02-17 17:39:18 -06:00
James Grugett
3667e81c6f
Only setFocused false when click outside.
2022-02-17 17:30:05 -06:00
James Grugett
b2501d8145
Free response ( #47 )
...
* Answer datatype and MULTI outcome type for Contract
* Create free answer contract
* Automatically sort Tailwind classes with Prettier (#45 )
* Add Prettier Tailwind plugin
* Autoformat Tailwind classes with Prettier
* Allow for non-binary contracts in contract page and related components
* logo with white inside, transparent bg
* Create answer
* Some UI for showing answers
* Answer bet panel
* Convert rest of calcuate file to generic multi contracts
* Working betting with ante'd NONE answer
* Numbered answers. Layout & calculation tweaks
* Can bet. More layout tweaks!
* Resolve answer UI
* Resolve multi market
* Resolved market UI
* Fix feed and cards for multi contracts
* Sell bets. Various fixes
* Tweaks for trades page
* Always dev mode
* Create answer bet has isAnte: true
* Fix card showing 0% for multi contracts
* Fix grouped bets feed for multi outcomes
* None option converted to none of the above label at bottom of list. Button to resolve none.
* Tweaks to no answers yet, resolve button layout
* Show ante bets on new answers in the feed
* Update placeholder text for description
* Consolidate firestore rules for subcollections
* Remove Contract and Bet type params. Use string type for outcomes.
* Increase char limit to 10k for answers. Preserve line breaks.
* Don't show resolve options after answer chosen
* Fix type error in script
* Remove NONE resolution option
* Change outcomeType to include 'MULTI' and 'FREE_RESPONSE'
* Show bet probability change and payout when creating answer
* User info change: also change answers
* Append answers to contract field 'answers'
* sort trades by resolved
* Don't include trailing !:,.; in links
* Stop flooring inputs into formatMoney
* Revert "Stop flooring inputs into formatMoney"
This reverts commit 2f7ab18429
.
* Consistently floor user.balance
* Expand create panel on focus
From Richard Hanania's feedback
* welcome email: include link to manifold
* Fix home page in dev on branches that are not free-response
* Close emails (#50 )
* script init for stephen dev
* market close emails
* order of operations
* template email
* sendMarketCloseEmail: handle unsubscribe
* remove debugging
* marketCloseEmails: every hour
* sendMarketCloseEmails: check undefined
* marketCloseEmails: "every hour" => "every 1 hours"
* Set up a read API using Vercel serverless functions (#49 )
* Set up read API using Vercel serverless functions
Featuring:
/api/v0/markets
/api/v0/market/[contractId]
/api/v0/slug/[contractSlug]
* Include tags in API
* Tweaks. Remove filter for only binary contract
* Fix bet probability change for NO bets
* Put back isProd calculation
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
Co-authored-by: mantikoros <sgrugett@gmail.com>
Co-authored-by: mantikoros <95266179+mantikoros@users.noreply.github.com>
2022-02-17 17:00:19 -06:00
mantikoros
d3fdd4cd1f
bets list: comment out expectation
2022-02-17 16:49:00 -06:00
mantikoros
3609255342
sort trades by value
2022-02-17 16:44:33 -06:00
Austin Chen
51aa8df010
Set up a read API using Vercel serverless functions ( #49 )
...
* Set up read API using Vercel serverless functions
Featuring:
/api/v0/markets
/api/v0/market/[contractId]
/api/v0/slug/[contractSlug]
* Include tags in API
2022-02-17 12:56:24 -08:00
James Grugett
d6f15deff4
Fix home page in dev on branches that are not free-response
2022-02-17 01:02:48 -06:00
Austin Chen
a12a8bcd6a
Expand create panel on focus
...
From Richard Hanania's feedback
2022-02-16 19:37:54 -08:00
Austin Chen
515676f885
Consistently floor user.balance
2022-02-16 19:19:11 -08:00
Austin Chen
87a33933e4
Revert "Stop flooring inputs into formatMoney"
...
This reverts commit 2f7ab18429
.
2022-02-16 19:14:12 -08:00
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
e4f1fbde3f
Link to each question from Admin page
2022-02-13 16:09:30 -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
dc0c9cf1d4
Filter undefined contracts
2022-02-10 17:06:27 -06:00
James Grugett
4150479aa3
Break words and linkify fold about text
2022-02-10 14:57:41 -06:00
James Grugett
00fbe711e5
Only show leaderboard scores that round up to M$ 1 or more
2022-02-10 14:51:14 -06: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
2d7c895964
Shrink about headers to h2
2022-02-08 00:21:47 -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
19baf86963
Sort fold & tag markets by 24-hour-vol
2022-02-07 23:03:55 -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
James Grugett
546005139b
Fix recent activity label on mobile
2022-02-07 22:06:58 -06:00
James Grugett
2b5a0b1111
Require at least 2 follows to show a community (or show it if you are the curator)
2022-02-07 20:56:25 -06:00
James Grugett
faa49b750e
Always show follow a community prompt
2022-02-06 20:03:42 -06:00
Austin Chen
ab6cfd2564
Show all recent activity if user has no folds
2022-02-06 16:03:36 -08:00
James Grugett
25e498ab3c
Create market includes tags input.
2022-02-06 17:14:07 -06:00
James Grugett
63b7f64683
Listen for folds in contract page
2022-02-06 16:55:14 -06:00
Austin Chen
5aebd7eb41
Use font-weight: 600 for bold text
2022-02-06 01:23:45 -08:00
Austin Chen
516656f194
Clean up About page
2022-02-06 00:35:58 -08: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
Austin Chen
d2f5742231
Export all users to a CSV with name and email
2022-02-05 21:34:36 -08:00
mantikoros
dc2fada751
create: handle null
2022-02-05 19:10:26 -06:00
mantikoros
fae28fed7c
create: don't replace undefined antes
2022-02-05 19:02:13 -06:00
James Grugett
1c8c2a4126
Fix home error after new contracts
2022-02-05 15:56:42 -06:00
mantikoros
3baffd4a35
bet row: auto-close dialog after a trade is submitted
2022-02-05 12:26:11 -06:00
James Grugett
d0a56cd1af
Merge branch 'send-all-data'
2022-02-04 20:22:43 -06:00
James Grugett
31fbd6b900
Send all comments and bets to home page, so feed loads immediately
2022-02-04 20:09:34 -06:00
mantikoros
f7b981c55c
"winnings" => "trader profits"
2022-02-04 17:42:08 -06:00
mantikoros
d439a2e1c0
create page: fix ante resetting
2022-02-04 17:40:03 -06:00
mantikoros
1ab7a4162c
fix market close date time
2022-02-04 17:38:40 -06:00
James Grugett
637a76cf34
Cache first step of generating feed: folds you follow and contracts you bet on.
2022-02-04 17:24:54 -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
Austin Chen
a46c311a99
Clean up titles on /home
2022-02-04 10:30:13 -08:00
mantikoros
b4a68bf436
redirect signed out users on /profile and /trades to homepage
2022-02-03 21:19:42 -06:00
James Grugett
6914e5d706
Fix merge error
2022-02-03 21:11:59 -06: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
d170e31f54
Switch from onSnapshot to our listenForValues, which doesn't set with partial cached values
2022-02-03 17:30:40 -06:00
James Grugett
587e1e5d61
Add loading spinner while feed loads
2022-02-03 17:12:09 -06:00
James Grugett
8e06e4351e
Add tw-elements UI library
2022-02-03 17:11:38 -06:00
mantikoros
55aa2db553
resolution panel creator fee
2022-02-03 17:07:30 -06:00
mantikoros
4294481b5b
change fee structure
2022-02-03 16:59:59 -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
426d41ba44
Surface a list of tags on /home
2022-02-03 11:00:49 -08:00
Austin Chen
193b9ae6bf
Restyle /folds page
2022-02-03 10:47:26 -08: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
a90e9b7083
Reorder fold page queries to be more in parallel
2022-02-03 00:19:59 -06:00
James Grugett
fdbaa5270b
Show hot markets in fold feed
2022-02-02 23:58:27 -06: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
James Grugett
95268844aa
Add text to fold "about" explaining how markets are included.
2022-02-02 14:20:04 -06:00
mantikoros
6ad40cf75d
bottom nav bar: change last item to your trades
2022-02-02 12:56:02 -06:00
James Grugett
f80ef1cd34
Add hot markets to home feed
2022-02-02 00:40:46 -06:00
mantikoros
375ce69b7d
yarn devdev
2022-02-01 21:23:06 -06:00
James Grugett
0eac8d9c5c
Yarn workspaces ( #42 )
...
* Try yarn workspaces
* Add versions to sub package.json files
2022-02-01 15:25:51 -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
b95f258763
Add package.json to common directory, and lodash dependency
2022-02-01 12:59:51 -06:00
James Grugett
7e15c2870b
Sort folds by followers in fold tag list
2022-02-01 12:47:31 -06:00
James Grugett
7c50b55331
Match lowercase tags for folds
2022-02-01 12:29:14 -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
James Grugett
4e1174a4dc
Option to disallow market creation from fold
2022-01-31 22:10:02 -06:00
James Grugett
5b5e6c78d6
Use expanding text area for description on make-predictions
2022-01-31 21:33:43 -06:00
James Grugett
3bbe6062e9
Change description input to use textarea
2022-01-31 21:31:49 -06:00
James Grugett
bc208df597
Add tags input for make-predictions
2022-01-31 21:13:37 -06:00
James Grugett
6525ffc6c3
Add ante and close date to make predictions
2022-01-31 20:58:41 -06:00
James Grugett
08eac5b0ef
Add my calendly to about
2022-01-31 20:44:49 -06:00
James Grugett
2e1fdd7d7a
Add border bottom back on fold page
2022-01-31 19:29:59 -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
mantikoros
d49656cb77
create: market close includes time
2022-01-30 23:20:27 -06:00
James Grugett
ff4bb3330a
Change back to isProd = true
2022-01-30 22:29:16 -06:00
James Grugett
00b7f3505f
Listen for contract updates in folds feed
2022-01-30 22:12:12 -06:00
James Grugett
9d2b99f237
Listen for updates of contracts on home
2022-01-30 22:03:20 -06: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
James Grugett
997f13d986
Make leaderboard not error on non-existant users
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
ac9af1acd6
Don't load onSnapshot from cache in hook listen for contract (could help 404 errors?)
2022-01-29 23:05:32 -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
764790c1e1
Add simple Fold page SEO
2022-01-28 12:34:13 -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
jahooma
4ca1d33d65
Make tag page check lowercase tag field
2022-01-27 15:11:32 -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
mantikoros
f58126e630
create: remove default close date
2022-01-27 14:31:09 -06:00
mantikoros
9acb07aa14
home: remove hot, closing soon sections
2022-01-27 14:23:55 -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
mantikoros
d2e78eb5de
markets: make 24hr vol default sort
2022-01-27 12:48:47 -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
jahooma
ef8157025f
Compute fold follower count from cloud function.
2022-01-26 14:27:16 -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
jahooma
76841e53b1
Follow and unfollow folds
2022-01-26 14:03:32 -06:00
jahooma
c3f49c44a0
Cardify folds in fold list
2022-01-26 12:44:16 -06:00
jahooma
8e511e7cc9
Add about to top of fold page on mobile. Layout tweaks
2022-01-26 12:02:53 -06:00
jahooma
2ea05f8913
Folds query on lowercase tags. Adding to description updates tags & lowercaseTags fields.
2022-01-25 17:52:21 -06:00
jahooma
8b0091f30d
Split out create fold button. Show about description on /folds
2022-01-25 17:02:02 -06:00
jahooma
897eb0c27b
Handle 404 errors for non-existent fold subpages
2022-01-25 15:44:32 -06:00
James Grugett
8b9d0e5dba
New fold page UI with tabs ( #37 )
...
* Tabbed fold page
* Implement market, leaderboard tab views for fold. And edit dialog
* Add about field to Fold
2022-01-25 14:47:25 -06:00
Austin Chen
e481b971d0
Show pool amount in feed
2022-01-25 13:31:25 -06:00
jahooma
ed9285dbc1
Make folds page more understandable. Add additional tags on fold creation
2022-01-24 16:58:51 -06:00
jahooma
705d5cada7
Add lowercaseTags field to contracts. ante / closeTime non-optional in new contract code
2022-01-24 16:33:10 -06:00
Austin Chen
793a2c6d6c
Closing soon: hide already closed, show close time
2022-01-24 01:38:29 -06:00
Austin Chen
13590bf5d1
Surface user emails in /admin
2022-01-24 00:48:10 -06:00
Austin Chen
98064119e1
Remove unused UserCard
2022-01-24 00:48:10 -06:00
jahooma
d22a21caec
Add 24 hour sort option. Rearrange options
2022-01-24 00:31:52 -06:00
jahooma
0e3e4b8192
Show unresolved markets first in fold
2022-01-23 23:55:48 -06:00
jahooma
bc3e43802b
Listen for new folds on /folds
2022-01-23 23:48:10 -06:00
Austin Chen
f66bc6af4d
Make placeholder text less prominent
2022-01-23 23:34:10 -06:00
jahooma
c5a5869f21
Sort by close date
2022-01-23 13:34:03 -06:00
jahooma
b9a82b652e
Resolved markets sort by resolved time
2022-01-23 11:14:04 -06:00
jahooma
b059a44acc
Use fold hook
2022-01-23 00:51:19 -06:00
jahooma
6cc2e6692e
Fix DOM error for nested forms
2022-01-22 18:38:37 -06:00
mantikoros
fd03eb841f
home: remove incomplete loading of contract data
2022-01-22 18:36:35 -06:00
mantikoros
7c124c1390
home: handle undefined props
2022-01-22 18:32:50 -06:00
jahooma
cff2611582
Add back dynamically loading feed
2022-01-22 18:26:56 -06:00
mantikoros
80776186aa
/home for signed in users ( #35 )
2022-01-22 18:16:23 -06:00
jahooma
e53dd78502
Fix types
2022-01-22 18:14:41 -06:00
jahooma
aa1022546d
Implement leaderboards for folds!
2022-01-22 17:59:50 -06:00
jahooma
bc1decdbfc
Initialize folds with one primary tag
2022-01-22 15:47:24 -06:00
jahooma
f0f7b85ed8
Change back typscript target to es5
2022-01-22 15:25:09 -06:00
jahooma
789df9a76d
Add some catches
2022-01-22 15:21:52 -06:00
jahooma
fe912921eb
Use nicer tag component for folds
2022-01-22 14:52:49 -06:00
jahooma
be82406c4d
Include older contracts in fold feed
2022-01-22 11:50:09 -06:00
Austin Chen
2e3f1b4c52
Collapse long threads on the activity feed
2022-01-22 11:47:09 -06:00
jahooma
a5f953743f
Remove create a market on mobile
2022-01-22 11:44:49 -06:00
jahooma
0617fedb17
Add /markets for fold
2022-01-22 11:39:35 -06:00
mantikoros
4698d119b4
activity, withoutAnteBets: check for undefined
2022-01-22 11:15:14 -06:00
Austin Chen
b95dfa0a33
Set "sign up" text to green; add #crypto
2022-01-21 18:36:19 -06:00
jahooma
affa9a5ab6
Change default sort of all markets to most traded
2022-01-21 18:31:20 -06:00
jahooma
9733056ce7
Hide hot and closing soon markets on all markets
2022-01-21 18:30:27 -06:00
Austin Chen
7e44af318b
Truncate both question and comments in activity feed
2022-01-21 18:30:13 -06:00
jahooma
d357f51883
Reorg homepage. No feed when not signed in, add back hot & closing soon for signed
2022-01-21 18:28:12 -06:00
jahooma
b29e69a52c
Remove timestamp from question feed item
2022-01-21 18:10:38 -06:00
James Grugett
60f68b178d
Folds ( #34 )
...
* Fold type, fold page, query for fold contracts
* Tsconfig: target esnext, nounused locals: false
* Store tags in field on contract. Script to update contract tags
* Show tags on fold page
* Load all fold comments server-side to serve better feed
* Fix the annoying firebase already initialized error!
* Add links to /edit and /leaderboards for fold
* Page with list of folds
* UI for creating a fold
* Create a fold
* Edit fold page
2022-01-21 17:21:46 -06:00
Austin Chen
5be6a75e4b
Create new markets directly from the feed ( #33 )
...
* Move hot & closing markets to All Markets
Soon to be named "Explore"
* Set up a question box on the homepage
* Show Leaderboards by default instead of Create
* Support full contract creation from homepage
* Force mt-0 on /markets
* Move description into info tooltip
* Add hint to ask a question
* Initialize close date to 1 week from today
* Add a promo section for logged-out users
* Add hashtags, remove mobile padding
* Rewrite promo copy
* Store hotContracts as static props
2022-01-21 12:33:58 -06:00
Austin Chen
9457ac9337
Show resolved markets on Admin page; show create & resolve times
2022-01-20 01:55:10 -05:00
mantikoros
1b5e33ca54
no ante selling
2022-01-19 16:36:55 -06:00
mantikoros
4c0a994174
about: remove open beta disclaimer, barb about praying mantises
2022-01-19 16:13:56 -06:00
mantikoros
df9b498e18
"Market closes" => "Trading ends"
2022-01-19 16:07:58 -06:00
mantikoros
4cca60b16e
contract card: simplify date display
2022-01-19 16:01:54 -06:00
mantikoros
2320f0b962
show pool value everywhere
2022-01-19 16:01:18 -06:00
Austin Chen
b3282c4302
Improve SEO descriptions
2022-01-19 12:57:35 -05:00
Austin Chen
f3404b893d
Shrink title on mobile screens
2022-01-19 12:17:22 -05:00
Austin Chen
b704f4fe78
Allow updating description even after contract close
2022-01-19 10:46:36 -05:00
Austin Chen
5ac77674ed
Also show avatar url from contract feed
2022-01-19 03:16:22 -05:00
Austin Chen
f9780a2f69
Switch to feed "lollipops"
...
Doubt anyone else cares. Ideally these are also disconnected on top but it's hard to get the spacing to look right with variably-sized avatars.
Options:
- Keep as-is (lollipops)
- Revert to hardcoded `ring-gray-50`
- Fix icons to the same size
- Switch between `ring-gray-50` and `ring-white`
- Rewrite the CSS
2022-01-19 03:15:09 -05:00
Austin Chen
ed7902f77f
Remove feed subicons; fix FeedBetGroup spacing
2022-01-19 02:54:00 -05:00
Austin Chen
78c461b26c
Show creator avatar in feed
2022-01-19 02:34:36 -05:00
Austin Chen
b963cc2fe2
Show close time in feed
2022-01-19 02:10:54 -05:00
Austin Chen
f75fbfb4c5
Make textboxes in feed expandable
2022-01-19 01:43:54 -05:00
mantikoros
4528615863
Private user ( #32 )
...
* PrivateUser
* createUser: create private user; detect multiple signups
* include user properties in private user
* script: create private users
* unsubscribing from market resolution emails
* track total deposits
2022-01-18 21:36:46 -06:00
jahooma
21949abbe1
Shorter graph on mobile
2022-01-18 17:10:21 -06:00
jahooma
ee64c4e923
Bring back cards having different heights in a row
2022-01-18 16:55:39 -06:00
jahooma
d3031e0f10
Admin contracts tabel: Add visibility column, filter out resolved
2022-01-18 16:29:49 -06:00
jahooma
aa164cd5f5
Add contracts table to admin page
2022-01-18 16:10:40 -06:00
jahooma
142feaffff
Don't show unlisted contracts in closing soon
2022-01-18 13:17:56 -06:00
jahooma
e6dbcbc4fd
Prevent header jump on mobile
2022-01-18 13:16:35 -06:00
mantikoros
908c8c03e6
Create user cloud function ( #31 )
...
* createUser cloud function; change User object
* initial commit
* listenForLogin: avoid race condition
* createUser: allow capital letters in username
* remove debugging
* leaderboard: empty url for undefined avatar image
2022-01-18 01:18:38 -06:00
mantikoros
e6d467764d
Don’t show negative values in feed for sales
2022-01-17 21:38:40 -06:00
James Grugett
6625983bb7
Leaderboards 🏅 ( #30 )
...
* Simple leaderboards
* Filter out SG from traders. Center leaderboard. Use Nextjs Image.
* Add leaderboards menu option
* Put leaderboards side-by-side on large screens
* Add medal emoji
2022-01-17 21:20:25 -06:00
jahooma
746a97c1df
Don't hide children of datetime tooltip
2022-01-17 18:08:50 -06:00
jahooma
ead441ce9f
Hide time tooltip on mobile as fix
2022-01-17 18:01:09 -06:00
jahooma
b86720e943
Fix feed not centered
2022-01-17 17:51:41 -06:00
jahooma
4d975ff512
Add closing soon section to home
2022-01-17 16:54:00 -06:00
jahooma
56c7e2597d
Schedule cloud function to update user metrics: totalPnL, creatorVolume
2022-01-17 15:39:34 -06:00
Austin Chen
673c432bb9
Expose Firestore analytics on /analytics
2022-01-17 13:34:28 -05:00
Austin Chen
d32147b536
Show DateTime tooltips whereever we show dates
2022-01-16 04:16:15 -05:00
Austin Chen
8d474ef031
Switch to outlined icon
2022-01-16 02:14:21 -05:00
Austin Chen
7d7286b1c1
Denormalize the avatar URL on contract creation ( #29 )
2022-01-16 01:03:59 -05:00
Austin Chen
279437ba08
List users on admin page ( #28 )
...
* Admin page using gridjs
* Move hook into separate file
* Link to each user's Manifold and Firestore /user entry
* Gate admin access to Austin/James/Stephen
* Don't leak the existence of /admin
* Add a custom 404 page that directs to Discord.
* Fix broken window.location.href on NextJS server
2022-01-15 22:09:15 -05:00
Austin Chen
07709cdccb
Fix Calendly link
2022-01-15 21:05:26 -05:00
jahooma
c13b71b754
Center create market page. Tweak labels
2022-01-15 19:02:01 -06:00
jahooma
4618b37c82
Correctly show all creator and tag markets
2022-01-15 17:56:16 -06:00
mantikoros
615d5874b3
Merge branch 'main' of https://github.com/manticmarkets/mantic
2022-01-15 17:31:56 -06:00
mantikoros
43c67b2820
create page info tooltips; small bug fix: use balance instead of remainingBalance
2022-01-15 17:30:48 -06:00
jahooma
1aa88a917b
Fix missing key
2022-01-15 17:29:38 -06:00
jahooma
9209b3cb05
Fix nested <a> tag
2022-01-15 17:28:49 -06:00
mantikoros
a16d35974f
fix displayed sale amount
2022-01-15 16:51:09 -06:00
jahooma
3f42991741
Show current payout in bet panel! Abolish estimated max payout. Show shares in tooltip
2022-01-15 15:28:19 -06:00
jahooma
0069846335
Turn off hook for fetching hot contracts for now.
2022-01-15 12:43:39 -06:00
jahooma
f6079e68d0
Choose random hot contracts from top 16 every 5 minutes.
2022-01-15 00:44:33 -06:00
mantikoros
a0be5b6394
calculateMoneyRatio
2022-01-15 00:11:27 -06:00
jahooma
e12e399679
Fix feed order moving around on load
2022-01-14 19:12:38 -06:00
jahooma
9d44c40415
Preserve scroll on back
2022-01-14 18:43:00 -06:00
jahooma
895eba4553
Get static props of just data for feed: active contracts, their bets & comments.
2022-01-14 18:16:32 -06:00
mantikoros
d25fb916ba
Merge branch 'main' of https://github.com/manticmarkets/mantic
2022-01-14 17:39:27 -06:00
mantikoros
3fa2926559
create page design; require minimum ante; lower phantom ante amount; createContract checks
2022-01-14 17:39:17 -06:00
Austin Chen
77e6ea5a6b
Replace close time with year
2022-01-14 18:34:54 -05:00
jahooma
10e6255a53
Optimize css by inlining it in html
2022-01-14 17:05:12 -06:00
jahooma
1af03bc53d
Improve card style flashing on load
2022-01-14 16:59:14 -06:00
Austin Chen
78b27ee964
Truncate activity feed descriptions to 400 chars
2022-01-14 17:28:19 -05:00
jahooma
c70ec1dad3
Remove 3 unnecessary DOM elements from card
2022-01-14 12:28:48 -06:00
jahooma
40c853e595
Reimplement hot markets with flex box, since I can't figure out how to make the css grid version not flash bad layout.
2022-01-14 00:55:35 -06:00
jahooma
3e08349df6
Fix buttons going off the pay dialog
2022-01-13 21:15:44 -06:00
jahooma
aa77effcb6
Fix safari not breaking words on home page
2022-01-13 21:09:44 -06:00
jahooma
3ae456f730
Remove unnecessary margin from navbar
2022-01-13 17:15:32 -06:00
jahooma
974d41434e
Try to fix flashing css grid #2
2022-01-13 17:08:12 -06:00
jahooma
ea342248de
Try to fix css grid layout flash in prod
2022-01-13 17:02:13 -06:00
jahooma
6ae9e6354c
Fix logo disappearing
2022-01-13 16:19:56 -06:00
jahooma
dcf07fe0a1
Load navbar more gracefully: don't show options until user loaded
2022-01-13 16:09:13 -06:00
jahooma
fc5fa000b9
Linkify user avatars in feed
2022-01-13 15:24:14 -06:00
jahooma
1683a3842b
Link to user from feed mentions. Show name instead of username in card.
2022-01-13 15:16:47 -06:00
jahooma
07a7fc219b
Axe landing page, show home feed
2022-01-13 14:54:31 -06:00
jahooma
2db69e4d15
Non-blue titles for bet / resolution panel
2022-01-13 12:58:49 -06:00
jahooma
2b618be3ac
Increase padding on contract page
2022-01-13 12:58:49 -06:00
jahooma
dfcac2fb97
Hide ante bets in graph and feed
2022-01-13 11:01:23 -06:00
jahooma
4f8d689ad8
Remove duplicate about, from merge error?
2022-01-12 22:06:11 -06:00
jahooma
de043de589
Add visibility field to contracts. Hot contracts & activity feed show only visibility 'public'.
2022-01-12 19:53:50 -06:00
jahooma
1fbde3646f
Bump up feed padding on mobile
2022-01-12 15:32:50 -06:00
jahooma
33f4965fa4
Change activity feed to white bg, no hover bg, smaller width, centered
2022-01-12 15:23:29 -06:00
jahooma
cc5312f52e
Change is prod to true
2022-01-12 15:23:29 -06:00
Austin Chen
342cef8c1d
Make "add funds" an outline button
2022-01-12 14:16:50 -05:00
mantikoros
9d5490cf9a
Switch to new dpm mechanism ( #26 )
...
* initial commit
* antes
* rename path, compute to contractPath, contractMetrics
* merge
* Include antes as bets; more calculations
* fees on estimated winnings
* mkt payout calculation
* contract: remove startPool, add phantomShares
* Merge branch 'main' into new-dpm
* dpm migration script
* my service account
2022-01-12 13:01:04 -06:00
Austin Chen
d38f1300c3
Reduce visual weight of "add funds" button
2022-01-12 13:35:11 -05:00
Austin Chen
7c1d70313b
Uncardify activity feed
2022-01-12 13:20:28 -05:00
Austin Chen
5c4235a247
Narrower padding for mobile
2022-01-12 12:57:35 -05:00
Austin Chen
2df96cc0b5
Replace '24h vol' with trending icon
2022-01-12 12:51:46 -05:00
Austin Chen
344ce69fee
Move About page out of navbar
2022-01-12 02:18:14 -05:00
Austin Chen
edb3809f1c
Standardize on max-w-4xl
2022-01-12 02:13:01 -05:00
Austin Chen
d121e59189
Only permit comments within an hour of betting
2022-01-12 01:47:56 -05:00
jahooma
8839ffc492
Require close date for new markets. Update description placeholder to say it's optional.
2022-01-11 23:40:41 -06:00
jahooma
ca38640b89
Tweak positioning of add funds button, no green initial probability
2022-01-11 23:29:50 -06:00
jahooma
5947be6647
Darker timestamp on feed
2022-01-11 22:00:03 -06:00
jahooma
2f88a5cdab
Remove Activity Feed from create page per Stephen
2022-01-11 21:59:44 -06:00
jahooma
19c0f83b85
Activity feed on home page! All markets navbar option.
2022-01-11 21:56:11 -06:00
jahooma
ebb1bc7359
Fix feed layout on mobile, adjust spacing, max width.
2022-01-11 14:57:53 -06:00
Austin Chen
5b431226d4
Show all recent activity on a central feed ( #24 )
...
* Tracks all market activity on a single page
* Support both global and per-contract feeds
* UI tweaks
* Include contract description in activity feed
* Show activity feed on Create page
2022-01-11 11:56:26 -05:00
jahooma
dc7460f209
Fix tweet button wrapping sometimes
2022-01-11 10:29:54 -06:00
jahooma
209089cc45
Update white bg logo to be white
2022-01-11 00:34:37 -06:00
James Grugett
bfd0af1c80
New logo: oragami crane ( #25 )
...
* new logo
* Switch out mantis for crane in logos
* White svg on dark background. Align correctly on landing page.
* Mobile navbar: hide your name, write out Manifold Markets
Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-01-11 00:16:58 -06:00
jahooma
7fbecbc102
Extract bet amount input to component.
2022-01-10 21:41:42 -06:00
jahooma
6ef48af085
Hide add funds button if you are a first-time user (have 1000 balance)
2022-01-10 17:55:36 -06:00
mantikoros
df4ecb3fe2
move prettier config to top level
2022-01-10 17:44:42 -06:00
mantikoros
b97a65cf2c
refactor data structures, calculations to common directory
2022-01-10 15:07:57 -06:00
jahooma
dd6edc3b7a
Use sale amount for sold bets. Round one more item in the feed.
2022-01-10 11:38:44 -06:00
jahooma
188ab66029
Don't wrap text on Sign in to trade button
2022-01-10 11:02:43 -06:00
jahooma
d47e2f5d93
Decrease wide page width from 7xl to 6xl
2022-01-10 10:48:13 -06:00
jahooma
a04c978408
Keep page wide if showing resolve panel
2022-01-10 10:33:02 -06:00
jahooma
829c8a4b75
Disallow selling after close time! Enforce no trading after close on server.
2022-01-10 10:33:02 -06:00
mantikoros
01506fedeb
about page
2022-01-10 01:12:14 -06:00
Austin Chen
a9b4570fff
Cut creator name from OG card metadata
...
(It's already on the top)
2022-01-10 02:09:39 -05:00
Austin Chen
feca042e47
Use the generated OpenGraph card in all markets ( #23 )
...
* Run OpenGraph server on dev port 3001
* Cut '%' since frontend already passes it
* Use the generated card in markets
* Rename to ogCardProps
* Don't show creator avatar url, for now
* Remove bad comment
2022-01-10 02:05:24 -05:00
Austin Chen
ed37d93868
Dynamically generate Opengraph images for each market ( #21 )
...
* Start customizing opengraph image
* Fix cover image size to 1200x630
* Design a text-based, dynamic preview card
* Load designed html into template.ts
Remove twemoji for now too
* Take in params to configure Manifold card
* Switch back to hardcoded png for default case
2022-01-10 00:50:31 -05:00
jahooma
179fa8c608
Stephen's feedback: change 🔥 => 24h vol in card
2022-01-09 17:59:37 -06:00
jahooma
7528ac0604
Filter out creators and tags with no 7 day volume and sort displayed contracts by 7 day volume.
2022-01-09 15:55:10 -06:00
jahooma
e655462a2f
When sorting by creator or tag, use 7 day volume instead of pool size.
2022-01-09 15:32:04 -06:00
jahooma
cedd8df45c
Show hot market 24 hour volume instead of pool
2022-01-09 15:21:30 -06:00
jahooma
d1c6e5bc91
Change useContracts to return undefined instead of 'loading'. Serve static props on tag page
2022-01-09 14:51:20 -06:00
jahooma
16ab0e0c37
Query hot contracts from volume24Hours field.
2022-01-09 14:26:51 -06:00
jahooma
6b4417d8b8
Every 15 minutes, compute contract volume in last 24 hours and 7 days
2022-01-09 13:34:42 -06:00
jahooma
6d4554e9ef
Don't show resolved markets in hot markets
2022-01-09 12:14:20 -06:00
jahooma
34b208f63d
...and gray-500 text for resolution panel
2022-01-08 23:12:53 -06:00
jahooma
519dda6473
Use gray-500 instead of gray-400 for text against gray bg.
2022-01-08 23:10:08 -06:00
jahooma
e4206d6277
Add an extra new line when you add to a market description
2022-01-08 23:09:19 -06:00
jahooma
1013192281
Show the floor of your balance
2022-01-08 12:14:20 -06:00
mantikoros
abb5d53431
ensure bet amounts are positive
2022-01-08 11:51:42 -06:00
jahooma
6398f93ffe
Show just the hot markets on homepage.
2022-01-08 00:23:50 -06:00
jahooma
44fa4f263b
Encode referrer url param for stripe checkout
2022-01-07 18:51:16 -06:00
James Grugett
af6387bbf3
Stripe ( #22 )
...
* basic working payments
* Select funds amount and prettier funds button / dialog
* Add funds page and nav menu option
* Format funds amount. Use ghost button for back.
* Add mantic dollars description
* Improve styles of add funds page
* about styling
* change faq => about
* change default font to Courier
* header sign out menu item; remove user card
* keep logo font
* fix header issue
* stripe webhook: handle repeat events
* Make add funds button a gradient
* add funds referer url
* Fix add funds page after merge
* Slight VisD tweaks
* Update add funds button position. Mantic => Manifold
* Remove Add funds menu option for now.
* Set up product ids and endpoint for stripe prod
* Swap back order in profile menu
Co-authored-by: mantikoros <sgrugett@gmail.com>
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-01-07 16:56:14 -06:00
Austin Chen
fccf52eb34
Use our new dynamic opengraph image
2022-01-07 12:19:17 -08:00
mantikoros
1b69a34270
allow updating contract description
2022-01-07 13:29:23 -06:00
jahooma
e3800de2ad
Update resolution panel to gray bg
2022-01-06 22:00:23 -06:00
mantikoros
a7c42ee8ec
meta image tag
2022-01-06 21:54:11 -06:00
mantikoros
59034839a9
meta tag image
2022-01-06 21:41:29 -06:00
jahooma
bdb46fc7c1
Tweaks for create market page
2022-01-06 21:32:46 -06:00
James Grugett
85b5ee5cbc
Rename to Manifold Markets! ( #19 )
...
* Update logo and about page to manifold
* Change urls, titles / metatags, landing page
2022-01-06 12:48:30 -06:00
Austin Chen
95472c5faf
Tweak bet panel UI
2022-01-06 01:49:41 -08:00
Austin Chen
4659cab18c
Only "Advanced" label should look clickable
2022-01-06 01:48:27 -08:00
Austin Chen
f218a74a0c
Add probability slider to Create Market
2022-01-06 00:45:30 -08:00
jahooma
477878a09f
Right align tweet button
2022-01-05 23:02:39 -06:00
mantikoros
95b28bd536
create page: disable form elements after submitting
2022-01-05 21:10:06 -06:00
Austin Chen
22894cb44e
Update Notion link
2022-01-05 15:51:56 -08:00
jahooma
75e9d419ee
Fix payout calculation for correct bet in bet panel.
2022-01-05 17:03:30 -06:00
mantikoros
0b8ad76b0f
global warming: warm up all cloud functions on client
2022-01-05 12:30:16 -06:00
jahooma
5eaf50612d
Advanced metrics for bet panel
2022-01-05 12:23:44 -06:00
jahooma
3302cbddbd
Move contract close time into contract details
2022-01-05 11:49:23 -06:00
jahooma
e20537bf49
Remove tags and date from card.
2022-01-05 01:06:30 -06:00
jahooma
1bc323d575
Hot markets! 🔥
2022-01-05 00:33:01 -06:00
mantikoros
4386422f02
fix make-predictions
2022-01-05 00:07:36 -06:00
mantikoros
7c875f80da
subsidized markets; create contract cloud function
2022-01-04 23:51:34 -06:00
jahooma
57ee53e133
Create page: Change "Prediction" to "Question" and make it gray
2022-01-04 21:03:00 -06:00
jahooma
67007c5897
Make tweet button smaller
2022-01-04 16:47:56 -06:00
jahooma
6d97b82aee
Use our own Tweet button instead of loading Twitter script
2022-01-04 16:34:07 -06:00
jahooma
596c6fe33d
Show tags in contract details.
2022-01-04 16:09:03 -06:00
jahooma
73f1116b8f
Add Tweet button to share market
2022-01-04 14:57:48 -06:00
jahooma
db1543ea71
Round bet amounts in feed
2022-01-04 09:55:34 -06:00
Austin Chen
583dc10e6a
Don't prematurely show close times in feed
2022-01-03 23:41:52 -08:00
Austin Chen
07ce27f20b
Show activity feed on each market & allow comments on your bets ( #18 )
...
* Copy feed template from TailwindUI
* Show all bets in a feed-like manner
* Tweak design of individual trades
* Allow traders to comment on their bets
* Code cleanups
* Incorporate contract description into the feed
* Support description editing from contract feed
* Group together bets placed within 24h
* Fix build error
* Add a feed item for market resolution
* Add a feed item for markets that have closed
* Comment on a separate subcollection
2022-01-03 23:21:14 -08:00
mantikoros
f0e045694a
update about page with more info about basic betting mechanics
2022-01-03 23:56:56 -06:00
mantikoros
7d5b4359f8
align sales price
2022-01-03 23:56:56 -06:00
jahooma
4d0646a200
Add payout if MKT. Current value uses MKT payout.
2022-01-03 23:44:58 -06:00
mantikoros
44f44272ff
create page: minor changes
2022-01-03 13:00:53 -06:00
jahooma
24e873b6de
Show "sold for" under sale price / payout column. Outcome label to new file
2022-01-03 12:56:02 -06:00
jahooma
a331faa1a7
Create page: Chance => Initial probabilty, description out of advanced, advanced arrow clickable
2022-01-03 12:39:44 -06:00
jahooma
f7d4926d22
Update to show sale price in column
2022-01-03 00:57:25 -06:00
Austin Chen
fb0e16d619
Add a closing date to Create Market ( #10 )
...
* Preview a slimmed-down version of /Create
* Rework dropdown to be on bottom
* Parse the close time as just before midnight
* Prevent invalid contracts from being created
* Prevent trading after contract has closed
2022-01-02 21:21:25 -08:00
jahooma
3ba96028f4
Parse tags to get unique ignoring case
2022-01-02 16:53:20 -06:00
James Grugett
bad7a2b543
Sort & query url params ( #17 )
...
* Sort query in progress
* Search and query url params!
2022-01-02 16:46:04 -06:00
jahooma
b375256e96
Reuse ResolutionOrChance component. Make smaller for card, larger for contract page.
2022-01-02 14:53:42 -06:00
jahooma
657b6b2763
Improve positioning of x% chance on mobile, break words in description.
2022-01-02 13:09:11 -06:00
mantikoros
cdf25ba659
contract page seo tags
2022-01-02 12:57:52 -06:00
mantikoros
907acec601
Mkt resolution 2: Enable MKT resolution ( #16 )
...
* new standard resolution; contract.totalBets; MKT resolution
* recalculate script
* enable resolve MKT
* different approach to resolve MKT
* comment out init
* Count payouts for bets with exluded sales
Co-authored-by: jahooma <jahooma@gmail.com>
2022-01-02 00:27:58 -06:00
jahooma
a9e8b4c1e7
Attempt to fix external link in description
2022-01-01 23:52:32 -06:00
jahooma
8c644da10d
Update contract title with resolution or percent chance
2022-01-01 22:52:55 -06:00
mantikoros
5890b74225
Mkt resolution: new standard resolution (pay back bets first) ( #15 )
...
* new standard resolution; contract.totalBets; MKT resolution
* recalculate script
* Fix one bug and change script name
Co-authored-by: jahooma <jahooma@gmail.com>
2022-01-01 19:03:18 -06:00
jahooma
4db7e03b92
Switch to old current value calculation
2021-12-31 17:22:15 -06:00
jahooma
50e3dc5cd0
Add Discord link as menu option!
2021-12-31 14:33:05 -06:00
jahooma
7d5e02a69c
username => name on user page
2021-12-31 14:25:01 -06:00
jahooma
0b9b2396f1
Est. Max Payout => Shares in bet table
2021-12-31 14:13:06 -06:00
jahooma
96d5ea0437
Add sort by tag
2021-12-31 13:41:41 -06:00
jahooma
f1977f26ea
Don't wrap external link with next/link
2021-12-31 13:41:41 -06:00
mantikoros
6eda71286c
nav bar: dark background, no shadow
2021-12-31 13:31:41 -06:00
jahooma
41a011a9bb
Increase size of creator name. Decrease spacing
2021-12-30 16:31:04 -06:00
jahooma
6a851fe86a
Update resolve descriptions
2021-12-30 15:55:50 -06:00
James Grugett
f78920c912
Organize markets by creator!! ( #14 )
2021-12-30 14:03:32 -06:00
jahooma
527a8a8b09
White panels, medium shadows
2021-12-30 13:52:05 -05:00
jahooma
a5e4411075
Load all contracts, and filter to 99 client-side.
2021-12-30 13:35:29 -05:00
Austin Chen
a9e1cbc0be
Point local server to prod Firebase for now ( #13 )
2021-12-29 23:31:26 -08:00
jahooma
a902dfebca
Fit long names on mobile
2021-12-24 16:29:24 -05:00
mantikoros
f48ae0170b
Sell bets ( #12 )
...
* sell bet
* dev mode
* single-pot no-refund payoff; bet selling
* Increase default fetch size 25 -> 99
* Fix about page numbering
* Don't flash no markets when loading on tag page.
* Change Title to use body font
* Make a bunch of predictions at once (#9 )
* Set up a page to make bulk predictions
* Integrate preview into the same card
* List created predictions
* Make changes per James's comments
* Increase the starting balance (#11 )
* Remove references to paying for our Mantic Dollars
* Update simulator to use new calculations
* Change simulator random to be evenly random again
* Sell bet UI
* Migrate contracts and bets script
* Add comment to script
* bets => trades; exclude sold bets
* change sale formula
* Change current value to uncapped sell value.
* Disable sell button while selling
* Update some 'bet' to 'trade'
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
Co-authored-by: jahooma <jahooma@gmail.com>
2021-12-24 15:06:01 -06:00
jahooma
856a2453a1
Remove references to paying for our Mantic Dollars
2021-12-21 14:02:24 -06:00
James Grugett
ff4550fe51
Increase the starting balance ( #11 )
2021-12-21 13:52:27 -06:00
Austin Chen
9d438dc356
Make a bunch of predictions at once ( #9 )
...
* Set up a page to make bulk predictions
* Integrate preview into the same card
* List created predictions
* Make changes per James's comments
2021-12-20 22:29:32 -08:00
Austin Chen
3841e2a98f
Change Title to use body font
2021-12-20 22:29:01 -08:00
jahooma
998b01cde7
Don't flash no markets when loading on tag page.
2021-12-20 18:06:24 -06:00
jahooma
05b8ce96b5
Fix about page numbering
2021-12-20 18:04:19 -06:00
Austin Chen
f79d69cd69
Increase default fetch size 25 -> 99
2021-12-20 09:56:27 -08:00
jahooma
5cbbb55dba
Tweak spacing
2021-12-19 23:15:18 -06:00
jahooma
918229c6ef
Make navbar line up with content
2021-12-19 22:37:11 -06:00
jahooma
4b3b6436a0
Improve navbar styles. Create Page component with navbar and page structure.
2021-12-19 22:06:30 -06:00
jahooma
702c0af33e
Rename Header to NavBar. Split profile menu and mantic logo out.
2021-12-19 21:12:12 -06:00
mantikoros
28a2199ec7
fix header issue
2021-12-19 18:06:47 -06:00
mantikoros
bf211b91fe
keep logo font
2021-12-19 18:02:42 -06:00
mantikoros
c03e68640e
header sign out menu item; remove user card
2021-12-19 17:56:22 -06:00
mantikoros
481b97d689
change default font to Courier
2021-12-19 17:47:13 -06:00
mantikoros
6270ec2c59
change faq => about
2021-12-19 17:39:15 -06:00
mantikoros
f0acc11b83
about styling
2021-12-19 17:38:10 -06:00
jahooma
58521b6503
Switch to yarn
2021-12-19 16:08:25 -06:00
jahooma
ccff8c9bec
Run a ts type checker in parallel with nextjs dev process
2021-12-19 15:26:59 -06:00
jahooma
1d9adcbeaf
Fix build
2021-12-19 15:05:39 -06:00
jahooma
80ffed9460
Change navigation to add FAQ, and bundle Your bets and Your markets as options under menu.
2021-12-19 14:57:44 -06:00
jahooma
6efdf46bb3
Don't show "No markets found" when loading markets
2021-12-19 14:40:54 -06:00
Austin Chen
0a4e05ad32
Actually fix build error >.>
2021-12-19 01:24:37 -08:00
Austin Chen
c563ecc88b
Fix build error
2021-12-19 01:17:25 -08:00
Austin Chen
a760940ae6
Support hashtags in the question
2021-12-19 01:08:12 -08:00
mantikoros
f1a96b5320
static loading of markets
2021-12-18 23:59:42 -06:00
jahooma
ab2011609f
Rename [slug] to [contractSlug]
2021-12-18 23:50:47 -06:00
jahooma
b87e751b2d
Improve spacing on landing-page, about faq.
2021-12-18 23:44:08 -06:00
Austin Chen
2a4ad3734b
Various spacing fixes
2021-12-18 17:23:34 -08:00
jahooma
77291956bc
Display N/A instead of cancel
2021-12-18 18:37:37 -06:00
jahooma
86e323bf25
Fix collapse carrot positioning...
2021-12-18 18:11:40 -06:00
jahooma
5be7ce5f8f
Standardize spacing across pages.
2021-12-18 17:42:06 -06:00
Austin Chen
d8dfd103b9
Minor spacing fix
2021-12-18 15:24:58 -08:00
Austin Chen
639d17cada
Render /about
page in React
2021-12-18 15:19:50 -08:00
Austin Chen
95e7b0970d
Disable tsc linting
2021-12-18 15:18:58 -08:00
Austin Chen
191742c88f
Fix build issue
2021-12-18 13:01:29 -08:00
Austin Chen
2ecc4730d7
Run tsc over staged files before Git commit
2021-12-18 12:59:40 -08:00
Austin Chen
83a75def06
Remove lowercase, bold, tight tracking
2021-12-18 04:19:16 -08:00
Austin Chen
bc81091243
Implement #hashtag grouping of markets
2021-12-18 04:06:59 -08:00
Austin Chen
1851b20f42
Fix /bets page
2021-12-18 02:37:26 -08:00
Austin Chen
802f376042
Add a message for empty markets and bets
2021-12-18 02:28:01 -08:00
Austin Chen
957eb3ac94
Search contracts by username too
2021-12-17 23:29:42 -08:00
Austin Chen
77e15e3aa8
Denormalize username to each contract
2021-12-17 23:27:29 -08:00
Austin Chen
f6c45a29c2
Prompt for sign in from bet panel
2021-12-17 23:09:11 -08:00
Austin Chen
db122fb614
Supernit: Better line breaking on homepage
2021-12-17 22:49:24 -08:00
jahooma
393a4962c9
Fix headers on mobile with cool dropdown menu.
2021-12-18 00:37:09 -06:00
jahooma
55479ef4ab
Move hero and landing page to /landing-page. Add bouncing arrow.
2021-12-17 19:47:39 -06:00
jahooma
b3bacd6e1e
Make sign in header work
2021-12-17 19:29:09 -06:00
jahooma
689a2f6244
Fix nextjs image import
2021-12-17 19:13:12 -06:00
jahooma
c0e22d89ca
Remove your bets from account / user page
2021-12-17 18:28:43 -06:00
mantikoros
b5761baeaf
raise start pool capital to M$200
2021-12-17 17:40:32 -06:00
jahooma
f684835900
Update headers
2021-12-17 17:40:20 -06:00
jahooma
112a42406e
Add simple bets page
2021-12-17 17:40:20 -06:00
mantikoros
03a3df261c
contract slugs
2021-12-17 17:16:42 -06:00
mantikoros
756f31b1b7
rename contract properties
2021-12-17 16:15:09 -06:00
Austin Chen
022caa4407
Revert to URLs without @
2021-12-17 10:55:18 -08:00
jahooma
cda5810589
Add features section to landing page. About header scrolls to features section.
2021-12-17 01:21:40 -06:00
jahooma
96f2b4abfc
Landing page gradients, larger sign in button
2021-12-16 23:14:31 -06:00
jahooma
9bf257ef64
Embed markets below landing page. Listen for market changes
2021-12-16 22:44:48 -06:00
jahooma
1c4a834696
Bring back collapse animation by moving padding from card.
2021-12-16 22:27:22 -06:00
jahooma
e82b66959b
Switch back to useEffect instead of useLayoutEffect, because nextjs complained.
2021-12-16 22:17:33 -06:00
jahooma
7fd3cc185f
Remove headlessui and heroicons from package.json
2021-12-16 22:12:33 -06:00
jahooma
2c9f8e00bf
Fix nextjs console error by not loading from localstorage immedately. Use layout effect instead.
2021-12-16 22:09:38 -06:00
jahooma
96791e11a5
Stop flash of landing page when signed in and loading '/'
2021-12-16 21:37:38 -06:00
Austin Chen
ef091f4359
Add a temporary link to explore all markets from homepage
2021-12-16 18:36:41 -08:00
jahooma
7464d1e54f
Align description buttons right. Switch to 12 hour format time
2021-12-16 16:17:43 -06:00
jahooma
325619aa01
Edit => Add to description. Autofocus the textarea.
2021-12-16 16:07:37 -06:00
jahooma
ad2f080c6e
Improve layout of bets card
2021-12-16 15:51:47 -06:00
mantikoros
985621982b
bets wording
2021-12-16 15:35:19 -06:00
jahooma
06f1657a4c
Stop link click propogation
2021-12-16 15:28:58 -06:00
mantikoros
4503a5e04a
display active contracts first
2021-12-16 15:22:24 -06:00
mantikoros
01bb4e4156
fix UserPage access issues
2021-12-16 15:22:24 -06:00
jahooma
21d0eca49f
Collapsable bets, with bet table collapsed by default
2021-12-16 15:22:00 -06:00
jahooma
9289ad1f37
Remove All bets section from contract page
2021-12-16 13:51:35 -06:00
mantikoros
4be9c3d80c
SEO component
2021-12-16 12:40:23 -06:00
mantikoros
99637d913d
add meta tags to contract
2021-12-16 12:21:16 -06:00
Austin Chen
070b5e55c1
Spacing & wording tweak
2021-12-16 02:50:32 -08:00
Austin Chen
a8733723be
Editable descriptions
2021-12-16 02:46:41 -08:00
Austin Chen
085e6d868f
Switch header links to underline
2021-12-16 01:53:19 -08:00
Austin Chen
5e980a7863
Fix ContractOverview layout
2021-12-16 01:39:16 -08:00
Austin Chen
6b5bf3cb35
Line up BetSection with graph
2021-12-16 01:32:52 -08:00
Austin Chen
c64289af86
Make descriptions optional
2021-12-16 01:26:35 -08:00
Austin Chen
aab735cd8b
Fix UserPage alignment
2021-12-16 01:09:36 -08:00
Austin Chen
ec516ee41f
Move bet payouts to the top right of the card
2021-12-16 01:03:41 -08:00
jahooma
eaa9651c82
Fix create market redirect
2021-12-16 01:00:35 -06:00
jahooma
8abbc34652
Improve graph for resolved bets
2021-12-16 00:44:04 -06:00
mantikoros
00f5fbcf93
contract: static props, useContractWithPreload
2021-12-16 00:36:51 -06:00
jahooma
5d2e81f982
Simplify card
2021-12-16 00:11:14 -06:00
mantikoros
2a08f70a9f
contractid: reenable stuff
2021-12-15 23:56:12 -06:00
jahooma
4fd3f03fd3
Prevent flash of 404 on user profile page.
2021-12-15 23:56:03 -06:00
mantikoros
24dabe09fa
upgrade nextjs version
2021-12-15 23:49:38 -06:00
jahooma
5565bc5455
Make list of contract's bets be a card. Underline contract question as a link.
2021-12-15 23:10:31 -06:00
jahooma
81d3c09e60
Make Yes/No buttons flex. Estimated winnings => Max payout (estimated)
2021-12-15 22:55:03 -06:00
mantikoros
318e22b97d
test
2021-12-15 22:52:07 -06:00
jahooma
36591539d3
Sort bets reverse-chronologically.
2021-12-15 22:40:48 -06:00
jahooma
ea1e66bda1
Add bets section to contract page.
2021-12-15 22:30:24 -06:00
mantikoros
9bd0ad7211
test
2021-12-15 22:20:39 -06:00
mantikoros
c5286dfa87
test
2021-12-15 22:12:27 -06:00
mantikoros
09ad6a3fe0
test
2021-12-15 22:10:14 -06:00
jahooma
b9fb1d0f31
Fix build and redirect logged out users from '/create' to '/'
2021-12-15 21:58:28 -06:00
jahooma
f2d19360aa
Improve chart's time axis to be over at least 8 hours, and extend up to now.
2021-12-15 21:48:09 -06:00
mantikoros
3691ef81ed
test ssr
2021-12-15 21:45:31 -06:00
mantikoros
5206121579
ContractPage: static paths blocking
2021-12-15 21:42:05 -06:00
mantikoros
fe0d666c2b
test ssg
2021-12-15 21:24:11 -06:00
mantikoros
7b4e35699d
fix build issue
2021-12-15 21:20:39 -06:00
mantikoros
d59666e7e3
add meta tags to contract
2021-12-15 21:14:04 -06:00
jahooma
fe9def453b
Show total of active bets and their current value. Arrange unresolved markets first.
2021-12-15 21:04:44 -06:00
Austin Chen
09dba6ef1e
Fix: Don't show "Resolved" on unresolved markets
2021-12-15 18:51:41 -08:00
Austin Chen
02d836adda
Search and filter from UserPage
2021-12-15 18:50:03 -08:00
Austin Chen
79c0685b30
Move market creation to /create
2021-12-15 18:35:54 -08:00
jahooma
83b4cc38b3
Show just payout column for resolved markets, tweak calculation and resolved labels.
2021-12-15 20:28:40 -06:00
Austin Chen
743616449f
Prefix username URLs with @
2021-12-15 18:26:38 -08:00
Austin Chen
87010c1924
Extract shared UserPage code
2021-12-15 18:16:08 -08:00
Austin Chen
64dde4f482
Link to UserPage with @username
2021-12-15 18:16:00 -08:00
Austin Chen
9df78a4963
Support user profiles on /[username]
...
Currently all bets are also shown
2021-12-15 17:34:36 -08:00
Austin Chen
8e119a6338
Replace /contract/[id]
with /[username]/[id]
2021-12-15 16:52:19 -08:00
mantikoros
4b96015793
yes or no: up contrast
2021-12-15 18:02:15 -06:00
mantikoros
f0fbabbfb2
res panel: capitalize outcoms
2021-12-15 18:02:04 -06:00
mantikoros
be90a585a8
bet panel: small things
2021-12-15 17:55:46 -06:00
mantikoros
18abe96fbe
header: open about in new tab
2021-12-15 17:29:16 -06:00
jahooma
f32933f668
Bet calculation / UI updates
2021-12-15 17:27:02 -06:00
jahooma
e8f94f48e2
Update bet UI with market summary and computed columns
2021-12-15 16:58:38 -06:00
mantikoros
e281233924
contract now has dpmWeights
2021-12-15 16:44:22 -06:00
mantikoros
4b123d47ee
change starting balance to 100
2021-12-15 16:27:57 -06:00
mantikoros
e3f4a99263
header: hide markets for nonsigned in users
2021-12-15 12:55:00 -06:00
mantikoros
663821d0a0
contract overview: remove delete button for nonzero volume resolved contracts
2021-12-15 12:52:43 -06:00
mantikoros
f0e0796b99
resolution panel: show errors, disable when submitting, rename confirm button
2021-12-15 12:44:51 -06:00
mantikoros
3ee03ffcba
bet panel: error handling
2021-12-15 12:44:51 -06:00
jahooma
a07d29b881
Switch to compact table of bets
2021-12-15 12:41:18 -06:00
Austin Chen
5d1ab7d5f6
Replace ConvertKit email with sign in button
2021-12-15 01:30:00 -08:00
Austin Chen
5f7052a58e
Tweak resolution panel UI
2021-12-15 01:11:27 -08:00
Austin Chen
4bf739e06d
Tweak bet page UI
2021-12-15 01:07:18 -08:00
Austin Chen
5bad8b2787
Hide resolved markets by default
2021-12-14 23:44:51 -08:00
Austin Chen
f5a8f9de1b
Always lowercase titles
2021-12-14 23:44:51 -08:00
Austin Chen
c00c649fbe
Replace "Cancel" with "N/A", for better visual spacing
2021-12-14 23:44:51 -08:00
Austin Chen
b14b433417
Set all markets to be the logged-in homepage
2021-12-14 23:44:50 -08:00
jahooma
fda5013bf8
Simple bets list
2021-12-15 01:41:56 -06:00
mantikoros
104257001b
simulator: random bet in proportion to prob, delete vue simulator
2021-12-15 01:06:21 -06:00
jahooma
344b06124f
useUser: Listen for changes to logged in user
2021-12-14 18:45:13 -06:00
jahooma
504053dde9
Right align bet input amount. Fix panel layout
2021-12-14 18:38:11 -06:00
jahooma
0c880bb0cb
Add bet panel for creator of market. Can disable later if we decide to
2021-12-14 18:29:58 -06:00
jahooma
c3bfe6b058
Show balance in bet panel
2021-12-14 18:24:49 -06:00
jahooma
c0ec7ff3f1
Show error when bet exceeds balance. Don't allow bet number to get into exponential notation.
2021-12-14 18:09:05 -06:00
jahooma
6e61b38a9b
Remove resolved panel, move info into contract overview.
2021-12-14 12:51:30 -06:00
mantikoros
72f77c668f
ContractCard: color resolution text
2021-12-14 11:43:51 -06:00
mantikoros
9cbfbc5275
contract overview: hide percent chance if market is resolved
2021-12-14 11:37:31 -06:00
mantikoros
b85d9035b0
lower new user starting balance to M$1000
2021-12-14 11:36:23 -06:00
mantikoros
11cc6ba622
format user balance
2021-12-14 11:35:11 -06:00
Austin Chen
7b55eeff88
Move shared logic into contracts-list
2021-12-14 02:27:22 -08:00
Austin Chen
dc90c4fa74
Extract shared logic into ContractDetails
2021-12-14 02:23:32 -08:00
Austin Chen
e2e168737a
Move delete button to resolved contracts
2021-12-14 01:42:46 -08:00
Austin Chen
b6c5ad730a
Add a loading spinner on submission
2021-12-14 01:07:11 -08:00
Austin Chen
1da3cc7725
Link to All Markets from header
2021-12-14 01:03:16 -08:00
Austin Chen
fe6531cf78
Add a search bar and sort dropdown
2021-12-14 00:57:27 -08:00
Austin Chen
eb8cb69545
Slightly nicer percentage range
2021-12-14 00:35:56 -08:00
Austin Chen
c900c1798b
Use ContractsGrid for your markets
2021-12-14 00:35:20 -08:00
Austin Chen
f42e3c23da
Split markets into Open and Resolved
2021-12-13 23:59:04 -08:00
Austin Chen
d4bb419478
Prettier everything
...
(Hopefully for the last time)
2021-12-13 23:30:09 -08:00
Austin Chen
6995802272
Configure Husky to automatically run Prettier before git commits
...
https://prettier.io/docs/en/precommit.html#option-2-pretty-quickhttpsgithubcomazzpretty-quick
2021-12-13 23:24:22 -08:00
jahooma
1562565f9a
Try to fix build maximum fraction digits out of range error
2021-12-14 01:09:46 -06:00
jahooma
5c7a8e52c9
Fix type errors
2021-12-14 01:05:33 -06:00
mantikoros
f2748db21d
resolve markets
2021-12-14 01:02:54 -06:00
jahooma
325206f27b
Fix graph's overlapping ticks on mobile
2021-12-14 00:56:36 -06:00
jahooma
43941cd212
Simple market resolved panel
2021-12-14 00:12:25 -06:00
jahooma
15691c0a38
Query for user bets. Template page to show them.
2021-12-13 23:40:38 -06:00
jahooma
8d7f512248
More layout / style tweaks
2021-12-13 22:54:51 -06:00
jahooma
122e571179
Tweaks to create contract page.
2021-12-13 22:32:33 -06:00
jahooma
7b0c011d39
Improve styles of account page
2021-12-13 19:31:56 -06:00
mantikoros
14cf1e6a8b
ContractCard: declutter, fix deletion
2021-12-13 19:24:13 -06:00
Austin Chen
bae969058a
Add a page which lists all markets
...
TODO: Add in functionality
2021-12-13 17:09:58 -08:00
mantikoros
5ffe266cf7
contract creation: use slug, calculate seed amounts from given probability
2021-12-13 19:07:36 -06:00
jahooma
571c1307fa
Factor out confirmation modal component.
2021-12-13 18:47:43 -06:00
jahooma
cd6ed7dc55
Add confirmation dialog when resolving market!
2021-12-13 18:28:37 -06:00
jahooma
0d56ad603e
Add UI for resolution panel!
2021-12-13 18:00:10 -06:00
jahooma
7e08a68799
Clear bet input on submit
2021-12-13 18:00:10 -06:00
mantikoros
c6b860c0c8
replace meta tags
2021-12-13 16:32:09 -06:00
jahooma
8850e418eb
Remove static export of site
2021-12-13 15:44:04 -06:00
Austin Chen
ad6049350d
Visually clean up bet panel
2021-12-13 10:37:20 -08:00
Austin Chen
62da8ee3a9
Darken the yes/no bg color
2021-12-13 10:37:20 -08:00
Austin Chen
e9c183a493
Allow users to sign in from /account
...
SQ
2021-12-13 10:37:16 -08:00
Austin Chen
cecccbe94d
Add a drop shadow on the Account card
2021-12-13 10:32:54 -08:00
mantikoros
53907d2d52
user.balanceUsd => user.balance
2021-12-13 11:58:47 -06:00
jahooma
9f59f4b3c4
Render the actual contract created time
2021-12-13 01:01:09 -06:00
jahooma
1303da7441
Graph time of bets
2021-12-13 00:55:35 -06:00
mantikoros
15aec6df55
homepage: tagline
2021-12-13 00:23:48 -06:00
jahooma
fe9a4f941b
Fix logo dimensions
2021-12-12 23:42:45 -06:00
jahooma
60c86a57aa
Webp background image. Add white-background logo for future.
2021-12-12 23:36:02 -06:00
jahooma
8c3bc43064
Remove gradient from logo, use our primary color
2021-12-12 23:13:30 -06:00
jahooma
fbb0bd4aa8
Improve landing page, especially on mobile!
2021-12-12 22:36:15 -06:00
jahooma
1048f866d1
Layout tweaks for simulator
2021-12-12 22:13:27 -06:00
jahooma
54571b29de
Update simulator to nivo chart. Remove chart.js
2021-12-12 19:50:17 -06:00
jahooma
d32d929735
Add a better charting library!
2021-12-12 19:10:35 -06:00
mantikoros
b673c87f36
header: change about page link
2021-12-12 17:41:17 -06:00
mantikoros
cfd2f22254
simulator: quadratic price function, random bets, change table cols
2021-12-12 17:06:46 -06:00
jahooma
45640feb81
Add large percent chance indicator. Use primary color instead of green. Round current probability.
2021-12-12 16:51:44 -06:00
jahooma
7ef00d085f
Fix tailwind theme to not override previous font families.
2021-12-12 16:37:59 -06:00
jahooma
b216236503
Graph bets by afterProb.
2021-12-12 16:14:52 -06:00
jahooma
07d8680217
Upgrade to Tailwind CSS 3.0!!
2021-12-12 14:09:41 -06:00
jahooma
29e13497bf
Add volume calculation. Remove new bet button that was unnecessary.
2021-12-10 22:09:32 -06:00
jahooma
e253b3beca
Make bet panel calculate bet info and display it.
2021-12-10 21:51:35 -06:00
Austin Chen
8867d841cb
Austin's opinions on theming ( #6 )
...
* Run prettier
* Fix package-lock
* Use an off-white background, darker text
* Use indigo for headings instead of green
* Add box shadows to all cards
* Remove unused component
* Extract out a title component
* Fix typo
2021-12-10 19:35:21 -08:00
Austin Chen
fb9a690707
Run prettier
2021-12-10 17:20:52 -08:00
mantikoros
52addd2eb3
show content only with ?demo
2021-12-10 18:19:50 -06:00
jahooma
3a5b59abc3
Turn off nextjs img lint rule
2021-12-10 18:18:43 -06:00
jahooma
0ea4736c37
Replacing Image components with img
2021-12-10 18:16:58 -06:00
mantikoros
0ce4b339d3
Merge branch 'functions'
2021-12-10 18:07:06 -06:00
jahooma
b067bc8ada
Layout tweaks
2021-12-10 18:06:51 -06:00
mantikoros
d95bef8ab3
placeBet
2021-12-10 18:06:17 -06:00
jahooma
19e8406480
Change color scheme to be primary green (secondary purple, accent yellow).
2021-12-10 17:43:22 -06:00
jahooma
165f2ef3b5
Switch to light theme!
2021-12-10 16:56:26 -06:00
jahooma
e18e7548d5
Better layout on mobile for contract page
2021-12-10 12:52:11 -06:00
jahooma
b67c9bafc2
Merge branch 'main' into bet
2021-12-10 12:22:10 -06:00
Austin Chen
290b7051bc
Minor cleanups
2021-12-10 10:07:38 -08:00
jahooma
0c4243d908
Add vscode format settings
2021-12-10 12:06:51 -06:00
Austin Chen
c9229ca2b8
Allow users to create new contracts ( #4 )
...
* Add Firestore package and config
* Upload basic Firebase Auth code
* Basic ability to sign in and view profile
* Move html head content to Next's _document
* Apply dark theme to all DaisyUI components
* Add contract page
* Smaller width bet input
* Allow users to create new contracts
* Add back listenForContract
* Add some buttons
* Add Row, Col, and Spacer components
* Implement skeleton ContractPage
* Apply dark theme to all DaisyUI components
* Fix hooks lints (#3 )
* Add background to bet panel
* Sort contracts by creation time
* Link to market creation from header
* List your markets on account page
* Set fullscreen black background
* Correctly set seeds on new contracts
* Code cleanups
* Gratuitously cool font
* Add creator name, fix ordering
* Use Readex Pro as body font
* Fixes according to code review
Co-authored-by: jahooma <jahooma@gmail.com>
2021-12-10 09:54:16 -08:00
jahooma
77ce27f45f
Submit bets to firestore
2021-12-10 11:14:05 -06:00
jahooma
b8b5868eb8
Merge remote-tracking branch 'origin/create-contract' into bet
2021-12-10 10:11:49 -06:00
jahooma
f602561323
Tweak bet input to let you clear 0.
2021-12-10 10:04:59 -06:00
jahooma
ae8f7b76f5
Change from inputing shares to a points amount. Show average price and estimated winnings.
2021-12-10 09:51:48 -06:00
James Grugett
48a249eaa9
Contract page ( #5 )
...
* Add Firestore package and config
* Upload basic Firebase Auth code
* Basic ability to sign in and view profile
* Move html head content to Next's _document
* Apply dark theme to all DaisyUI components
* Add contract page
* Smaller width bet input
* Add some buttons
* Add Row, Col, and Spacer components
* Implement skeleton ContractPage
* Apply dark theme to all DaisyUI components
* Fix hooks lints (#3 )
* Add background to bet panel
* Changes based on review comments
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2021-12-10 08:56:17 -06:00
Austin Chen
70ea4b96bb
Use Readex Pro as body font
2021-12-10 03:11:05 -08:00
Austin Chen
405f754e02
Add creator name, fix ordering
2021-12-10 00:45:32 -08:00
Austin Chen
6f7f8b9401
Gratuitously cool font
2021-12-10 00:40:03 -08:00
Austin Chen
e03eb2f3fd
Code cleanups
2021-12-10 00:27:44 -08:00
Austin Chen
d945dc894b
Merge branch 'contract-page' into create-contract
2021-12-10 00:21:55 -08:00
Austin Chen
4f7d2c3d1b
Correctly set seeds on new contracts
2021-12-09 23:54:38 -08:00
Austin Chen
9bafc2b2e8
Set fullscreen black background
2021-12-09 23:52:44 -08:00
Austin Chen
f3b7fc11b6
List your markets on account page
2021-12-09 23:11:07 -08:00
Austin Chen
73d6e35a74
Link to market creation from header
2021-12-09 23:08:42 -08:00
Austin Chen
70e86155be
Sort contracts by creation time
2021-12-09 23:08:28 -08:00
jahooma
8ccea8dca0
Add background to bet panel
2021-12-10 01:01:39 -06:00
mantikoros
84296bfdde
update landing page with new idea
2021-12-10 00:43:19 -06:00
jahooma
7309096854
Merge branch 'main' into contract-page
2021-12-10 00:33:11 -06:00
James Grugett
fab691443f
Fix hooks lints ( #3 )
2021-12-10 00:28:26 -06:00
Austin Chen
f77ca5ed13
Apply dark theme to all DaisyUI components
2021-12-10 00:27:03 -06:00
jahooma
443b742c4a
Implement skeleton ContractPage
2021-12-10 00:21:12 -06:00
jahooma
7e6e7521b5
Add Row, Col, and Spacer components
2021-12-10 00:12:02 -06:00
jahooma
7324a2f359
Add some buttons
2021-12-10 00:11:45 -06:00
Austin Chen
4f2c8bcdce
Add back listenForContract
2021-12-09 21:01:44 -08:00
Austin Chen
09b4639198
Allow users to create new contracts
2021-12-09 20:54:40 -08:00
jahooma
5d082e0ead
Smaller width bet input
2021-12-09 21:27:26 -06:00
Austin Chen
89a7bd65d2
Standardize on useUser hook
2021-12-09 16:09:16 -08:00
Austin Chen
7ec3da5504
Allow logging in with Firebase ( #2 )
...
* Pin package.json to exact version
* Fix according to reviewer feedback
2021-12-09 15:33:01 -08:00
Austin Chen
992c245837
Run prettier
2021-12-09 15:23:21 -08:00
James Grugett
44f661a94e
Fix hooks lints ( #3 )
2021-12-09 14:44:20 -08:00
jahooma
1cd3e2f1be
Add contract page
2021-12-09 16:44:04 -06:00
jahooma
c8b86a43b9
Add template contract page
2021-12-09 16:05:55 -06:00
Austin Chen
a19cab89c7
Apply dark theme to all DaisyUI components
2021-12-09 15:31:20 -06:00
Austin Chen
e6afb2493c
Move html head content to Next's _document
2021-12-09 15:31:20 -06:00
Austin Chen
5ffeb6ca87
Basic ability to sign in and view profile
2021-12-09 15:31:20 -06:00
Austin Chen
e41250a89b
Upload basic Firebase Auth code
2021-12-09 15:31:20 -06:00
Austin Chen
2a3d9e6272
Add Firestore package and config
2021-12-09 15:31:20 -06:00
jahooma
293b3c1929
Create contract page
2021-12-09 15:31:02 -06:00
Austin Chen
b41c467fcb
Apply dark theme to all DaisyUI components
2021-12-08 23:59:09 -08:00
Austin Chen
0017b2a17e
Move html head content to Next's _document
2021-12-08 23:39:20 -08:00
Austin Chen
0d1abf2d54
Basic ability to sign in and view profile
2021-12-08 17:57:59 -08:00
Austin Chen
021341331f
Upload basic Firebase Auth code
2021-12-08 16:43:42 -08:00
Austin Chen
55ddb2a7d4
Add Firestore package and config
2021-12-08 16:43:42 -08:00
Austin Chen
b5145305e6
Undo Next Image version of logo
...
Reasons to undo:
- Currently broken in prod (a width/height would be needed)
- Specifying size is kind of annoying because we want it at two different size depending on responsiveness
- Next Image seems to help with progressive optimization for large raster images, not small vector SVGs.
2021-12-08 16:37:55 -08:00
jahooma
0d77a66503
Add eslint for react hooks and nextjs.
2021-12-08 12:25:37 -06:00
Austin Chen
634c0af85b
Finish porting simulator into React ( #1 )
...
* Preview bid results; toggle bid type
* Code cleanup: move hooks to where they're used
* Extract header to separate component
* Fix & reactify according to James's review
* Remove unnecessary useMemo
* Hack Chartjs type
* Add some notes on DX Todos
* Move non-page elements to lib/
2021-12-08 08:30:29 -08:00
Austin Chen
e8cefdabbe
Submit new bids for React sim
2021-12-06 12:03:12 -08:00
Austin Chen
acd523b61b
Add chart.js to React simulator
2021-12-05 10:19:10 -08:00
Austin Chen
6d1f8b9a45
Port simulator to React
...
Mostly to re-familiarize myself with the React ecosystem
2021-12-05 00:39:42 -08:00
mantikoros
be13b64794
twitter meta tags
2021-12-02 19:29:59 -06:00
mantikoros
153a2ca588
google analytics
2021-12-02 19:18:00 -06:00
mantikoros
4c42b304a8
google analytics
2021-12-02 19:03:32 -06:00
mantikoros
c6b341e40e
google analytics
2021-12-02 18:59:00 -06:00
jahooma
a61f70d887
Use exact versions of npm packages
2021-12-02 18:53:21 -06:00
jahooma
8484b54fa0
Add cover image for meta tag.
2021-12-02 18:43:02 -06:00
jahooma
1b102bdcbf
Add some meta tags
2021-12-02 18:33:33 -06:00
Austin Chen
6c6d1ba55f
Fix NextJs build
2021-12-02 17:53:21 -06:00
Austin Chen
20a425df6e
Prettier: no semi, spaces 2, single quote, trailing comma
2021-12-02 17:49:46 -06:00
jahooma
2bc8f0b429
Delete global css file
2021-12-02 17:44:03 -06:00
Austin Chen
d6d48bb6b4
Reformat with prettier
2021-12-02 17:39:11 -06:00
Austin Chen
a18baa7a50
Install prettier in web/
2021-12-02 17:35:37 -06:00
Austin Chen
d02ae06724
Use Major Mono for the header font
2021-12-02 17:22:03 -06:00
jahooma
838f7a8c8a
Transparent favicon
2021-12-02 16:44:03 -06:00
jahooma
dfafbfc980
Add mantic market logo as transparent svg
2021-12-02 16:38:23 -06:00
Austin Chen
abb572de33
Add web/ getting started instructions
2021-12-02 15:44:08 -06:00
jahooma
62517caa4d
Add bg color, padding top on mobile
2021-12-02 15:28:59 -06:00
jahooma
3578e1f494
Switch logo to monospace company name
2021-12-02 15:20:30 -06:00
Austin Chen
082e46a7bd
Replace landing page favicon
2021-12-02 14:44:05 -06:00
jahooma
510c91a4d6
Add about link
2021-12-02 14:38:54 -06:00
jahooma
12ee882810
Add navigation buttons
2021-12-02 14:38:54 -06:00
Austin Chen
2ccbb2f28b
Compress background image with tinypng
2021-12-02 14:34:54 -06:00
jahooma
13e4ac00cd
Add convertkit form to collect emails.
2021-12-02 12:38:54 -06:00
jahooma
6aab61ba3e
attempt
2021-12-01 20:12:27 -06:00
jahooma
143b4e88fc
Add post method to form
2021-12-01 20:09:44 -06:00
jahooma
a6fe862d0a
Add netlify form attribute
2021-12-01 19:42:52 -06:00
jahooma
5e1dee56a0
Build as a static site
2021-12-01 18:35:08 -06:00
jahooma
220df309c3
Fix build error
2021-12-01 18:22:45 -06:00
jahooma
dc038eae0a
Change color and background image of landing page
2021-12-01 17:23:48 -06:00
jahooma
844a908118
Add tailwind. Add stripped down hero component.
2021-12-01 13:58:35 -06:00
jahooma
a1163bfcfb
Create Nextjs template app under web directory.
2021-11-30 22:20:13 -06:00