Skip to content

feat: add profiles and space lifecycle - #10

Merged
Filionus merged 2 commits into
mainfrom
feat/b4-profiles-lifecycle
Nov 28, 2026
Merged

Filionus merged 2 commits into
mainfrom
feat/b4-profiles-lifecycle

Conversation

@ChargingCrystal

Copy link
Copy Markdown
Owner

B4 / P5

  • Add owner-editable profiles with current-partner visibility and nullable display names on the space response.
  • Add leave-space, invite regeneration, and delete-own-location routes. Shared data stays with the remaining partner, who can re-invite someone regardless of their slot. A stale invite for an empty space cannot be redeemed.
  • Document the approved operator-managed account deletion workflow. Handle Storage ownership before deleting the Auth account. The database cascades remove the profile, membership, and location. No admin credential or Auth deletion endpoint is added to Nitro.

Frontend impact

Read nullable members[].display_name from GET /api/space and use a translated fallback when it is null. GET /api/profile returns the caller's name. PUT /api/profile with {"display_name":"Alex"} returns {"display_name":"Alex"}. A sole member can POST /api/space/invite to receive a replacement code. DELETE /api/space/membership and DELETE /api/location each return 204 and can be repeated. Determine invite eligibility from the member count and refresh relevant state after these actions. Direct account-deletion requests to the operator.

Apply migration 004 before serving this API version.

Verification

@Filionus
Filionus marked this pull request as ready for review November 28, 2026 11:35
@Filionus
Filionus merged commit 67cb650 into main Nov 28, 2026
1 check failed
@Filionus
Filionus deleted the feat/b4-profiles-lifecycle branch November 28, 2026 11:35
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.

2 participants