Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show how long the user has been a member on user hover cards #137

Closed
braid-sync opened this issue Jun 28, 2018 · 1 comment
Closed

Show how long the user has been a member on user hover cards #137

braid-sync opened this issue Jun 28, 2018 · 1 comment

Comments

@braid-sync
Copy link

braid-sync commented Jun 28, 2018

A task for new Braid contributors.

Goal:
On user-hover-cards (cards that show up when hovering over a user mention), show how long the user has been a member.

Notes:

  • the server will need to include this info in the exist user data that it sends to the client (we'll leave it to you to figure where that is)
  • we currently don't explicitly store a timestamp for when a user joins a group, but, it can be figured out by getting the :db/txInstant of when the :group/user datom was created. Some example code:
(d/q
 '[:find [?inst ...]
 :in $ ?user-id ?group-id
 :where
 [?u :user/id ?user-id]
 [?g :group/id ?group-id]
 [?g :group/user ?t ?tx false]
 [?tx :db/txInstant ?inst]]
 (d/history (db/db))
 some-user-id
 some-group-id)
@rafd rafd reopened this Oct 31, 2019
jamesnvc added a commit that referenced this issue Jun 15, 2020
Show user "joined at" time in user hover.

Addresses #137 

Thanks @speckledstone !
@jamesnvc
Copy link
Contributor

Closed by #207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants