manifold/common
Austin Chen 8cedf93901
Implement quick betting: directly from the market card (#291)
* Play with using 3 icons for 1-click usage

* Align bet icons with the percentages

* Hide liquidity injection star, for now

* Fix Free Response card layouts

* Use triangles instead of planes

* Set correct hover states the arrows

* Fix down triangle & padding

* Default large nums to 2 sigfigs

* Clean up hover areas

* Fix bet width, remove "chance/expected"

* Show "M$20" on hover, hide arrows when closed

* Improve click targets

* FR: "MULTI" => "MANY", single => "TOP"

* Install react-hot-toaster

* Implement quick betting on binary questions

* Handle different kinds of markets

* Extract out QuickBet into its own component

* Minor tweaks

* Visually separate out quick bet pane

* Hide quick bet for FR markets with no answers

* Fill in which bets the user has already placed

* Animate movements, fix binary direction

* Hover arrows are now always gray

* Pull out code into quick-bet.tsx

* Minor comments

* Fix import

ts-ignore is scary

* Fixes from James's feedback

* Hide text only on quickbet
2022-05-23 23:44:16 -07:00
..
envs Add Vercel routes for public write API (#280) 2022-05-23 14:16:56 -07:00
util Implement quick betting: directly from the market card (#291) 2022-05-23 23:44:16 -07:00
.eslintrc.js Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
.gitignore Add package.json to common directory, and lodash dependency 2022-02-01 12:59:51 -06:00
add-liquidity.ts Separate out fees (#169) 2022-05-10 08:49:14 -05:00
answer.ts Revert "Represent DB avatar URLs as non-null (#128)" 2022-05-06 14:29:15 -04:00
antes.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
bet.ts Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
calculate-cpmm.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
calculate-dpm.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
calculate-fixed-payouts.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
calculate.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
categories.ts Update categories: Add Culture, health => Covid, rearrange 2022-05-15 23:45:02 -04:00
charity.ts Add trevor project charity (#258) 2022-05-19 17:08:21 -07:00
comment.ts Single threaded comments (#175) 2022-05-11 15:11:46 -06:00
contract.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
feed.ts Categories (#132) 2022-05-12 10:07:10 -05:00
fees.ts lower fees 2022-03-18 00:39:21 -05:00
fold.ts Match lowercase tags for folds 2022-02-01 12:29:14 -06:00
liquidity-provision.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
new-bet.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
new-contract.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
numeric-constants.ts Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00
package.json Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
payouts-dpm.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
payouts-fixed.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
payouts.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
recommended-contracts.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
scoring.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
sell-bet.ts Fix sell to pay back loans 2022-03-31 00:54:42 -05:00
tracking.ts Track latency of feed and portfolio page. 2022-04-21 01:00:08 -05:00
txn.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
user.ts Allow users to generate an API key in their profile (#182) 2022-05-15 20:41:07 -07:00
yarn.lock Add package.json to common directory, and lodash dependency 2022-02-01 12:59:51 -06:00