Merged PR 109: Update doctype name

Update doctype name
This commit is contained in:
2025-05-07 15:14:06 +00:00

View File

@@ -69,9 +69,9 @@
placeholder="Search by File" />
</template>
</Column>
<Column field="ingestionInfo.metadata.KsDocSource" header="DocType" sortable style="min-width: 12rem">
<Column field="ingestionInfo.metadata.KsDoctype" header="DocType" sortable style="min-width: 12rem">
<template #body="{ data }">
{{ data.ingestionInfo.metadata.KsDoctype }}
{{ mapDocType(data.ingestionInfo.metadata.KsDoctype) }}
</template>
<template #filter="{ filterModel, filterCallback }">
<InputText v-model="filterModel.value" type="text" @input="filterCallback()"
@@ -398,6 +398,16 @@ const getFileIcon = (filename) => {
}
}
const mapDocType = (type) => {
const mapping = {
'functional': 'Functional',
'code_instruction': 'Code Instruction',
'specification': 'Specification',
'other': 'Other'
};
return mapping[type] || type;
};
// Function to format date string
function formatDate(dateString) {
// Parse the date string using moment