User onebox is a bit thin on data per:
We should improve it so it has some more data from the user card.
User onebox is a bit thin on data per:
We should improve it so it has some more data from the user card.
I have been looking at this. Improving user onebox would require creating a custom template for it, correct?
Hmm it is not terrible now, but I guess there are some improvements like possibly emulating a bit of:
Posted, Joined, Read, Location all seem reasonable for the card.
You would need a custom template, yes.
@codinghorror what do you think here?
Oh I see yes sure the user onebox is pretty weak. Totally fine go for it.
Also doesn’t seem to work for all of my users. Example:
https://se23.life/users/Helen_Thomson
https://se23.life/users/BovillDan
… but does work for me
Is this another problem where there’s no description and Onebox fails to render anything?
That would be my guess, yes.
In theory we could have the onebox description here be synthesized from the user activity or something. "member since: 2017-1, 22 posts, last posted yesterday, avid reader"
The biggest omission there is that it’s not prioritizing “long name” which I think is correct for public shares. It should be “Chris Beach” in the public onebox, weird that the username is there.
This is how it looks like with my changes. Thoughts?
I wonder if it’s really ok to include “posted” and “read recently” since it’s going to be out of date pretty soon after it’s baked?
Looks good!
Yeah, great point, we try to avoid highly time-specific data in oneboxes as they are typically baked only at the time of posting. Perhaps some other stats would be less time dependent here? Join date seems safe enough at least.
I have added a PR https://github.com/discourse/discourse/pull/5542, slightly different than the screenshot above, without the time specific stats. Other stats that could be relevant (like created posts/topic count) are also changing fast, so I haven’t included them.
This looks excellent to me! Thanks @maja
我再次看到了这个,并快速测试了一下——看起来用户个人资料的 onebox 仍然相当不错。不确定这在社区中使用了多少——就我个人而言,我很高兴现在我们都只是 @提及用户,然后让人们点击用户名弹出用户卡片,这更有信息量和功能性。
是的,我觉得我们可以关闭这个功能请求,我个人认为 ![]()
该主题已在 3 天后自动关闭。不再允许回复。