Marshall Polaris
ee91a94466
Clean up some bet panel markup and CSS ( #231 )
...
* Tidy up probability change markup
* Tidy up payout markup
2022-05-15 14:10:26 -07:00
Jonas Wagner
c9f3644988
Better random ( #213 )
...
* randomString: generate a securely random string.
Also, support lengths > 12 in case that's ever needed.
This is used in at least one case (creating device tokens for users)
where it seems important that the output is unpredictable.
* Try harder to create unique usernames.
The previous version added 16 bits of entropy to the username, which
isn't all that much. Due to the birthday paradox, it would be enough to
create ~256 users with the same prefix to get a collision.
Trying that would probably fail later on, and not create security
issues... but it just seems better to be on the safe side here.
2022-05-15 13:13:07 -07:00
James Grugett
c85b806bc1
Change analytics to 45 days instead of 90 to fix timeout
2022-05-15 15:50:28 -04:00
James Grugett
75a1dfd0e4
Change feed update strategy to update a fixed subset of users every 5 minutes
2022-05-15 15:47:29 -04:00
James Grugett
ab8d541f8d
Revert "Make absolute imports work with functions project ( #168 )"
...
This reverts commit c82a56af09
.
2022-05-15 13:39:42 -04:00
Jonas Wagner
92aa56ba20
Swap values with structured assignment rather than temporary ( #210 )
...
Saves two lines and a variable.
Also, a desperate attempt to save my Mana in https://manifold.markets/ManifoldMarkets/if-we-open-source-our-frontend-code
2022-05-14 22:06:35 -07:00
Marshall Polaris
07ded756d9
Remove unused imports from random files ( #224 )
2022-05-13 18:30:52 -07:00
Marshall Polaris
bc5cd5be45
Clean up some markup in the sidebar ( #220 )
...
* Remove wrapper div around logo
* Small refactor, remove wrapper around sidebar profile summary
* Remove random unused imports
* Replace random styles with Tailwind classes
2022-05-13 18:07:44 -07:00
Marshall Polaris
33c0471c29
Clean up some markup around the top of the page ( #189 )
...
* Remove unnecessary wrapper div around sidebar
* Remove extra column used for alignment on homepage
* Remove extra wrapper div around whole page
2022-05-13 16:47:50 -07:00
Marshall Polaris
babca140f1
Fix random errors ( #205 )
...
* Fix warning in ShareMarket component
* Fix NewContract component to use keys on category list
* Refactor NewContract component to assign `value` to `select`
2022-05-13 16:42:48 -07:00
Daniel Reeves
0e64e0f9f9
Typo fix; fixes #216 ( #218 )
2022-05-13 18:22:10 -04:00
James Grugett
8be6b79732
Remove 'Category' label
2022-05-13 16:19:15 -04:00
James Grugett
8ce3a09471
Shrink vertical padding on feed answer group
2022-05-13 16:16:46 -04:00
James Grugett
e660acab56
Put back hotjar code, but deactivate from hotjar site
2022-05-13 15:07:32 -04:00
James Grugett
67717bbde7
Prevent having to go back twice from profile / tag search page
2022-05-13 15:01:38 -04:00
James Grugett
b195dcdfd2
Print build info only once
2022-05-13 14:33:02 -04:00
James Grugett
5f59623be8
Disable hotjar
2022-05-13 14:31:03 -04:00
James Grugett
d62156b8c0
Hide scrollbar on categories
2022-05-13 14:27:47 -04:00
Austin Chen
805a997ba0
Fix hotjar typo
...
Copy+pasting is hard >.>
2022-05-13 10:59:47 -04:00
Austin Chen
bf07b45467
Add id to hotjar script
...
Apparently needed by NextJS
2022-05-13 10:49:01 -04:00
Austin Chen
c99cf7579b
Try out Hotjar
2022-05-13 10:11:57 -04:00
James Grugett
c2320a07be
Free response markets initialize with 0 volume, instead of 100
2022-05-13 09:43:12 -04:00
Jonas Wagner
a373f08b4f
Update mantic.markets -> manifold.markets ( #212 )
...
The other references to "mantic" that I could find look legit, but the
referrer in stripe.ts should probably be updated.
2022-05-13 07:07:51 -04:00
James Grugett
06cdf2a84a
Show category on market card ( #197 )
...
* Show category on market card
* Show multiple categories in contract description
* Tweak layout of contract card and show multiple categories
2022-05-12 18:28:21 -05:00
Austin Chen
e0d266887c
Show prob of FR answer as a bar chart ( #200 )
2022-05-12 14:04:51 -04:00
Austin Chen
25d3fbcc5f
Add a hover to the category selector
2022-05-12 13:47:07 -04:00
Ian Philips
c2f8aee89e
Touch up reply buttons
2022-05-12 10:27:52 -06:00
James Grugett
aafc08f24c
Prevent android chrome from defining categories on tap
2022-05-12 12:07:46 -04:00
Ian Philips
fed49d3040
Hide ante in FR bets tab
2022-05-12 09:48:19 -06:00
James Grugett
31f57f8ff2
Condense category names to just the tag name
2022-05-12 11:18:44 -04:00
James Grugett
49f900b298
Tags input: save on enter
2022-05-12 11:13:35 -04:00
mantikoros
9a4e5763f5
Categories ( #132 )
...
* basic market categories
* use tags to store market category
* display category in market
* display full category
* category selector component on feed
* Move feed data fetching to new file
* Decrease batch size for updating feed to prevent out-of-memory error
* Compute and update category feeds!
* Show feeds based on category tabs
* Add react-query package!
* Use react query to cache contracts
* Remove 'other' category
* Add back personal / friends to feed categories
* Show scrollbar temporarily for categories
* Remove 5 categories, change geopolitics to world
* finance => economics
* Show categories on two lines on larger screens
Co-authored-by: James Grugett <jahooma@gmail.com>
2022-05-12 10:07:10 -05:00
Boa
403156ed1a
FR ux changes, restore submit button for comments ( #195 )
2022-05-12 08:59:05 -06:00
James Grugett
696e6a7882
Revert "Fix hyperlinks when starting with an open paren"
...
This reverts commit 2fd9759bc1
.
2022-05-11 21:42:33 -04:00
Marshall Polaris
1063897c7c
Clean up extra wrapper and CSS on BetRow ( #178 )
2022-05-11 14:35:50 -07:00
Boa
02ed9bf7e1
Single threaded comments ( #175 )
...
* Remove unused hideOutcome in comments
* Remove unused hideOutcome in comments
* Add replyToComment fields to Comment
* Add 1 threaded replies to comments & answers
* Allow smooth scrolling within pages via #
* remove yarn-error log
* correct spelling
* Remove smooth-scroll-to-hashtag component
* Cleanup & show user position/bets in replies
2022-05-11 15:11:46 -06:00
Sinclair Chen
aa433e309c
restyle home page (separation between markets) ( #186 )
2022-05-11 12:51:45 -07:00
Austin Chen
2fd9759bc1
Fix hyperlinks when starting with an open paren
2022-05-11 15:28:28 -04:00
mantikoros
b00814a8c4
Template emails ( #185 )
...
* unsubscribe from generic emails
* new welcome email
* fix from address
* thank you email
* one week bonus email
2022-05-11 10:51:58 -05:00
Marshall Polaris
1ca634be3b
Move @types/module-alias to a dev dependency
...
My bad, I accidentally did `yarn add` and it went to the wrong spot.
2022-05-10 21:43:57 -07:00
James Grugett
2b9e639281
Default to 'all' search filter for markets on user page
2022-05-11 00:19:29 -04:00
Marshall Polaris
b55e807c62
Truncate multi-line commit messages in console build info ( #180 )
2022-05-10 21:12:00 -07:00
Marshall Polaris
22c594eb79
Print out build info in console ( #179 )
...
* Print out build info in console
* Fix up build info printing per feedback
2022-05-10 20:57:09 -07:00
James Grugett
948d878222
Prevent 500 error on markets with no collected fees
2022-05-10 23:01:07 -04:00
Marshall Polaris
9b376fb11a
Reinstate eslint warning cleanup ( #174 )
...
* Reinstate eslint upgrade and related fixes
* Another shot at improving ContractLeaderboard
2022-05-10 14:49:24 -07:00
Marshall Polaris
4565430db5
Revert "Upgrade eslint, fix eslint warnings ( #149 )"
...
It's not 100% clear, but this could have caused some production
problems on the contract page, so let's revert it for now.
2022-05-10 14:22:57 -07:00
Marshall Polaris
c82a56af09
Make absolute imports work with functions project ( #168 )
...
* Use a silly hack to make absolute imports work with Firebase tools
* Use absolute import for common module in functions code
2022-05-10 13:59:38 -07:00
Marshall Polaris
6c9df223d8
Feed container markup cleanup ( #173 )
...
* Move FeedContainer stuff into ActivityFeed
* Greatly clean up ActivityFeed container markup
2022-05-10 13:59:19 -07:00
Marshall Polaris
167cf20bfc
Upgrade eslint, fix eslint warnings ( #149 )
...
* Add a couple missing dependencies for hooks
* Upgrade eslint
This newer eslint and typescript-eslint fixes some spurious warnings
that were bugs and supports our version of Typescript.
* Use Next Script component the way it wants us to
* Rephrase ContractLeaderboard component to avoid useEffect woes
* Use perhaps more idiomatic type for ContractLeaderboard props
* Make Folds data fetching more correct and more clear
2022-05-10 13:58:38 -07:00
Sinclair Chen
a297f6492d
move manaToUSD to format.ts ( #172 )
2022-05-10 11:14:24 -07:00