James Grugett
b5d8acfef3
Switch profit in bets tab to match user page
2022-08-02 17:31:49 -07:00
Ian Philips
c24b4e77a8
Lint
2022-08-02 17:24:59 -06:00
Ian Philips
e700697423
Fix group referrals not working
2022-08-02 17:18:08 -06:00
mantikoros
6563082746
move claim button
2022-08-02 15:22:53 -07:00
mantikoros
5e8b9711dc
hide pagination if only one page
2022-08-02 15:22:53 -07:00
mantikoros
96c0876053
manalinks: fix focus
2022-08-02 15:22:53 -07:00
mantikoros
164d9ef079
manalinks: mention referral bonus
2022-08-02 15:22:53 -07:00
Austin Chen
53d89fa4ac
Show the value to 2 decimal places on hover
2022-08-02 14:59:47 -07:00
Marshall Polaris
b83caf4dd9
Just make me
endpoint forward the backend response
2022-08-02 00:21:51 -07:00
Keri Warr
cfeb50826c
Add endpoint for reading currently authenticated user ( #710 )
2022-08-02 00:06:23 -07:00
Ian Philips
0b06ded5e5
Groups contracts ( #709 )
...
* Update group links in trigger and api
* Remove extra call during creation
* Remove grouplinks on frontend
* Deserialize
* Consolidate logic
* Move function locally
2022-08-01 21:15:09 -06:00
Marshall Polaris
ec84245dd4
Add some API endpoints for reading group info ( #707 )
2022-08-01 14:59:45 -07:00
Ian Philips
0819c3918f
Most popular=> Trending
2022-08-01 09:03:46 -06:00
ingawei
ae2e7dfe30
noobify welcome demo ( #699 )
...
* noobify welcome
* also beginning to add greyscale color scheme
2022-07-30 02:50:03 -05:00
James Grugett
87f6949d80
Use custom search index for search results. Hide sort options while there's a query.
2022-07-29 18:13:53 -07:00
James Grugett
003301762c
Ignore filter on contract status when searching
2022-07-29 17:37:53 -07:00
James Grugett
d6cf4332da
Delete query param when empty
2022-07-29 17:37:34 -07:00
James Grugett
be01a15230
Refactor search to not use Algolia components ( #705 )
...
* In progress refactor to not use Algolia components
* Cleanup
* Only query when necessary
* Read and update url params for query and sort
* Don't push router
* Don't update url if using default sort
* Add popstate listener to improve home navigation
* Remove console.logs
2022-07-29 19:08:51 -05:00
mantikoros
079a2a3936
eslint
2022-07-29 16:06:22 -07:00
mantikoros
5812d8ed2e
manalink qr code
2022-07-29 16:02:18 -07:00
mantikoros
779b6dfc0c
manalink referrals
2022-07-29 15:09:48 -07:00
mantikoros
bdea739c55
multiple choice contract card
2022-07-29 09:20:49 -07:00
Austin Chen
693eb96d23
Include groupId when duplicating markets
2022-07-29 09:20:01 -07:00
mantikoros
ada3f0787c
create: add bottom margin
2022-07-28 11:44:07 -07:00
Ian Philips
d3da6de5dd
Groups default open
2022-07-28 11:37:26 -07:00
marsteralex
aa6d0d1750
add beasts ( #700 )
...
* fix https
* add beasts
* Remove extra file
* Prettier-ify code
* Prettier-ify
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-07-28 11:31:58 -07:00
Ian Philips
05b0ca5cdb
I want to see others' referrals
2022-07-28 11:16:48 -07:00
mantikoros
b6a70641a0
fix modal
2022-07-27 19:51:34 -07:00
mantikoros
1aaae93113
Multiple choice markets ( #698 )
...
* multipe choice answers
* create multiple choice cloud function
* multi choice market page
* show outcome '0'
* stats: multi choice type
* update place bet
* answer doc id = outcome
* update resolve market
* prettier
* fix
* fix resolution
2022-07-27 21:40:33 -05:00
James Grugett
b1c4f018f9
Expose cancel bet api
2022-07-27 17:38:25 -07:00
Ian Philips
013ff1d941
Show api error on create contract
2022-07-26 16:44:51 -07:00
Ian Philips
f32e995baa
Show referrals banner on user-page
2022-07-26 15:24:16 -07:00
Marshall Polaris
b506e96548
Implement "sell all shares" functionality in sellshares
and expose API ( #696 )
...
* Change `sellshares` to be able to sell all shares
* Sell all shares properly on bet panel UI
* Add API route for selling shares, document
2022-07-26 12:47:19 -07:00
Marshall Polaris
ad46a60c4f
Clean up rendering of user bets list ( #694 )
...
* Clean up crufty markup in bets list
* Don't render bet tables in bets list until expanded
* Don't look up unfilled bets for every sell button
2022-07-26 00:10:22 -07:00
Marshall Polaris
7e4f4b9a87
Clean up a bunch of crufty stuff on user comments list ( #693 )
2022-07-26 00:10:11 -07:00
Ian Philips
af25a6c795
Allow adding multiple contracts to group in modal
2022-07-25 18:27:43 -07:00
mantikoros
3107c8fe30
large bet warning
2022-07-25 18:11:29 -07:00
mantikoros
24124ac86a
show sign up button on mobile on market page
2022-07-25 17:45:42 -07:00
Marshall Polaris
06948bb98b
Make setNotificationsAsSeen
return a promise ( #692 )
2022-07-25 16:37:23 -07:00
Marshall Polaris
64462d6ab4
Make tabs components better ( #691 )
...
* Make better tabs components, apply to user page
* Remove fishy unused href property from tabs
* Remove tab ID property
* Clean up crufty markup in tabs component
* Fix naming to be right (thanks James!)
2022-07-25 13:27:09 -07:00
TrueMilli
e4f8c14fab
Image compression ( #689 )
...
* added image compression
* removed TODO
2022-07-25 12:51:51 -07:00
mantikoros
d8f96876a0
PlayMoneyDisclaimer copy; hide order book for signed out users
2022-07-25 12:29:29 -07:00
mantikoros
d82c7d7f3e
“added liquidity” ⇒ “added a subsidy”
2022-07-25 12:22:38 -07:00
mantikoros
d982d0332c
play money wording
2022-07-24 23:38:57 -07:00
mantikoros
df91310d0f
PlayMoneyDisclaimer; hide limit orders for signed out users; infobox styling
2022-07-24 23:28:05 -07:00
mantikoros
e389f4cc3b
referrals text
2022-07-24 22:50:33 -07:00
Marshall Polaris
a1d5d161dd
Revamp backend code to support good local function development ( #657 )
...
* Move concurrently dep upwards
* Add express as explicit dependency
* Accept just one HTTP method per endpoint
* Fix endpoint option coalescing
* Expressification of cloud functions
* Nicer logging of API requests
* Refactor web package.json
* Add ts-node and nodemon to dev dependencies, bring back cors
* Add scaffolding to point dev server at local functions
* Enable emulator in dev server scaffolding
* Fix up a little stuff I broke
2022-07-24 00:26:38 -07:00
Austin Chen
6ad43b02c7
Show the number of comments and bets
2022-07-24 00:11:35 -07:00
Sinclair Chen
6c89e5f18f
Add @ mentions to editor ( #670 )
...
* Add @ mentions to editor
* Fix mention list not loading
* Sort mention list by prefix, follow count
* Render at mention with Linkify component
- mentions are now Next <Link> rather than <a>
- fix bug where editor.getText() returns [object Object] for mentions
- fix mention rendering for posted markets
2022-07-23 20:37:34 -07:00
Ian Philips
f4e4582913
Add group slug during create
2022-07-23 15:04:11 -06:00
James Grugett
64f2dbbe71
Fix unused var
2022-07-23 15:26:08 -05:00
James Grugett
f43df42449
Change card to show volume instead of pool
2022-07-23 15:23:47 -05:00
James Grugett
71b20eb61a
Tweak visually hidden style
2022-07-23 15:10:54 -05:00
James Grugett
7f42796724
Update algolia filters to use groupLinks.slug isntead of deprecated groupSlugs field.
2022-07-23 15:02:08 -05:00
Austin Chen
71880dfc98
Add a toolbar for images and iframes ( #688 )
...
* Add a toolbar for images and iframes
* Insert embed code via modal
2022-07-23 09:19:49 -07:00
James Grugett
408027dd6a
Fix bug
2022-07-22 22:44:21 -05:00
James Grugett
2116b86aec
Fix infinite loop in numeric limit bet
2022-07-22 21:03:08 -05:00
Ian Philips
5f074206de
Backfill and forward fill contracts with group info ( #686 )
...
* Backfill and forward fill contracts with group info
* No nested queries :(
* Fix filter
* Pass empty arrays instead of undefined
2022-07-22 16:28:53 -06:00
James Grugett
5899c1f3c0
Fix lints
2022-07-22 16:30:07 -05:00
James Grugett
135160dd92
Remove custom placeholders. Just show '0' for limit inputs
2022-07-22 16:18:36 -05:00
James Grugett
a1d51e3778
Update labels for numeric market outcomes
2022-07-22 16:07:59 -05:00
James Grugett
f800570845
Improve range limit order UI
2022-07-22 16:03:55 -05:00
Ian Philips
63d8e6739b
Add title, mobile flex
2022-07-22 13:53:19 -06:00
James Grugett
d3d472f5d2
Hide "Your bets" when signed out. "For you" becomes "Featured" when signed out.
2022-07-22 14:50:29 -05:00
Ian Philips
6fb9849007
Allow to add/remove from groups on market page ( #685 )
...
* Allow to add/remove from groups on market page
* remove lib
* Fix Sinclair's relative import from May
* Clean
2022-07-22 11:34:10 -06:00
mantikoros
163c990e9d
"bettors" => "traders"
2022-07-22 12:03:33 -05:00
mantikoros
c3a0326b1e
homepage seo
2022-07-22 12:01:52 -05:00
mantikoros
e13f4d3d4d
charity description
2022-07-22 11:59:25 -05:00
mantikoros
2c80133856
add SEO tags to everything
2022-07-22 11:56:03 -05:00
mantikoros
de53a13c84
fix referrals seo
2022-07-22 11:25:48 -05:00
mantikoros
624df76393
search: sort by liquidity; remove oldest
2022-07-22 11:24:25 -05:00
Austin Chen
7cace82b83
Render iframes inside the rich text editor ( #682 )
...
* Try embedding iframes in tiptap
* When iframe code is pasted, inject it into the editor
* Code cleanups and comments
* Remove clsx dependency
Cuz it doesn't exist in `common` anyways
* Rename to tiptap-iframe
2022-07-22 09:12:23 -07:00
Marshall Polaris
08fd27cb26
Make main login/logout buttons reload server side props ( #677 )
...
* Set cookies in auth handler before looking up user
* Make sidebar logout button trigger SSR reload
* Make sidebar login button trigger SSR reload
2022-07-22 00:03:16 -07:00
James Grugett
3b953a7c21
Range limit orders ( #655 )
...
* Prototype range limit order UI
* Conditionally show YES or NO max payout
* Range bet executes both bets immediately.
* Validate lowLimitProb < highLimitProb
* Show error if low limit is higher than high limit
* Update range order UI
* Revert "Validate lowLimitProb < highLimitProb"
This reverts commit c261fc2743
.
* Revert "Range bet executes both bets immediately."
This reverts commit 30b95d75d9
.
* Buy panel only non-limit orders
* Bet choice => outcome
* More iterating on range UI
* betChoice => outcome
* Lighten placeholder text
2022-07-22 00:57:56 -05:00
James Grugett
23b704ffe0
Fix excessive bottom margin on chart
2022-07-21 21:51:20 -05:00
James Grugett
ca5ca9b2b8
Refactor: Move ContractLeaderboard to its own file
2022-07-21 21:39:06 -05:00
ingawei
7474c0a0fd
Inga/manalinks pagination bug ( #678 )
...
* manalink pagination fix
* also fixed new manalink timing out bug
2022-07-21 20:22:17 -05:00
mantikoros
cded3f50ff
"question" => "market" (controversial!)
2022-07-21 18:17:02 -05:00
mantikoros
80b27fdf6e
Put leadeboards back in sidebar
2022-07-21 17:23:55 -05:00
mantikoros
91bec9c996
Referrals page ( #676 )
...
* Referrals page added to sidebar; useSaveReferral; InfoBox
* text color
* eslint
* migrate useUsers hook to react-query (#674 )
* Remove bet button from free response comments
* Make answer replies more closely spaced together
* Host Ida and Alex's MTG Guesser game (#656 )
* Copy over code from Mtg Guesser
* Run Prettier
* CSS Tweaks: Hover feedback, button positioning
* Hide all but counterspell & burn, for now
* Move to /mtg directory
* Fix prettierignore
* smaller jsons (#673 )
limited burn to only red cards and also added limited json files to only have fields needed to play
* Add Ida's tweak to card position
Co-authored-by: marsteralex <bob.masteralex@gmail.com>
* Adjust card positioning
* Make the select screen index.html
* Remove other guessing games
* Remove alternate versions; add Alex's email
* Remove unused jsons
* Small FR comments tweaks
* Spacing tweak
* Changing manalinks table UI (#665 )
From table to card view
* Fix comment spacing on non-FR
* Move "Send M$" lower in sidebar More list.
* Move leaderboards up in mobile nav
* eslint
* prettier
Co-authored-by: Sinclair Chen <abc.sinclair@gmail.com>
Co-authored-by: James Grugett <jahooma@gmail.com>
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
Co-authored-by: marsteralex <bob.masteralex@gmail.com>
Co-authored-by: ingawei <46611122+ingawei@users.noreply.github.com>
2022-07-21 14:43:10 -05:00
mantikoros
96e9f749d2
track search categories
2022-07-21 12:45:47 -05:00
Austin Chen
6603effd1b
Use https for hotlinked image
...
Editing main from my phone, fingers crossed
2022-07-21 01:16:21 -07:00
Marshall Polaris
03858e4a8c
Make a React context to be the source of truth for authenticated user ( #675 )
...
* Make a React context to manage the logged in user events
* Remove unnecessary new user creation promise machinery
* Slight refactoring to auth context code
* Improvements in response to James feedback
2022-07-21 00:38:26 -07:00
James Grugett
8aa360c853
Move leaderboards up in mobile nav
2022-07-21 00:52:11 -05:00
James Grugett
21c08aed30
Move "Send M$" lower in sidebar More list.
2022-07-21 00:50:28 -05:00
James Grugett
2ad7266283
Fix comment spacing on non-FR
2022-07-21 00:46:57 -05:00
ingawei
7a041fd753
Changing manalinks table UI ( #665 )
...
From table to card view
2022-07-21 00:45:53 -05:00
James Grugett
f7151f131d
Spacing tweak
2022-07-20 22:37:43 -05:00
James Grugett
8f5e51a304
Small FR comments tweaks
2022-07-20 22:13:37 -05:00
Austin Chen
aba818a9de
Remove unused jsons
2022-07-20 18:05:41 -07:00
Austin Chen
260f4641dd
Remove alternate versions; add Alex's email
2022-07-20 18:04:54 -07:00
Austin Chen
edee910e2d
Remove other guessing games
2022-07-20 18:00:18 -07:00
Austin Chen
6b5b9b42f5
Make the select screen index.html
2022-07-20 17:14:49 -07:00
Austin Chen
c3b825cc44
Adjust card positioning
2022-07-20 16:59:40 -07:00
Austin Chen
a3f150b1d9
Host Ida and Alex's MTG Guesser game ( #656 )
...
* Copy over code from Mtg Guesser
* Run Prettier
* CSS Tweaks: Hover feedback, button positioning
* Hide all but counterspell & burn, for now
* Move to /mtg directory
* Fix prettierignore
* smaller jsons (#673 )
limited burn to only red cards and also added limited json files to only have fields needed to play
* Add Ida's tweak to card position
Co-authored-by: marsteralex <bob.masteralex@gmail.com>
2022-07-20 16:57:51 -07:00
James Grugett
528dd2b28a
Make answer replies more closely spaced together
2022-07-20 18:35:09 -05:00
James Grugett
5ddf496dae
Remove bet button from free response comments
2022-07-20 18:35:09 -05:00
Sinclair Chen
aa554ca9f6
migrate useUsers hook to react-query ( #674 )
2022-07-20 16:31:18 -07:00
Marshall Polaris
ace39ef73d
Update Next.js 12.1.2 -> 12.2.0 ( #669 )
...
* Update Next.js 12.1.2 -> 12.2.0
* Further bump Next to 12.2.2
2022-07-20 15:42:31 -07:00
mantikoros
49dcd97d70
feed bets: better prob display
2022-07-20 17:04:11 -05:00
mantikoros
75a1d606cb
feed bets: show change in prob
2022-07-20 16:28:25 -05:00
mantikoros
302a635542
group page max width
2022-07-20 16:06:31 -05:00
James Grugett
c35d0a8bc6
Split out "Your bets" from "For you"
2022-07-20 15:30:07 -05:00
James Grugett
44afa92b58
Turn off for you by default
2022-07-20 15:05:48 -05:00
James Grugett
e45d81513c
Don't filter by personal unless pills enabled
2022-07-20 14:49:16 -05:00
Sinclair Chen
0870397fea
Show line in menu on mobile
2022-07-20 12:36:23 -07:00
Sinclair Chen
202132868f
lint and prettier
2022-07-20 12:35:04 -07:00
mantikoros
d65a60984d
make group invite link more prominent
2022-07-20 11:45:53 -05:00
mantikoros
45b883477d
generic copy link button
2022-07-20 11:42:49 -05:00
mantikoros
b60892fada
group 'rankings' => 'leaderboards' (friendlier, more consistent terminology)
2022-07-20 11:15:55 -05:00
Marshall Polaris
c8361f1748
Make it so that if you sign in on / you get redirected to /home ( #672 )
2022-07-20 01:59:14 -07:00
mantikoros
b517f7cfa7
eslint; remove unused tags import
2022-07-20 00:35:27 -05:00
mantikoros
2b13085dff
search: use default categories for non-authed users
2022-07-20 00:23:00 -05:00
mantikoros
0013f76873
search defaults to 'for you'; hide pills for additional filters
2022-07-20 00:03:03 -05:00
mantikoros
83e9408d69
remove tags from info panel
2022-07-19 23:48:09 -05:00
Marshall Polaris
bacd546e5d
Fix unused import from Ian's code
2022-07-19 20:10:54 -07:00
Marshall Polaris
61094ea17d
Properly handle expired ID token cookie, be robust to errors ( #671 )
2022-07-19 20:08:33 -07:00
James Grugett
b2c89d36cf
Home: Show pills that are groups (in addition to All, For you)
2022-07-19 18:23:52 -05:00
mantikoros
b48e910f70
fix areaBaselineValue
2022-07-19 18:20:03 -05:00
mantikoros
bab828412b
group: add question button
2022-07-19 18:16:03 -05:00
Ian Philips
4aface583d
Remove pesky loading spinner
2022-07-19 16:41:11 -06:00
Ian Philips
2152e5286a
Score & sort by unique bettors in last 3 days
2022-07-19 16:29:41 -06:00
James Grugett
58d6286361
Fix chart area extending into labels below
2022-07-19 17:22:58 -05:00
James Grugett
6124ea01f6
Fix a DOM error in console
2022-07-19 16:57:32 -05:00
Marshall Polaris
6d3490cd68
Turn off Next.js font inlining ( #668 )
2022-07-19 14:20:23 -07:00
James Grugett
af6552958f
Show all-time profit on UserPage
2022-07-19 16:05:50 -05:00
Marshall Polaris
f9aab39039
Clean up font loading and see if it fixes our problem ( #667 )
2022-07-19 13:57:32 -07:00
James Grugett
fc9e261601
Fix build
2022-07-19 15:45:47 -05:00
James Grugett
e9ad30cc74
Increase number of contracts shown in bets list
2022-07-19 15:43:37 -05:00
James Grugett
2684c8bcca
Default to weekly leaderboard
2022-07-19 15:39:40 -05:00
James Grugett
6c070464dd
Use static props to load leaderboard fast
2022-07-19 15:39:17 -05:00
Ian Philips
b5ef7490c3
NotificationSettings to its own file
2022-07-19 14:24:36 -06:00
Ian Philips
6dcad6225b
Next/Previous => Older/Newer
2022-07-19 14:16:20 -06:00
James Grugett
b6c8390a46
Show order book button even on Quick bet
2022-07-19 15:01:15 -05:00
Ian Philips
a1e03c3a25
Allow opening notifs in new tabs, return newest notifs
2022-07-19 13:58:51 -06:00
James Grugett
74760b1062
Reorder orderbook columns
2022-07-19 14:53:33 -05:00
Marshall Polaris
61cbb07bd5
Fix some broken stuff on the homepage contract search routing ( #664 )
...
* Use Next router more appropriately
* Replace instead of push when modifying search query params
2022-07-19 12:33:53 -07:00
mantikoros
12567074cc
fix log scale graph
2022-07-19 12:31:26 -05:00
Marshall Polaris
0d282a962c
Don't setQuery
on group selector component during initial render ( #660 )
2022-07-19 09:35:43 -06:00
Ian Philips
a203f43142
Cache all notifs
2022-07-19 09:29:12 -06:00
Ian Philips
c236eb15b1
Cache notifs in local, gives instant load of old notifs ( #662 )
...
* Cache notifs in local, gives instant load of old notifs
* Small refactor, add ss auth
* unused vars
* Add back in replaceAll
* Save all notifs
* Memoize paginated notifs
* Replace all => replace with regexp
2022-07-19 09:04:47 -06:00
Austin Chen
2bae7dc200
Fix error on no portfolio history
2022-07-19 02:54:05 -07:00
Marshall Polaris
55775d9d37
Also handle case where there are no cookies yet
2022-07-19 01:35:34 -07:00
Marshall Polaris
c256e9c0cc
Attempt to fix up overly sensitive cookie parsing
2022-07-19 01:33:00 -07:00
Austin Chen
f6d2c56e43
Fix /create
2022-07-19 01:23:36 -07:00
Marshall Polaris
a103a2ee2c
Initial draft of Vercel Firebase auth ( #593 )
...
* Set a cookie with an up-to-date Firebase ID token
* Implement server-side authentication cookie reading logic
* Change index page to redirect for authed users
* No branch necessary for logged in users on index page
* Add helpers for creating server-side redirects
* Add some common sense redirects
2022-07-19 00:50:11 -07:00
Austin Chen
d1ad0716c8
Fix import
2022-07-19 00:34:53 -07:00
Austin Chen
b501776e33
Remove quadratic matching from /charity
2022-07-19 00:20:18 -07:00
mantikoros
8793288dc8
contract description: less prominent edit buttons
2022-07-18 19:17:45 -05:00
Marshall Polaris
f2a7a145e4
Add React key prop to homepage filter widget ( #661 )
2022-07-18 18:37:46 -05:00