// ui import { BarGraph } from "components/ui"; // types import { IDefaultAnalyticsResponse } from "types"; type Props = { defaultAnalytics: IDefaultAnalyticsResponse; }; export const AnalyticsScope: React.FC = ({ defaultAnalytics }) => (
SCOPE
Pending issues
{defaultAnalytics.pending_issue_user.length > 0 ? ( `#f97316`} customYAxisTickValues={defaultAnalytics.pending_issue_user.map((d) => d.count)} tooltip={(datum) => { const assignee = defaultAnalytics.pending_issue_user.find( (a) => a.assignees__email === `${datum.indexValue}` ); return (
{assignee ? assignee.assignees__first_name + " " + assignee.assignees__last_name : "No assignee"} :{" "} {datum.value}
); }} axisBottom={{ renderTick: (datum) => { const avatar = defaultAnalytics.pending_issue_user[datum.tickIndex]?.assignees__avatar ?? ""; if (avatar && avatar !== "") return ( ); else return ( {datum.value ? `${datum.value}`.toUpperCase()[0] : "?"} ); }, }} margin={{ top: 20 }} theme={{ background: "rgb(var(--color-bg-base))", axis: {}, }} /> ) : (
No matching data found.
)}
);