manifold/web/components
James Grugett 80ae551ca9
🧾 Limit orders! ()
* Simple limit order UI

* Update bet schema

* Restrict bet panel / bet row to only CPMMBinaryContracts (all binary DPM are resolved)

* Limit orders partway implemented

* Update follow leaderboard copy

* Change cpmm code to take some state instead of whole contract

* Write more of matching algorithm

* Fill in more of placebet

* Use client side contract search for emulator

* More correct matching

* Merge branch 'main' into limit-orders

* Some cleanup

* Listen for unfilled bets in bet panel. Calculate how the probability moves based on open limit orders.

* Simpler switching between bet & limit bet.

* Render your open bets (unfilled limit orders)

* Cancel bet endpoint.

* Fix build error

* Rename open bets to limit bets. Tweak payout calculation

* Limit probability selector to 1-99

* Deduct user balance only on each fill. Store orderAmount of bet. Timestamp of fills.

* Use floating equal to check if have shares

* Add limit order switcher to mobile bet dialog

* Support limit orders on numeric markets

* Allow CORS exception for Vercel deployments

* Remove console.logs

* Update user balance by new bet amount

* Tweak vercel cors

* Try another regexp for vercel cors

* Test another vercel regex

* Slight notifications refactor

* Fix docs edit link ()

* Fix docs edit link

* Update github links

* Small groups UX changes

* Groups UX on mobile

* Leaderboards => Rankings on groups

* Unused vars

* create: remove automatic setting of log scale

* Use react-query to cache notifications ()

* Use react-query to cache notifications

* Fix imports

* Cleanup

* Limit unseen notifs query

* Catch the bounced query

* Don't use interval

* Unused var

* Avoid flash of page nav

* Give notification question priority & 2 lines

* Right justify timestamps

* Rewording

* Margin

* Simplify error msg

* Be explicit about limit for unseen notifs

* Pass limit > 0

* Remove category filters

* Remove category selector references

* Track notification clicks

* Analyze tab usage

* Bold more on new group chats

* Add API route for listing a bets by user ()

* Add API route for getting a user's bets

* Refactor bets API to use /bets

* Update /markets to use zod validation

* Update docs

* Clone missing indexes from firestore

* Minor notif spacing adjustments

* Enable tipping on group chats w/ notif ()

* Tweak cors regex for vercel

* Your limit bets

* Implement selling shares

* Merge branch 'main' into limit-orders

* Fix lint

* Move binary search to util file

* Add note that there might be closed form

* Add tooltip to explain limit probability

* Tweak

* Cancel your limit orders if you run out of money

* Don't show amount error in probability input

* Require limit prob to be >= .1% and <= 99.9%

* Fix focus input bug

* Simplify mobile betting dialog

* Move mobile limit bets list into bet dialog.

* Small fixes to existing sell shares client

* Lint

* Refactor useSaveShares to actually read from localStorage, use less bug-prone interface.

* Fix NaN error

* Remove TODO

* Simple bet fill notification

* Tweak wording

* Sort limit bets by limit prob

* Padding on limit bets

* Match header size

