File size: 17,001 Bytes
44162aa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<meta
name="robots"
content="noindex, nofollow"
/>
<meta
name="description"
content="Private AICompare administration dashboard."
/>
<title>AICompare Admin</title>
<link
rel="stylesheet"
href="./admin.css"
/>
</head>
<body>
<div class="admin-shell">
<header class="admin-header">
<a
class="admin-brand"
href="https://aicompare.tech"
target="_blank"
rel="noopener noreferrer"
>
<span class="brand-mark">AI</span>
<span class="brand-text">
<strong>AICompare</strong>
<small>Admin Dashboard</small>
</span>
</a>
<div class="header-actions">
<span
id="connection-status"
class="connection-status disconnected"
>
Not connected
</span>
<button
id="logout-button"
class="secondary-button hidden"
type="button"
>
Sign out
</button>
</div>
</header>
<main>
<section
id="login-view"
class="login-card"
>
<div class="login-icon">🔐</div>
<p class="eyebrow">
PRIVATE ACCESS
</p>
<h1>
AICompare Admin
</h1>
<p class="login-description">
Enter your private admin token to manage the
ingestion queue. The token stays only in this
browser session.
</p>
<form
id="login-form"
class="login-form"
>
<label for="admin-token">
Admin token
</label>
<input
id="admin-token"
name="admin-token"
type="password"
autocomplete="current-password"
placeholder="Enter INGEST_ADMIN_TOKEN"
required
/>
<button
id="login-button"
class="primary-button"
type="submit"
>
Open dashboard
</button>
</form>
<p
id="login-error"
class="form-error hidden"
></p>
</section>
<section
id="dashboard-view"
class="dashboard hidden"
>
<section class="dashboard-hero">
<div>
<p class="eyebrow">
KNOWLEDGE ENGINE
</p>
<h1>
Tool Ingestion Dashboard
</h1>
<p>
Submit AI tool websites, review extracted
information and manage the publishing queue.
</p>
</div>
<button
id="refresh-button"
class="secondary-button"
type="button"
>
Refresh queue
</button>
</section>
<section
class="stats-grid"
aria-label="Queue summary"
>
<article class="stat-card">
<span>Total</span>
<strong id="count-total">0</strong>
</article>
<article class="stat-card pending-stat">
<span>Pending</span>
<strong id="count-pending">0</strong>
</article>
<article class="stat-card approved-stat">
<span>Approved</span>
<strong id="count-approved">0</strong>
</article>
<article class="stat-card rejected-stat">
<span>Rejected</span>
<strong id="count-rejected">0</strong>
</article>
<article class="stat-card changes-stat">
<span>Needs changes</span>
<strong id="count-needs-changes">0</strong>
</article>
<article class="stat-card imported-stat">
<span>Imported</span>
<strong id="count-imported">0</strong>
</article>
</section>
<section class="content-grid">
<article class="panel submit-panel">
<div class="panel-heading">
<div>
<p class="eyebrow">
ADD TOOL
</p>
<h2>
Ingest a new AI tool
</h2>
</div>
</div>
<form
id="ingest-form"
class="ingest-form"
>
<label for="tool-url">
Official tool website
</label>
<div class="url-field">
<input
id="tool-url"
name="tool-url"
type="url"
inputmode="url"
placeholder="https://example.com"
required
/>
<button
id="ingest-button"
class="primary-button"
type="submit"
>
Ingest tool
</button>
</div>
<p class="field-help">
AICompare will inspect the homepage,
pricing, documentation and help pages.
</p>
</form>
<div
id="ingest-result"
class="result-message hidden"
></div>
</article>
<article class="panel filters-panel">
<div class="panel-heading">
<div>
<p class="eyebrow">
FILTERS
</p>
<h2>
Review queue
</h2>
</div>
</div>
<div class="filter-grid">
<label>
Review status
<select id="review-filter">
<option value="all">
All
</option>
<option
value="pending"
selected
>
Pending
</option>
<option value="approved">
Approved
</option>
<option value="rejected">
Rejected
</option>
<option value="needs_changes">
Needs changes
</option>
</select>
</label>
<label>
Import status
<select id="import-filter">
<option value="all">
All
</option>
<option value="not_imported">
Not imported
</option>
<option value="ready">
Ready
</option>
<option value="imported">
Imported
</option>
<option value="failed">
Failed
</option>
</select>
</label>
</div>
</article>
</section>
<section class="panel queue-panel">
<div class="panel-heading queue-heading">
<div>
<p class="eyebrow">
REVIEW QUEUE
</p>
<h2>
Extracted AI tools
</h2>
</div>
<span
id="visible-count"
class="visible-count"
>
0 items
</span>
</div>
<div
id="queue-loading"
class="loading-state"
>
Loading review queue…
</div>
<div
id="queue-empty"
class="empty-state hidden"
>
<div class="empty-icon">✓</div>
<h3>
No matching queue items
</h3>
<p>
Change the filters or ingest another tool.
</p>
</div>
<div
id="queue-list"
class="queue-list"
></div>
</section>
</section>
</main>
<footer class="admin-footer">
<p>
Private AICompare administration interface.
</p>
<a
href="https://aicompare.tech"
target="_blank"
rel="noopener noreferrer"
>
Visit AICompare.tech
</a>
</footer>
</div>
<template id="queue-card-template">
<article class="queue-card">
<div class="queue-card-header">
<div>
<div class="status-row">
<span class="review-badge"></span>
<span class="import-badge"></span>
</div>
<h3 class="queue-tool-name">
Unknown tool
</h3>
<p class="queue-company-name">
Company not detected
</p>
</div>
<div class="confidence-box">
<span>Confidence</span>
<strong class="confidence-value">
—
</strong>
</div>
</div>
<div class="logo-review hidden">
<img class="queue-logo" alt="Detected tool logo" />
<div>
<span>Detected logo</span>
<a class="queue-logo-link" target="_blank" rel="noopener noreferrer">Open image</a>
</div>
</div>
<div class="screenshot-review hidden">
<div class="screenshot-heading">
<span>Homepage screenshot</span>
<a class="queue-screenshot-link" target="_blank" rel="noopener noreferrer">Open full image</a>
</div>
<img class="queue-screenshot" alt="Captured tool homepage" />
</div>
<div class="queue-meta">
<span class="queue-id"></span>
<span class="queue-date"></span>
<a
class="queue-source-link"
target="_blank"
rel="noopener noreferrer"
>
Open website
</a>
</div>
<div class="queue-summary-grid">
<div>
<span class="summary-label">
Category
</span>
<strong class="summary-category">
Not detected
</strong>
</div>
<div>
<span class="summary-label">
Pricing
</span>
<strong class="summary-pricing">
Not verified
</strong>
</div>
<div>
<span class="summary-label">
Free plan
</span>
<strong class="summary-free-plan">
Not verified
</strong>
</div>
<div>
<span class="summary-label">
Platforms
</span>
<strong class="summary-platforms">
Not detected
</strong>
</div>
</div>
<div class="queue-actions">
<button
type="button"
class="wordpress-button"
>
Create WordPress draft
</button>
<button
type="button"
class="edit-button"
>
Edit data
</button>
<button
type="button"
class="reject-button"
>
Reject
</button>
<button
type="button"
class="needs-changes-button"
>
Needs changes
</button>
<button
type="button"
class="approve-button"
>
Approve and import
</button>
</div>
<details class="queue-details">
<summary>
Review extracted data
</summary>
<div class="details-content">
<section>
<h4>Description</h4>
<p class="detail-description"></p>
</section>
<section>
<h4>Features</h4>
<div class="chip-list detail-features"></div>
</section>
<section>
<h4>Use cases</h4>
<div class="chip-list detail-use-cases"></div>
</section>
<section>
<h4>Integrations</h4>
<div class="chip-list detail-integrations"></div>
</section>
<section>
<h4>Missing information</h4>
<div class="chip-list detail-missing"></div>
</section>
<section>
<h4>Source pages</h4>
<div class="source-page-list"></div>
</section>
<section class="review-notes-section hidden">
<h4>Review instructions</h4>
<p class="detail-review-notes"></p>
</section>
<section class="error-section hidden">
<h4>Notes or error</h4>
<p class="detail-error"></p>
</section>
</div>
</details>
</article>
</template>
<dialog id="edit-dialog" class="edit-dialog">
<form id="edit-form" class="edit-form">
<div class="edit-dialog-header">
<div>
<p class="eyebrow">EDIT QUEUE ITEM</p>
<h2>Correct extracted data</h2>
</div>
<button id="edit-close" class="dialog-close" type="button" aria-label="Close">×</button>
</div>
<p class="edit-help">
Verify every change against the tool’s official website before saving.
</p>
<div class="edit-grid">
<label>Tool name<input id="edit-tool-name" maxlength="200" required /></label>
<label>Company name<input id="edit-company-name" maxlength="200" /></label>
<label class="full-field">Official URL<input id="edit-official-url" type="url" required /></label>
<label class="full-field">Logo URL<input id="edit-logo-url" type="url" placeholder="https://example.com/logo.png" /></label>
<div id="edit-logo-preview-wrap" class="edit-logo-preview hidden">
<img id="edit-logo-preview" alt="Logo preview" />
<span>Logo preview</span>
</div>
<label class="full-field">Screenshot URL<input id="edit-screenshot-url" type="url" placeholder="https://screenshots.aicompare.tech/tools/example.jpg" /></label>
<div id="edit-screenshot-preview-wrap" class="edit-screenshot-preview hidden">
<img id="edit-screenshot-preview" alt="Screenshot preview" />
<span>Homepage screenshot preview</span>
</div>
<label>Primary category
<select id="edit-category" required>
<option value="AI Assistants">AI Assistants</option>
<option value="AI Search & Research">AI Search & Research</option>
<option value="Coding & Development">Coding & Development</option>
<option value="AI Model Platforms">AI Model Platforms</option>
<option value="Writing & Editing">Writing & Editing</option>
<option value="Image Generation">Image Generation</option>
<option value="Video Generation">Video Generation</option>
<option value="Audio & Voice">Audio & Voice</option>
<option value="Transcription & Meetings">Transcription & Meetings</option>
<option value="Design">Design</option>
<option value="Presentations">Presentations</option>
<option value="Marketing & Sales">Marketing & Sales</option>
<option value="Productivity & Workspace">Productivity & Workspace</option>
<option value="Career & Resume">Career & Resume</option>
</select>
</label>
<label>Pricing model<input id="edit-pricing-model" maxlength="100" placeholder="Free, Freemium, Paid…" /></label>
<label>Free plan
<select id="edit-free-plan">
<option value="unknown">Not verified</option>
<option value="true">Yes</option>
<option value="false">No</option>
</select>
</label>
<label>Starting price (USD)<input id="edit-starting-price" type="number" min="0" step="0.01" /></label>
<label class="full-field">Short description<textarea id="edit-short-description" maxlength="600" rows="3"></textarea></label>
<label class="full-field">Long description<textarea id="edit-long-description" maxlength="3000" rows="5"></textarea></label>
<label class="full-field">Features <small>One per line</small><textarea id="edit-features" rows="5"></textarea></label>
<label class="full-field">Use cases <small>One per line</small><textarea id="edit-use-cases" rows="4"></textarea></label>
<label class="full-field">Platforms <small>One per line</small><textarea id="edit-platforms" rows="3"></textarea></label>
<label class="full-field">Integrations <small>One per line</small><textarea id="edit-integrations" rows="3"></textarea></label>
</div>
<div id="edit-error" class="result-message error hidden"></div>
<div class="edit-footer">
<button id="edit-cancel" class="secondary-button" type="button">Cancel</button>
<button id="edit-save" class="primary-button" type="submit">Save changes</button>
</div>
</form>
</dialog>
<script
type="module"
src="./admin.js"
></script>
</body>
</html>
|