forked from retoor/devplacepy
feat: add seo_meta service for AI-generated SEO metadata with CLI management and database layer
Implement a new `SeoMetaService` subservice that generates clean SEO title/description/keywords for published content items, distinct from the existing SEO diagnostics auditor. Add `seo_metadata` polymorphic table with soft-delete support, batch query methods, and usage tracking. Extend the CLI with `seo-meta prune` and `seo-meta clear` commands for job row lifecycle management. Wire `schedule_seo_meta_for_table` into content creation and editing flows in `content.py`. Document the new service in `AGENTS.md` and `README.md`, including the `extra_head` site setting for custom `<head>` injection.
This commit is contained in:
@@ -159,6 +159,154 @@
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.ds-progress-bar.is-indeterminate {
|
||||
width: 40% !important;
|
||||
animation: ds-indeterminate 1.2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes ds-indeterminate {
|
||||
0% { margin-left: -40%; }
|
||||
100% { margin-left: 100%; }
|
||||
}
|
||||
|
||||
.ds-phase-timeline {
|
||||
list-style: none;
|
||||
margin: 0 0 var(--space-md);
|
||||
padding: 0;
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
counter-reset: ds-phase;
|
||||
}
|
||||
|
||||
.ds-phase {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
font-size: 0.6875rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ds-phase::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 13px;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: var(--border);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.ds-phase:last-child::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ds-phase-dot {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--bg-card);
|
||||
border: 2px solid var(--border);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.ds-phase.is-active .ds-phase-dot {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
animation: ds-pulse 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.ds-phase.is-active .ds-phase-name {
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ds-phase.is-done .ds-phase-dot {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.ds-phase.is-done .ds-phase-name {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
@keyframes ds-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
|
||||
50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
|
||||
}
|
||||
|
||||
.ds-details {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-sm);
|
||||
margin-top: var(--space-md);
|
||||
}
|
||||
|
||||
.ds-detail-card {
|
||||
flex: 1 1 200px;
|
||||
min-width: 0;
|
||||
background: var(--bg-card-hover);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.ds-detail-card.is-running {
|
||||
background: linear-gradient(90deg, var(--bg-card-hover) 25%, var(--bg-card) 50%, var(--bg-card-hover) 75%);
|
||||
background-size: 400% 100%;
|
||||
animation: ds-shimmer 1.4s ease infinite;
|
||||
}
|
||||
|
||||
@keyframes ds-shimmer {
|
||||
0% { background-position: 100% 0; }
|
||||
100% { background-position: -100% 0; }
|
||||
}
|
||||
|
||||
.ds-detail-title {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.ds-detail-body {
|
||||
color: var(--text-secondary);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.ds-backend-badge {
|
||||
font-size: 0.6875rem;
|
||||
padding: 1px 8px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.ds-backend-gateway {
|
||||
color: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.ds-backend-local {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ds-timeline {
|
||||
list-style: none;
|
||||
margin: var(--space-md) 0 0;
|
||||
@@ -172,6 +320,28 @@
|
||||
.ds-timeline li {
|
||||
padding: 4px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.ds-log-time {
|
||||
color: var(--text-muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.ds-log-text {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.ds-progress-bar.is-indeterminate,
|
||||
.ds-phase.is-active .ds-phase-dot,
|
||||
.ds-detail-card.is-running {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.ds-done {
|
||||
@@ -415,3 +585,17 @@ dp-deepsearch-chat {
|
||||
max-height: 70vh;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.ds-phase-name {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ds-phase-timeline {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.ds-detail-card {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
--bg-modal: #1a1030;
|
||||
|
||||
--accent: #ff6b35;
|
||||
--accent-rgb: 255, 107, 53;
|
||||
--accent-hover: #ff7d4d;
|
||||
--accent-light: rgba(255, 107, 53, 0.12);
|
||||
--accent-2: #ff4f8b;
|
||||
|
||||
Reference in New Issue
Block a user