Let organizers list, create, edit and delete their Events

Open
#217 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Read #213 and the frontend app shell to understand the existing organizer flow, then inspect the API client and mock handlers for the listed organizer event endpoints. The issue says this work is blocked until the backend exposes organizer memberships and organizer codes; open that backend issue first. Done means organizer pages support listing, creating, editing and deleting Events with the specified responses, plus mock handlers and tests.

Written by the indexing model from the issue text.

Description

enhancement

Why
Verified organizers can now manage their Events through the API (backend#125, backend#163). The app has no organizer pages, so an organizer has to ask someone with Django admin access to set up an Event before they can upload results (#218) or settle disputes (#219).

What

  • An organizer area in the app shell, shown only to accounts that belong to an organizer.
  • List Events from GET /api/v1/organizer/events (list_organizer_events): every Event of every organizer the account belongs to, verified or not, newest start date first.
  • Create an Event with POST /api/v1/organizer/events (create_organizer_event): name, kind (tournament, league or rec_verified, in plain words), organizer, optional club, start and end dates. Only a verified organizer may create one: show the 403 plainly. A club that hasn't granted the organizer access gets a 422 on club.
  • Edit with PATCH /api/v1/organizer/events/{code} (update_organizer_event). The kind can change at any time and applies only to matches recorded after it. Name and dates change only while no match names the Event, so explain the 409.
  • Delete with DELETE /api/v1/organizer/events/{code} (delete_organizer_event). A 409 means a match or an upload names it.
  • Mock handlers with made-up organizers and Events, and tests.

Blocked on the backend

  • The app can't tell whether an account belongs to an organizer. GET /api/v1/accounts/me returns only the email, and list_organizer_events is empty both for a non-member and for a member with no Events yet.
  • EventCreateIn needs the organizer's code, and an organizer with no Events has no way to learn it in the app.
  • Both need a backend change, such as the account's organizer memberships (code, name, verified, role) on accounts/me or a GET /api/v1/organizer/organizers operation. Open a backend issue before starting this one.

Depends on

  • #213

Context

  • backend#125, backend#163 (ADR 0035: the match type is stored on each match), backend#227 (ADR 0021: only verified organizers are trusted submitters).
  • Rule 6 in AGENTS.md: the backend enforces who may do what. The app only hides controls.
Dominant language
HTML
Stars
0
Forks
1
Avg merge
42m
Merged PRs (30d)
108

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openpickleball/frontend

All issues in openpickleball/frontend

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.