ReviewOS

also looking at this

stacks/reportshq

Expand BunPress guide and pre-E2E quality gates

#35
Merged glennmichael123 wants to merge docs/bunpress-product-guide into main
40 files +1524 -373

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

tests/feature/reports-surface.test.tsmodified+1-1
Changes to tests/feature/reports-surface.test.ts
@@ -84,7 +84,7 @@ describe('the reports surface', () => {
8484 for (const page of ['resources/views/reports/index.stx', 'resources/views/reports/[slug].stx']) {
8585 const source = readFileSync(join(root, page), 'utf8')
8686
87 expect(source).toContain('sessionFrom(cookies)')
87 expect(source).toContain("sessionFrom(typeof cookies !== 'undefined' ? cookies : undefined)")
8888 expect(source).toContain(` /var/www/reviewos-reviewos/releases/3e057f9/resources/views/layouts/app.stx:3931:6427: include error: Error loading include file AuthGuard: ENOENT: no such file or directory, open '/var/www/reviewos-reviewos/releases/3e057f9/resources/views/partials/AuthGuard.stx' ╭──────────────────────────────────────────────────────────────╮ │  ERROR  Include Error │ ╰──────────────────────────────────────────────────────────────╯ File: app.stx (line 3931, col 6427) Message: Error loading include file AuthGuard: ENOENT: no such file or directory, open '/var/www/reviewos-reviewos/releases/3e057f9/resources/views/partials/AuthGuard.stx' Context:  3929: 3930: > 3931:
tests/feature/reports-surface.test.tsmodified+1-1
Changes to tests/feature/reports-surface.test.ts
@@ -84,7 +84,7 @@ describe('the reports surface', () => {
8484 for (const page of ['resources/views/reports/index.stx', 'resources/views/reports/[slug].stx']) {
8585 const source = readFileSync(join(root, page), 'utf8')
8686
87 expect(source).toContain('sessionFrom(cookies)')
87 expect(source).toContain("sessionFrom(typeof cookies !== 'undefined' ? cookies : undefined)")
8888 expect(source).toContain(` /var/www/reviewos-reviewos/releases/3e057f9/resources/views/layouts/app.stx:4142:17: include error: Error loading include file AuthGuard: ENOENT: no such file or directory, open '/var/www/reviewos-reviewos/releases/3e057f9/resources/views/partials/AuthGuard.stx' ╭──────────────────────────────────────────────────────────────╮ │  ERROR  Include Error │ ╰──────────────────────────────────────────────────────────────╯ File: app.stx (line 4142, col 17) Message: Error loading include file AuthGuard: ENOENT: no such file or directory, open '/var/www/reviewos-reviewos/releases/3e057f9/resources/views/partials/AuthGuard.stx' Context:  4140: 4141: +16 > 4142: -8 4143: 4144:  `)
8989 expect(source).toContain('auth-required')
9090 // And the data is fetched only for an identified visitor.
3932: 3933:  `
)
8989 expect(source).toContain('auth-required')
9090 // And the data is fetched only for an identified visitor.
@endif