feat(insight): add moments context gating and prompt integration

This commit is contained in:
Jason
2026-04-28 00:14:05 +08:00
parent 608f74a3f9
commit 55a7ce7b66
5 changed files with 293 additions and 5 deletions

View File

@@ -3617,7 +3617,12 @@
&.insight-social-tab {
.anti-revoke-list-header {
grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) auto;
grid-template-columns: minmax(0, 1fr) 86px minmax(240px, 340px) auto;
.insight-moments-column-title {
color: var(--text-tertiary);
text-align: center;
}
.insight-social-column-title {
color: var(--text-tertiary);
@@ -3626,7 +3631,7 @@
.anti-revoke-row {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) auto;
grid-template-columns: minmax(0, 1fr) 86px minmax(240px, 340px) auto;
align-items: center;
gap: 14px;
}
@@ -3635,6 +3640,67 @@
min-width: 0;
}
.insight-moments-cell {
min-width: 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 30px;
}
.insight-moments-toggle {
position: relative;
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
input[type='checkbox'] {
position: absolute;
inset: 0;
margin: 0;
opacity: 0;
cursor: pointer;
}
.check-indicator {
width: 100%;
height: 100%;
border-radius: 6px;
border: 1px solid color-mix(in srgb, var(--border-color) 78%, var(--primary) 22%);
background: color-mix(in srgb, var(--bg-primary) 86%, var(--bg-secondary) 14%);
color: var(--on-primary, #fff);
display: inline-flex;
align-items: center;
justify-content: center;
transition: all 0.16s ease;
svg {
opacity: 0;
transform: scale(0.75);
transition: opacity 0.16s ease, transform 0.16s ease;
}
}
input[type='checkbox']:checked + .check-indicator {
background: var(--primary);
border-color: var(--primary);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
svg {
opacity: 1;
transform: scale(1);
}
}
input[type='checkbox']:focus-visible + .check-indicator {
outline: 2px solid color-mix(in srgb, var(--primary) 42%, transparent);
outline-offset: 1px;
}
}
.insight-social-binding-cell {
min-width: 0;
display: grid;
@@ -3653,7 +3719,7 @@
.binding-platform-chip {
flex-shrink: 0;
border-radius: 999px;
padding: 2px 8px;
padding: 2px 7px;
font-size: 11px;
color: var(--text-secondary);
border: 1px solid color-mix(in srgb, var(--border-color) 84%, transparent);
@@ -3663,7 +3729,7 @@
.insight-social-binding-input {
width: 100%;
min-width: 0;
height: 30px;
height: 28px;
border-radius: 8px;
border: 1px solid var(--border-color);
background: color-mix(in srgb, var(--bg-primary) 92%, var(--bg-secondary) 8%);
@@ -3752,6 +3818,7 @@
.anti-revoke-list-header {
grid-template-columns: minmax(0, 1fr) auto;
.insight-moments-column-title,
.insight-social-column-title {
display: none;
}
@@ -3763,11 +3830,16 @@
flex-direction: column;
}
.insight-moments-cell,
.insight-social-binding-cell,
.anti-revoke-row-status {
width: 100%;
}
.insight-moments-cell {
justify-content: flex-start;
}
.insight-social-binding-cell {
grid-template-columns: 1fr;
}