fix(hub): align AI summary trades with records and restyle headings

- Query trade_records with trading-day window and reviewed fields instead of missing session_date column

- Style summary headings and account names as red text with white stroke

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-07 09:07:16 +08:00
parent 62e48dab92
commit f8220762c0
5 changed files with 289 additions and 50 deletions
+62 -5
View File
@@ -3534,27 +3534,66 @@ body.hub-page-ai #page-ai {
color: var(--text);
font-weight: 600;
}
.ai-result-md h2 {
.ai-md-body.ai-result-md h2 {
font-size: 1.02rem;
color: var(--accent-2, var(--accent));
color: var(--red);
margin: 14px 0 8px;
padding-bottom: 4px;
border-bottom: 1px solid var(--border-soft);
-webkit-text-stroke: 0.45px #fff;
paint-order: stroke fill;
text-shadow:
0 0 1px #fff,
0 0 2px rgba(255, 255, 255, 0.9),
1px 0 0 #fff,
-1px 0 0 #fff,
0 1px 0 #fff,
0 -1px 0 #fff;
}
.ai-md-body.ai-result-md h2:first-child {
margin-top: 0;
}
.ai-md-body.ai-result-md h3 {
font-size: 0.92rem;
color: var(--accent-2, var(--accent));
color: var(--red);
margin: 16px 0 8px;
padding-bottom: 4px;
border-bottom: 1px solid var(--border-soft);
font-weight: 600;
-webkit-text-stroke: 0.45px #fff;
paint-order: stroke fill;
text-shadow:
0 0 1px #fff,
0 0 2px rgba(255, 255, 255, 0.9),
1px 0 0 #fff,
-1px 0 0 #fff,
0 1px 0 #fff,
0 -1px 0 #fff;
}
.ai-md-body.ai-result-md h3:first-of-type {
margin-top: 4px;
}
.ai-md-body.ai-result-md h4 {
font-size: 0.92rem;
color: var(--red);
margin: 10px 0 6px;
-webkit-text-stroke: 0.45px #fff;
paint-order: stroke fill;
text-shadow:
0 0 1px #fff,
0 0 2px rgba(255, 255, 255, 0.9),
1px 0 0 #fff,
-1px 0 0 #fff,
0 1px 0 #fff,
0 -1px 0 #fff;
}
.ai-result-md h2 {
font-size: 1.02rem;
color: var(--accent-2, var(--accent));
margin: 14px 0 8px;
padding-bottom: 4px;
border-bottom: 1px solid var(--border-soft);
}
.ai-result-md h3,
.ai-result-md h4 {
font-size: 0.92rem;
@@ -3624,7 +3663,16 @@ body.hub-page-ai #page-ai {
}
.ai-ac-name {
min-width: 9rem;
font-weight: 500;
font-weight: 600;
color: var(--red);
-webkit-text-stroke: 0.35px #fff;
paint-order: stroke fill;
text-shadow:
0 0 1px #fff,
1px 0 0 #fff,
-1px 0 0 #fff,
0 1px 0 #fff,
0 -1px 0 #fff;
}
.ai-ac-remark {
color: var(--muted);
@@ -3726,7 +3774,16 @@ body.hub-page-ai #page-ai {
margin: 0 0 6px;
font-size: 0.82rem;
font-weight: 600;
color: var(--accent-2, var(--accent));
color: var(--red);
-webkit-text-stroke: 0.45px #fff;
paint-order: stroke fill;
text-shadow:
0 0 1px #fff,
0 0 2px rgba(255, 255, 255, 0.9),
1px 0 0 #fff,
-1px 0 0 #fff,
0 1px 0 #fff,
0 -1px 0 #fff;
}
.ai-msg-attachments {
display: flex;