-
Notifications
You must be signed in to change notification settings - Fork 333
Add super-short bio summary to mouseover popup. #1277
Conversation
|
@christianbundy have you had trouble like this with travis before? |
|
Yeah, usually after a few hours you can restart the build and they'll go green again. 🙄 I tried one restart a couple of hours ago, I'll try again later today. |
e54e213 to
6a34aa5
Compare
|
Okay, best I can tell, there's an issue with how we handle caching in travis.
If nobody else wants to have a go at this, I'd say we leave it like this for now, at least if it breaks now we might get more pointers as to what's wrong. |
|
So, travis problems notwithstanding, I'm still unsure about the quality of this PR and would like input. :P |
|
I'd be happy to help, but I think I need to take a few days away from Patchwork and try to avoid burnout. :/ I'm happy to look at this next week though, or if anyone else has energy then please feel free to merge it. |
|
Yes, of course Christian! This is by no means urgent, so you just make sure you're good before touching this with a ten foot pole. More important now than ever. :) Edit: sorry for the mess down there ⬇️ I kinda re-arranged the commit tree there and got tangled in it. 😆 |
After debugging in #1277, it seems that our travis cache got corrupted. This simply puts a cache verification step in front of the build process. If the caching becomes a problem now, we shoul at least get some clear info on what's happening. Also, this disables explicit caching of ~/.npm, because that is handled implicitly by travis these days.
After debugging in #1277, it seems that our travis cache got corrupted. This simply puts a cache verification step in front of the build process. If the caching becomes a problem now, we shoul at least get some clear info on what's happening. Also, this disables explicit caching of ~/.npm, because that is handled implicitly by travis these days.
6a34aa5 to
26b03c3
Compare
After debugging in #1277, it seems that our travis cache got corrupted. This simply puts a cache verification step in front of the build process. If the caching becomes a problem now, we shoul at least get some clear info on what's happening. Also, this disables explicit caching of ~/.npm, because that is handled implicitly by travis these days.
26b03c3 to
6a65487
Compare
lib/depject/profile/html/preview.js
Outdated
| const when = require('mutant/when') | ||
| const computed = require('mutant/computed') | ||
| const send = require('mutant/send') | ||
| const removeMd = require('remove-markdown') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this, and shortenDescription, I think you should be able to use https://github.com/ssbc/patchwork/blob/master/lib/depject/message/async/name.js#L53 instead. It's what we use to create the text for e.g. links to forks and references.
This addresses #780 (Mouseover of profiles should include some of the user bio) in a relatively hap-hazard way.
0b26fe4 to
f9b5d6f
Compare
We already had a method to make a short version of a markdown text. It was stuck deep in a depject module, so I ripped it out of there and put it into its own module. It is now require()d in the depject module and in the new bio preview code.
f9b5d6f to
5c0503d
Compare
|
Okay @Powersource, I think I have sth usable here. The markdown summary function was a helper in a depject module. But I read somewhere that everything depject is to be considered deprecated, so instead of working out how the f**k depject works, I thought I could just rip that out and |
+1
+100 🚀 |
This slipped in in #1277. I removed the dependency from package.json following @Powersource's recommendation but forgot to rebuild the lockfile.

This addresses #780 in a relatively hap-hazard way.
I basically just tried to copy what the code around this feature was doing.
Also I didn't know any other way to ditch markdown syntax than to include a new dependency.
Alternatively we could just pass the raw markdown, and hope that users will notice that it doesn't look so great, and just have super-short bios in their profiles' first lines. 😛