Co-authored-by: Ian Philips <iansphilips@gmail.com>
Co-authored-by: ahalekelly <ahalekelly@gmail.com>
Co-authored-by: mantikoros <sgrugett@gmail.com>
Co-authored-by: Ben Congdon <ben@congdon.dev>
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-07-10 13:05:44 -05:00
..
analytics Show x value in numeric graph's tooltip 2022-05-22 17:48:02 -05:00
answers Migrate createAnswer function to v2 () 2022-07-09 00:26:56 -07:00
charity Comment tips (attempt 2) () 2022-06-17 22:28:16 -05:00
contract 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
feed 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
groups Enable tipping on group chats w/ notif () 2022-07-07 17:23:13 -06:00
layout Analyze tab usage 2022-07-07 15:24:13 -06:00
nav Bold more on new group chats 2022-07-07 15:52:28 -06:00
portfolio Toggle weekly leaderboard and daily/weekly/alltime portfolio graph () 2022-07-03 14:18:12 -05:00
widgets Group leaderboards show members only by default 2022-06-24 18:38:39 -05:00
add-funds-button.tsx Tracking () 2022-06-15 16:34:34 -05:00
advanced-panel.tsx Replace some uses of any with more specific types () 2022-05-26 15:22:44 -07:00
alert-box.tsx alert box component 2022-06-13 21:08:56 -05:00
amount-input.tsx Add more linting to web package () 2022-05-26 14:41:24 -07:00
avatar.tsx Show tip notifications () 2022-07-06 13:30:51 -06:00
bet-panel.tsx 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
bet-row.tsx 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
bets-list.tsx 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
bucket-input.tsx 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
checkbox.tsx Fix line endings 2022-06-05 18:57:49 -07:00
choices-toggle-group.tsx Revert "Revert "Turn on no unused variables linting, kill dead code ()"" 2022-06-12 21:42:41 -07:00
client-render.tsx Add more linting to web package () 2022-05-26 14:41:24 -07:00
comments-list.tsx More absolute imports () 2022-05-09 09:04:36 -04:00
confirmation-button.tsx Groups () 2022-06-22 11:35:50 -05:00
contract-search.tsx Revert "expand search bar when typing on mobile" 2022-07-09 22:04:50 -04:00
copy-contract-button.tsx When duplicating, add the original link in description 2022-07-06 10:39:19 -07:00
copy-link-button.tsx Tracking () 2022-06-15 16:34:34 -05:00
create-question-button.tsx Unused vars 2022-07-07 07:05:12 -06:00
datetime-tooltip.tsx Add more linting to web package () 2022-05-26 14:41:24 -07:00
filter-select-users.tsx also filter by username when adding people 2022-07-05 14:34:16 -07:00
follow-button.tsx Tracking () 2022-06-15 16:34:34 -05:00
follow-list.tsx Don't show follow button for yourself 2022-06-08 14:22:10 -05:00
following-button.tsx Tracking () 2022-06-15 16:34:34 -05:00
info-tooltip.tsx Switch to outlined icon 2022-01-16 02:14:21 -05:00
join-spans.tsx Replace some uses of any with more specific types () 2022-05-26 15:22:44 -07:00
landing-page-panel.tsx track landing page 2022-06-15 21:42:11 -05:00
leaderboard.tsx More absolute imports () 2022-05-09 09:04:36 -04:00
limit-bets.tsx 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
linkify.tsx Add more linting to web package () 2022-05-26 14:41:24 -07:00
liquidity-panel.tsx Migrate addLiquidity and withdrawLiquidity functions to v2 () 2022-07-08 15:08:17 -07:00
loading-indicator.tsx Show loading indicator on comment submit 2022-05-18 10:08:42 -06:00
manalink-card.tsx Manalink: Send mana to anyone via link () 2022-06-23 01:07:52 -07:00
new-contract-badge.tsx Show "New" badge on contract cards too 2022-04-20 23:03:16 -07:00
notifications-icon.tsx Use react-query to cache notifications () 2022-07-07 14:41:50 -06:00
number-input.tsx Replace some uses of any with more specific types () 2022-05-26 15:22:44 -07:00
numeric-bet-panel.tsx Amplitude () 2022-06-14 22:00:36 -05:00
numeric-resolution-panel.tsx 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
outcome-label.tsx Pseudo numeric market () 2022-07-02 14:37:59 -05:00
page.tsx make leaderboard margin same as other pages 2022-06-16 14:43:34 -07:00
probability-input.tsx 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
probability-selector.tsx Revert "bound initial probability to [0.1, 0.9]" 2022-04-30 13:05:43 -04:00
referrals-button.tsx Display refered by publicly 2022-07-04 09:18:01 -06:00
relative-timestamp.tsx More absolute imports () 2022-05-09 09:04:36 -04:00
resolution-panel.tsx Finalize v2 resolvemarket migration () 2022-06-29 16:47:06 -07:00
sell-button.tsx Pseudo numeric market () 2022-07-02 14:37:59 -05:00
sell-modal.tsx Pseudo numeric market () 2022-07-02 14:37:59 -05:00
sell-row.tsx 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
SEO.tsx Replace some uses of any with more specific types () 2022-05-26 15:22:44 -07:00
share-embed-button.tsx Tracking () 2022-06-15 16:34:34 -05:00
share-icon-button.tsx Referrals () 2022-07-01 07:47:19 -06:00
share-market.tsx Enable url linking to comments and a copy to clipboard function [wip] () 2022-05-17 09:55:26 -06:00
sign-up-prompt.tsx sign in, sign up button styling 2022-06-15 16:58:52 -05:00
site-link.tsx Replace some uses of any with more specific types () 2022-05-26 15:22:44 -07:00
tags-input.tsx Groups () 2022-06-22 11:35:50 -05:00
tags-list.tsx exclude certain categories for new users 2022-06-21 10:01:51 -05:00
text-button.tsx Extract TextButton component with blue underline. 2022-06-08 14:23:10 -05:00
tipper.tsx Migrate transact function to v2 () 2022-07-09 13:54:15 -07:00
title.tsx Automatically sort Tailwind classes with Prettier () 2022-02-11 10:40:22 -08:00
toast-clipboard.tsx Enable url linking to comments and a copy to clipboard function [wip] () 2022-05-17 09:55:26 -06:00
tooltip.tsx Comment tips (attempt 2) () 2022-06-17 22:28:16 -05:00
tweet-button.tsx Tracking () 2022-06-15 16:34:34 -05:00
use-save-binary-shares.ts 🧾 Limit orders! () 2022-07-10 13:05:44 -05:00
user-page.tsx Analyze tab usage 2022-07-07 15:24:13 -06:00
yes-no-selector.tsx Pseudo numeric market () 2022-07-02 14:37:59 -05:00