Monorepo for Tangled โ€” https://tangled.org

appview: implement follower and following pages for users #484

merged
opened by ptr.pet targeting master from ptr.pet/core: followers-following-list
0
by ptr.pet 0 comments
expand 1 commit
appview: implement follower and following pages for users
sign up or login to add to the discussion
1
by ptr.pet 1 comment
expand 1 commit
appview: implement follower and following pages for users

the pages themselves look pretty good for a start!

  • i'd like to add follower-following count to each item (to make these identical to the profile cards in the timeline)
  • this GetProfile call results in an N+1 query. we have a helper called GetProfiles to help with this, you can get profiles of multiple DIDs in one DB call. db/timeline.go has an example of the same.

overall, i'm loving this stack!

sign up or login to add to the discussion
2
by ptr.pet 0 comments
expand 1 commit
appview: implement follower and following pages for users
sign up or login to add to the discussion
3
by ptr.pet 0 comments
expand 1 commit
appview: implement follower and following pages for users
sign up or login to add to the discussion
4
by ptr.pet 1 comment
expand 1 commit
appview: implement follower and following pages for users

comments from #1 should be addressed now

on top of that changed GetProfiles to return a map instead of array, which seemed easier to do since it internally uses a map anyway and both places it's used in need it as a map

sign up or login to add to the discussion
5
by ptr.pet 1 comment
expand 1 commit
appview: implement follower and following pages for users

fixed some issues now that i got my dev setup working again

sign up or login to add to the discussion
6
by ptr.pet 0 comments
expand 1 commit
appview: implement follower and following pages for users
sign up or login to add to the discussion
7
by ptr.pet 1 comment
expand 1 commit
appview: implement follower and following pages for users

using resolve in html instead of resolving handles in go code, and dedupped followers/followingPage into followPage

sign up or login to add to the discussion
8
by ptr.pet 1 comment
expand 1 commit
appview: implement follower and following pages for users
  • added following / follower page links to timeline and follow cards
  • also added followers and following to profile tab switch case
sign up or login to add to the discussion
9
by ptr.pet 1 comment
expand 1 commit
appview: implement follower and following pages for users
  • fixed timeline linking to wrong user (forgot to use subjectHandle instead of userHandle)
  • use ?tab= for followers / following like repo page does
  • fix repos opengraph url from /repos to ?tab=repos
sign up or login to add to the discussion
10
by ptr.pet 0 comments
expand 1 commit
appview: implement follower and following pages for users
sign up or login to add to the discussion
11
by ptr.pet 0 comments
expand 1 commit
appview: implement follower and following pages for users
sign up or login to add to the discussion
12
by ptr.pet 0 comments
expand 1 commit
appview: implement follower and following pages for users
sign up or login to add to the discussion
13
by ptr.pet 0 comments
expand 1 commit
appview: implement follower and following pages for users
pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:dfl62fgb7wtjj3fcbb72naae/sh.tangled.repo.pull/3lwawsuk3de22