Files
plane/apps/web/ee/components/breadcrumbs/common.tsx
T
1f689059a6 [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#4466)
* [WEB-5134] refactor: update `web` ESLint configuration and refactor imports to use type imports

- Enhanced ESLint configuration by adding new rules for import consistency and type imports.
- Refactored multiple files to replace regular imports with type imports for better clarity and performance.
- Ensured consistent use of type imports across the application to align with TypeScript best practices.

* refactor: replace ee regular imports with type imports for improved clarity

* [WEB-5139] fix: custom menu item link (#7959)

* fix: custom menu link action

* chore: code refactor

* chore: code refactor

* [WEB-4999] feat: implement flexible data export utility with CSV, JSON, and XLSX support (#7884)

* feat: implement flexible data export utility with CSV, JSON, and XLSX support

- Introduced Exporter class for handling various data formats.
- Added formatters for CSV, JSON, and XLSX exports.
- Created schemas for defining export fields and their transformations.
- Implemented IssueExportSchema for exporting issue data with nested attributes.
- Enhanced issue export task to utilize the new exporter system for better data handling.

* feat: enhance issue export functionality with new relations and context handling

- Updated issue export task to utilize new IssueRelation model for better relationship management.
- Refactored Exporter class to accept QuerySets directly, improving performance and flexibility.
- Enhanced IssueExportSchema to include parent issues and relations in the export.
- Improved documentation for exporting multiple projects and filtering fields during export.

* feat: enhance export functionality with field filtering and context support

- Updated Exporter class to merge fields into options for formatting.
- Modified formatters to filter fields based on specified options.
- Enhanced ExportSchema to support optional field selection during serialization.
- Improved documentation for the serialize method to clarify field filtering capabilities.

* fixed type

* refactor: standardize type imports across components

- Updated multiple files to replace regular imports with type imports for improved clarity and consistency.
- Ensured adherence to TypeScript best practices in the rich filters and issue layouts components.

* refactor: standardize type imports across rich filters components

- Replaced regular imports with type imports in multiple files for improved clarity and consistency.
- Ensured adherence to TypeScript best practices in the rich filters input components.

* refactor: standardize type imports across various components

- Updated multiple files to improve clarity and consistency by replacing regular imports with type imports.
- Ensured adherence to TypeScript best practices in the sidebar filters, initiative header, teamspaces detail header, and workspace search item components.

---------

Co-authored-by: Anmol Singh Bhatia <[email protected]>
Co-authored-by: Dheeraj Kumar Ketireddy <[email protected]>
2025-10-14 16:44:18 +05:30

33 lines
908 B
TypeScript

"use client";
import type { FC } from "react";
// plane imports
import type { EProjectFeatureKey } from "@plane/constants";
// local components
import { ProjectBreadcrumb } from "./project";
import { ProjectFeatureBreadcrumb } from "./project-feature";
type TCommonProjectBreadcrumbProps = {
workspaceSlug: string;
projectId: string;
featureKey?: EProjectFeatureKey;
isLast?: boolean;
};
export const CommonProjectBreadcrumbs: FC<TCommonProjectBreadcrumbProps> = (props) => {
const { workspaceSlug, projectId, featureKey, isLast = false } = props;
return (
<>
<ProjectBreadcrumb workspaceSlug={workspaceSlug} projectId={projectId} />
{featureKey && (
<ProjectFeatureBreadcrumb
workspaceSlug={workspaceSlug?.toString()}
projectId={projectId?.toString()}
featureKey={featureKey}
isLast={isLast}
/>
)}
</>
);
};