Skip to content

feat(communities): allow local users to create new communities #274

@McPringle

Description

@McPringle

User Story

As a logged-in local user,
I want to create a new community,
so that I can build and manage a group for shared interests or activities.


Acceptance Criteria

  • Permissions

    • Only users with account type Local and role User can create new communities.
    • The new community creation page /communities/new can only be accessed by logged-in local users.
  • Navigation

    • The avatar menu is extended with a new menu item for creating a community.
    • Clicking the menu item redirects the user to /communities/new.
  • Community Creation Form

    • The form on /communities/new includes the following input fields:
      • Profile: required; must be unique within the instance; contains only the local part, without a server name.
      • Name: required and limited to a maximum of 255 characters.
      • Description: optional and may contain Markdown formatting.
    • Adding a community image is not part of this implementation and will be handled in a separate issue.
    • Submitting the form creates a new community.
  • Post-Creation Behavior

    • The user who created the community is automatically added as a member with the role Owner.
    • After creation, the user is redirected to the detail page of the new community.
  • Testing

    • Manual testing is performed successfully on both desktop and mobile devices.
    • Full automated test coverage is implemented for the added code.
    • All automated tests pass.

Metadata

Metadata

Assignees

Labels

hacktoberfestPossible issues for the Hacktoberfest

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions