Skip to content

Move CoPlan administration into the engine - #226

Merged
HamptonMakes merged 1 commit into
mainfrom
hampton-engine-admin
Sep 25, 2026
Merged

HamptonMakes merged 1 commit into
mainfrom
hampton-engine-admin

Conversation

@HamptonMakes

Copy link
Copy Markdown
Collaborator

What changed and why

CoPlan admin pages lived in the demo host, so other hosts could not use them. Move shared ActiveAdmin registrations into the engine and mount them at /_/admin. Hosts can add their own app/admin pages in the same navigation.

The dashboard now shows notification intent and delivery outcomes for the last 7 days, recent failures, and a count of distinct Slack messages. One grouped Slack post counts once even when it covers several notifications. Admin access uses the host's CoPlan::Authentication user and its admin? role.

Evidence

Dark theme:

CoPlan admin dashboard in dark theme

Light theme:

CoPlan admin dashboard in light theme

Testing

  • Added a JavaScript-enabled system spec for menu navigation to the dashboard and delivery history.
  • Added request specs for authorization, resources, menu visibility, and grouped Slack counts.
  • Ran bundle exec rspec (2259 examples, 0 failures) before the final browser spec; ran bundle exec rspec spec/system/admin_spec.rb (1 example, 0 failures) after it.
  • Opened the dashboard in light and dark themes in Chrome.
  • Attached screenshots of both themes.

The companion Square host change is required to use this engine revision in production.

Generated with Codex

@HamptonMakes
HamptonMakes marked this pull request as ready for review September 25, 2026 14:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T14:14:25.516603Z e336aa8 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@HamptonMakes
HamptonMakes merged commit d10107e into main Sep 25, 2026
6 checks passed
@HamptonMakes
HamptonMakes deleted the hampton-engine-admin branch September 25, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant