Add admin-editable registration info to barrio signup page#216
Add admin-editable registration info to barrio signup page#216peterdrier wants to merge 2 commits intomainfrom
Conversation
…ns, and resources Closes nobodies-collective#464 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a RegistrationInfo markdown field to CityPlanningSettings that admins can edit from the Barrio Admin page. When non-empty, the content renders as an info card at the top of /Barrios/Register, above the registration form. Uses the shared SanitizedMarkdown helper for safe rendering. Closes nobodies-collective#464 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 12a2ce5d16
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| var cityPlanningSettings = await _cityPlanningService.GetSettingsAsync(); | ||
| ViewData["RegistrationInfo"] = cityPlanningSettings.RegistrationInfo; |
There was a problem hiding this comment.
Load registration info for the active registration year
This reads registration info from CityPlanningService.GetSettingsAsync(), which is keyed to CampSettings.PublicYear, but camp registration itself targets the highest open season year (OpenSeasons.OrderByDescending(...).FirstOrDefault()). Because opening a season and changing PublicYear are separate admin actions, a common transition state (next season open while public year is still old) will show/edit the wrong year's registration info on /Barrios/Register, leading to stale or missing instructions for registrants.
Useful? React with 👍 / 👎.
Summary
RegistrationInfomarkdown field toCityPlanningSettingswith EF migration/Barrios/Admin) to edit the registration info content/Barrios/Registerwhen non-emptyIssues
Test plan
/Barrios/Adminand verify the "Registration Info" textarea is visible/Barrios/Registerand verify the info card appears above the form with rendered markdown🤖 Generated with Claude Code