"Last Seen" User Card

This theme component will allow you to include the “last seen” user statistic in user profile cards.

Repo: GitHub - tshenry/discourse-last-seen-user-card-theme-component

Before

After

About

In addition to my own interest in having this stat added to user cards, there’s been some discussion on here that inspired this theme component’s creation:

Installation

Follow this guide here:

Please feel free to post if there are any questions, problems, or suggestions!

46개의 좋아요

This is fantastic. I will use this function a lot as I assess new members’ engagement and chase particular people down who I work with closely.

2개의 좋아요

This has had a minor update:

  • Reduced the amount of code by switching from a full template override to using the existing plugin outlet to achieve the same positioning.

For anyone that uses this or is interested in using it, there are four metadata positions on the user card. Currently, starting from the left it goes last post, date joined, last seen, and time read. Which position would you prefer the "last seen" metadata to be displayed?
  • First
  • Second
  • Third (where it is currently)
  • Fourth
0 voters

I imagine it’s not extremely important to most, but I’m curious if there is a preference that I can consider for a future update.

4개의 좋아요

I don’t mind where it is so long as it is there.

1개의 좋아요

I’ve update this to position “Last Seen” first in the list. Thanks to all that voiced their opinion :grin:

8개의 좋아요

@tshenry 최신 Discourse와 호환되나요? 설치했는데도 작동하지 않습니다.

방금 확인해 보니 최신 tests-passed에서 정상적으로 작동하고 있습니다. 메인 테마에 컴포넌트를 추가한 후 페이지를 새로고침하셨는지 확인해 주셨나요?

3개의 좋아요

모바일 뷰에서도 확인해 보셨나요?

1개의 좋아요

아, 좋은 지적이네요! 재미있는 사실 하나를 말씀드리면, 이 컴포넌트는 모바일 사용자 카드가 존재하기 전에 만들어졌어요! 그래서 데스크톱에서만 작동하도록 설정되어 있었습니다.

방금 두 환경 모두를 지원하도록 수정된 업데이트를 푸시했습니다:

8개의 좋아요

업데이트를 받았습니다. 감사합니다.

2개의 좋아요

이 이슈를 다시 활성화합니다: 여전히 완벽하게 작동하며 매우 유용하다는 점을 확인하기 위해요!

이 기능을 통해 사용자가 실제로 여전히 활동 중인 멤버인지 매우 빠르고 쉽게 확인할 수 있습니다. 이전에는 사용자가 사적 메시지를 보내도 될 만큼 가치가 있는지 판단하기 위해 항상 전체 프로필을 열어야 했습니다.

이 기능이 코어에 포함되기를 진심으로 바랍니다!

4개의 좋아요

맞아요!! 제 생각에도 코어에 반드시 포함되어야 합니다. 그 전까지는 @tshenry님께 정말 감사드립니다!

3개의 좋아요

마지막 Discourse 업데이트 이후로, 사용자 카드의 ‘마지막 접속’ 텍스트가 나머지 텍스트보다 훨씬 크고 굵게 표시되는 것을 확인했습니다. 확인해 보니 <h3> 태그로 감싸져 있었기 때문에, 테마 CSS에 아래 코드를 추가하여 이를 되돌렸습니다.

#user-card .last-seen-metadata h3 {
    font-size: unset;
    font-weight: unset;
}

이것이 의도된 효과인지 모르겠지만, 제 경험을 공유하고자 합니다.

2개의 좋아요

아마도 아닐 것 같습니다.

4개의 좋아요

Discourse 변경 사항에 맞춰 헤딩 태그를 제거하기 위해 해당 컴포넌트에 대한 풀 리퀘스트를 여기에 추가했습니다:

8개의 좋아요

설명과 PR 모두 정말 감사합니다! :slight_smile:

2개의 좋아요

이 수정에 대해 정말 감사합니다! 3.3.x stable 브랜치에 반영될 예정인가요?

테마 컴포넌트 업데이트는 코어 업데이트와 완전히 독립적이며, 코어 업데이트와 무관하게 관리자 UI에서 언제든지 업데이트할 수 있습니다.

2개의 좋아요

아, 죄송합니다. 이 것이 테마 컴포넌트이고 코어 일부가 아니라는 걸 잊었네요.

2개의 좋아요

잘 작동하지만, 어째서인지 내 목록에서는 맨 아래(cheers 다음)에 표시됩니다.

1개의 좋아요