Show total snippet count per column in header 💻 · Issue #514 · anoopcodehack/DevBoard · GitHub
Skip to content

Show total snippet count per column in header 💻 #514

Description

@anoopcodehack

Show total snippet count per column in header 💻

File: client/src/components/Board/Column.jsx

Column header shows task count but
never shows how many code snippets
are saved across all tasks 💀 fr!!

Fix: calculate total snippets in column:
const totalSnippets = tasks.reduce(
(acc, task) => acc + (task.snippets?.length || 0), 0
)

{totalSnippets > 0 && (

</> {totalSnippets}

)}

~6 lines! No backend needed 🎯
Gives devs instant context!! 🔥

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions