Surface signalement (flag) tags on the per-compte dashboard
Fetches field_flag alongside the existing entrée/versement data (same JSON:API include list, same buildRows() shape as home.js's flags/ hasFlag). Two changes: - Rows already shown in the reste-à-verser/sur-versé/non-liés tables get the same amber left-edge accent + tag badges as /lignes when they're also flagged. - New "Lignes signalées" section lists every flagged entrée/versement for the selected compte, including ones that don't appear in any of the other tables -- a fully-settled line can still carry a flag for an unrelated reason (e.g. "client injoignable"), which none of the reconciliation-based tables would otherwise surface. Verified live against an isolated test node plus two real flagged lines already present in production data (client had already started using the /lignes signalement feature) -- both the section and the inline badges render correctly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
--figli-border: #dcdee2;
|
||||
--figli-error: #c9312b;
|
||||
--figli-positive: #1a7f37;
|
||||
--figli-warning: #b8860b;
|
||||
|
||||
font-family: Inter, -apple-system, sans-serif;
|
||||
max-width: 1200px;
|
||||
@@ -23,6 +24,7 @@ html.gin--dark-mode #figli-dashboard-app {
|
||||
--figli-border: #3d3e42;
|
||||
--figli-error: #ff6b6b;
|
||||
--figli-positive: #4ade80;
|
||||
--figli-warning: #f0b429;
|
||||
}
|
||||
|
||||
#figli-dashboard-app h2 {
|
||||
@@ -124,6 +126,23 @@ html.gin--dark-mode #figli-dashboard-app {
|
||||
#figli-dashboard-app .figli-recon-table tfoot td { font-weight: 700; border-bottom: none; border-top: 2px solid var(--figli-border); }
|
||||
#figli-dashboard-app .figli-recon-table a { color: inherit; text-decoration: underline; text-decoration-color: var(--figli-border); }
|
||||
|
||||
/* Signalée rows: same amber left-edge accent as /lignes (box-shadow, not
|
||||
border, so it doesn't fight the row's existing bottom border). */
|
||||
#figli-dashboard-app .figli-recon-table tr.figli-flag-row td:first-child {
|
||||
box-shadow: inset 4px 0 0 var(--figli-warning);
|
||||
}
|
||||
#figli-dashboard-app .figli-flag-badge {
|
||||
display: inline-block;
|
||||
padding: 0.05rem 0.4rem;
|
||||
margin: 0 0 0 0.4rem;
|
||||
border-radius: 8px;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
background: color-mix(in srgb, var(--figli-warning) 15%, transparent);
|
||||
color: var(--figli-warning);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* --- Year bars chart (évolution du solde, entrées vs versements) --- */
|
||||
#figli-dashboard-app .figli-year-chart {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user