complete reviews system (phases 4-6)
All checks were successful
deploy / deploy (push) Successful in 1m4s
All checks were successful
deploy / deploy (push) Successful in 1m4s
- review display: photos with lightbox, verified badge, pagination - admin moderation: pending/approved/rejected tabs, bulk actions, nav badge - SEO: JSON-LD AggregateRating and Review markup on product pages - automation: review request emails 7 days after delivery (Oban worker) - rating cache: avg/count fields on products, updated on approval - fix file size validation in media test (10MB limit) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6438,4 +6438,188 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Review moderation ── */
|
||||
|
||||
.admin-review-list {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.admin-review-row {
|
||||
border: 1px solid var(--admin-border);
|
||||
border-radius: var(--radius-md);
|
||||
margin-bottom: 0.5rem;
|
||||
background: var(--admin-surface);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-review-row-expanded {
|
||||
box-shadow: 0 2px 8px oklch(0 0 0 / 0.08);
|
||||
}
|
||||
|
||||
.admin-review-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.1s ease;
|
||||
|
||||
&:hover {
|
||||
background: oklch(0.98 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
.admin-review-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.admin-review-product {
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
max-width: 14rem;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.admin-review-rating {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--admin-text-muted);
|
||||
}
|
||||
|
||||
.admin-star {
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
.admin-review-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
min-width: 0;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--admin-text-muted);
|
||||
}
|
||||
|
||||
.admin-review-author {
|
||||
font-weight: 500;
|
||||
color: var(--admin-text-default);
|
||||
}
|
||||
|
||||
.admin-review-email {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.admin-review-date {
|
||||
flex-shrink: 0;
|
||||
color: var(--admin-text-faint);
|
||||
}
|
||||
|
||||
.admin-review-chevron {
|
||||
flex-shrink: 0;
|
||||
color: var(--admin-text-faint);
|
||||
}
|
||||
|
||||
.admin-review-detail {
|
||||
padding: 1rem;
|
||||
border-top: 1px solid var(--admin-border);
|
||||
background: oklch(0.985 0 0);
|
||||
}
|
||||
|
||||
.admin-review-content {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.admin-review-title {
|
||||
font-weight: 600;
|
||||
font-size: 0.9375rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.admin-review-body {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.6;
|
||||
color: var(--admin-text-muted);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.admin-review-empty {
|
||||
font-size: 0.875rem;
|
||||
font-style: italic;
|
||||
color: var(--admin-text-faint);
|
||||
}
|
||||
|
||||
.admin-review-photos {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.admin-review-photo {
|
||||
display: block;
|
||||
width: 5rem;
|
||||
height: 5rem;
|
||||
border-radius: var(--radius-sm);
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--admin-border);
|
||||
transition: border-color 0.1s ease;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--t-accent);
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-review-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Status badges */
|
||||
.admin-status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
padding: 0.125rem 0.5rem;
|
||||
border-radius: 9999px;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.admin-status-pending {
|
||||
background: oklch(0.96 0.04 80);
|
||||
color: oklch(0.45 0.1 80);
|
||||
}
|
||||
|
||||
.admin-status-approved {
|
||||
background: oklch(0.95 0.06 145);
|
||||
color: oklch(0.35 0.12 145);
|
||||
}
|
||||
|
||||
.admin-status-rejected {
|
||||
background: oklch(0.95 0.04 25);
|
||||
color: oklch(0.45 0.12 25);
|
||||
}
|
||||
|
||||
} /* @layer admin */
|
||||
|
||||
Reference in New Issue
Block a user