Monorepo for Tangled tangled.org

appview: allow timeline db queries to be filterable by users follows #626

closed opened by willdot.net targeting master from [deleted fork]: feat/filter-user-timeline

Signed-off-by: Will Andrews did:plc:dadhhalkfcq3gucaq25hjqon

Labels
enhancement
assignee

None yet.

Participants 3
AT URI
at://did:plc:dadhhalkfcq3gucaq25hjqon/sh.tangled.repo.pull/3m24d33byfj22
+94 -19
Interdiff #3 โ†’ #4
appview/issues/issues.go

This file has not been changed.

appview/knots/knots.go

This file has not been changed.

appview/labels/labels.go

This file has not been changed.

appview/middleware/middleware.go

This file has not been changed.

appview/notifications/notifications.go

This file has not been changed.

appview/oauth/client/oauth_client.go

This file has not been changed.

appview/oauth/consts.go

This file has not been changed.

appview/oauth/handler.go

This file has not been changed.

appview/oauth/handler/handler.go

This file has not been changed.

appview/oauth/oauth.go

This file has not been changed.

appview/oauth/store.go

This file has not been changed.

appview/pages/templates/layouts/fragments/topbar.html

This file has not been changed.

appview/pages/templates/repo/pulls/fragments/pullNewComment.html

This file has not been changed.

appview/pages/templates/user/settings/profile.html

This file has not been changed.

appview/pipelines/pipelines.go

This file has not been changed.

appview/pulls/pulls.go

This file has not been changed.

appview/repo/artifact.go

This file has not been changed.

appview/repo/repo.go

This file has not been changed.

appview/settings/settings.go

This file has not been changed.

appview/signup/signup.go

This file has not been changed.

appview/spindles/spindles.go

This file has not been changed.

appview/state/follow.go

This file has not been changed.

appview/state/login.go

This file has not been changed.

appview/state/profile.go

This file has not been changed.

appview/state/reaction.go

This file has not been changed.

appview/state/router.go

This file has not been changed.

appview/state/star.go

This file has not been changed.

appview/strings/strings.go

This file has not been changed.

appview/xrpcclient/xrpc.go

This file has not been changed.

go.mod

This file has not been changed.

go.sum

This file has not been changed.

appview/pages/templates/repo/fragments/labelPanel.html

This file has not been changed.

appview/pages/templates/repo/fragments/participants.html

This file has not been changed.

appview/pages/templates/repo/issues/fragments/newComment.html

This file has not been changed.

appview/pages/templates/repo/pulls/pull.html

This file has not been changed.

appview/db/reaction.go

This file has not been changed.

appview/models/reaction.go

This file has not been changed.

appview/pages/pages.go

This file has not been changed.

appview/pages/templates/repo/fragments/reaction.html

This file has not been changed.

appview/pages/templates/repo/issues/issue.html

This file has not been changed.

appview/pages/templates/repo/pulls/fragments/pullHeader.html

This file has not been changed.

appview/db/timeline.go

This file has not been changed.

+94 -19
appview/pages/templates/timeline/fragments/timeline.html
··· 1 1 {{ define "timeline/fragments/timeline" }} 2 2 <div class="py-4"> 3 - 4 - <div class="flex gap-2 px-6 pb-4"> 5 - <div> 6 - <p class="text-xl font-bold dark:text-white">Timeline</p> 7 - </div> 8 - {{ if .LoggedInUser }} 9 - <div> 10 - {{ if .Filtered }} 11 - <a href="/timeline" class="hover:underline text-sm"> 12 - Show All 13 - </a> 14 - {{ else }} 15 - <a href="/timeline?filtered=true" class="hover:underline text-sm"> 16 - Show following only 17 - </a> 18 - {{ end }} 19 - </div> 20 - {{ end }} 3 + <div class="px-6 pb-4"> 4 + <p class="text-xl font-bold dark:text-white">Timeline</p> 21 5 </div> 22 - 23 6 <div class="flex flex-col gap-4"> 7 + {{ range $i, $e := .Timeline }} 8 + <div class="relative"> 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + {{ template "user/fragments/picHandleLink" $subjectHandle }} 93 + <span class="text-gray-700 dark:text-gray-400 text-xs">{{ template "repo/fragments/time" $follow.FollowedAt }}</span> 94 + </div> 95 + {{ template "user/fragments/followCard" 96 + (dict 97 + "LoggedInUser" $root.LoggedInUser 98 + "UserDid" $follow.SubjectDid

History

5 rounds 4 comments
sign up or login to add to the discussion
6 commits
expand
d76a775d
appview: switch to indigo oauth library
4a1653c5
appview: improve logged-out CTAs
56721612
appview/{db,pages,models}: show tooltips for user handles when hovering on reactions
98084555
appview: allow timeline db queries to be filterable by users follows
e067fac7
appview: allows the user to toggle between a filtered or non filtered timeline
2812b7c6
remove the front end changes
expand 0 comments
closed without merging
5 commits
expand
d76a775d
appview: switch to indigo oauth library
4a1653c5
appview: improve logged-out CTAs
56721612
appview/{db,pages,models}: show tooltips for user handles when hovering on reactions
98084555
appview: allow timeline db queries to be filterable by users follows
e067fac7
appview: allows the user to toggle between a filtered or non filtered timeline
expand 0 comments
2 commits
expand
9366b5f4
appview: allow timeline db queries to be filterable by users follows
2bb3d5d6
appview: allows the user to toggle between a filtered or non filtered timeline
expand 1 comment

following up on discord for this patch, but it works like a charm!

2 commits
expand
af82d9d6
appview: allow timeline db queries to be filterable by users follows
bba81ead
appview: allows the user to toggle between a filtered or non filtered timeline
expand 0 comments
1 commit
expand
af82d9d6
appview: allow timeline db queries to be filterable by users follows
expand 3 comments

This paves the way for allowing users to filter their timeline by just content of users they follow. I'm not great at front end stuff so may need some help getting an actual toggle into the UI.

Note: See this issue as to why the PR has no description

https://tangled.org/@tangled.org/core/issues/241

I'd be happy to assist with the toggle. I'm out on vacation next week, but feel free to reach out on Discord after that :-)

Amazing, thank you! I was planning on giving it a go this weekend and see how I get on but will ping you if I fall into a pit of dispair.