- Fix scope_note → finding_aid_scope_note in FindingAid.yaml - Remove duplicate wikidata_entity slot from CustodianType.yaml (import instead) - Remove duplicate rico_record_set_type from class_metadata_slots.yaml - Fix range types for equals_string compatibility (uriorcurie → string) - Move class names from close_mappings to see_also in 10 RecordSetTypes files - Generate all RDF formats: OWL, N-Triples, RDF/XML, N3, JSON-LD context - Sync schemas to frontend/public/schemas/ Files: 1,151 changed (includes prior CustodianType migration)
675 lines
14 KiB
CSS
675 lines
14 KiB
CSS
/**
|
|
* DebugPanel.css
|
|
*
|
|
* Styles for the enhanced debug panel with tabs for:
|
|
* - Raw Results (JSON view)
|
|
* - Knowledge Graph (D3 visualization)
|
|
* - Embeddings (PCA projection)
|
|
*/
|
|
|
|
/* Main container */
|
|
.debug-panel {
|
|
background: var(--color-surface, #1e1e1e);
|
|
border: 1px solid var(--color-border, #333);
|
|
border-radius: 8px;
|
|
margin-top: 12px;
|
|
overflow: hidden;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Tab navigation */
|
|
.debug-panel__tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 1px solid var(--color-border, #333);
|
|
background: var(--color-surface-elevated, #252525);
|
|
}
|
|
|
|
.debug-panel__tab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--color-text-secondary, #888);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.debug-panel__tab:hover {
|
|
color: var(--color-text-primary, #fff);
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.debug-panel__tab--active {
|
|
color: var(--color-accent, #3b82f6);
|
|
border-bottom-color: var(--color-accent, #3b82f6);
|
|
background: rgba(59, 130, 246, 0.08);
|
|
}
|
|
|
|
.debug-panel__tab svg {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Tab content */
|
|
.debug-panel__content {
|
|
max-height: 350px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* ============================================
|
|
Raw Results Tab Styles
|
|
============================================ */
|
|
|
|
.debug-panel__raw-results {
|
|
padding: 12px;
|
|
}
|
|
|
|
/* Toolbar */
|
|
.debug-panel__toolbar {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--color-border, #333);
|
|
}
|
|
|
|
.debug-panel__search {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: var(--color-surface-elevated, #252525);
|
|
border: 1px solid var(--color-border, #333);
|
|
border-radius: 6px;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.debug-panel__search svg {
|
|
color: var(--color-text-secondary, #888);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.debug-panel__search-input {
|
|
flex: 1;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--color-text-primary, #fff);
|
|
font-size: 12px;
|
|
outline: none;
|
|
}
|
|
|
|
.debug-panel__search-input::placeholder {
|
|
color: var(--color-text-secondary, #666);
|
|
}
|
|
|
|
.debug-panel__search-clear {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: none;
|
|
background: var(--color-border, #444);
|
|
color: var(--color-text-secondary, #888);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.debug-panel__search-clear:hover {
|
|
background: var(--color-text-secondary, #666);
|
|
color: var(--color-text-primary, #fff);
|
|
}
|
|
|
|
/* Copy button */
|
|
.debug-panel__copy-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--color-border, #444);
|
|
background: var(--color-surface-elevated, #252525);
|
|
color: var(--color-text-secondary, #aaa);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.debug-panel__copy-btn:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-color: var(--color-text-secondary, #666);
|
|
color: var(--color-text-primary, #fff);
|
|
}
|
|
|
|
.debug-panel__copy-btn--copied {
|
|
border-color: #10b981;
|
|
color: #10b981;
|
|
background: rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
/* Collapsible sections */
|
|
.debug-panel__section {
|
|
margin-bottom: 10px;
|
|
border: 1px solid var(--color-border, #333);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.debug-panel__section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: none;
|
|
background: var(--color-surface-elevated, #252525);
|
|
color: var(--color-text-primary, #fff);
|
|
cursor: pointer;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.debug-panel__section-header:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.debug-panel__section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.debug-panel__section-count {
|
|
color: var(--color-text-secondary, #888);
|
|
font-weight: 400;
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* JSON display */
|
|
.debug-panel__json {
|
|
margin: 0;
|
|
padding: 12px;
|
|
background: var(--color-surface, #1a1a1a);
|
|
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
color: #93c5fd;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
overflow-x: auto;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Show all toggle */
|
|
.debug-panel__show-all {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px dashed var(--color-border, #444);
|
|
background: transparent;
|
|
color: var(--color-text-secondary, #888);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.debug-panel__show-all:hover {
|
|
border-color: var(--color-accent, #3b82f6);
|
|
color: var(--color-accent, #3b82f6);
|
|
}
|
|
|
|
/* Empty state */
|
|
.debug-panel__empty {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--color-text-secondary, #666);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ============================================
|
|
Knowledge Graph Tab Styles
|
|
============================================ */
|
|
|
|
.debug-panel__graph {
|
|
position: relative;
|
|
padding: 12px;
|
|
}
|
|
|
|
.debug-panel__graph-stats {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 10px;
|
|
font-size: 11px;
|
|
color: var(--color-text-secondary, #888);
|
|
}
|
|
|
|
.debug-panel__graph-svg {
|
|
width: 100%;
|
|
height: 250px;
|
|
background: var(--color-surface, #1a1a1a);
|
|
border-radius: 6px;
|
|
border: 1px solid var(--color-border, #333);
|
|
}
|
|
|
|
.debug-panel__node-info {
|
|
position: absolute;
|
|
bottom: 60px;
|
|
left: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
background: rgba(30, 30, 30, 0.95);
|
|
border: 1px solid var(--color-border, #444);
|
|
border-radius: 6px;
|
|
padding: 10px 14px;
|
|
font-size: 12px;
|
|
max-width: 200px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.debug-panel__node-info strong {
|
|
color: var(--color-text-primary, #fff);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.debug-panel__node-type {
|
|
color: var(--color-accent, #3b82f6);
|
|
font-size: 11px;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.debug-panel__node-score {
|
|
color: var(--color-text-secondary, #888);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.debug-panel__graph-hint {
|
|
text-align: center;
|
|
margin-top: 8px;
|
|
font-size: 11px;
|
|
color: var(--color-text-secondary, #666);
|
|
}
|
|
|
|
/* ============================================
|
|
Embeddings Tab Styles
|
|
============================================ */
|
|
|
|
.debug-panel__embeddings {
|
|
position: relative;
|
|
padding: 12px;
|
|
}
|
|
|
|
.debug-panel__embeddings-stats {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 10px;
|
|
font-size: 11px;
|
|
color: var(--color-text-secondary, #888);
|
|
}
|
|
|
|
.debug-panel__embeddings-canvas {
|
|
width: 100%;
|
|
height: 200px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--color-border, #333);
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.debug-panel__point-info {
|
|
position: absolute;
|
|
bottom: 60px;
|
|
left: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
background: rgba(30, 30, 30, 0.95);
|
|
border: 1px solid var(--color-border, #444);
|
|
border-radius: 6px;
|
|
padding: 10px 14px;
|
|
font-size: 12px;
|
|
max-width: 200px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.debug-panel__point-info strong {
|
|
color: var(--color-text-primary, #fff);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.debug-panel__point-type {
|
|
color: #8b5cf6;
|
|
font-size: 11px;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.debug-panel__point-score {
|
|
color: var(--color-text-secondary, #888);
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* ============================================
|
|
Graph Controls (Zoom, Cluster, Export)
|
|
============================================ */
|
|
|
|
.debug-panel__graph-controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--color-border, #333);
|
|
}
|
|
|
|
.debug-panel__graph-buttons {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.debug-panel__icon-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--color-border, #444);
|
|
background: var(--color-surface-elevated, #252525);
|
|
color: var(--color-text-secondary, #888);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.debug-panel__icon-btn:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-color: var(--color-text-secondary, #666);
|
|
color: var(--color-text-primary, #fff);
|
|
}
|
|
|
|
.debug-panel__icon-btn--active {
|
|
background: rgba(59, 130, 246, 0.15);
|
|
border-color: var(--color-accent, #3b82f6);
|
|
color: var(--color-accent, #3b82f6);
|
|
}
|
|
|
|
.debug-panel__export-group {
|
|
display: flex;
|
|
gap: 2px;
|
|
margin-left: 8px;
|
|
padding-left: 8px;
|
|
border-left: 1px solid var(--color-border, #333);
|
|
}
|
|
|
|
.debug-panel__zoom-level {
|
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
font-size: 10px;
|
|
color: var(--color-text-secondary, #666);
|
|
min-width: 40px;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Node close button */
|
|
.debug-panel__node-close {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: var(--color-text-secondary, #888);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.debug-panel__node-close:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: var(--color-text-primary, #fff);
|
|
}
|
|
|
|
.debug-panel__node-id {
|
|
color: var(--color-text-secondary, #666);
|
|
font-size: 9px;
|
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* Graph legend */
|
|
.debug-panel__graph-legend {
|
|
position: absolute;
|
|
top: 58px;
|
|
right: 20px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
background: rgba(30, 30, 30, 0.9);
|
|
border: 1px solid var(--color-border, #333);
|
|
border-radius: 4px;
|
|
padding: 6px 10px;
|
|
max-width: 180px;
|
|
}
|
|
|
|
.debug-panel__legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 9px;
|
|
color: var(--color-text-secondary, #888);
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.debug-panel__legend-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ============================================
|
|
Embeddings Controls
|
|
============================================ */
|
|
|
|
.debug-panel__embeddings-controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--color-border, #333);
|
|
}
|
|
|
|
.debug-panel__embeddings-buttons {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.debug-panel__embeddings-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--color-border, #333);
|
|
}
|
|
|
|
/* ============================================
|
|
Virtual Scrolling / Load More
|
|
============================================ */
|
|
|
|
.debug-panel__load-more {
|
|
text-align: center;
|
|
padding: 12px;
|
|
color: var(--color-text-secondary, #666);
|
|
font-size: 11px;
|
|
background: var(--color-surface-elevated, #252525);
|
|
border-radius: 4px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* ============================================
|
|
Timeline Tab Styles
|
|
============================================ */
|
|
|
|
.debug-panel__timeline {
|
|
position: relative;
|
|
padding: 12px;
|
|
}
|
|
|
|
.debug-panel__timeline-stats {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 10px;
|
|
font-size: 11px;
|
|
color: var(--color-text-secondary, #888);
|
|
}
|
|
|
|
.debug-panel__timeline-svg {
|
|
width: 100%;
|
|
height: 200px;
|
|
background: var(--color-surface, #1a1a1a);
|
|
border-radius: 6px;
|
|
border: 1px solid var(--color-border, #333);
|
|
}
|
|
|
|
.debug-panel__timeline-axis text {
|
|
fill: var(--color-text-secondary, #888);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.debug-panel__timeline-axis line,
|
|
.debug-panel__timeline-axis path {
|
|
stroke: var(--color-border, #444);
|
|
}
|
|
|
|
/* Event info popup */
|
|
.debug-panel__event-info {
|
|
position: absolute;
|
|
bottom: 60px;
|
|
left: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
background: rgba(30, 30, 30, 0.95);
|
|
border: 1px solid var(--color-border, #444);
|
|
border-radius: 6px;
|
|
padding: 10px 14px;
|
|
font-size: 12px;
|
|
max-width: 220px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.debug-panel__event-info strong {
|
|
color: var(--color-text-primary, #fff);
|
|
font-weight: 600;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.debug-panel__event-close {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: var(--color-text-secondary, #888);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.debug-panel__event-close:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: var(--color-text-primary, #fff);
|
|
}
|
|
|
|
.debug-panel__event-date {
|
|
color: var(--color-accent, #3b82f6);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.debug-panel__event-type {
|
|
color: #f59e0b;
|
|
font-size: 11px;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.debug-panel__event-desc {
|
|
color: var(--color-text-secondary, #888);
|
|
font-size: 11px;
|
|
margin: 4px 0 0 0;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* ============================================
|
|
Scrollbar Styling
|
|
============================================ */
|
|
|
|
.debug-panel__content::-webkit-scrollbar,
|
|
.debug-panel__json::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.debug-panel__content::-webkit-scrollbar-track,
|
|
.debug-panel__json::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.debug-panel__content::-webkit-scrollbar-thumb,
|
|
.debug-panel__json::-webkit-scrollbar-thumb {
|
|
background: var(--color-border, #444);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.debug-panel__content::-webkit-scrollbar-thumb:hover,
|
|
.debug-panel__json::-webkit-scrollbar-thumb:hover {
|
|
background: var(--color-text-secondary, #666);
|
|
}
|
|
|
|
/* ============================================
|
|
Responsive adjustments
|
|
============================================ */
|
|
|
|
@media (max-width: 768px) {
|
|
.debug-panel__tabs {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.debug-panel__tab {
|
|
padding: 8px 10px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.debug-panel__tab span {
|
|
display: none;
|
|
}
|
|
|
|
.debug-panel__toolbar {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.debug-panel__copy-btn span {
|
|
display: none;
|
|
}
|
|
}
|