feat(portal): add service drawers and employee portal preview

This commit is contained in:
DeCentN2Madness committed 2026-10-30 00:03:21 -07:00
1 parent ff80ee516f
commit e97f0ea9b4
39 files changed
+1446 -130

No files matched your search

+11
View File
@@ -129,3 +129,14 @@ test('artifact digest is deterministic for unchanged files', async () => {
assert.equal(first.artifactSha256, second.artifactSha256);
assert.equal(first.artifactFiles, second.artifactFiles);
});
test('release verification rejects private portal resources and encrypted payloads', async () => {
const root = await fixture('staging');
await fs.mkdir(path.join(root, 'private/employee-portal'), { recursive: true });
await fs.writeFile(path.join(root, 'private/employee-portal/manifest.json'), '{}');
await fs.appendFile(path.join(root, 'index.html'), '<script type="application/json" data-portal-payload>{"streams":[]}</script>');
const result = await verifyArtifact(root, 'staging');
assert.equal(result.passed, false);
assert.ok(result.errors.some((error) => error.includes('private portal ciphertext')));
assert.ok(result.errors.some((error) => error.includes('private/legacy')));
});