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.

fix(view): preserve default roadmap resolution [N26,A2]

Corey Olson896676e8d073
diff --git a/src/api.js b/src/api.js
index 2b5b8d16..e78924ff 100644
--- a/src/api.js
+++ b/src/api.js
@@ -91,7 +91,10 @@ function boardStateRevision(root, id, isMain, { projects = listApiProjects, scop
const inputs = localRevisionInputs(board, board.clock.now().toISOString());
const hasExternalMilestones = inputs.milestones.some((milestone) => milestone.items.some((item) => typeof item !== 'number'));
return { ...inputs, externalMilestones: hasExternalMilestones
- ? milestoneRoadmap(info.root, board, { projects, hideOutOfScope: scopeCommonDir !== null }) : null };
+ ? scopeCommonDir === null
+ ? milestoneRoadmap(info.root, board)
+ : milestoneRoadmap(info.root, board, { projects, hideOutOfScope: true })
+ : null };
}, isMain);
const inputs = {
identity: [info.commonDir, id],
@@ -405,7 +408,9 @@ function buildLocalBoardState(root, boardId, board, codeIsMain, { previous = nul
const projectData = {
requests: store.openRequests(board),
personRequests: personRequestStatuses(board),
- milestones: milestoneRoadmap(root, board, { projects, hideOutOfScope: scopeCommonDir !== null }),
+ milestones: scopeCommonDir === null
+ ? milestoneRoadmap(root, board)
+ : milestoneRoadmap(root, board, { projects, hideOutOfScope: true }),
rowDecisions: store.rowDecisions(board),
proofStats: proofStats(board),
};
diff --git a/test/help.test.js b/test/help.test.js
index c45da361..0fadb45f 100644
--- a/test/help.test.js
+++ b/test/help.test.js
@@ -80,7 +80,7 @@ test('help has no import path back to the CLI [N26]', () => {
test('view help names its fixed loopback port and explicit port 0 [N26]', async () => {
const { HELP } = await import('../src/help.js');
- assert.match(HELP.all, /pullboard view \[--port N\].*default http:\/\/127\.0\.0\.1:4890/u);
+ assert.match(HELP.all, /pullboard view \[--project\] \[--port N\].*default http:\/\/127\.0\.0\.1:4890/u);
assert.match(HELP.all, /--port 0 chooses a free port/u);
});