Files
plane/web/ee/constants/estimates.ts

46 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

import {
MAX_ESTIMATE_POINT_INPUT_LENGTH,
EEstimateSystem,
EEstimateUpdateStages,
estimateCount,
ESTIMATE_SYSTEMS,
} from "ce/constants/estimates";
[WEB-522] feat: revamp estimates (#394) * Move code from EE to CE repo * chore: folder structure updates * Move sortabla and radio input to packages/ui * chore: updated empty and loading screens * chore: delete an estimate point * chore: estimate point response change * chore: updated create estimate and handled the build error * chore: migration fixes * chore: updated create estimate * chore: create estimate workflow update * chore: editing and deleting the existing estimate updates * chore: updating the new estinates in update modal * chore: ui changed * chore: response changes of get and post * chore: new field added in estimates * chore: individual endpoint for estimate points * chore: typo changes * chore: create estimate point * chore: integrated new endpoints * chore: update key value pair * chore: update sorting in the estimates * Add custom option in the estimate templates * chore: handled current project active estimate * chore: handle estimate update worklfow * chore: handled estimates switch * chore: handled estimate edit * chore: handled close button in estimate edit * chore: updated ceate estimare workflow * chore: updated switch estimate * chore: UI and typos * chore: resolved build error * chore: updated delete dropdown and handled the repeated values while creating and updating the estimate point * chore: handled inline errors in the estimate switch * chore: handled active and availability vadilation * chore: handled create and update components in projecr estimates * chore: added migration * Add category specific values for custom template * chore: estimate dropdown handled in issues * chore: estimate alerts * chore: updated alerts * Extract the list row actions * fix: updated and handled the estimate points * fix: upgrader ee banner * Fix issues with sortable * Fix sortable spacing issue in create estimate modal * fix: updated the issue create sorting * chore: removed radio button from ui and updated in the estimates * chore: resolved import error in packaged ui * chore: handled props in create modal * chore: enabled estimated edit and ui changes * chore: handled repeated values in estimate switch * chore: handled estimate create and edit modal * chore: resolved conflicts and added estimate update and switch in ee * chore: resolved conflicts on estimates * chore: resolved file imports * chore: updated file intendation * chore: space fixes * chore: updated error handling in the estimate update * chore: updated error handling in the estimate switch * chore: updated yarn.lock * chore: updated yarn.lock indent --------- Co-authored-by: Satish Gandham <satish.iitg@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
2024-06-14 16:17:28 +05:30
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 };
[WEB-522] feat: revamp estimates (#394) * Move code from EE to CE repo * chore: folder structure updates * Move sortabla and radio input to packages/ui * chore: updated empty and loading screens * chore: delete an estimate point * chore: estimate point response change * chore: updated create estimate and handled the build error * chore: migration fixes * chore: updated create estimate * chore: create estimate workflow update * chore: editing and deleting the existing estimate updates * chore: updating the new estinates in update modal * chore: ui changed * chore: response changes of get and post * chore: new field added in estimates * chore: individual endpoint for estimate points * chore: typo changes * chore: create estimate point * chore: integrated new endpoints * chore: update key value pair * chore: update sorting in the estimates * Add custom option in the estimate templates * chore: handled current project active estimate * chore: handle estimate update worklfow * chore: handled estimates switch * chore: handled estimate edit * chore: handled close button in estimate edit * chore: updated ceate estimare workflow * chore: updated switch estimate * chore: UI and typos * chore: resolved build error * chore: updated delete dropdown and handled the repeated values while creating and updating the estimate point * chore: handled inline errors in the estimate switch * chore: handled active and availability vadilation * chore: handled create and update components in projecr estimates * chore: added migration * Add category specific values for custom template * chore: estimate dropdown handled in issues * chore: estimate alerts * chore: updated alerts * Extract the list row actions * fix: updated and handled the estimate points * fix: upgrader ee banner * Fix issues with sortable * Fix sortable spacing issue in create estimate modal * fix: updated the issue create sorting * chore: removed radio button from ui and updated in the estimates * chore: resolved import error in packaged ui * chore: handled props in create modal * chore: enabled estimated edit and ui changes * chore: handled repeated values in estimate switch * chore: handled estimate create and edit modal * chore: resolved conflicts and added estimate update and switch in ee * chore: resolved conflicts on estimates * chore: resolved file imports * chore: updated file intendation * chore: space fixes * chore: updated error handling in the estimate update * chore: updated error handling in the estimate switch * chore: updated yarn.lock * chore: updated yarn.lock indent --------- Co-authored-by: Satish Gandham <satish.iitg@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
2024-06-14 16:17:28 +05:30
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.",
},
};