Set opportunity stage as editable (#3838)

* Set opportunity stage as editable

* Fix comments

* Add command for migration

* Fixes

---------

Co-authored-by: Thomas Trompette <thomast@twenty.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Thomas Trompette
2024-02-09 14:44:11 +01:00
committed by GitHub
parent 0185c2a36e
commit 9ceff84bbf
11 changed files with 83 additions and 43 deletions

View File

@ -13,7 +13,7 @@ const getRandomPipelineStepId = (pipelineStepIds: { id: string }[]) =>
pipelineStepIds[Math.floor(Math.random() * pipelineStepIds.length)].id;
const getRandomStage = () => {
const stages = ['new', 'screening', 'meeting', 'proposal', 'customer'];
const stages = ['NEW', 'SCREENING', 'MEETING', 'PROPOSAL', 'CUSTOMER'];
return stages[Math.floor(Math.random() * stages.length)];
};

View File

@ -11,27 +11,27 @@ export const pipelineStepPrefillData = async (
.orIgnore()
.values([
{
name: 'New',
name: 'NEW',
color: 'red',
position: 0,
},
{
name: 'Screening',
name: 'SCREENING',
color: 'purple',
position: 1,
},
{
name: 'Meeting',
name: 'MEETING',
color: 'sky',
position: 2,
},
{
name: 'Proposal',
name: 'PROPOSAL',
color: 'turquoise',
position: 3,
},
{
name: 'Customer',
name: 'CUSTOMER',
color: 'yellow',
position: 4,
},

View File

@ -11,27 +11,27 @@ export const pipelineStepPrefillData = async (
.orIgnore()
.values([
{
name: 'New',
name: 'NEW',
color: 'red',
position: 0,
},
{
name: 'Screening',
name: 'SCREENING',
color: 'purple',
position: 1,
},
{
name: 'Meeting',
name: 'MEETING',
color: 'sky',
position: 2,
},
{
name: 'Proposal',
name: 'PROPOSAL',
color: 'turquoise',
position: 3,
},
{
name: 'Customer',
name: 'CUSTOMER',
color: 'yellow',
position: 4,
},