Skip to content

feat: signup profile fields via @profullstack/profile - #36

Merged
ralyodio merged 1 commit into
mainfrom
feat/profile-fields
Oct 26, 2026
Merged

ralyodio merged 1 commit into
mainfrom
feat/profile-fields

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Adopts the shared profile package (@profullstack/profile 0.1.3).

  • Create account form: first name, last name (required), company domain, job title, LinkedIn (optional), rendered by renderProfileFields and styled like the existing fields.
  • /api/auth/register validates them with validateProfile before creating the user (field errors come back as { error, code: "invalid_profile", errors }), then saveSignupProfile stores them; a failed save never fails signup.
  • Storage: the package's user_profiles table (key user_id text, the auth-system user id), created on boot alongside the other hdtilt tables; same pg pool.
  • GET/PUT/PATCH /api/v1/me/profile through createProfileHandlers; the signed-in account sheet edits the fields with PATCH.
  • Sign-in is unchanged. No backfill: the only existing profile data is a username handle, which is not a name.
  • Tests: signup stores the normalized fields, missing names are refused, the API needs a session and takes a PATCH.

🤖 Generated with Claude Code

Create account now asks for first and last name (required) plus company
domain, job title and LinkedIn (optional), validated with the shared
@profullstack/profile package before the account is created and saved to
its user_profiles table (keyed by the auth-system user id) afterwards.
GET/PUT/PATCH /api/v1/me/profile serves it, and the signed-in account sheet
lets people fill in or change what they skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​profullstack/​profile@​0.1.37610010091100

View full report

@ralyodio
ralyodio merged commit b961662 into main Oct 26, 2026
3 checks passed
@ralyodio
ralyodio deleted the feat/profile-fields branch October 26, 2026 10:51
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