generated from coulomb/repo-seed
feat(api): CUST-WP-0018 — API hardening & code quality
T01: Fix datetime.utcnow() → datetime.now(tz=timezone.utc) in MCP server T02: Wrap _get/_post/_patch/_delete with try/except; return error dicts T03: Log warnings when write_log skips missing project path T04: Add priority + due_date_before filters to GET /tasks/ T05: Add owner + slug filters to GET /workstreams/ T06: Add offset param to GET /progress/ for proper pagination T07: Low-severity bundle: - CORS origins from CORS_ORIGINS env var (TD-017) - seed.py upsert domains+topics on re-run (TD-011) - normalise filter bar CSS → filter-text-input everywhere (TD-016) - add 30.5 avg-days-per-month comment in decisions.md (TD-019) - TD-009, TD-018 already resolved by existing code Closes CUST-WP-0018. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -100,8 +100,8 @@ export default {
|
||||
.kpi-infobox { background: var(--theme-background-alt, #f9f9f9); border: 1px solid var(--theme-foreground-faint, #e0e0e0); border-radius: 10px; padding: 0.75rem 1rem; position: relative; box-shadow: 0 1px 6px rgba(0,0,0,0.07); margin-bottom: 1.25rem; }
|
||||
.kpi-infobox-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--theme-foreground-muted, #888); margin-bottom: 0.55rem; padding-right: 1.6rem; }
|
||||
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
|
||||
.filter-search, .filter-owner { display: flex; align-items: center; }
|
||||
.filter-search input, .filter-owner input { height: 30px; font-size: 0.85rem; padding: 0.25rem 0.5rem; border-radius: 6px; border: 1px solid var(--theme-foreground-faint, #ccc); background: var(--theme-background, #fff); font-family: inherit; color: inherit; }
|
||||
.filter-text-input { display: flex; align-items: center; }
|
||||
.filter-text-input input { height: 30px; font-size: 0.85rem; padding: 0.25rem 0.5rem; border-radius: 6px; border: 1px solid var(--theme-foreground-faint, #ccc); background: var(--theme-background, #fff); font-family: inherit; color: inherit; }
|
||||
</style>`,
|
||||
footer: "Custodian State Hub — local-first, append-only, sovereignty-preserving.",
|
||||
};
|
||||
|
||||
@@ -68,7 +68,7 @@ const _filtersForm = Inputs.form(
|
||||
{
|
||||
template: ({type, status, search}) => html`<div class="filter-bar">
|
||||
${type}${status}
|
||||
<div class="filter-search">${search}</div>
|
||||
<div class="filter-text-input">${search}</div>
|
||||
</div>`,
|
||||
}
|
||||
);
|
||||
@@ -103,7 +103,7 @@ function fmtDuration(ms) {
|
||||
if (ms < 2 * d) return `${Math.floor(ms / h)}h`;
|
||||
if (ms < 2 * w) return `${Math.floor(ms / d)}d`;
|
||||
if (ms < 8 * w) return `${Math.floor(ms / w)}w`;
|
||||
return `${Math.round(ms / (30.5 * d))}mo`;
|
||||
return `${Math.round(ms / (30.5 * d))}mo`; // 30.5 = avg days per month (365/12)
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ const _filtersForm = Inputs.form(
|
||||
{
|
||||
template: ({status, priority, domain, assignee}) => html`<div class="filter-bar">
|
||||
${status}${priority}${domain}
|
||||
<div class="filter-owner">${assignee}</div>
|
||||
<div class="filter-text-input">${assignee}</div>
|
||||
</div>`,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -232,7 +232,7 @@ const _filtersForm = Inputs.form(
|
||||
{
|
||||
template: ({domain, status, owner}) => html`<div class="filter-bar">
|
||||
${domain}${status}
|
||||
<div class="filter-owner">${owner}</div>
|
||||
<div class="filter-text-input">${owner}</div>
|
||||
</div>`,
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user