Skip to content

feat(cms): environment-aware core sync and data snapshot status#631

Merged
tataihono merged 1 commit intomainfrom
core-sync-status-updates
Apr 1, 2026
Merged

feat(cms): environment-aware core sync and data snapshot status#631
tataihono merged 1 commit intomainfrom
core-sync-status-updates

Conversation

@tataihono
Copy link
Copy Markdown
Contributor

Summary

  • Block core sync and data snapshot trigger endpoints outside production (returns 403 with helpful guidance)
  • Enrich status endpoints with persistent data from core_sync_states table and S3 metadata so the admin UI shows last-run info even after server restarts
  • In dev, surface local data-import history (_data_imports table) showing when the last snapshot was downloaded
  • Update admin UI to hide trigger buttons in non-prod, show phase watermarks after restart, and display local import context

Test plan

  • Verify trigger endpoints return 403 in non-production (NODE_ENV !== "production")
  • Verify status endpoints return isProduction flag and persistent data after server restart
  • Verify local import status appears in dev when _data_imports table has data
  • Verify admin UI hides Sync Now / Create Snapshot buttons in dev
  • Verify admin UI shows "Development mode" alerts in non-prod
  • Verify TypeScript compiles cleanly (pnpm exec tsc --noEmit in apps/cms)

🤖 Generated with Claude Code

Block trigger endpoints outside production (403) so core sync and
snapshot creation only run on prod. Enrich status endpoints with
persistent data from core_sync_states table and S3 metadata so the
admin UI shows last-run info even after server restarts. In dev,
surface local data-import history from _data_imports table. Update
admin UI to hide trigger buttons in non-prod and display appropriate
context for each environment.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@railway-app
Copy link
Copy Markdown

railway-app bot commented Apr 1, 2026

🚅 Deployed to the forge-pr-631 environment in forge

Service Status Web Updated (UTC)
@forge/cms 🕒 Building (View Logs) Apr 1, 2026 at 11:34 pm
2 services not affected by this PR
  • @forge/web
  • @forge/manager

@railway-app railway-app bot temporarily deployed to forge / forge-pr-631 April 1, 2026 23:33 Destroyed
@tataihono tataihono merged commit 8026fc2 into main Apr 1, 2026
26 of 27 checks passed
@tataihono tataihono deleted the core-sync-status-updates branch April 1, 2026 23:36
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

🚀 Expo preview is ready!

  • Project → jesus-film-forge
  • Platforms → android, ios
  • Runtime Version → exposdk:54.0.0
  • More info

Learn more about 𝝠 Expo Github Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant