Skip to content

Add region management via frontend#1282

Open
maltehuebner wants to merge 3 commits intomainfrom
feature/region-management
Open

Add region management via frontend#1282
maltehuebner wants to merge 3 commits intomainfrom
feature/region-management

Conversation

@maltehuebner
Copy link
Copy Markdown
Contributor

Summary

  • Add RegionManagementController with add/edit actions for creating and editing regions via the frontend
  • Add RegionType form with name, slug, and description fields
  • Add edit template with breadcrumb navigation for region management
  • Add "Region hinzufügen" (levels 0-2) and "Region bearbeiten" (levels 1-3) buttons to the region index page for logged-in users

Closes #923

Test plan

  • Navigate to /world/europe and verify "Region hinzufügen" button appears for logged-in users
  • Click "Region hinzufügen", fill in name and slug (e.g. "Portugal" / "portugal"), save — verify redirect to new region
  • Navigate to the new region, click "Region hinzufügen" to add a sub-region (e.g. "Lisboa" / "lisboa")
  • Click "Region bearbeiten" on an existing region, change name, save — verify changes persisted
  • Verify "Stadt hinzufügen" button still appears on level-3 regions
  • Verify buttons are hidden for anonymous users
  • Run vendor/bin/phpstan analyse to ensure static analysis passes

🤖 Generated with Claude Code

maltehuebner and others added 3 commits February 26, 2026 19:54
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Enables users to create and edit regions via the frontend.
Routes support all hierarchy levels (/world, /world/{slug1}, etc.).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds 'Region hinzufügen' (levels 0-2) and 'Region bearbeiten'
(levels 1-3) buttons for logged-in users.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Unable to add new cities

1 participant