[WEB-3737]chore: estimates code refactor and translations (#6857)

* * chore: refactored estimates components.
* chore: added translations for estimates components.

* fix: translation key update
This commit is contained in:
Vamsi Krishna 2025-04-04 16:59:12 +05:30 committed by GitHub
parent 9c1b158291
commit 9c10235fca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 1309 additions and 133 deletions

View file

@ -0,0 +1,13 @@
import { TEstimateSystemKeys } from "@plane/types";
import { EEstimateSystem } from "@plane/types/src/enums";
export const isEstimateSystemEnabled = (key: TEstimateSystemKeys) => {
switch (key) {
case EEstimateSystem.POINTS:
return true;
case EEstimateSystem.CATEGORIES:
return true;
default:
return false;
}
};

View file

@ -1,3 +1,4 @@
export * from "./estimate-list-item-buttons";
export * from "./update";
export * from "./points";
export * from "./helper";

View file

@ -0,0 +1 @@
export * from "./time-input";

View file

@ -0,0 +1,8 @@
import { FC } from "react";
export type TEstimateTimeInputProps = {
value?: number;
handleEstimateInputValue: (value: string) => void;
};
export const EstimateTimeInput: FC<TEstimateTimeInputProps> = () => <></>;

View file

@ -2,16 +2,18 @@
import { FC } from "react";
import { TEstimateTypeErrorObject } from "@plane/types";
import { TEstimatePointsObject, TEstimateSystemKeys, TEstimateTypeErrorObject } from "@plane/types";
type TEstimatePointDelete = {
export type TEstimatePointDelete = {
workspaceSlug: string;
projectId: string;
estimateId: string;
estimatePointId: string;
estimatePoints: TEstimatePointsObject[];
callback: () => void;
estimatePointError?: TEstimateTypeErrorObject | undefined;
handleEstimatePointError?: (newValue: string, message: string | undefined, mode?: "add" | "delete") => void;
estimateSystem: TEstimateSystemKeys;
};
export const EstimatePointDelete: FC<TEstimatePointDelete> = () => <></>;

View file

@ -119,7 +119,7 @@ export const ESTIMATE_SYSTEMS: TEstimateSystems = {
],
},
},
is_available: false,
is_available: true,
is_ee: true,
},
};