Ship the app as a PWA at app.openpb.org

Open
#22 1 comment 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
django, openapi, typescript

Research direction

Start by reading plans/app-migration/plan.md and the linked backend ADR (#182) to understand the hosting and routing decisions. Then inspect the app entry points and available brand-assets, and identify how the backend exposes its OpenAPI document and allauth headless browser client. Done means the app installs on Android and iOS, sign-up and login work on staging, offline match submissions retry correctly, and pnpm build and pnpm check pass.

Written by the indexing model from the issue text.

Description

enhancement

Context: The MVP's only first-party client is an installable web app (a PWA) at app.openpb.org. Native apps come later. The decision and the domain layout are recorded in an ADR in openpickleball/backend (openpickleball/backend#182). openpb.org stays the public site from site/.

This changes the move in plans/app-migration/plan.md, which puts the app on openpb.org itself.

Tasks:

  • Update plans/app-migration/plan.md: the app goes to app.openpb.org, and openpb.org keeps the public site.
  • Choose the adapter. The API is reached same-origin through app.openpb.org/api/, /_allauth/, and /oauth/, routed to Django by App Platform, so the app can be a static build if it needs no server of its own. Record the choice in the plan's Decisions section.
  • Web app manifest, icons from brand-assets, and a service worker that caches the app shell.
  • Sign-up, login, email verification, and password reset through allauth's headless browser client (session cookie and CSRF). Email links from the backend open pages on app.openpb.org.
  • Offline match entry: queue submissions in IndexedDB and send them when the app opens or the device is back online (iOS has no Background Sync). A retry that gets a 409 duplicate naming the player's own match counts as sent.
  • Generate the API client from the backend's OpenAPI document.

Done when: the app installs from the browser on Android and iOS, a player can sign up and log in on staging, and pnpm build and pnpm check pass.

New to the project? Read the contributing guide and sign off your commits (git commit -s).

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 Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.