From af07b5548d7bb859291d3d54a7033173aa1e6060 Mon Sep 17 00:00:00 2001 From: Alvaro Tinoco Date: Fri, 24 Jan 2025 16:37:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Update=20old=20references?= =?UTF-8?q?=20of=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FlawForm/FlawForm.vue | 3 +-- src/components/IssueQueue/IssueQueueItem.vue | 4 ++-- src/components/__tests__/IssueQueue.spec.ts | 10 +++++----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/FlawForm/FlawForm.vue b/src/components/FlawForm/FlawForm.vue index de06175e1..c974c41a9 100644 --- a/src/components/FlawForm/FlawForm.vue +++ b/src/components/FlawForm/FlawForm.vue @@ -259,8 +259,7 @@ const createdDate = computed(() => { :error="errors.source" :options-hidden="hiddenSources" /> - - +
diff --git a/src/components/IssueQueue/IssueQueueItem.vue b/src/components/IssueQueue/IssueQueueItem.vue index 8c1ded3a9..5524c732e 100644 --- a/src/components/IssueQueue/IssueQueueItem.vue +++ b/src/components/IssueQueue/IssueQueueItem.vue @@ -22,13 +22,13 @@ const [showLabels, toggleShowLabels] = useToggle(); const sortedLabels = computed(() => issue.labels?.toSorted((a, b) => { if ( (a.state === 'REQ' && b.state !== 'REQ') - || (a.collaborator && !b.collaborator) + || (a.contributor && !b.contributor) ) { return -1; } if ( (a.state !== 'REQ' && b.state === 'REQ') - || (!a.collaborator && b.collaborator) + || (!a.contributor && b.contributor) ) { return 1; } diff --git a/src/components/__tests__/IssueQueue.spec.ts b/src/components/__tests__/IssueQueue.spec.ts index c6fed65ec..63d85a1b3 100644 --- a/src/components/__tests__/IssueQueue.spec.ts +++ b/src/components/__tests__/IssueQueue.spec.ts @@ -199,9 +199,9 @@ describe('issueQueue', () => { issues: [{ ...mockData[0], labels: [ - { label: 'test', state: 'NEW', collaborator: '' }, - { label: 'test-2', state: 'NEW', collaborator: '' }, - { label: 'test-3', state: 'REQ', collaborator: '' }, + { label: 'test', state: 'NEW', contributor: '' }, + { label: 'test-2', state: 'NEW', contributor: '' }, + { label: 'test-3', state: 'REQ', contributor: '' }, ], } as ZodFlawType], }); @@ -217,7 +217,7 @@ describe('issueQueue', () => { const wrapper = mountIssueQueue({ issues: [{ ...mockData[0], - labels: Array.from({ length: 10 }).map((_, i) => ({ label: `test-${i}`, state: 'NEW', collaborator: '' })), + labels: Array.from({ length: 10 }).map((_, i) => ({ label: `test-${i}`, state: 'NEW', contributor: '' })), } as ZodFlawType], }); @@ -231,7 +231,7 @@ describe('issueQueue', () => { const wrapper = mountIssueQueue({ issues: [{ ...mockData[0], - labels: Array.from({ length: 10 }).map((_, i) => ({ label: `test-${i}`, state: 'NEW', collaborator: '' })), + labels: Array.from({ length: 10 }).map((_, i) => ({ label: `test-${i}`, state: 'NEW', contributor: '' })), } as ZodFlawType], });