// ui import { IDefaultAnalyticsUser } from "@plane/types"; import { BarGraph, ProfileEmptyState } from "@/components/ui"; // image import emptyBarGraph from "public/empty-state/empty_bar_graph.svg"; // types type Props = { pendingUnAssignedIssues: IDefaultAnalyticsUser[]; pendingAssignedIssues: IDefaultAnalyticsUser[]; }; export const AnalyticsScope: React.FC = ({ pendingUnAssignedIssues, pendingAssignedIssues }) => (
Pending issues
Unassigned: {pendingUnAssignedIssues.length}
{pendingAssignedIssues && pendingAssignedIssues.length > 0 ? ( `#f97316`} customYAxisTickValues={pendingAssignedIssues.map((d) => (d.count > 0 ? d.count : 50))} tooltip={(datum) => { const assignee = pendingAssignedIssues.find((a) => a.assignees__id === `${datum.indexValue}`); return (
{assignee ? assignee.assignees__display_name : "No assignee"}:{" "} {datum.value}
); }} axisBottom={{ renderTick: (datum) => { const assignee = pendingAssignedIssues[datum.tickIndex] ?? ""; if (assignee && assignee?.assignees__avatar && assignee?.assignees__avatar !== "") return ( ); else return ( {datum.value ? `${assignee.assignees__display_name}`.toUpperCase()[0] : "?"} ); }, }} margin={{ top: 20 }} theme={{ axis: {}, }} /> ) : (
)}
);