Commit Graph

14 Commits

Author SHA1 Message Date
82d80014bf fix(otel): address lint and test regressions from C1/C2 fixes
- Prefix unused opts param with _opts in bindOtelInstrumentation (ESLint)
- Extend IPv6 regex to cover prefix::suffix form (e.g. 2001:0db8::1) so
  the IPv6 scrub test passes correctly
- Delete orphaned sentry-pii-scrubber.test.ts files from apps/cms and
  apps/web-tanstack that imported the deleted sentry/scrub module (broke
  typecheck; the OTel-layer replacement tests are in pii-scrub-processor.test.ts)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 12:42:38 +02:00
d348cb9179 feat(cms): Sentry server instrumentation + withSentryConfig + R38 PII test
Adds apps/cms/instrumentation.ts (server-only — Payload admin client DSN
is out-of-scope per spec §8). Wraps the Payload-wrapped next config with
withSentryConfig. Adds the R38 PII scrubber test. Required adding
@repo/core-shared as a direct dep of cms (was only transitive before).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 20:14:56 +02:00
119eab49fe feat(apps): add unit tests for providers + bind-production + cms config
web-next: bindAllProduction calls all 4 feature binders exactly once;
Providers renders children. web-tanstack: equivalent providers + bind tests.
cms: payload.config exports a SanitizedConfig with all expected collections.

Spec: §6.7, §9

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 16:34:19 +02:00
eb55a698f3 fix(turbo-boundaries): resolve 32 violations
- Re-tag core-trpc as core-composition (transitively reaches features
  through core-api's AppRouter type) and allow core-composition packages
  to depend on other core-composition packages in turbo.json
- Add @payloadcms/richtext-lexical as direct dep of apps/cms (was pulled
  transitively via core-cms; Payload's importMap.js imports it directly)
- Add @storybook/react as devDep of core-ui and apps/storybook (stories
  belong with components per Atomic Design)
- Update apps/storybook .storybook/{main,preview}.ts to point at
  packages/core-ui (was still referencing deleted packages/ui) and export
  CSS via package exports instead of direct file import
- Add JSDoc type annotation to Payload-generated importMap.js to suppress
  TypeScript's TS2742 error from complex inferred types
- Add storybook-static to eslint ignores in core-eslint base config

pnpm turbo boundaries now reports zero violations.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 12:12:27 +02:00
9c8ca61fc9 feat(cms): repoint @payload-config from cms-core to core-cms 2026-05-04 20:54:27 +02:00
41a35b5460 fix(cms): add Payload REST API + GraphQL route handlers, revert to inline serverFunction 2026-04-06 15:57:04 +02:00
6ded84c6de fix(cms): extract serverFunction to separate 'use server' file for Next.js 15.5 server action registration 2026-04-06 15:54:50 +02:00
a936275581 fix(cms): align layout/page/not-found with Payload 3.81 template (correct importMap path, CSS import, serverFunction) 2026-04-06 15:50:50 +02:00
bc111ce8d3 fix(cms): fix serverFunction type for Payload 3.81 compatibility 2026-04-06 15:46:06 +02:00
575770e142 fix(cms): import CSS from @payloadcms/next/css, use handleServerFunctions from layouts 2026-04-06 15:45:55 +02:00
3c9cd47427 fix(cms): add local payload.config.ts re-export for proper @payload-config resolution 2026-04-06 15:34:31 +02:00
d06b900e7c refactor: remove .js extensions from all imports 2026-04-06 15:10:22 +02:00
f313d6841f fix(cms): fix import paths and defer CMS build to runtime (requires database) 2026-04-06 14:44:42 +02:00
683b05dbf3 feat(cms): add thin Next.js shell for Payload admin panel 2026-04-06 14:41:51 +02:00