Index workplan flavor and omit residuals from default views.
STATE-WP-0092: persist flavor from files, treat depends_on as the C-20 canonical edge, exclude flavor=residual from summary/next_steps/deps unless include_residuals is set. Live primary still needs the alembic revision applied. Assistant: grok Assistant-Session: 01a09dc1-b21e-77e1-919e-fcad2f82b267
This commit is contained in:
parent
ea11451e9c
commit
ddc3338541
18 changed files with 852 additions and 25 deletions
|
|
@ -234,11 +234,13 @@ const _filtersForm = Inputs.form(
|
|||
domain: MultiSelect(DOMAINS, {label: "Domain", placeholder: "All domains"}),
|
||||
status: MultiSelect(STATUSES, {label: "Status", placeholder: "All statuses"}),
|
||||
owner: Inputs.text({placeholder: "Owner…", style: "width:120px"}),
|
||||
include_residuals: Inputs.toggle({label: "Include residuals", value: false}),
|
||||
},
|
||||
{
|
||||
template: ({domain, status, owner}) => html`<div class="filter-bar">
|
||||
template: ({domain, status, owner, include_residuals}) => html`<div class="filter-bar">
|
||||
${domain}${status}
|
||||
<div class="filter-text-input">${owner}</div>
|
||||
${include_residuals}
|
||||
</div>`,
|
||||
}
|
||||
);
|
||||
|
|
@ -253,7 +255,8 @@ const filters = Generators.input(_filtersForm);
|
|||
const filtered = data.filter(w =>
|
||||
(filters.domain.length === 0 || filters.domain.includes(w.domain)) &&
|
||||
(filters.status.length === 0 || filters.status.includes(w.status)) &&
|
||||
(!filters.owner || (w.owner ?? "").toLowerCase().includes(filters.owner.toLowerCase()))
|
||||
(!filters.owner || (w.owner ?? "").toLowerCase().includes(filters.owner.toLowerCase())) &&
|
||||
(filters.include_residuals || w.flavor !== "residual")
|
||||
);
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue