Monorepo for Tangled tangled.org
858
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview: issues: filter issues by clicking a label #283

open opened by nove-b.dev targeting master from nove-b.dev/tangled-core: href-issue-label

When contributing to a project, it's common to start by browsing issues with a label like "good-first-issue". Clicking a label to automatically filter issues by that label makes this workflow more convenient.

When a label is clicked, a query parameter is appended to the URL to filter the issue listing.

Closes #499

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:2atly2y5kfyjcj5zap6pv4wd/sh.tangled.repo.pull/3mkpenmah6d22
+3 -12
Interdiff #1 #2
appview/issues/issues.go

This file has not been changed.

appview/pages/pages.go

This file has not been changed.

+3 -12
appview/pages/templates/labels/fragments/label.html
··· 7 7 8 8 {{ $lhs := printf "%s" $d.Name }} 9 9 {{ $rhs := "" }} 10 - {{ $isDid := false }} 11 - {{ $resolvedVal := "" }} 12 10 13 11 {{ if not $d.ValueType.IsNull }} 14 - {{ $isDid = $d.ValueType.IsDidFormat }} 15 - {{ if $isDid }} 16 - {{ $resolvedVal = resolve $v }} 17 - {{ $v = $resolvedVal }} 12 + {{ if $d.ValueType.IsDidFormat }} 13 + {{ $v = resolve $v }} 18 14 {{ end }} 19 15 20 16 {{ if not $withPrefix }} ··· 28 24 29 25 {{ $chipClasses := "w-fit flex items-center gap-2 font-normal normal-case rounded py-1 px-2 border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-sm text-inherit" }} 30 26 31 - {{ if $isDid }} 32 - <a href="/{{ $resolvedVal }}" class="{{ $chipClasses }} no-underline hover:underline"> 33 - {{ template "repo/fragments/colorBall" (dict "color" $d.GetColor) }} 34 - {{ printf "%s%s" $lhs $rhs }} 35 - </a> 36 - {{ else if $basePath }} 27 + {{ if $basePath }} 37 28 {{ $filterToken := printf "label:%s" $d.Name }} 38 29 {{ if not $d.ValueType.IsNull }} 39 30 {{ $filterToken = printf "%s:%s" $d.Name $v }}
appview/pages/templates/repo/issues/fragments/issueListing.html

This file has not been changed.

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

This file has not been changed.

History

5 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview: issues: filter issues by label on click
merge conflicts detected
expand
  • appview/issues/issues.go:7
  • appview/pages/pages.go:1172
  • appview/pages/templates/labels/fragments/label.html:2
  • appview/pages/templates/repo/issues/fragments/issueListing.html:46
  • appview/pages/templates/repo/issues/issues.html:71
  • appview/pages/templates/repo/pulls/pulls.html:111
expand 0 comments
1 commit
expand
appview: issues: filter issues by label on click
expand 0 comments
1 commit
expand
appview: issues: filter issues by label on click
expand 0 comments
1 commit
expand
appview: issues: filter issues by label on click
expand 0 comments
1 commit
expand
appview: issues: filter issues by label on click
expand 0 comments