refactor-migration again

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-26 15:12:14 +00:00
parent 2ef98b5113
commit f88aae78b1
23 changed files with 942 additions and 211 deletions

View File

@@ -484,9 +484,9 @@ export default function PostEditor() {
</h4>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4 text-sm">
<div>
<span className="text-gray-600 dark:text-gray-400">Entity Type:</span>
<span className="text-gray-600 dark:text-gray-400">Content Type:</span>
<span className="ml-2 font-medium text-gray-900 dark:text-white">
{validationResult.metadata.entity_type || 'Not set'}
{validationResult.metadata.content_type || 'Not set'}
</span>
</div>
<div>
@@ -594,8 +594,8 @@ export default function PostEditor() {
Entity Type
</div>
<div className="text-sm text-gray-900 dark:text-white">
{content.entity_type ? (
content.entity_type.replace('_', ' ').replace(/\b\w/g, l => l.toUpperCase())
{content.content_type ? (
content.content_type.replace('_', ' ').replace(/\b\w/g, l => l.toUpperCase())
) : (
<span className="text-gray-400 dark:text-gray-500 italic">Not set</span>
)}
@@ -611,9 +611,9 @@ export default function PostEditor() {
{content.cluster_name ? (
<>
{content.cluster_name}
{content.cluster_role && (
{content.content_structure && (
<span className="ml-2 text-xs text-gray-500 dark:text-gray-400">
({content.cluster_role})
({content.content_structure})
</span>
)}
</>