Skip to content

Show assignee avatars on column header 馃懃#521

Description

@anoopcodehack

Show assignee avatars on column header 馃懃

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

Column header shows task count but
never who's working in that column 馃拃 fr!!

Fix: collect unique assignees per column:
const assignees = [...new Map(
tasks
.filter(t => t.assignee?.name)
.map(t => [t.assignee._id, t.assignee])
).values()].slice(0, 3)

{assignees.length > 0 && (

{assignees.map(a => (
{a.name[0].toUpperCase()}
))}
)}

~12 lines! No backend needed 馃幆

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