manifold/web/components
James Grugett 76f27d1a93
Numeric range markets!! (#146)
* Numeric contract type

* Create market numeric type

* Add numeric graph (coded without testing)

* Outline of numeric bet panel

* Update bet panel logic

* create numeric contracts

* remove batching for antes for numeric markets

* Remove focus

* numeric market range [1, 100]

* Zoom graph

* Hide bet panels

* getNumericBets

* Add numeric resolution panel

* Use getNumericBets in bet panel calc

* Switch bucket count to 100

* Parallelize ante creation

* placeBet for numeric markets

* halve std of numeric bets

* Update resolveMarket with numeric type

* Set min and max for contract

* lower std for numeric bets

* calculateNumericDpmShares: use sorted order

* Use min and max to map the input

* Fix probability calc

* normpdf variance mislabeled

* range input

* merge

* change numeric graph color

* fix getNewContract params

* bet panel labels

* validation

* number input

* fix bucketing

* bucket input, numeric resolution panel

* outcome label

* merge

* numeric bet panel on mobile

* Make text underneath filled green answer bar selectable

* Default to 'all' feed category when loading page.

* fix numeric resolution panel

* fix numeric bet panel calculations

* display numeric resolution

* don't render NumericBetPanel for non numeric markets

* numeric bets: store shares, bet amounts across buckets in each bet object

* restore your bets for numeric markets

* numeric pnl calculations

* remove hasUserHitManaLimit

* contrain contract type

* handle undefined allOutcomeShares

* numeric ante bet amount

* use correct amount for numeric dpm payouts

* change numeric graph/outcome color

* numeric constants

* hack to show correct numeric payout in calculateDpmPayoutAfterCorrectBet

* remove comment

* fix ante display in bet list

* halve bucket count

* cast to NumericContract

* fix merge imports

* OUTCOME_TYPES

* typo

* lower bucket count to 200

* store raw numeric value with bet

* store raw numeric resolution value

* number input max length

* create page: min, max to undefined if not numeric market

* numeric resolution formatting

* expected value for numeric markets

* expected value for numeric markets

* rearrange lines for readability

* move normalpdf to util/math

* show bets tab

* check if outcomeMode is undefined

* remove extraneous auto-merge cruft

* hide comment status for numeric markets

* import

Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-05-19 12:42:03 -05:00
..
analytics More absolute imports (#156) 2022-05-09 09:04:36 -04:00
answers Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
charity move manaToUSD to format.ts (#172) 2022-05-10 11:14:24 -07:00
contract Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
feed Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
folds More absolute imports (#156) 2022-05-09 09:04:36 -04:00
layout Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
nav Center question button on lg 2022-05-19 09:20:38 -06:00
add-funds-button.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
add-liquidity-panel.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
advanced-panel.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
amount-input.tsx Unhardcode M$ in more locations 2022-05-17 08:17:22 -04:00
avatar.tsx Cleanup avatar again (#161) 2022-05-09 14:32:59 -07:00
bet-panel.tsx Bet embed (#204) 2022-05-17 10:31:19 -07:00
bet-row.tsx Bet embed (#204) 2022-05-17 10:31:19 -07:00
bets-list.tsx Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
bucket-input.tsx Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
client-render.tsx Render timestamps client-side to fix timezone (#58) 2022-03-02 23:51:58 -08:00
comments-list.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
confirmation-button.tsx Switch confirmation buttons to the new modal 2022-03-31 02:09:08 -07:00
contract-search.tsx Show close time in cards on close date sort 2022-05-18 17:08:46 -04:00
copy-link-button.tsx Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
datetime-tooltip.tsx Render timestamps client-side to fix timezone (#58) 2022-03-02 23:51:58 -08:00
feed-create.tsx Any question => anything 2022-05-18 13:47:53 -06:00
info-tooltip.tsx Switch to outlined icon 2022-01-16 02:14:21 -05:00
join-spans.tsx Don’t show negative values in feed for sales 2022-01-17 21:38:40 -06:00
leaderboard.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
linkify.tsx Revert "back to M$ — playtime is over" 2022-05-18 12:09:24 -04:00
loading-indicator.tsx Show loading indicator on comment submit 2022-05-18 10:08:42 -06:00
new-contract-badge.tsx Show "New" badge on contract cards too 2022-04-20 23:03:16 -07:00
number-input.tsx Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
numeric-bet-panel.tsx Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
numeric-resolution-panel.tsx Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
outcome-label.tsx Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
page.tsx Clean up some markup around the top of the page (#189) 2022-05-13 16:47:50 -07:00
probability-selector.tsx Revert "bound initial probability to [0.1, 0.9]" 2022-04-30 13:05:43 -04:00
relative-timestamp.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
resolution-panel.tsx Implement onRequest versions of createContract, placeBet functions (#227) 2022-05-16 21:43:40 -07:00
sell-button.tsx Bet embed (#204) 2022-05-17 10:31:19 -07:00
sell-modal.tsx Bet embed (#204) 2022-05-17 10:31:19 -07:00
sell-row.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
SEO.tsx Revert "Represent DB avatar URLs as non-null (#128)" 2022-05-06 14:29:15 -04:00
share-embed-button.tsx Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
share-market.tsx Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
site-link.tsx Fix links beginning with https 2022-05-17 17:11:24 -04:00
tags-input.tsx Tags input: save on enter 2022-05-12 11:13:35 -04:00
tags-list.tsx fix double hashtag 2022-05-17 11:49:10 -04:00
title.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
toast-clipboard.tsx Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
tweet-button.tsx Move tweet, embed buttons plus communities and tags into a market info dialog 2022-04-07 15:52:54 -05:00
use-save-shares.ts More absolute imports (#156) 2022-05-09 09:04:36 -04:00
user-page.tsx Remove unused bets (redemptions, antes) and sort by desc in query (#264) 2022-05-19 10:03:37 -06:00
yes-no-selector.tsx Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00