Skip to content

Validate distinct Projects and Ecosystem navigation - #18

Merged
zcohen-nerd merged 1 commit into
mainfrom
portfolio-step-2-ecosystem-validation
Jul 23, 2026
Merged

Validate distinct Projects and Ecosystem navigation#18
zcohen-nerd merged 1 commit into
mainfrom
portfolio-step-2-ecosystem-validation

Conversation

@zcohen-nerd

Copy link
Copy Markdown
Owner

Structural validator checks: internal Projects link targets /projects/, shared disclosure trigger labeled Ecosystem (old Projects trigger rejected), 8 registry links server-rendered, and the Fusion System Blocks page keeps Public Beta. Step 1 Mermaid assertions unchanged.

Structural validator checks: internal Projects link targets /projects/,
shared disclosure trigger labeled Ecosystem (old Projects trigger
rejected), 8 registry links server-rendered, and the Fusion System
Blocks page keeps Public Beta. Step 1 Mermaid assertions unchanged.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 23, 2026 12:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Step 2 validation coverage to ensure the portfolio’s navigation distinguishes the internal Projects page from the shared Ecosystem disclosure, and documents the expected validation outcomes for this step.

Changes:

  • Introduces new structural checks in scripts/validate-build.js for /projects/ link targeting, Ecosystem trigger labeling, and minimum server-rendered disclosure links.
  • Adds a regression check that /projects/fusion-system-blocks/ continues to display “Public Beta”.
  • Documents Step 2 validation expectations and results in a new markdown note.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
STEP_2_PORTFOLIO_ECOSYSTEM_VALIDATION.md Documents Step 2 navigation/validator expectations and observed outcomes.
scripts/validate-build.js Extends post-build validator with Step 2 navigation and Fusion page assertions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/validate-build.js
Comment on lines 141 to +144
const discStart = indexHtml.indexOf('id="zc-project-disclosure"');
const discEnd = indexHtml.indexOf('id="zc-mobile-drawer"');
const discBody = discStart !== -1 && discEnd > discStart ? indexHtml.slice(discStart, discEnd) : '';
check('disclosure links server-rendered', (discBody.match(/href="/g) || []).length >= 3);
check('disclosure links server-rendered', (discBody.match(/href="/g) || []).length >= 8, `found ${(discBody.match(/href="/g) || []).length}`);
Comment thread scripts/validate-build.js
Comment on lines +151 to +154
const ecoTriggerMatch = indexHtml.match(/<button[^>]*aria-controls="zc-project-disclosure"[^>]*>([\s\S]*?)<\/button>/);
const ecoTriggerText = (ecoTriggerMatch?.[1] || '').replace(/<[^>]+>/g, '').trim();
check('ecosystem disclosure trigger labeled Ecosystem', ecoTriggerText.startsWith('Ecosystem'), `got "${ecoTriggerText}"`);
check('old shared Projects trigger absent', !ecoTriggerText.startsWith('Projects'));
Comment thread scripts/validate-build.js
Comment on lines +157 to +158
const fsbPage = fs.readFileSync(path.join(build, 'projects', 'fusion-system-blocks', 'index.html'), 'utf8');
check('Fusion System Blocks page shows Public Beta', fsbPage.includes('Public Beta'));
@zcohen-nerd
zcohen-nerd merged commit 7a21af8 into main Jul 23, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants