refactor: align source-first schema surfaces

This commit is contained in:
“BeeRad”
2026-03-22 20:17:07 +11:00
parent 255377658b
commit b9af8dc385
21 changed files with 267 additions and 93 deletions
+2 -2
View File
@@ -291,7 +291,7 @@ export default function FocusPanel({
};
const startSourceEdit = () => {
setSourceEditValue(currentNode?.source || currentNode?.chunk || '');
setSourceEditValue(currentNode?.source || '');
setSourceEditMode(true);
};
@@ -598,7 +598,7 @@ export default function FocusPanel({
};
const renderSourceSection = () => {
const sourceContent = currentNode?.source || currentNode?.chunk || '';
const sourceContent = currentNode?.source || '';
return (
<section
@@ -235,7 +235,6 @@ export default function ThreePanelLayout() {
title: node.title,
link: node.link,
source: node.source,
notes: node.notes,
dimensions: node.dimensions,
created_at: node.created_at,
updated_at: node.updated_at,
+3 -3
View File
@@ -483,11 +483,11 @@ export default function DatabaseTableView({ onNodeClick, refreshToken = 0, toolb
</div>
</td>
{/* Notes */}
{/* Source */}
<td style={tdStyle()}>
<div style={truncCell}>
<span style={{ fontSize: '11px', color: 'var(--rah-text-soft)' }}>
{(node.source || node.notes) ? (node.source || node.notes || '').slice(0, 120) : '\u2014'}
{node.source ? node.source.slice(0, 120) : '\u2014'}
</span>
</div>
</td>
@@ -576,7 +576,7 @@ export default function DatabaseTableView({ onNodeClick, refreshToken = 0, toolb
<td style={tdStyle()}>
<div style={truncCell}>
<span style={{ fontSize: '10px', color: 'var(--rah-text-muted)' }}>
{(node.source || node.chunk) ? (node.source || node.chunk || '').slice(0, 100) : '\u2014'}
{node.source ? node.source.slice(0, 100) : '\u2014'}
</span>
</div>
</td>
+2 -2
View File
@@ -104,7 +104,7 @@ export default function GridView({ nodes, onNodeClick }: GridViewProps) {
</div>
{/* Description or Content Preview */}
{(node.description || node.source || node.notes) && (
{(node.description || node.source) && (
<div style={{
flex: 1,
fontSize: '11px',
@@ -116,7 +116,7 @@ export default function GridView({ nodes, onNodeClick }: GridViewProps) {
WebkitBoxOrient: 'vertical',
marginBottom: '10px'
}}>
{node.description || truncateContent(node.source || node.notes)}
{node.description || truncateContent(node.source)}
</div>
)}
+2 -2
View File
@@ -105,7 +105,7 @@ export default function ListView({ nodes, onNodeClick }: ListViewProps) {
</div>
{/* Description or Content Preview */}
{(node.description || node.source || node.notes) && (
{(node.description || node.source) && (
<div style={{
fontSize: '12px',
color: '#666',
@@ -116,7 +116,7 @@ export default function ListView({ nodes, onNodeClick }: ListViewProps) {
WebkitBoxOrient: 'vertical',
overflow: 'hidden'
}}>
{node.description || truncateContent(node.source || node.notes)}
{node.description || truncateContent(node.source)}
</div>
)}