日別集計に期間の任意指定とプロジェクト除外を追加

/api/daily に from / to / exclude を追加。from/to があれば days より優先し、
その範囲を 0 埋めで返す。exclude のプロジェクトは集計対象から外す
(横断モードのみ送信)。CSV も同じ条件で出力される。

UI は日数ボタンの隣に日付入力を置き、凡例のクリックで除外・「除外中」から
クリックで復帰できるようにした。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-01 10:30:55 +09:00
co-authored by Claude Opus 5
parent 0c312afaa5
commit 8fd54757e6
4 changed files with 140 additions and 21 deletions
+21
View File
@@ -200,6 +200,21 @@ table { width: 100%; border-collapse: collapse; }
.rng.sel { color: var(--accent); border-color: var(--accent); }
.chart-bar .note { color: var(--dim); font-size: 10.5px; }
/* 期間の任意指定 */
.dates { display: flex; align-items: center; gap: 4px; }
.dates input[type="date"] {
background: var(--bg);
border: 1px solid var(--line);
border-radius: 5px;
color: var(--fg);
padding: 1px 6px;
font: inherit;
font-size: 11px;
color-scheme: dark;
}
.dates input[type="date"]:hover { border-color: var(--accent); }
.dates .tilde { color: var(--dim); font-size: 11px; }
.chart { padding: 4px 14px 0; overflow-x: auto; }
.chart svg text.ax { fill: var(--dim); font-size: 10px; }
.chart svg text.ax.we { fill: var(--warn); }
@@ -213,6 +228,12 @@ table { width: 100%; border-collapse: collapse; }
.legend .lg { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend .lg i, .pj-i i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex: none; }
.legend .lg b { color: var(--fg); font-weight: 500; }
.legend .lg.act { cursor: pointer; }
.legend .lg.act:hover { color: var(--fg); }
.legend.excl { padding-top: 2px; }
.legend.excl .cap { font-size: 10.5px; }
.legend .lg.off { cursor: pointer; opacity: .6; text-decoration: line-through; }
.legend .lg.off:hover { opacity: 1; color: var(--accent); }
#daily-table { margin-top: 8px; }
#daily-table th {