Add graph and vector search features
This commit is contained in:
500
static/style.css
500
static/style.css
@@ -63,7 +63,7 @@ body.dimmed {
|
||||
}
|
||||
|
||||
.field-row input[type="text"],
|
||||
.field-row .channel-dropdown {
|
||||
.field-row select#channel {
|
||||
flex: 1 1 100% !important;
|
||||
min-width: 0 !important;
|
||||
max-width: 100% !important;
|
||||
@@ -86,37 +86,18 @@ body.dimmed {
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Channel dropdown custom styling */
|
||||
.channel-dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
.graph-controls {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.channel-dropdown summary {
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
padding: 3px 4px;
|
||||
background: ButtonFace;
|
||||
border: 1px solid;
|
||||
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
|
||||
min-width: 180px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.channel-dropdown summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.channel-dropdown summary::after {
|
||||
content: ' ▼';
|
||||
font-size: 8px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.channel-dropdown[open] summary::after {
|
||||
content: ' ▲';
|
||||
.graph-controls .field-group,
|
||||
.graph-controls input,
|
||||
.graph-controls select {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.toggle-row {
|
||||
@@ -174,32 +155,6 @@ body.dimmed {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.channel-options {
|
||||
position: absolute;
|
||||
margin-top: 2px;
|
||||
padding: 4px;
|
||||
background: ButtonFace;
|
||||
border: 1px solid;
|
||||
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
|
||||
z-index: 100;
|
||||
min-width: 220px;
|
||||
}
|
||||
|
||||
.channel-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-bottom: 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.channel-option:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Layout helpers */
|
||||
.summary-row {
|
||||
display: flex;
|
||||
@@ -218,6 +173,344 @@ body.dimmed {
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
.graph-window {
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
.graph-controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: flex-end;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.graph-controls .field-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.graph-controls label {
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.graph-controls input,
|
||||
.graph-controls select {
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
.graph-status {
|
||||
font-size: 11px;
|
||||
margin-bottom: 8px;
|
||||
color: #1f1f1f;
|
||||
}
|
||||
|
||||
.graph-status.error {
|
||||
color: #b00020;
|
||||
}
|
||||
|
||||
.graph-container {
|
||||
background: Window;
|
||||
border: 1px solid #919b9c;
|
||||
box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 520px;
|
||||
height: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.graph-modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
.graph-modal-overlay.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.graph-modal-window {
|
||||
width: min(960px, 100%);
|
||||
max-height: calc(100vh - 48px);
|
||||
}
|
||||
|
||||
.graph-modal-window .window-body {
|
||||
max-height: calc(100vh - 180px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.graph-modal-window .graph-container {
|
||||
height: 560px;
|
||||
}
|
||||
|
||||
body.modal-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.result-header {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.result-header-main {
|
||||
flex: 1 1 auto;
|
||||
min-width: 220px;
|
||||
}
|
||||
|
||||
.result-actions {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.result-action-btn {
|
||||
white-space: nowrap;
|
||||
font-family: "Tahoma", "MS Sans Serif", sans-serif;
|
||||
font-size: 11px;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
|
||||
.result-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.result-status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 1px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 10px;
|
||||
line-height: 1.3;
|
||||
border: 1px solid #c4a3a3;
|
||||
background: #fff6f6;
|
||||
color: #6b1f1f;
|
||||
}
|
||||
|
||||
.result-status::before {
|
||||
content: "⚠";
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.result-status--deleted {
|
||||
border-color: #d1a6a6;
|
||||
background: #fff8f8;
|
||||
color: #6b1f1f;
|
||||
}
|
||||
|
||||
.graph-launch-btn {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.graph-node-label {
|
||||
text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
|
||||
}
|
||||
|
||||
.graph-nodes circle {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.graph-legend {
|
||||
margin: 12px 0;
|
||||
font-size: 11px;
|
||||
background: Window;
|
||||
border: 1px solid #919b9c;
|
||||
padding: 8px 10px;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff;
|
||||
}
|
||||
|
||||
.graph-legend-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.graph-legend-title {
|
||||
font-weight: bold;
|
||||
color: #1f1f1f;
|
||||
}
|
||||
|
||||
.graph-legend-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.graph-legend-swatch {
|
||||
display: inline-block;
|
||||
width: 18px;
|
||||
height: 12px;
|
||||
border: 1px solid #1f1f1f;
|
||||
}
|
||||
|
||||
.graph-legend-swatch--references {
|
||||
background: #6c83c7;
|
||||
}
|
||||
|
||||
.graph-legend-swatch--referenced {
|
||||
background: #c76c6c;
|
||||
}
|
||||
|
||||
.graph-legend-channel-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.graph-legend-channel {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.graph-legend-channel-swatch {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-repeat: repeat;
|
||||
background-position: 0 0;
|
||||
background-size: 6px 6px;
|
||||
}
|
||||
|
||||
.graph-legend-channel--none .graph-legend-channel-swatch {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.graph-legend-channel--diag-forward .graph-legend-channel-swatch {
|
||||
background-image: repeating-linear-gradient(
|
||||
45deg,
|
||||
rgba(0, 0, 0, 0.35) 0,
|
||||
rgba(0, 0, 0, 0.35) 2px,
|
||||
transparent 2px,
|
||||
transparent 4px
|
||||
);
|
||||
background-blend-mode: multiply;
|
||||
}
|
||||
|
||||
.graph-legend-channel--diag-back .graph-legend-channel-swatch {
|
||||
background-image: repeating-linear-gradient(
|
||||
-45deg,
|
||||
rgba(0, 0, 0, 0.35) 0,
|
||||
rgba(0, 0, 0, 0.35) 2px,
|
||||
transparent 2px,
|
||||
transparent 4px
|
||||
);
|
||||
background-blend-mode: multiply;
|
||||
}
|
||||
|
||||
.graph-legend-channel--cross .graph-legend-channel-swatch {
|
||||
background-image:
|
||||
repeating-linear-gradient(
|
||||
45deg,
|
||||
rgba(0, 0, 0, 0.25) 0,
|
||||
rgba(0, 0, 0, 0.25) 2px,
|
||||
transparent 2px,
|
||||
transparent 4px
|
||||
),
|
||||
repeating-linear-gradient(
|
||||
-45deg,
|
||||
rgba(0, 0, 0, 0.25) 0,
|
||||
rgba(0, 0, 0, 0.25) 2px,
|
||||
transparent 2px,
|
||||
transparent 4px
|
||||
);
|
||||
background-blend-mode: multiply;
|
||||
}
|
||||
|
||||
.graph-legend-channel--dots .graph-legend-channel-swatch {
|
||||
background-image: radial-gradient(rgba(0, 0, 0, 0.35) 30%, transparent 31%);
|
||||
background-size: 6px 6px;
|
||||
background-blend-mode: multiply;
|
||||
}
|
||||
|
||||
.graph-legend-note {
|
||||
font-size: 10px;
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.title-bar-link {
|
||||
display: inline-block;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 11px;
|
||||
padding: 2px 6px;
|
||||
border: 1px solid;
|
||||
border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
|
||||
background: ButtonFace;
|
||||
}
|
||||
|
||||
.title-bar-controls #aboutBtn {
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
padding: 0 6px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.toggle-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.toggle-help {
|
||||
font-size: 10px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.about-panel {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
width: 280px;
|
||||
background: Window;
|
||||
border: 2px solid #919b9c;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||
z-index: 2100;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.about-panel__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 6px 8px;
|
||||
background: #0055aa;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.about-panel__body {
|
||||
padding: 8px;
|
||||
background: Window;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.about-panel__header button {
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Results styling */
|
||||
#results .item {
|
||||
background: Window;
|
||||
@@ -227,6 +520,7 @@ body.dimmed {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
word-wrap: break-word;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
@@ -243,7 +537,9 @@ body.dimmed {
|
||||
.window-body {
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
margin: 1rem;
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Badges */
|
||||
@@ -267,6 +563,14 @@ body.dimmed {
|
||||
word-break: keep-all;
|
||||
}
|
||||
|
||||
.badge--transcript-primary {
|
||||
background: #0b6efd;
|
||||
}
|
||||
|
||||
.badge--transcript-secondary {
|
||||
background: #8f4bff;
|
||||
}
|
||||
|
||||
.badge-clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -297,9 +601,14 @@ body.dimmed {
|
||||
}
|
||||
|
||||
.highlight-row {
|
||||
padding: 4px;
|
||||
padding: 4px 6px;
|
||||
cursor: pointer;
|
||||
border: 1px solid transparent;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.highlight-row:hover {
|
||||
@@ -308,6 +617,77 @@ body.dimmed {
|
||||
border: 1px dotted WindowText;
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
flex: 1 1 auto;
|
||||
word-break: break-word;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.highlight-source-indicator {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid transparent;
|
||||
margin-left: auto;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.highlight-source-indicator--primary {
|
||||
background: #0b6efd;
|
||||
border-color: #084bb5;
|
||||
}
|
||||
|
||||
.highlight-source-indicator--secondary {
|
||||
background: #8f4bff;
|
||||
border-color: #5d2db3;
|
||||
}
|
||||
|
||||
.vector-chunk {
|
||||
margin-top: 8px;
|
||||
padding: 8px;
|
||||
background: #f3f7ff;
|
||||
border: 1px solid #c7d0e2;
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
.result-header {
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.result-header-main {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.result-actions {
|
||||
width: auto;
|
||||
align-self: flex-start;
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.result-action-btn {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.highlight-row {
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.highlight-source-indicator {
|
||||
align-self: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
mark {
|
||||
background: yellow;
|
||||
color: black;
|
||||
@@ -334,6 +714,10 @@ mark {
|
||||
border-bottom: 1px solid ButtonShadow;
|
||||
}
|
||||
|
||||
.transcript-segment--matched {
|
||||
background: #fff6cc;
|
||||
}
|
||||
|
||||
.transcript-segment:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
|
||||
Reference in New Issue
Block a user