Skip to content

Add admin-editable registration info to barrio signup page#216

Open
peterdrier wants to merge 2 commits intomainfrom
sprint/2026-04-10/batch-6
Open

Add admin-editable registration info to barrio signup page#216
peterdrier wants to merge 2 commits intomainfrom
sprint/2026-04-10/batch-6

Conversation

@peterdrier
Copy link
Copy Markdown
Owner

Summary

  • Add RegistrationInfo markdown field to CityPlanningSettings with EF migration
  • Add textarea on Barrio Admin page (/Barrios/Admin) to edit the registration info content
  • Render the markdown content as an info card at the top of /Barrios/Register when non-empty

Issues

Test plan

  • Navigate to /Barrios/Admin and verify the "Registration Info" textarea is visible
  • Enter markdown content (paragraphs, lists, links, bold, italic) and save
  • Navigate to /Barrios/Register and verify the info card appears above the form with rendered markdown
  • Clear the registration info field and save; verify no info card appears on the register page
  • Verify only CampAdmin/Admin roles can access the edit functionality

🤖 Generated with Claude Code

peterdrier and others added 2 commits April 10, 2026 16:34
…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>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +103 to +104
var cityPlanningSettings = await _cityPlanningService.GetSettingsAsync();
ViewData["RegistrationInfo"] = cityPlanningSettings.RegistrationInfo;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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.

Explain Barrio requirements when signing up

1 participant