refactor: fixes to custom field

This commit is contained in:
Carlos Valente
2025-07-11 16:49:41 +02:00
parent 4d419c0877
commit d8c1c38123
20 changed files with 103 additions and 108 deletions
@@ -62,7 +62,7 @@ describe('createTransaction', () => {
rundown.title = 'Another Title';
customFields['newField'] = {
label: 'New Field',
type: 'string',
type: 'text',
colour: 'blue',
};
@@ -524,12 +524,12 @@ describe('processRundown()', () => {
const customProperties: CustomFields = {
lighting: {
label: 'lighting',
type: 'string',
type: 'text',
colour: 'red',
},
sound: {
label: 'sound',
type: 'string',
type: 'text',
colour: 'red',
},
};
@@ -197,12 +197,12 @@ describe('parseRundown()', () => {
const customFields: CustomFields = {
lighting: {
type: 'string',
type: 'text',
colour: 'red',
label: 'lighting',
},
sound: {
type: 'string',
type: 'text',
colour: 'red',
label: 'sound',
},
@@ -229,7 +229,7 @@ describe('parseRundown()', () => {
const customFields: CustomFields = {
lighting: {
type: 'string',
type: 'text',
colour: 'red',
label: 'lighting',
},
@@ -308,12 +308,12 @@ describe('handleCustomField()', () => {
it('creates a map of where custom fields are used', () => {
const customFields = {
lighting: {
type: 'string',
type: 'text',
colour: 'red',
label: 'lighting',
},
sound: {
type: 'string',
type: 'text',
colour: 'red',
label: 'sound',
},