chore: track events for estimates and importers (#1012)

This commit is contained in:
Aaryan Khandelwal
2023-05-05 15:45:38 +05:30
committed by GitHub
parent b34cf0c471
commit 93c105c495
8 changed files with 133 additions and 18 deletions

View File

@@ -63,7 +63,11 @@ const IntegrationGuide = () => {
services. This tool will guide you to relocate the issue to Plane.
</div>
</div>
<a href="https://docs.plane.so" target="_blank" rel="noopener noreferrer">
<a
href="https://docs.plane.so/importers/github"
target="_blank"
rel="noopener noreferrer"
>
<div className="flex flex-shrink-0 cursor-pointer items-center gap-2 whitespace-nowrap text-sm font-medium text-[#3F76FF] hover:text-opacity-80">
Read More
<ArrowRightIcon width={"18px"} color={"#3F76FF"} />
@@ -124,7 +128,7 @@ const IntegrationGuide = () => {
{importerServices ? (
importerServices.length > 0 ? (
<div className="space-y-2">
<div className="divide-y">
<div className="divide-y divide-brand-base">
{importerServices.map((service) => (
<SingleImport
key={service.id}

View File

@@ -6,6 +6,8 @@ import { TrashIcon } from "@heroicons/react/24/outline";
import { renderShortDateWithYearFormat } from "helpers/date-time.helper";
// types
import { IImporterService } from "types";
// constants
import { IMPORTERS_EXPORTERS_LIST } from "constants/workspace";
type Props = {
service: IImporterService;
@@ -13,17 +15,16 @@ type Props = {
handleDelete: () => void;
};
const importersList: { [key: string]: string } = {
github: "GitHub",
};
export const SingleImport: React.FC<Props> = ({ service, refreshing, handleDelete }) => (
<div className="flex items-center justify-between gap-2 py-3">
<div>
<h4 className="flex items-center gap-2 text-sm">
<span>
Import from <span className="font-medium">{importersList[service.service]}</span> to{" "}
<span className="font-medium">{service.project_detail.name}</span>
Import from{" "}
<span className="font-medium">
{IMPORTERS_EXPORTERS_LIST.find((i) => i.provider === service.service)?.title}
</span>{" "}
to <span className="font-medium">{service.project_detail.name}</span>
</span>
<span
className={`rounded px-2 py-0.5 text-xs capitalize ${