mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-01 11:21:53 +03:00
[PR #1288] feat: allow first name and display name to be optional #1111
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/1288
Author: @taoso
Created: 1/31/2026
Status: 🔄 Open
Base:
main← Head:optional-names📝 Commits (3)
791a616Make First/Last/Display Names Optionale0836b8fix frontend checkb34618cfix go test📊 Changes
8 files changed (+57 additions, -27 deletions)
View changed files
📝
backend/internal/dto/signup_dto.go(+1 -1)📝
backend/internal/dto/user_dto.go(+3 -3)📝
backend/internal/dto/user_dto_test.go(+12 -2)📝
backend/internal/model/user.go(+11 -2)📝
frontend/src/lib/components/signup/signup-form.svelte(+4 -4)📝
frontend/src/lib/utils/form-util.ts(+11 -0)📝
frontend/src/routes/settings/account/account-form.svelte(+5 -5)📝
frontend/src/routes/settings/admin/users/user-form.svelte(+10 -10)📄 Description
In some simple scenario, it seems too cumbersome to require the First/Last/Display names.
So I propose to make all these fields optional.
BTW:
Please give advice on when to use theemptyToUndefined()Make this fields optional is a little hard for me. Instead, I just let them accept empty string.
Thanks.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.