Commit Graph

88 Commits

Author SHA1 Message Date
161c858f32 feat(blog): scaffold empty package with feature tag + path aliases 2026-05-04 22:09:58 +02:00
74cb9bd29a docs(plan): add Plan 2 (Blog feature canonical migration)
17 tasks migrating the existing content/articles domain into a new
@repo/blog package with full canonical layer shape. Per-feature
InversifyJS container, payload-articles repository using getPayload +
core-cms config, simplified schema (author as text, no featuredImage)
with TODOs to restore in Plan 3 when auth + media features are migrated.
Wires blog/cms into core-cms and blog/api into core-api.

Plan 2 of 6 — total revised from original 4 during execution to keep
each plan digestible (Plan 1 in-flight numbering preserved).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 22:07:00 +02:00
76dbe71a75 feat(core-cms): generate initial (empty) Payload types
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 21:56:44 +02:00
dd4edce61d fix(typescript-config): expose nextjs.json + react-library.json in exports map
The prior commit added an exports map that only listed base.json and
vitest.base, accidentally hiding nextjs.json and react-library.json
from packages that extend them via tsconfig.json. Adds them back.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 20:55:34 +02:00
9c8ca61fc9 feat(cms): repoint @payload-config from cms-core to core-cms 2026-05-04 20:54:27 +02:00
0be9e4beb4 feat(core-cms): add stub payload.config (empty collections/globals) 2026-05-04 20:53:48 +02:00
614b0178a0 feat(core-shared): wire root index.ts barrel 2026-05-04 20:45:09 +02:00
884b0c01e8 fix(core-shared): narrow Payload Field union before accessing name in tests
Payload's Field type is a discriminated union; field.name only exists on
named variants. Tests now narrow on type (and 'name' in field for groups)
before reading variant-specific properties.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 20:43:23 +02:00
428346a36d feat(core-shared): add tRPC context factory 2026-05-04 20:40:52 +02:00
cd2f3b1fff feat(core-shared): add tRPC init with superjson 2026-05-04 20:40:42 +02:00
a9a8d32726 feat(core-shared): add payload barrel export 2026-05-04 20:39:54 +02:00
520a792b7f feat(core-shared): add toIsoString helper 2026-05-04 20:37:26 +02:00
3ffe752c7a feat(core-shared): add requireEnv helper 2026-05-04 20:37:12 +02:00
2b2de66b5d feat(core-shared): add slugifyIfMissing hook 2026-05-04 20:37:00 +02:00
124ccabc5f feat(core-shared): add setPublishedAt hook 2026-05-04 20:36:45 +02:00
6bd428214f feat(core-shared): add cta block 2026-05-04 20:36:30 +02:00
2d838b2dcf feat(core-shared): add seoFields group 2026-05-04 20:36:17 +02:00
f2f8e2b3b3 feat(core-shared): add slugField helper 2026-05-04 20:35:59 +02:00
5942317222 feat(core-shared): add isAdmin access helper 2026-05-04 20:35:36 +02:00
9a2158211b test(core-shared): wire shared vitest base 2026-05-04 20:34:08 +02:00
afc76754f8 build(typescript-config): add shared vitest base config 2026-05-04 20:33:34 +02:00
7c9bf5c546 build: update lockfile for new core-* packages
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 20:32:53 +02:00
76ba941252 feat(core-ui): scaffold empty package (contents migrated in Plan 3) 2026-05-04 20:30:57 +02:00
a5fa1ff32b feat(core-trpc): scaffold empty package (client + providers in Plan 3) 2026-05-04 20:30:46 +02:00
f55823fc6e feat(core-api): scaffold empty appRouter aggregator 2026-05-04 20:30:28 +02:00
cd1aa861a2 feat(core-cms): scaffold empty package with exports + tags 2026-05-04 20:30:12 +02:00
b4a9994dc2 feat(core-shared): scaffold empty package with exports + tags 2026-05-04 20:29:57 +02:00
fd2a6f1286 build: add root tsconfig.base.json with core-* path aliases 2026-05-04 20:27:38 +02:00
1be830dab1 fix(ui): add vitest dep + --passWithNoTests so test script doesn't fail
The test script referenced vitest without declaring the devDep, and vitest
exits non-zero when no test files match. Adds the missing dep and the flag
to keep CI green for empty test suites.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 20:26:05 +02:00
da01b88017 chore: ignore .worktrees/ for local git worktree workspaces
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 20:20:44 +02:00
5e041e4906 docs(plan): add Plan 1 (Foundation) for vertical refactor
Implementation plan for spec phases 1-3: scaffold five core-* packages,
populate core-shared with Payload primitives + tRPC plumbing, and lift
the Payload config into a stub core-cms with apps/cms repointed at it.
First of four plans in the vertical-refactor sequence.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 20:15:07 +02:00
1436650fa6 docs(spec): add vertical feature monorepo refactor design
Captures the approved architectural pivot from horizontal Clean
Architecture packages to vertical feature packages with core-* foundation
packages, per the source spec (v1 + addenda v3/v4/v5) and 12 brainstorming
decisions (big-bang migration, per-feature InversifyJS containers,
integrations/ folder rename, controllers retained, etc.).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 20:04:45 +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
ddd1a546f7 fix(cms): add sass dependency for Payload admin panel styles 2026-04-06 15:40:09 +02:00
677a45b52f fix: use port 5433 for Docker PostgreSQL to avoid conflicts with local instance 2026-04-06 15:37:49 +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
0bc3b02f70 docs: extend all 18 AGENTS.md files with comprehensive context, code examples, and recipes 2026-04-06 15:31:03 +02:00
d06b900e7c refactor: remove .js extensions from all imports 2026-04-06 15:10:22 +02:00
a22c9bdaed feat: add docs/ folder (architecture, guides, ADRs) 2026-04-06 15:05:35 +02:00
2c110b33e9 feat: add AGENTS.md for all packages and apps (9 files) 2026-04-06 15:04:15 +02:00
95a46fe7f4 feat(core): add 8 AGENTS.md files (package, layer, domain levels) 2026-04-06 15:03:09 +02:00
eb195c8261 feat: add root documentation (CLAUDE.md, AGENTS.md, .mcp.json) 2026-04-06 15:02:01 +02:00
f7c2ac6ffb chore: finalize Plan 5 — defer Storybook build to dev mode 2026-04-06 14:58:46 +02:00
cca8f99133 feat(storybook): add Storybook 8 with Tailwind v4 pulling stories from @repo/ui 2026-04-06 14:57:37 +02:00
1a10dccc8d feat(ui): add Button, Input, Label atoms and FormField molecule with stories 2026-04-06 14:57:08 +02:00
ec08eb1d74 feat(ui): set up Atomic Design structure with Tailwind v4 2026-04-06 14:56:16 +02:00