Spaces:
Sleeping
Sleeping
Commit
·
90cc464
1
Parent(s):
0bbea58
Upd UI, Search btn
Browse files- static/index.html +16 -1
- static/script.js +9 -0
- static/styles.css +34 -7
static/index.html
CHANGED
|
@@ -214,7 +214,22 @@
|
|
| 214 |
</button>
|
| 215 |
</div>
|
| 216 |
<div class="chat-underbar">
|
| 217 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
</div>
|
| 219 |
<div class="chat-hint" id="chat-hint">
|
| 220 |
Upload documents first to start chatting
|
|
|
|
| 214 |
</button>
|
| 215 |
</div>
|
| 216 |
<div class="chat-underbar">
|
| 217 |
+
<div class="action-pills">
|
| 218 |
+
<button id="report-link" class="action-pill" title="Generate report from selected document">
|
| 219 |
+
<svg viewBox="0 0 24 24" aria-hidden="true">
|
| 220 |
+
<circle cx="12" cy="12" r="9"></circle>
|
| 221 |
+
<path d="M12 3v18M3 12h18" stroke-linecap="round"></path>
|
| 222 |
+
</svg>
|
| 223 |
+
<span>DeepThink</span>
|
| 224 |
+
</button>
|
| 225 |
+
<button id="search-link" class="action-pill" title="Semantic search (coming soon)">
|
| 226 |
+
<svg viewBox="0 0 24 24" aria-hidden="true">
|
| 227 |
+
<circle cx="11" cy="11" r="7"></circle>
|
| 228 |
+
<line x1="21" y1="21" x2="16.65" y2="16.65" stroke-linecap="round"></line>
|
| 229 |
+
</svg>
|
| 230 |
+
<span>Search</span>
|
| 231 |
+
</button>
|
| 232 |
+
</div>
|
| 233 |
</div>
|
| 234 |
<div class="chat-hint" id="chat-hint">
|
| 235 |
Upload documents first to start chatting
|
static/script.js
CHANGED
|
@@ -15,6 +15,7 @@
|
|
| 15 |
const chatHint = document.getElementById('chat-hint');
|
| 16 |
const messages = document.getElementById('messages');
|
| 17 |
const reportLink = document.getElementById('report-link');
|
|
|
|
| 18 |
const loadingOverlay = document.getElementById('loading-overlay');
|
| 19 |
const loadingMessage = document.getElementById('loading-message');
|
| 20 |
|
|
@@ -108,6 +109,14 @@
|
|
| 108 |
toggleReportMode();
|
| 109 |
});
|
| 110 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
}
|
| 112 |
|
| 113 |
function handleFileSelection(files) {
|
|
|
|
| 15 |
const chatHint = document.getElementById('chat-hint');
|
| 16 |
const messages = document.getElementById('messages');
|
| 17 |
const reportLink = document.getElementById('report-link');
|
| 18 |
+
const searchLink = document.getElementById('search-link');
|
| 19 |
const loadingOverlay = document.getElementById('loading-overlay');
|
| 20 |
const loadingMessage = document.getElementById('loading-message');
|
| 21 |
|
|
|
|
| 109 |
toggleReportMode();
|
| 110 |
});
|
| 111 |
}
|
| 112 |
+
// Search link dummy toggle (non-functional)
|
| 113 |
+
if (searchLink) {
|
| 114 |
+
searchLink.addEventListener('click', (e) => {
|
| 115 |
+
e.preventDefault();
|
| 116 |
+
// Visual toggle only; can be active concurrently
|
| 117 |
+
searchLink.classList.toggle('active');
|
| 118 |
+
});
|
| 119 |
+
}
|
| 120 |
}
|
| 121 |
|
| 122 |
function handleFileSelection(files) {
|
static/styles.css
CHANGED
|
@@ -973,16 +973,43 @@
|
|
| 973 |
margin-top: 6px;
|
| 974 |
}
|
| 975 |
|
| 976 |
-
|
| 977 |
-
|
| 978 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 979 |
cursor: pointer;
|
| 980 |
-
|
| 981 |
}
|
| 982 |
|
| 983 |
-
.
|
| 984 |
-
|
| 985 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 986 |
}
|
| 987 |
|
| 988 |
#question:focus {
|
|
|
|
| 973 |
margin-top: 6px;
|
| 974 |
}
|
| 975 |
|
| 976 |
+
/* Action pills row */
|
| 977 |
+
.action-pills {
|
| 978 |
+
display: flex;
|
| 979 |
+
gap: 12px;
|
| 980 |
+
}
|
| 981 |
+
|
| 982 |
+
.action-pill {
|
| 983 |
+
display: inline-flex;
|
| 984 |
+
align-items: center;
|
| 985 |
+
gap: 8px;
|
| 986 |
+
padding: 8px 14px;
|
| 987 |
+
border-radius: 999px;
|
| 988 |
+
background: var(--card);
|
| 989 |
+
border: 1px solid var(--border);
|
| 990 |
+
color: var(--text);
|
| 991 |
cursor: pointer;
|
| 992 |
+
transition: all 0.2s ease;
|
| 993 |
}
|
| 994 |
|
| 995 |
+
.action-pill:hover {
|
| 996 |
+
background: var(--card-hover);
|
| 997 |
+
border-color: var(--border-light);
|
| 998 |
+
}
|
| 999 |
+
|
| 1000 |
+
.action-pill svg {
|
| 1001 |
+
width: 16px;
|
| 1002 |
+
height: 16px;
|
| 1003 |
+
stroke: currentColor;
|
| 1004 |
+
fill: none;
|
| 1005 |
+
stroke-width: 2;
|
| 1006 |
+
}
|
| 1007 |
+
|
| 1008 |
+
.action-pill.active {
|
| 1009 |
+
background: var(--gradient-accent);
|
| 1010 |
+
color: #fff;
|
| 1011 |
+
border-color: transparent;
|
| 1012 |
+
box-shadow: var(--shadow);
|
| 1013 |
}
|
| 1014 |
|
| 1015 |
#question:focus {
|