Commit Graph

24 Commits

Author SHA1 Message Date
Austin Chen
3b313f319c Call out Manafold's earnings up top 2022-04-01 09:59:19 -07:00
Austin Chen
d9a1ef7328 Correctly categorize transactions 2022-04-01 09:51:45 -07:00
Austin Chen
68fb5b578c Restrict to buying 1 slot at a time 2022-04-01 09:24:33 -07:00
Austin Chen
ee3102d092 Show setting value of 0 as a sale 2022-04-01 09:12:42 -07:00
Austin Chen
b28956d2e5 Hide explanation for now 2022-04-01 08:30:00 -07:00
Austin Chen
804a2bb357 Fix build 2022-04-01 08:28:56 -07:00
Austin Chen
297516d092 Prevent buying slots when fake balance is low 2022-04-01 08:26:36 -07:00
Austin Chen
3b1a01f2f8 Show a fake balance involving transactions 2022-04-01 08:10:12 -07:00
Austin Chen
9f9df5c4e9 Expand description; track individual earnings 2022-04-01 00:14:18 -07:00
Austin Chen
7e33c3a68f Increase tax rate to 25%/hour 2022-03-31 23:35:46 -07:00
Austin Chen
432575ae41 Calculate the tax, and show a table of all transactions 2022-03-31 23:31:48 -07:00
Austin Chen
7ffef0294a Grab up to 50 traders 2022-03-31 22:41:40 -07:00
Austin Chen
37d5d5fc93 Store values as well 2022-03-31 22:16:22 -07:00
Austin Chen
709ddfa7a9 Store transactions and manipulate client-side 2022-03-31 21:52:06 -07:00
Austin Chen
17b9ccae83 UI tweaks, message updates 2022-03-31 15:54:40 -07:00
Austin Chen
97f6bddabc Stack leaderboards; add explanation 2022-03-31 12:41:25 -07:00
Austin Chen
c1a84e23e0 Replace leaderboards with buyable Manaboards 2022-03-31 12:14:29 -07:00
Austin Chen
da4ce99755
Merge Manifold for Teams infra into main codebase (#61)
* Add dev target for TheoremOne

* Restrict signups to theoremone.co emails

* Add new indices

* Forbid reads from unauthenticated users

* Client-side render pages that need auth

These pages are now client-side rendered:
- /home
- /leaderboards
- /market/...
- /fold/...

* Hide 404 for private Manifolds

* Brand instance for TheoremOne

* Hide "Add Funds" and "Personalize your feed"

* "M$" =>  "T$"

* Hide Discord & About Page too

* Update placeholders for teams

* Update firestore.indexes.json

* Switch /analytics to propz

* Migrate per-env code into common/

* More migrations to PROJECT_ID

* Conditionally use SSG depending on public vs private instance

* Fix props to be empty object

* Move more logic into access

* Spin out config files for each environment

* Generify most of the customizable brand stuff

* Move IS_PRIVATE_MANIFOLD to access.ts

* Rename access.ts to envs/constants.ts

* Add "dev:dev" alias

* Rever firestore rules to existing settings

* Fixes according to James's review
2022-03-08 18:43:30 -08:00
Austin Chen
7338bdd47a
Automatically sort Tailwind classes with Prettier (#45)
* Add Prettier Tailwind plugin

* Autoformat Tailwind classes with Prettier
2022-02-11 10:40:22 -08:00
mantikoros
f06ca8305c
Resolve prob (#41)
* rename MKT to PROB; show resolved probability; move format utilities to common

* ProbabilitySelector

* resolve to PROB

* prob and mkt labels
2022-01-30 15:51:30 -06:00
jahooma
9b59ea9fbe Bring back global leaderboards linked from profile menu 2022-01-27 16:43:45 -06:00
James Grugett
60f68b178d
Folds (#34)
* Fold type, fold page, query for fold contracts

* Tsconfig: target esnext, nounused locals: false

* Store tags in field on contract. Script to update contract tags

* Show tags on fold page

* Load all fold comments server-side to serve better feed

* Fix the annoying firebase already initialized error!

* Add links to /edit and /leaderboards for fold

* Page with list of folds

* UI for creating a fold

* Create a fold

* Edit fold page
2022-01-21 17:21:46 -06:00
mantikoros
908c8c03e6
Create user cloud function (#31)
* createUser cloud function; change User object

* initial commit

* listenForLogin: avoid race condition

* createUser: allow capital letters in username

* remove debugging

* leaderboard: empty url for undefined avatar image
2022-01-18 01:18:38 -06:00
James Grugett
6625983bb7
Leaderboards 🏅 (#30)
* Simple leaderboards

* Filter out SG from traders. Center leaderboard. Use Nextjs Image.

* Add leaderboards menu option

* Put leaderboards side-by-side on large screens

* Add medal emoji
2022-01-17 21:20:25 -06:00