Jack
536ef180ce
Add charities: EA Funds and Founders Pledge funds ( #382 )
...
Co-authored-by: jackc271 <jackc2718@gmail.com>
2022-06-01 10:25:37 -07:00
TrueMilli
29a09ad276
Made an actual comment ( #384 )
2022-06-01 10:20:45 -07:00
James Grugett
2c4aa6152e
Hide sell buttons in other people's profiles
2022-06-01 11:28:47 -05:00
Ian Philips
59830579a9
Set timeout to reset the free market banner ( #367 )
...
* wip - trigger recheck when past time
* wip - trigger recheck when past time
* Reset logic
* Interval=>timeout
2022-06-01 07:54:48 -06:00
Ian Philips
1c980ba678
Notifications ( #354 )
...
* Notifications generating on comment,answer,contract update
* Notifications MVP
* Submitted an answer => answered
* Listen for unseen notifications
* Fix userlink formatting, move page
* Fix links
* Remove redundant code
* Cleanup
* Cleanup
* Refactor name
* Comments
* Cleanup & update notif only after data retrieval
* Find initial new notifs on user change
* Enforce auth rules in db
* eslint update
* Code review changes
* Refactor reason
2022-06-01 07:11:25 -06:00
Marshall Polaris
35c373f6ce
MULTI contracts are not a thing ( #381 )
2022-05-31 20:40:08 -07:00
James Grugett
dec286583a
Show bets loading indictor instead of wrong data
2022-05-31 22:21:45 -05:00
Marshall Polaris
9f1fe3ee17
Fix busted avatar links on charity pages ( #380 )
2022-05-31 20:02:50 -07:00
Marshall Polaris
7c4ec2a8e3
Refactor contract typing to be more concise and more correct ( #355 )
...
* Refactor contract types slightly
* Refactor contract types greatly
* Kill dead binary DPM contract creation code
* Use BinaryContract, DPMContract, etc. type aliases
2022-05-31 19:42:35 -07:00
Forrest Wolf
30adb5e1f8
Fix dependency of useEffect in BetsList ( #379 )
...
* Fix dependency of useEffect in BetsList
* Revert "Fix dependency of useEffect in BetsList"
This reverts commit 077b211f22
.
* Disable linter for BetsList useEffect deps
* Add hideBetsBefore to useEffect dependencies
* Fix formatting
2022-05-31 21:36:00 -05:00
James Grugett
9cb24c9f3c
Make categories work when signed out
2022-05-31 21:23:36 -05:00
James Grugett
b236ebdbd9
Fix janky horizontal scrollbar on home on mobile
2022-05-31 20:07:28 -05:00
Austin Chen
a840143990
Publicly display bets without infinite looping
...
React why
2022-05-31 18:06:29 -07:00
Sinclair Chen
c8bf71d40d
Allow selling CPMM binary position from bet table ( #372 )
...
* Allow selling CPMM binary position from bet table
* Only click to collapse on bet header, not body
2022-05-31 17:36:58 -07:00
Sinclair Chen
3d9d60e8fe
refactor Row, Col to accept all div props
2022-05-31 17:13:54 -07:00
Marshall Polaris
d8af8accbb
Mention /docs package in README
2022-05-31 15:16:18 -07:00
Marshall Polaris
cee8e8b892
Fix up formatting in the docs package to use Prettier correctly ( #370 )
...
* Add .prettierignore to docs package
* Fix up prettier errors
2022-05-31 14:50:21 -07:00
Marshall Polaris
c640b4c830
Bring docs repo into main repo as new workspace ( #369 )
...
* Bring docs repo into main repo as new workspace
* Pin @types/react to 17.x
2022-05-31 14:30:58 -07:00
Sinclair Chen
6106eeee95
copyedit: donations available after May
2022-05-31 13:23:01 -07:00
James Grugett
5bcff4171b
Revert "Publicly display bets placed after 06-01-2022"
...
This reverts commit a4330cfdf2
.
2022-05-31 14:15:26 -05:00
Austin Chen
a4330cfdf2
Publicly display bets placed after 06-01-2022
2022-05-31 10:49:07 -07:00
Ian Philips
2fb1c4bb11
Free markets: Generate new date for setUTCHours
2022-05-31 09:51:44 -06:00
Austin Chen
3bc4e7b336
Embed @wasabipesto's charts on /analytics
2022-05-31 08:32:11 -07:00
Austin Chen
5978f4b1cb
Show blog link in sidebar
2022-05-29 17:33:41 -07:00
James Grugett
23944bf47a
Filter redemption bets out of market 'Bets' tab
2022-05-28 15:57:12 -05:00
James Grugett
90a8de09d7
Ask a question => Create a question
2022-05-28 15:48:08 -05:00
James Grugett
4c81106612
Don't show quick bet when signed out, or for numeric markets
2022-05-28 15:36:16 -05:00
James Grugett
29a05ffff2
Disable quick bet for resolved markets
2022-05-28 15:27:01 -05:00
Marshall Polaris
c3a5205d8e
Use cross-env for things that set environment variables ( #359 )
2022-05-28 13:21:05 -07:00
mantikoros
9076b625e3
numeric bet ante provided by house
2022-05-28 13:43:57 -05:00
James Grugett
45f92379bc
Portfolio: Fix calculation of whether you sold all your shares
2022-05-28 00:18:09 -05:00
Austin Chen
2ea7ddc1aa
Hide mobile bottom bar if Manifold is iframed
2022-05-27 21:27:37 -07:00
Marshall Polaris
80d5607984
Revert fishy change regarding payouts
2022-05-27 14:24:49 -07:00
Marshall Polaris
86625798cd
Clean up some mess related to nullable collectedFees
( #352 )
...
* contract.collectedFees is no longer sometimes nonexistent
* Fix typing issues around payouts code
2022-05-27 14:02:02 -07:00
James Grugett
279b139556
Add 'sold' filter option in portfolio page
2022-05-27 15:51:55 -05:00
James Grugett
15d203977a
Portfolio: Consistently filter out contracts you have sold out of.
2022-05-27 15:40:52 -05:00
Marshall Polaris
e5ce17c2ad
Fix up backfill script (and I ran it)
2022-05-27 13:11:32 -07:00
Marshall Polaris
3e25faf74c
Add script to backfill contract collectedFees
2022-05-26 22:07:56 -07:00
Forrest Wolf
1e0845f4b9
Replace some uses of any
with more specific types ( #344 )
...
* Add tsconfig.json for common
* Prefer `const` over `let` over `var`
* Kill dead code
* Fix some trivial Typescript issues
* Turn on Typescript linting in common except for no-explicit-any
* Correctly specify tsconfig dir name in functions eslintrc
* Give react children explicit types
* Add explicit types to removeUndefinedProps
* Create StripeSession type
* Give event in Dropdown an explicit type
* Revert "Give event in Dropdown an explicit type"
This reverts commit 80604310f2
.
* Give bids in NewBidTable an explicit type
* Cast results of removeUndefinedProps when neccessary
* Fix type of JoinSpans
* Revert "Cast results of removeUndefinedProps when neccessary"
This reverts commit 5541617bc8
.
* Revert "Add explicit types to removeUndefinedProps"
This reverts commit ccf8ffb0b5
.
* Give React children types everywhere
* Give event a type
* Give event correct type
* Lint
* Standardize React import
Co-authored-by: Marshall Polaris <marshall@pol.rs>
2022-05-26 15:22:44 -07:00
Marshall Polaris
420ea9e90e
Add more linting to web
package ( #343 )
...
* Import React a lot
* Fix misc. linting concerns
* Turn on many recommended lints for `web` package
2022-05-26 14:41:24 -07:00
Marshall Polaris
5217270073
Serious business API validation & big cleanup of createContract
, placeBet
( #302 )
...
* Add the great Zod as a dependency to help us
* Tweak eslint
* Rewrite a ton of stuff in createContract and placeBet
* Clean up error reporting in API
* Make sure the UI is enforcing validated limits on lengths
* Remove unnecessary Math.abs
* Better type on `BetInfo`
* Kill `manaLimitPerUser`
* Clean up hacky parameters on bet info functions
* Validate `closeTime` as a valid timestamp in the future
2022-05-26 14:37:51 -07:00
Ian Philips
09e93779fb
Use today's 4pm utc if past already
2022-05-26 10:29:46 -06:00
mantikoros
7b0be014eb
show resolved n/a for numeric markets
2022-05-26 09:39:14 -05:00
Ian Philips
6f23c16df7
Show up arrow if shares in numeric markets
2022-05-26 06:23:22 -06:00
Sinclair Chen
38fa58406d
Fix embeds on incognito (blocked localStorage)
2022-05-25 22:30:03 -07:00
Austin Chen
eb68d059e2
Extend analytics to 90 days
2022-05-25 19:22:50 -07:00
Marshall Polaris
b8b1c0d056
Add tsconfig, more linting to common
package ( #324 )
...
* Add tsconfig.json for common
* Prefer `const` over `let` over `var`
* Kill dead code
* Fix some trivial Typescript issues
* Turn on Typescript linting in common except for no-explicit-any
* Correctly specify tsconfig dir name in functions eslintrc
2022-05-25 17:12:36 -07:00
Ian Philips
0c3fa9f065
Handle free response outcomes for yes/no shares ( #338 )
2022-05-25 16:51:33 -06:00
Ian Philips
1334840ee0
Fix comment links from /activity & add to emails ( #320 )
2022-05-25 16:47:08 -06:00
Ian Philips
f0d44be2f4
Clean up time diff code
2022-05-25 16:04:14 -06:00