feat: split site config core and custom #86
No reviewers
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-86cba98c-site-config-core-custom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary\n- Change site config API responses to return data.core and data.custom.\n- Add SQLite persistence for JSON-compatible custom site config.\n- Update PATCH /site-config to accept core and/or custom updates while preserving core validation.\n- Update OpenAPI, docs, API tests, config tests, migration tests, and CLI handling for the new shape.\n\n## Verification\n- npm exec --workspace @slugkit/template-site -- vitest run --config ../../vitest.config.ts src/api/tests/site-config.test.ts src/config/tests/site-config.test.ts src/api/tests/routes.test.ts src/db/tests/migrations.test.ts\n- npm exec --workspace @slugkit/cli -- vitest run --config ../vitest.config.ts src/tests/commands.test.ts\n- npm run typecheck\n- npm test\n- npm run lint\n- ./scripts/pre-pr.sh\n\nTask: #task-86cba98c
PR Review
Summary
Reviewed PR #86 for task
task-86cba98c. The changes split the site config API intodata.coreanddata.custom, persist JSON-compatible custom config in SQLite, update PATCH handling forcoreand/orcustom, preserve core validation, update OpenAPI/docs, and update API/config/CLI/migration tests.Acceptance criteria
GET /api/v1/site-configreturns{ data: { core: ..., custom: ... } }.data.core.PATCH /api/v1/site-configcan updatecorefields.PATCH /api/v1/site-configcan updatecustomkey/value data.corefields still return validation errors.core + customschema.Blocking issues
None.
Warnings
None.
Verification reviewed
npm run typecheckpassed.npm testpassed.npm run lintpassed../scripts/pre-pr.shpassed.successfor commit8672148c7ca66b48690a90a296bc8c7b867a9e87.Verdict
Approved. Ready for human merge approval.
PR Review Worker Result