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

Issue checklist progress on kanban board #27983

Open
Abyss777 opened this issue Nov 10, 2023 · 5 comments
Open

Issue checklist progress on kanban board #27983

Abyss777 opened this issue Nov 10, 2023 · 5 comments
Labels
topic/projects type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@Abyss777
Copy link

Feature Description

If first message of issue has a checklist it is showed as progress in issue list.

It would be great to see such progress bar on issue card on kanban board

Screenshots

No response

@Abyss777 Abyss777 added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Nov 10, 2023
@lng2020
Copy link
Member

lng2020 commented Nov 10, 2023

#27865
Does it serve the purpose? It will be released in the 1.22.

@Abyss777
Copy link
Author

According to screenshot it partially serves, there is only count, no progress bar like in issue list.

image

@lng2020
Copy link
Member

lng2020 commented Nov 10, 2023

image

 ~/gitea git diff                         
diff --git a/templates/repo/issue/card.tmpl b/templates/repo/issue/card.tmpl
index 3cc853b35..79a5474ab 100644
--- a/templates/repo/issue/card.tmpl
+++ b/templates/repo/issue/card.tmpl
@@ -51,10 +51,11 @@
                {{end}}
                {{$tasks := .GetTasks}}
                {{if gt $tasks 0}}
-                       <div class="meta gt-my-2">
-                               {{svg "octicon-checklist" 16 "gt-mr-2 gt-vm"}}
-                               <span class="gt-vm">{{.GetTasksDone}} / {{$tasks}}</span>
-                       </div>
+                       {{$tasksDone := .GetTasksDone}}
+                       <span class="checklist flex-text-inline">
+                               {{svg "octicon-checklist" 14}}{{$tasksDone}} / {{$tasks}}
+                               <progress value="{{$tasksDone}}" max="{{$tasks}}"></progress>
+                       </span>
                {{end}}
        </div>

I implemented it using the patch above but I think it takes too much space. You can patch this or adjust the style to your instance if you like. I don't know if others like the progress bar idea.

@lunny
Copy link
Member

lunny commented Nov 10, 2023

I like it but maybe it's better to keep the progress style the same as it displayed on issue list.

@KN4CK3R
Copy link
Member

KN4CK3R commented Nov 10, 2023

I removed the progress bar because it was too big and the style classes were tightly bundled to the issue list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/projects type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

4 participants