Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

chore(view): integrate toolbar and addresses [N38,N26]

Corey Olson524a54b10c17
diff --cc src/cockpit.js
index ce0a5376,e365c026..2ef1a7ed
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@@ -184,7 -187,7 +187,7 @@@ function homeTab()
const kept = keep('pb.tab');
return kept && kept !== 'roadmap' ? kept : 'items';
}
- const view = { roadmapOpen: new Map(), root: keep('pb.project'), tab: addressTab() || homeTab(), itemsView: typeof location !== 'undefined' && location.hash === '#items/pipeline' ? 'pipeline' : 'list', seen: {}, code: {}, item: null, adding: false, declining: null, state: 'active', rows: { spec: 'decide', doctrine: 'all' }, row: { spec: null, doctrine: null }, agent: null, allAgents: false, agentsHidden: keep('pb.agents') === 'hidden', statsOpen: false, open: {}, addressDetail: null, shout: null, scrollPlace: false };
-const view = { roadmapOpen: new Map(), root: keep('pb.project'), tab: addressTab() || homeTab(), itemsView: typeof location !== 'undefined' && location.hash === '#items/pipeline' ? 'pipeline' : 'list', filterOpen: false, seen: {}, code: {}, item: null, adding: false, declining: null, state: 'active', rows: { spec: 'decide', doctrine: 'all' }, row: { spec: null, doctrine: null }, agent: null, allAgents: false, agentsHidden: keep('pb.agents') === 'hidden', statsOpen: false, open: {} };
++const view = { roadmapOpen: new Map(), root: keep('pb.project'), tab: addressTab() || homeTab(), itemsView: typeof location !== 'undefined' && location.hash === '#items/pipeline' ? 'pipeline' : 'list', filterOpen: false, seen: {}, code: {}, item: null, adding: false, declining: null, state: 'active', rows: { spec: 'decide', doctrine: 'all' }, row: { spec: null, doctrine: null }, agent: null, allAgents: false, agentsHidden: keep('pb.agents') === 'hidden', statsOpen: false, open: {}, addressDetail: null, shout: null, scrollPlace: false };
let switchGeneration = 0;
if (snapshot) view.state = 'all';
let data = null;
@@@ -2352,7 -2255,8 +2365,8 @@@ $('shouts-pane').addEventListener('clic
// Enter shouts; Shift+Enter starts a new line.
$('shout-text').addEventListener('keydown', (event) => { if (event.key === 'Enter' && !event.shiftKey && !event.isComposing) { event.preventDefault(); $('shout-form').requestSubmit(); } });
document.addEventListener('click', (event) => {
- const t = event.target.closest('[data-status],[data-shout-id],[data-roadmap-key],[data-roadmap-all],[data-root],[data-tab],[data-go],[data-item],[data-items-view],[data-state],[data-rows],[data-row],[data-row-decision],[data-section-approve],[data-release],[data-shout],[data-new],[data-code],[data-code-all],[data-code-less],[data-stats-toggle],#proj-switch,#console');
+ if (view.filterOpen && !event.target.closest('.filter-control')) { view.filterOpen = false; render(); }
- const t = event.target.closest('[data-filter-toggle],[data-filter-choice],[data-status],[data-roadmap-key],[data-roadmap-all],[data-root],[data-tab],[data-go],[data-item],[data-items-view],[data-state],[data-rows],[data-row],[data-row-decision],[data-section-approve],[data-release],[data-shout],[data-new],[data-code],[data-code-all],[data-code-less],[data-stats-toggle],#proj-switch,#console');
++ const t = event.target.closest('[data-filter-toggle],[data-filter-choice],[data-status],[data-shout-id],[data-roadmap-key],[data-roadmap-all],[data-root],[data-tab],[data-go],[data-item],[data-items-view],[data-state],[data-rows],[data-row],[data-row-decision],[data-section-approve],[data-release],[data-shout],[data-new],[data-code],[data-code-all],[data-code-less],[data-stats-toggle],#proj-switch,#console');
if (!event.target.closest('.side')) fold(false);
if (!t) return;
if (t.id === 'proj-switch') { fold(!$('side').classList.contains('open')); return; }
@@@ -2364,7 -2268,16 +2378,16 @@@
return;
}
if (t.dataset.status) { statusGo(t.dataset.status); return; }
+ if (t.dataset.filterToggle !== undefined) { view.filterOpen = !view.filterOpen; render(); return; }
+ if (t.dataset.filterChoice) {
+ if (t.dataset.filterKind === 'state') view.state = t.dataset.filterValue;
+ else view.lane = t.dataset.filterValue || null;
+ view.filterOpen = false;
+ render();
+ $('filter-toggle').focus({ preventScroll: true });
+ return;
+ }
- if (t.dataset.itemsView) { view.itemsView = t.dataset.itemsView; address(); render(); return; }
+ if (t.dataset.itemsView) { view.itemsView = t.dataset.itemsView; view.addressDetail = null; address(); render(); return; }
if ('roadmapKey' in t.dataset) {
const key = t.dataset.roadmapKey;
view.roadmapOpen.set(JSON.stringify([view.root, key]), t.getAttribute('aria-expanded') !== 'true');