Commit Graph

52 Commits

Author SHA1 Message Date
Austin Chen
7338bdd47a
Automatically sort Tailwind classes with Prettier (#45)
* Add Prettier Tailwind plugin

* Autoformat Tailwind classes with Prettier
2022-02-11 10:40:22 -08:00
Austin Chen
bcc011c1fd Allow admins to edit questions 2022-02-09 10:58:33 -08:00
Austin Chen
359bfbf614 Show your own avatar for your feed trades 2022-02-05 22:22:13 -08:00
Austin Chen
0959ec7679 Show avatar on contract cards 2022-02-04 10:30:56 -08:00
Austin Chen
e7433c2eec Save comment and description on ctrl+enter 2022-02-03 01:12:37 -08:00
Austin Chen
d0766fa7c3 Use the latest bet time for a feed group 2022-02-03 00:56:49 -08:00
James Grugett
6427e1bd06 Save tags unique and case-insensitive. Don't clear added tags on updating description. 2022-01-30 21:25:52 -06:00
mantikoros
f06ca8305c
Resolve prob (#41)
* rename MKT to PROB; show resolved probability; move format utilities to common

* ProbabilitySelector

* resolve to PROB

* prob and mkt labels
2022-01-30 15:51:30 -06:00
jahooma
967ac1b08d Negative margin prevented clicking on top half of bet row button 2022-01-29 21:21:57 -06:00
mantikoros
bdb2cfd710 avatar component 2022-01-27 17:14:45 -06:00
jahooma
f2c4d3e9c1 Change to white backgrounds for content. Remove page's margin, set individually. 2022-01-27 16:37:43 -06:00
jahooma
77eaf070e6 Make clicking feed create focus input. Shrink create market button 2022-01-27 15:22:18 -06:00
jahooma
077eeec2c7 Fix hiding bet row on market page 2022-01-27 15:02:47 -06:00
jahooma
aebf572dc9 Shrink and label bet row 2022-01-27 14:49:59 -06:00
jahooma
d83fe1a202 Make feed create avatar not load glitchily 2022-01-27 00:49:23 -06:00
Austin Chen
c047365bb4 Include "Buy" tag inside buttons 2022-01-26 16:28:57 -06:00
Austin Chen
e4377ee3a3
Allow betting directly from the activity feed (#36)
* Show a popup for betting on the Activity feed

* Replace the popup with a YES/NO selector

* Autofocus the bet amount

* Hide BetRow when not appropriate

* Make bet modal larger on desktop

* Default to YES if no bet choice has been made yet
2022-01-26 14:08:03 -06:00
jahooma
2ea05f8913 Folds query on lowercase tags. Adding to description updates tags & lowercaseTags fields. 2022-01-25 17:52:21 -06:00
Austin Chen
e481b971d0 Show pool amount in feed 2022-01-25 13:31:25 -06:00
Austin Chen
793a2c6d6c Closing soon: hide already closed, show close time 2022-01-24 01:38:29 -06:00
jahooma
cff2611582 Add back dynamically loading feed 2022-01-22 18:26:56 -06:00
jahooma
e53dd78502 Fix types 2022-01-22 18:14:41 -06:00
Austin Chen
2e3f1b4c52 Collapse long threads on the activity feed 2022-01-22 11:47:09 -06:00
Austin Chen
7e44af318b Truncate both question and comments in activity feed 2022-01-21 18:30:13 -06:00
jahooma
b29e69a52c Remove timestamp from question feed item 2022-01-21 18:10:38 -06:00
Austin Chen
5be6a75e4b
Create new markets directly from the feed (#33)
* Move hot & closing markets to All Markets

Soon to be named "Explore"

* Set up a question box on the homepage

* Show Leaderboards by default instead of Create

* Support full contract creation from homepage

* Force mt-0 on /markets

* Move description into info tooltip

* Add hint to ask a question

* Initialize close date to 1 week from today

* Add a promo section for logged-out users

* Add hashtags, remove mobile padding

* Rewrite promo copy

* Store hotContracts as static props
2022-01-21 12:33:58 -06:00
Austin Chen
b704f4fe78 Allow updating description even after contract close 2022-01-19 10:46:36 -05:00
Austin Chen
5ac77674ed Also show avatar url from contract feed 2022-01-19 03:16:22 -05:00
Austin Chen
f9780a2f69 Switch to feed "lollipops"
Doubt anyone else cares. Ideally these are also disconnected on top but it's hard to get the spacing to look right with variably-sized avatars.

Options:
- Keep as-is (lollipops)
- Revert to hardcoded `ring-gray-50`
- Fix icons to the same size
- Switch between `ring-gray-50` and `ring-white`
- Rewrite the CSS
2022-01-19 03:15:09 -05:00
Austin Chen
ed7902f77f Remove feed subicons; fix FeedBetGroup spacing 2022-01-19 02:54:00 -05:00
Austin Chen
78c461b26c Show creator avatar in feed 2022-01-19 02:34:36 -05:00
Austin Chen
b963cc2fe2 Show close time in feed 2022-01-19 02:10:54 -05:00
Austin Chen
f75fbfb4c5 Make textboxes in feed expandable 2022-01-19 01:43:54 -05:00
mantikoros
e6d467764d Don’t show negative values in feed for sales 2022-01-17 21:38:40 -06:00
Austin Chen
d32147b536 Show DateTime tooltips whereever we show dates 2022-01-16 04:16:15 -05:00
jahooma
895eba4553 Get static props of just data for feed: active contracts, their bets & comments. 2022-01-14 18:16:32 -06:00
Austin Chen
78b27ee964 Truncate activity feed descriptions to 400 chars 2022-01-14 17:28:19 -05:00
jahooma
fc5fa000b9 Linkify user avatars in feed 2022-01-13 15:24:14 -06:00
jahooma
1683a3842b Link to user from feed mentions. Show name instead of username in card. 2022-01-13 15:16:47 -06:00
jahooma
dfcac2fb97 Hide ante bets in graph and feed 2022-01-13 11:01:23 -06:00
mantikoros
9d5490cf9a
Switch to new dpm mechanism (#26)
* initial commit

* antes

* rename path, compute to contractPath, contractMetrics

* merge

* Include antes as bets; more calculations

* fees on estimated winnings

* mkt payout calculation

* contract: remove startPool, add phantomShares

* Merge branch 'main' into new-dpm

* dpm migration script

* my service account
2022-01-12 13:01:04 -06:00
Austin Chen
d121e59189 Only permit comments within an hour of betting 2022-01-12 01:47:56 -05:00
jahooma
5947be6647 Darker timestamp on feed 2022-01-11 22:00:03 -06:00
jahooma
ebb1bc7359 Fix feed layout on mobile, adjust spacing, max width. 2022-01-11 14:57:53 -06:00
Austin Chen
5b431226d4
Show all recent activity on a central feed (#24)
* Tracks all market activity on a single page

* Support both global and per-contract feeds

* UI tweaks

* Include contract description in activity feed

* Show activity feed on Create page
2022-01-11 11:56:26 -05:00
jahooma
dd6edc3b7a Use sale amount for sold bets. Round one more item in the feed. 2022-01-10 11:38:44 -06:00
jahooma
e4206d6277 Add an extra new line when you add to a market description 2022-01-08 23:09:19 -06:00
mantikoros
1b69a34270 allow updating contract description 2022-01-07 13:29:23 -06:00
jahooma
3302cbddbd Move contract close time into contract details 2022-01-05 11:49:23 -06:00
jahooma
db1543ea71 Round bet amounts in feed 2022-01-04 09:55:34 -06:00