Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions client/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



.user-card h3, .product-card h3, .result-card h5 {
margin: 0 0 0.5rem 0;
color: #ffffff;
Expand All @@ -213,6 +215,51 @@
font-size: 0.9rem;
}

.product-filter-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}

.product-search-input {
flex: 1 1 320px;
padding: 0.75rem 1rem;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.08);
color: #ffffff;
transition: box-shadow 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.product-search-input::placeholder {
color: rgba(255, 255, 255, 0.6);
}

.product-search-input:focus {
outline: none;
border: 1px solid #4ade80;
box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
transform: translateY(-1px);
}

.product-filter-select {
flex: 1 1 200px;
padding: 0.75rem 1rem;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.08);
color: #ffffff;
transition: border 0.2s ease, box-shadow 0.2s ease;
}

.product-filter-select:focus {
outline: none;
border: 1px solid #38bdf8;
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Badges */
.role-badge, .priority-badge, .status-badge {
display: inline-block;
Expand Down
9 changes: 4 additions & 5 deletions client/src/components/products/Products.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,20 @@ function Products({ products, loading, fetchProducts, fetchAnalytics }) {
</form>
</div>

<div className="products-section">
<div className="products-section">
<h2>Products ({filteredProducts.length})</h2>
<div style={{ display: 'flex', gap: '1rem', marginBottom: '1rem' }}>
<div className="product-filter-bar">
<input
type="text"
placeholder="Search products..."
placeholder="Search by name, category, or description"
value={search}
onChange={(e) => setSearch(e.target.value)}
className="product-search-input"
style={{ padding: '0.5rem', width: '60%' }}
/>
<select
value={categoryFilter}
onChange={e => setCategoryFilter(e.target.value)}
style={{ padding: '0.5rem', width: '40%' }}
className="product-filter-select"
>
<option value="">All Categories</option>
{categories.map(cat => (
Expand Down