Files
plane/web/ee/constants/estimates.ts
guru_sainath f1dbaa80c4 [WEB-522] chore: updated input validation length in estimate point switch (#478)
* fix: validating and showing proper alert estimate point has to be taken greater than 0 in create and update

* chore: updated input validation length in estimate point switch
2024-06-24 14:09:16 +05:30

46 lines
1.5 KiB
TypeScript

import {
MAX_ESTIMATE_POINT_INPUT_LENGTH,
EEstimateSystem,
EEstimateUpdateStages,
estimateCount,
ESTIMATE_SYSTEMS,
} from "ce/constants/estimates";
estimateCount.max = 12;
ESTIMATE_SYSTEMS.points.templates.fibonacci.values = [
...ESTIMATE_SYSTEMS.points.templates.fibonacci.values,
{ id: undefined, key: 7, value: "21" },
{ id: undefined, key: 8, value: "34" },
{ id: undefined, key: 9, value: "55" },
];
ESTIMATE_SYSTEMS.points.templates.linear.values = [
...ESTIMATE_SYSTEMS.points.templates.linear.values,
{ id: undefined, key: 7, value: "7" },
{ id: undefined, key: 8, value: "8" },
{ id: undefined, key: 9, value: "9" },
];
ESTIMATE_SYSTEMS.points.templates.squares.values = [
...ESTIMATE_SYSTEMS.points.templates.squares.values,
{ id: undefined, key: 7, value: "49" },
{ id: undefined, key: 8, value: "64" },
{ id: undefined, key: 9, value: "81" },
];
export { MAX_ESTIMATE_POINT_INPUT_LENGTH, EEstimateSystem, EEstimateUpdateStages, estimateCount, ESTIMATE_SYSTEMS };
export const ESTIMATE_OPTIONS_STAGE_ONE: Partial<
Record<EEstimateUpdateStages, { title: string; description: string }>
> = {
[EEstimateUpdateStages.EDIT]: {
title: "Add, update or remove estimates",
description: "Manage current system either adding, updating or removing the points or categories.",
},
[EEstimateUpdateStages.SWITCH]: {
title: "Change estimate type",
description: "Convert your points system to categories system and vice versa.",
},
};