manifold/web/components
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
..
analytics Show x value in numeric graph's tooltip 2022-05-22 17:48:02 -05:00
answers Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
charity Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
contract Implement quick betting: directly from the market card (#291) 2022-05-23 23:44:16 -07:00
feed Shrink avatar, paddding, gaps for mobile screens (#275) 2022-05-23 16:09:40 -06:00
folds Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
layout Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
nav nav bar: gray background for selected page (indigo color was too prominent) 2022-05-23 16:49:30 -05:00
add-funds-button.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
add-liquidity-panel.tsx Rewrite client for new public APIs to use fetch instead of callables (#241) 2022-05-19 15:04:34 -07: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 Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
bet-row.tsx Bet embed (#204) 2022-05-17 10:31:19 -07:00
bets-list.tsx Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
bucket-input.tsx Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
choices-toggle-group.tsx Simplify market creation page (#268) 2022-05-23 06:35:50 -06: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 Prevent flash of "No markets found" on search load 2022-05-21 13:51:41 -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 Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07: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 back to M$ — the worst option except for all the others 2022-05-19 22:28:38 -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 Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
numeric-bet-panel.tsx bug fix: use new placeBet api in numeric bet panel 2022-05-19 20:39:23 -04:00
numeric-resolution-panel.tsx Public API improvements (#266) 2022-05-20 14:58:14 -07:00
outcome-label.tsx Implement quick betting: directly from the market card (#291) 2022-05-23 23:44:16 -07:00
page.tsx Implement quick betting: directly from the market card (#291) 2022-05-23 23:44:16 -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 Rewrite client for new public APIs to use fetch instead of callables (#241) 2022-05-19 15:04:34 -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 Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
user-page.tsx Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
yes-no-selector.tsx Numeric range markets!! (#146) 2022-05-19 12:42:03 -05:00