feat: Introduce multi-platform architecture for Electron and Web clients with shared UI components, Convex backend for messaging, and integrated search functionality.
Some checks failed
Build and Release / build-and-release (push) Has been cancelled

This commit is contained in:
Bryan1029384756
2026-02-16 13:08:39 -06:00
parent 8ff9213b34
commit ec12313996
49 changed files with 2449 additions and 3914 deletions

View File

@@ -236,6 +236,7 @@ body {
display: flex;
flex: 1;
min-height: 0;
position: relative;
}
.chat-area {
@@ -889,25 +890,60 @@ body {
.chat-header-search-wrapper {
margin-left: 4px;
position: relative;
display: flex;
align-items: center;
}
.chat-header-search-icon {
position: absolute;
left: 8px;
color: var(--text-muted);
pointer-events: none;
z-index: 1;
display: flex;
align-items: center;
}
.chat-header-search {
width: 160px;
width: 214px;
height: 28px;
background-color: var(--bg-tertiary);
border: none;
background-color: #17171a;
border: 1px solid color-mix(in oklab,hsl(240 calc(1*4%) 60.784% /0.2) 100%,hsl(0 0% 0% /0.2) 0%);
border-radius: 4px;
color: var(--text-normal);
padding: 0 8px;
color: color-mix(in oklab, hsl(240 calc(1*6.667%) 94.118% /1) 100%, #000 0%);
padding: 0 28px 0 28px;
font-size: 13px;
outline: none;
transition: width 0.25s ease;
font-family: inherit;
}
.chat-header-search::placeholder {
color: var(--text-muted);
}
.chat-header-search.focused {
width: 240px;
}
.chat-header-search-clear {
position: absolute;
right: 4px;
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 2px;
display: flex;
align-items: center;
border-radius: 2px;
}
.chat-header-search-clear:hover {
color: var(--header-primary);
}
/* ============================================
MEMBERS LIST
============================================ */
@@ -3191,4 +3227,468 @@ body {
.is-mobile .friends-view {
width: 100vw;
}
/* Search panel full-width on mobile */
.is-mobile .search-panel {
width: 100vw;
right: 0;
border-radius: 0;
}
}
/* ============================================
SEARCH DROPDOWN (appears below header input)
============================================ */
.search-dropdown {
position: fixed;
z-index: 10001;
background-color: #111214;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
overflow: hidden;
animation: searchDropdownIn 0.15s ease;
}
@keyframes searchDropdownIn {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: translateY(0); }
}
.search-dropdown-scrollable {
max-height: 500px;
overflow-y: auto;
padding: 8px 0;
}
.search-dropdown-scrollable::-webkit-scrollbar {
width: 6px;
}
.search-dropdown-scrollable::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-auto-thumb, var(--bg-tertiary));
border-radius: 3px;
}
.search-dropdown-section-header {
font-size: 12px;
font-weight: 700;
color: var(--header-secondary);
text-transform: uppercase;
padding: 8px 16px 4px;
letter-spacing: 0.02em;
display: flex;
align-items: center;
justify-content: space-between;
}
.search-dropdown-item {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
cursor: pointer;
color: var(--text-normal);
font-size: 14px;
transition: background-color 0.1s;
}
.search-dropdown-item:hover {
background-color: rgba(255, 255, 255, 0.06);
}
.search-dropdown-item-icon {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
color: var(--text-muted);
flex-shrink: 0;
}
.search-dropdown-item-label {
font-weight: 600;
color: var(--header-primary);
}
.search-dropdown-item-desc {
color: var(--text-muted);
font-size: 13px;
}
.search-dropdown-member {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 16px;
cursor: pointer;
transition: background-color 0.1s;
}
.search-dropdown-member:hover {
background-color: rgba(255, 255, 255, 0.06);
}
.search-dropdown-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 11px;
flex-shrink: 0;
object-fit: cover;
}
img.search-dropdown-avatar {
object-fit: cover;
}
.search-dropdown-member-name {
color: var(--text-normal);
font-size: 14px;
font-weight: 500;
}
.search-dropdown-channel {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 16px;
cursor: pointer;
color: var(--text-normal);
font-size: 14px;
transition: background-color 0.1s;
}
.search-dropdown-channel:hover {
background-color: rgba(255, 255, 255, 0.06);
}
.search-dropdown-channel-hash {
font-size: 18px;
font-weight: 700;
color: var(--text-muted);
width: 24px;
text-align: center;
flex-shrink: 0;
}
.search-dropdown-history-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.search-dropdown-clear-all {
background: none;
border: none;
color: var(--text-link);
font-size: 12px;
cursor: pointer;
padding: 0;
font-weight: 500;
}
.search-dropdown-clear-all:hover {
text-decoration: underline;
}
.search-dropdown-history-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 16px;
cursor: pointer;
transition: background-color 0.1s;
}
.search-dropdown-history-item:hover {
background-color: rgba(255, 255, 255, 0.06);
}
.search-dropdown-history-icon {
color: var(--text-muted);
flex-shrink: 0;
}
.search-dropdown-history-text {
flex: 1;
color: var(--text-normal);
font-size: 14px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.search-dropdown-history-delete {
background: none;
border: none;
color: var(--text-muted);
font-size: 16px;
cursor: pointer;
padding: 0 4px;
opacity: 0;
transition: opacity 0.1s;
line-height: 1;
}
.search-dropdown-history-item:hover .search-dropdown-history-delete {
opacity: 1;
}
.search-dropdown-history-delete:hover {
color: var(--header-primary);
}
.search-dropdown-empty {
padding: 12px 16px;
color: var(--text-muted);
font-size: 13px;
text-align: center;
}
/* ============================================
SEARCH PANEL (results)
============================================ */
.search-panel {
position: absolute;
top: 0;
right: 0;
width: 420px;
height: 100%;
background-color: var(--bg-secondary);
border-left: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
z-index: 100;
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}
.search-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid var(--border-subtle);
}
.search-panel-header-left {
display: flex;
align-items: center;
gap: 8px;
}
.search-panel-header-right {
display: flex;
align-items: center;
gap: 8px;
}
.search-result-count {
color: var(--header-secondary);
font-size: 13px;
font-weight: 600;
}
.search-panel-sort-wrapper {
position: relative;
}
.search-panel-sort-btn {
display: flex;
align-items: center;
background: none;
border: none;
color: var(--text-link);
font-size: 13px;
font-weight: 500;
cursor: pointer;
padding: 4px 8px;
border-radius: 4px;
font-family: inherit;
}
.search-panel-sort-btn:hover {
background-color: rgba(255, 255, 255, 0.06);
}
.search-panel-sort-menu {
position: absolute;
top: 100%;
right: 0;
margin-top: 4px;
background-color: #111214;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
z-index: 10;
overflow: hidden;
min-width: 120px;
}
.search-panel-sort-option {
padding: 8px 12px;
color: var(--text-normal);
font-size: 14px;
cursor: pointer;
transition: background-color 0.1s;
}
.search-panel-sort-option:hover {
background-color: rgba(255, 255, 255, 0.06);
}
.search-panel-sort-option.active {
color: var(--text-link);
}
.search-panel-close {
background: none;
border: none;
color: var(--header-secondary);
font-size: 20px;
cursor: pointer;
line-height: 1;
padding: 4px;
}
.search-panel-close:hover {
color: var(--header-primary);
}
.search-filter-chips {
display: flex;
flex-wrap: wrap;
gap: 4px;
padding: 8px 16px;
}
.search-filter-chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 12px;
background-color: var(--brand-experiment);
color: white;
font-size: 12px;
font-weight: 500;
}
.search-panel-results {
flex: 1;
overflow-y: auto;
padding: 4px 8px;
}
.search-panel-results::-webkit-scrollbar {
width: 6px;
}
.search-panel-results::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-auto-thumb, var(--bg-tertiary));
border-radius: 3px;
}
.search-panel-empty {
text-align: center;
color: var(--text-muted);
padding: 32px 16px;
display: flex;
flex-direction: column;
align-items: center;
}
.search-channel-header {
font-size: 12px;
font-weight: 600;
color: var(--header-secondary);
text-transform: uppercase;
padding: 8px 8px 4px;
letter-spacing: 0.02em;
}
.search-result {
background-color: var(--bg-primary);
border-radius: 4px;
padding: 8px 12px;
margin-bottom: 4px;
cursor: pointer;
transition: background-color 0.1s;
display: flex;
gap: 12px;
}
.search-result:hover {
background-color: var(--bg-mod-faint);
}
.search-result-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 15px;
flex-shrink: 0;
}
.search-result-body {
flex: 1;
min-width: 0;
}
.search-result-header {
display: flex;
align-items: baseline;
gap: 8px;
margin-bottom: 2px;
}
.search-result-username {
color: var(--header-primary);
font-size: 1rem;
font-weight: 600;
}
.search-result-time {
color: var(--text-muted);
font-size: 0.75rem;
margin-left: 0;
}
.search-result-content {
color: var(--text-normal);
font-size: 0.9375rem;
line-height: 1.375;
word-break: break-word;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.search-result-content mark {
background-color: rgba(250, 166, 26, 0.3);
color: var(--text-normal);
border-radius: 2px;
padding: 0 1px;
}
.search-result-badge {
display: inline-block;
font-size: 10px;
font-weight: 600;
color: var(--text-muted);
background-color: var(--bg-tertiary);
padding: 1px 6px;
border-radius: 3px;
margin-top: 4px;
margin-right: 4px;
text-transform: uppercase;
}