From 25a458d4b8e6ec1c764b8d544025d835d64121a1 Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Tue, 9 Dec 2025 03:08:02 +0000 Subject: [PATCH] Update the guild selector to display server information using visual cards Replace the existing guild dropdown with a new card-based UI for displaying server icons, names, and admin status, including updated CSS for styling and JavaScript logic for population. Replit-Commit-Author: Agent Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261 Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Event-Id: a66a236d-ea40-44f2-a853-1320114b514d Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/xfdSNeM Replit-Helium-Checkpoint-Created: true --- aethex-bot/public/dashboard.html | 301 ++++++++++++++++++++++++++++--- 1 file changed, 275 insertions(+), 26 deletions(-) diff --git a/aethex-bot/public/dashboard.html b/aethex-bot/public/dashboard.html index 8e6de43..0f841d6 100644 --- a/aethex-bot/public/dashboard.html +++ b/aethex-bot/public/dashboard.html @@ -321,15 +321,180 @@ margin-bottom: 1.5rem; } - .guild-selector select { - width: 100%; - padding: 0.75rem; + .guild-selector-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0.75rem 1rem; background: var(--secondary); border: 1px solid var(--border); - border-radius: 8px; - color: var(--foreground); - font-size: 0.875rem; + border-radius: 10px; cursor: pointer; + transition: all 0.2s; + } + + .guild-selector-header:hover { + background: var(--card-hover); + border-color: var(--aethex-500); + } + + .guild-selector-header.open { + border-radius: 10px 10px 0 0; + border-bottom-color: transparent; + } + + .selected-guild { + display: flex; + align-items: center; + gap: 0.75rem; + flex: 1; + min-width: 0; + } + + .selected-guild-icon { + width: 32px; + height: 32px; + border-radius: 8px; + background: var(--muted); + display: flex; + align-items: center; + justify-content: center; + font-weight: 600; + font-size: 0.875rem; + flex-shrink: 0; + overflow: hidden; + } + + .selected-guild-icon img { + width: 100%; + height: 100%; + object-fit: cover; + } + + .selected-guild-name { + font-weight: 500; + font-size: 0.875rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .guild-selector-arrow { + color: var(--muted-foreground); + transition: transform 0.2s; + } + + .guild-selector-header.open .guild-selector-arrow { + transform: rotate(180deg); + } + + .guild-dropdown { + display: none; + background: var(--secondary); + border: 1px solid var(--border); + border-top: none; + border-radius: 0 0 10px 10px; + max-height: 280px; + overflow-y: auto; + } + + .guild-dropdown.open { + display: block; + } + + .guild-card { + display: flex; + align-items: center; + gap: 0.75rem; + padding: 0.75rem 1rem; + cursor: pointer; + transition: all 0.15s; + border-left: 3px solid transparent; + } + + .guild-card:hover { + background: var(--card-hover); + } + + .guild-card.active { + background: rgba(59, 130, 246, 0.1); + border-left-color: var(--aethex-500); + } + + .guild-card:last-child { + border-radius: 0 0 8px 8px; + } + + .guild-icon { + width: 36px; + height: 36px; + border-radius: 8px; + background: linear-gradient(135deg, var(--aethex-500), var(--neon-blue)); + display: flex; + align-items: center; + justify-content: center; + font-weight: 600; + font-size: 0.875rem; + flex-shrink: 0; + overflow: hidden; + } + + .guild-icon img { + width: 100%; + height: 100%; + object-fit: cover; + } + + .guild-info { + flex: 1; + min-width: 0; + } + + .guild-name { + font-weight: 500; + font-size: 0.875rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .guild-status { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 0.7rem; + color: var(--muted-foreground); + margin-top: 0.125rem; + } + + .guild-admin-badge { + display: inline-flex; + align-items: center; + gap: 0.25rem; + padding: 0.125rem 0.375rem; + background: rgba(59, 130, 246, 0.15); + border: 1px solid rgba(59, 130, 246, 0.3); + border-radius: 4px; + color: var(--aethex-400); + font-size: 0.65rem; + font-weight: 500; + text-transform: uppercase; + } + + .guild-member-count { + display: flex; + align-items: center; + gap: 0.25rem; + } + + .guild-check { + color: var(--aethex-500); + opacity: 0; + transition: opacity 0.15s; + } + + .guild-card.active .guild-check { + opacity: 1; } .nav-section { @@ -789,9 +954,16 @@
- +
+
+
?
+ Select a server... +
+ + + +
+