Commit Graph

1339 Commits

Author SHA1 Message Date
Milli
8380bf4f72 moved calculate ts for access in firebase 2022-06-05 18:23:21 +02:00
Milli
e0bdc70843 fix description error 2022-06-05 01:38:20 +02:00
Milli
841b35ecda Merge remote-tracking branch 'upstream/main' into automated-market-resolution 2022-06-04 22:35:21 +02:00
Justin
e3eb43a14b
add volume to api response (#413) 2022-06-04 13:33:07 -07:00
Marshall Polaris
f8c44efeba
Small cleanup to some common code (#422)
* Remove unnecessary type helpers

* Turn on unused code lint
2022-06-04 13:30:54 -07:00
Milli
463338efc6 Added auto resolution to LiteMarket 2022-06-04 21:03:17 +02:00
Milli
bef543a7c1 Merge remote-tracking branch 'upstream/main' into automated-market-resolution 2022-06-04 20:38:37 +02:00
Forrest Wolf
b89753e1fe
Add yarn verify script (#378)
* Add yarn check script

* Rename

* Add verify script to subdirectories for convenience
2022-06-03 15:10:14 -07:00
Milli
f2d98d9ec1 refactoring description update 2022-06-03 19:38:14 +02:00
Milli
f7bc69d76e Merge branch 'main' into automated-market-resolution 2022-06-03 19:06:52 +02:00
Milli
b1532f766a Merge branch 'vscode_files' into automated-market-resolution
# Conflicts:
#	.vscode/settings.json
2022-06-03 19:05:50 +02:00
Marshall Polaris
49859e6f00
Call cloud functions directly from web client instead of proxy (#405) 2022-06-03 00:50:24 -07:00
James Grugett
c1bda8a775
Follow other users. Filter markets by followed (#387)
* Add follow button to user page

* Update follows in the database using follow button.

* Add toggle for followed market creators to home

* Hide follow toggle from user's markets page

* Check that sold bet is by auth'd user

* Change follow toggle to category pill

* Remove unused imports

* Remove console.logs
2022-06-02 23:52:14 -05:00
Sinclair Chen
749f7aad40 copyedit: username in bet list empty state 2022-06-02 18:07:47 -07:00
Forrest Wolf
397d90c6b7
Replace some more uses of any with more specific types (#389)
* Give confirmation button icon a type

* Give setBids a type

* Make StripeSession type more specific

* Give MenuButton buttonContent a type
2022-06-02 17:40:41 -07:00
TrueMilli
0f2a311b74
Refactoring (#401)
* refactoring

(cherry picked from commit 4de86d5b08)

* removed unused imports and variables

* added type for binary resolution

* Prettier

* const for binary resolutions

* using the type "resolution"

* Prettier

* Update functions/src/create-contract.ts

* launch config for debugging with vs code
* "Launch Chrome" does not work since login via google is not possible in debugger-chrome
* Breakpoints are unbound when attached to chrome
2022-06-02 17:30:34 -07:00
Milli
7c825242e2 Merge branch 'refactoring' into automated-market-resolution
# Conflicts:
#	common/contract.ts
2022-06-03 02:20:33 +02:00
Milli
f3dfd81666 prettier 2022-06-03 01:37:37 +02:00
James Grugett
bbb9a2c1fa Quick bet: Opposite arrow sells position 2022-06-02 18:24:10 -05:00
Milli
a19e6326a3 Re-added comment 2022-06-03 00:46:38 +02:00
Milli
4be929fd8e Prettier 2022-06-03 00:39:15 +02:00
Milli
5315eb3600 using the type "resolution" 2022-06-03 00:36:24 +02:00
Milli
fba083cead Prettier 2022-06-03 00:09:02 +02:00
Milli
dfec5ed8fa added type for binary resolution 2022-06-02 23:35:58 +02:00
Milli
6dab3c4e29 removed unused imports and variables 2022-06-02 23:32:19 +02:00
mantikoros
06c5c97a03 down betting arrow disabled for free response markets 2022-06-02 16:25:41 -05:00
Milli
1b2aff170f refactoring
(cherry picked from commit 4de86d5b08)
2022-06-02 23:25:09 +02:00
Milli
722a6e6d94 Merge branch 'refactoring' into automated-market-resolution
# Conflicts:
#	firestore.rules
2022-06-02 23:23:39 +02:00
Milli
d355e7a95e removed unnecessary export 2022-06-02 23:22:04 +02:00
mantikoros
5a4bb65d80 remove extra space (to fix prettier static check) 2022-06-02 16:00:38 -05:00
mantikoros
5af2e1fef0 up arrows green, down arrows red 2022-06-02 15:54:03 -05:00
Austin Chen
5b142baa98 Revert "Demote charity to more menu"
This reverts commit 311b39ffe9.
2022-06-02 13:35:31 -07:00
mantikoros
4fbc7703ce create page: remove numeric markets 2022-06-02 14:27:01 -05:00
Sinclair Chen
e1b1f30c55 make sell button show on mobile (bet list) 2022-06-02 10:56:56 -07:00
James Grugett
311b39ffe9 Demote charity to more menu 2022-06-01 23:31:38 -05:00
Milli
4a1c8d52b7 Setting of auto resolve date when changing close date 2022-06-02 01:16:31 +02:00
Milli
1c91cc984a New edit interface for auto resolution 2022-06-01 23:23:34 +02:00
Milli
6cf574f33c Merge remote-tracking branch 'upstream/main' into automated-market-resolution
# Conflicts:
#	common/contract.ts
#	package.json
#	web/components/contract/quick-bet.tsx
#	web/components/outcome-label.tsx
#	web/components/resolution-panel.tsx
2022-06-01 22:38:45 +02:00
Ian Philips
78a359407d
Notifications reverted ux (#386)
* Revert "Revert "Notifications ux fixes - wip (#383)""

This reverts commit 699b03eb42.

* <p>=><div>
2022-06-01 12:26:41 -06:00
Ian Philips
699b03eb42 Revert "Notifications ux fixes - wip (#383)"
This reverts commit b5057f4028.
2022-06-01 11:52:27 -06:00
Ian Philips
b5057f4028
Notifications ux fixes - wip (#383)
* 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

* Add todos

* Show question in notifiation title

* Allow larger width on md

* Condense on mobile

* Decrease padding, hide title on mobile

* Line clamp notifications

* Shrink text
2022-06-01 11:31:46 -06: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