feat: replace local bug store with Gitea-backed issue tracker and add AI-enhanced filing

This commit is contained in:
2026-06-12 18:31:40 +00:00
parent 3ef1d02265
commit 9003cf6570
26 changed files with 1981 additions and 235 deletions
+132
View File
@@ -14,12 +14,45 @@
font-size: 1.5rem;
font-weight: 700;
}
.bugs-filters {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.bugs-filter {
font-size: 0.8125rem;
font-weight: 600;
color: var(--text-secondary);
padding: 0.35rem 0.85rem;
border-radius: 999px;
border: 1px solid var(--border);
text-decoration: none;
}
.bugs-filter:hover {
background: var(--bg-hover);
}
.bugs-filter.active {
background: var(--accent);
color: var(--white);
border-color: var(--accent);
}
.bugs-modal-hint {
font-size: 0.8125rem;
color: var(--text-muted);
margin-bottom: 0.75rem;
}
.bug-card {
display: block;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.25rem;
margin-bottom: 1rem;
text-decoration: none;
transition: border-color 0.15s ease;
}
.bug-card:hover {
border-color: var(--accent);
}
.bug-card-header {
display: flex;
@@ -27,6 +60,14 @@
gap: 0.75rem;
margin-bottom: 0.5rem;
}
.bug-number {
font-size: 0.8125rem;
font-weight: 700;
color: var(--text-muted);
}
.bug-title {
flex: 1;
}
.bug-title {
font-size: 1rem;
font-weight: 600;
@@ -55,9 +96,100 @@
margin-bottom: 0.5rem;
}
.bug-meta {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.75rem;
color: var(--text-muted);
}
.bug-dot {
color: var(--border);
}
.bug-detail-nav {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.bug-back,
.bug-gitea-link {
font-size: 0.8125rem;
font-weight: 600;
color: var(--accent);
text-decoration: none;
}
.bug-detail-card {
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.bug-detail-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.75rem;
}
.bug-detail-title {
flex: 1;
font-size: 1.25rem;
font-weight: 700;
}
.bug-admin-actions {
margin: 1rem 0;
}
.bug-detail-body {
margin-top: 1rem;
color: var(--text-primary);
line-height: 1.6;
}
.bug-comment {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1rem 1.25rem;
margin-bottom: 0.75rem;
}
.bug-comment-head {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.75rem;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.bug-comment-badge {
font-size: 0.625rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.1rem 0.45rem;
border-radius: 999px;
background: var(--accent-light);
color: var(--accent);
}
.bug-comment-body {
font-size: 0.9375rem;
color: var(--text-primary);
line-height: 1.55;
}
.bug-comment-form {
margin-top: 1rem;
}
.bug-comment-form textarea {
width: 100%;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0.75rem;
font: inherit;
background: var(--bg-input);
color: var(--text-primary);
resize: vertical;
}
.bug-comment-form-footer {
display: flex;
justify-content: flex-end;
margin-top: 0.5rem;
}
@media (max-width: 480px) {
.bugs-header {