Commit Graph

1906 Commits

Author SHA1 Message Date
James Grugett
dd9be0376b Your limit bets 2022-07-08 18:14:22 -05:00
James Grugett
f0a7b9591f Tweak cors regex for vercel 2022-07-07 18:54:23 -05:00
Ian Philips
f171462d0d Enable tipping on group chats w/ notif (#629) 2022-07-07 18:52:04 -05:00
Ian Philips
800d0e321c Minor notif spacing adjustments 2022-07-07 18:52:04 -05:00
Austin Chen
316d36f1d7 Clone missing indexes from firestore 2022-07-07 18:52:04 -05:00
Ben Congdon
0a4d186c3b Add API route for listing a bets by user (#567)
* Add API route for getting a user's bets

* Refactor bets API to use /bets

* Update /markets to use zod validation

* Update docs
2022-07-07 18:52:04 -05:00
Ian Philips
544fb2ebb7 Bold more on new group chats 2022-07-07 18:52:04 -05:00
Ian Philips
0522483a9a Analyze tab usage 2022-07-07 18:52:04 -05:00
Ian Philips
f246de9026 Track notification clicks 2022-07-07 18:52:04 -05:00
Ian Philips
39cf961b15 Remove category selector references 2022-07-07 18:52:04 -05:00
Ian Philips
d942e6f658 Remove category filters 2022-07-07 18:52:04 -05:00
Ian Philips
ca47a7c51a Use react-query to cache notifications (#625)
* 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
2022-07-07 18:52:04 -05:00
mantikoros
855079b413 create: remove automatic setting of log scale 2022-07-07 18:52:04 -05:00
Ian Philips
49a58c47d4 Unused vars 2022-07-07 18:52:04 -05:00
Ian Philips
47c562ca96 Leaderboards => Rankings on groups 2022-07-07 18:52:04 -05:00
Ian Philips
9473f0ba2e Groups UX on mobile 2022-07-07 18:52:04 -05:00
Ian Philips
f8fa13638a Small groups UX changes 2022-07-07 18:52:04 -05:00
ahalekelly
c38085b47b Fix docs edit link (#624)
* Fix docs edit link

* Update github links
2022-07-07 18:52:04 -05:00
Ian Philips
3f528cef5d Slight notifications refactor 2022-07-07 18:52:04 -05:00
James Grugett
74952d741e Test another vercel regex 2022-07-06 23:51:25 -05:00
James Grugett
6d3aff4836 Try another regexp for vercel cors 2022-07-06 23:48:58 -05:00
James Grugett
070fd7eda7 Tweak vercel cors 2022-07-06 23:41:57 -05:00
James Grugett
09decefb1a Update user balance by new bet amount 2022-07-06 23:37:16 -05:00
James Grugett
d8202cb029 Remove console.logs 2022-07-06 23:33:34 -05:00
James Grugett
05a2ada858 Allow CORS exception for Vercel deployments 2022-07-06 23:33:06 -05:00
James Grugett
60f5f311f9 Support limit orders on numeric markets 2022-07-06 23:09:38 -05:00
James Grugett
a68c100df8 Add limit order switcher to mobile bet dialog 2022-07-06 22:32:25 -05:00
James Grugett
ada6df0fbb Use floating equal to check if have shares 2022-07-06 22:27:38 -05:00
James Grugett
34b80074a3 Deduct user balance only on each fill. Store orderAmount of bet. Timestamp of fills. 2022-07-06 17:49:17 -05:00
James Grugett
a2a655063a Merge branch 'main' into limit-orders 2022-07-06 15:36:16 -05:00
Ian Philips
54b4f97a84 Move timestamp to same line 2022-07-06 13:45:31 -06:00
Ian Philips
de20ee9fb9
Show tip notifications (#623)
* Show tip notifications

* Optimizing notifications for mobile

* Unused vars

* Move income reason logic to income notif

* Remove unnecessary icons

* Unused vars
2022-07-06 13:30:51 -06:00
Austin Chen
2d1e76eae8 When duplicating, add the original link in description 2022-07-06 10:39:19 -07:00
Ian Philips
434b8b9dbe Just show first names to save space 2022-07-06 07:51:32 -06:00
Ian Philips
83a02c4b20 Small notifications ux improvements 2022-07-06 07:45:47 -06:00
Ian Philips
a6143c1abb Always group income 2022-07-06 07:27:21 -06:00
Austin Chen
029021b351 Remove Categories from /create 2022-07-05 17:20:37 -07:00
Austin Chen
6cd8b04bd0 Nit: Fix spacing 2022-07-05 16:53:00 -07:00
Austin Chen
b71944607b Simplify Tweet text 2022-07-05 16:48:59 -07:00
Austin Chen
cb25a7752d
Duplicate a question from '...' screen (#622)
* Duplicate a question from '...' screen

* Remove unused code
2022-07-05 16:26:58 -07:00
Ian Philips
3a6d28e2c2
Bold groups with recent chat activity (#621)
* Bold groups with recent chat activity

* Cleanup

* Cleanup
2022-07-05 17:18:37 -06:00
Sinclair Chen
270a5fc139 also filter by username when adding people 2022-07-05 14:34:16 -07:00
Marshall Polaris
5eca9def9d
Don't accidentally make meaningless zero bets (#619) 2022-07-05 14:01:57 -07:00
James Grugett
54779f93f9 Limit probability selector to 1-99 2022-07-05 16:39:57 -04:00
James Grugett
6cea9de8d3 Rename open bets to limit bets. Tweak payout calculation 2022-07-05 16:39:40 -04:00
Marshall Polaris
4d1c50a6cc
Redemption refactoring (#614)
* Refactor share redemption code into a few sensible functions

* Put very general share redemption code into common
2022-07-05 12:35:39 -07:00
Marshall Polaris
7f2bbdcb87
Allow people to sell all their shares (#599) 2022-07-05 12:26:51 -07:00
Marshall Polaris
f0fbdf1b42
Add a missing index (#606) 2022-07-05 12:26:13 -07:00
Marshall Polaris
a9e74e7111
Add functions framework as explicit dependency (#613) 2022-07-05 12:25:58 -07:00
Marshall Polaris
9bff858696
Fix up lint configuration, lint line endings (#615)
* Make sure we ignore all built code in common and functions

* Add lint for Unix line endings

* Fix line endings in withdraw-liquidity.ts
2022-07-05 12:25:44 -07:00