manifold/web
James Grugett ed5f69db7a
Sell shares panel (#69)
* Split BuyAmountInput out of AmountInput

* Buy and sell tabs. Compute some sell info

* In progress

* BuyPanel & SellPanel with banner above that shows current shares and toggle button

* Remove "Remaining balance"

* Bring back 'Place a trade'. Tweaks

* Sell shares cloud function.

* Sell all shares by default. Switch back to buy if sell all your shares.

* Cache your shares in local storage so sell banner doesn't flicker.

* Compute sale value of shares with binary search to keep k constant.

* Update bets table to show BUY or SELL

* Fixes from Stephen's review

* Don't allow selling more than max shares in cloud function

* Use modal for sell shares on desktop.

* Handle floating point precision in max shares you can sell.
2022-03-29 14:56:56 -05:00
..
.husky Disable tsc linting 2021-12-18 15:18:58 -08:00
components Sell shares panel (#69) 2022-03-29 14:56:56 -05:00
hooks Embed market: dynamically adjust graph height 2022-03-24 12:03:17 -05:00
lib Sell shares panel (#69) 2022-03-29 14:56:56 -05:00
pages Sell shares panel (#69) 2022-03-29 14:56:56 -05:00
public Generate sitemap server-side 2022-03-24 09:52:13 -07:00
.eslintrc.js Turn of lint for nextjs typos (triggered by getStaticPropz) 2022-03-09 21:31:38 -06:00
.gitignore Run a ts type checker in parallel with nextjs dev process 2021-12-19 15:26:59 -06:00
.prettierignore Run prettier 2021-12-09 15:23:21 -08:00
next-env.d.ts upgrade nextjs version 2021-12-15 23:49:38 -06:00
next-sitemap.js Generate sitemap server-side 2022-03-24 09:52:13 -07:00
next.config.js Update API link 2022-03-24 09:40:57 -07:00
package.json Generate a sitemap with next-sitemap 2022-03-24 09:28:36 -07:00
postcss.config.js Prettier: no semi, spaces 2, single quote, trailing comma 2021-12-02 17:49:46 -06:00
README.md Rename to Manifold Markets! (#19) 2022-01-06 12:48:30 -06:00
tailwind.config.js Clean up About page 2022-02-06 00:35:58 -08:00
tsconfig.json Change back typscript target to es5 2022-01-22 15:25:09 -06:00
yarn.lock List users on admin page (#28) 2022-01-15 22:09:15 -05:00

Manifold Markets web

Getting Started

  1. Run npm install
  2. Run npm run dev
  3. Your site will be available on http://localhost:3000

Formatting

Before committing, run npm run format to format your code.

Recommended: Use a Prettier editor integration to automatically format on save

Developer Experience TODOs

  • Automatically run prettier as code commit hook?
  • Prevent git pushing if there are Typescript errors?