Skip to content

Self-service account management, public profiles, Google-only OAuth - #53

Merged
YonatanHen merged 6 commits into
masterfrom
staging
Aug 1, 2026
Merged

Self-service account management, public profiles, Google-only OAuth#53
YonatanHen merged 6 commits into
masterfrom
staging

Conversation

@YonatanHen

Copy link
Copy Markdown
Owner

Summary

  • Self-service account management (update profile, hide/show password toggle) and public user profiles
  • CI typecheck fixes in test helpers
  • Removed Facebook sign-in, Google is now the only OAuth provider

Included PRs

Test plan

YonatanHen and others added 6 commits July 31, 2026 17:54
Extends the already-shipped PATCH/DELETE /api/v1/users/:id API with
username and email editing, current-password verification before a
password change, OAuth accounts setting an initial password, and
cascade-deleting a user's posts/comments/likes on account deletion.
Deletion requires re-entering the password (or, for OAuth-only
accounts, typing the username) as confirmation.

Adds the client side that never existed for this API: /account
(self, editable) and /users/:id (anyone, read-only), reached by
making every username byline in the app clickable.
Password fields (login, signup, account update/delete) were plain
text inputs showing the value in the clear, and AutoForm rendered
labels as raw camelCase schema keys (e.g. "currentPassword"). Adds a
shared PasswordInput with a show/hide toggle used everywhere a
password is entered, and humanizes AutoForm's field labels.
ChatRoom.test.tsx's render wrapper was typed as typeof rtlRender,
whose generic overloads don't survive a plain arrow-function
assignment. Typed it explicitly against ReactElement/RenderOptions
instead. The cascade-delete test's postService.create calls were
missing tags, required by CreatePost's inferred (post-default) type
even though the schema defaults it at parse time.
Facebook was scaffolded but never wired up in production (Facebook's
HTTPS redirect requirement made it poor value for a demo), and the
team has decided not to build it out. Strips the passport-facebook
strategy, the facebookId model field, provider-config plumbing
(env vars, compose, .env.example), and every code/doc/test reference,
while keeping Google OAuth and its account-linking security behavior
unchanged. package-lock.json regenerated via npm install after
dropping passport-facebook / @types/passport-facebook.
Self-service account management and public profiles
Remove Facebook OAuth, keep Google-only
@YonatanHen
YonatanHen merged commit 423d0de into master Aug 1, 2026
5 of 6 checks passed
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.

1 participant