mirror of
1
Fork 0
forgejo/routers/web/user/setting
mhughes9 2024031a7a Simplify pronouns in user settings (#6835)
The main change here is to use `datalist` for pronouns This supports
(see also docs[1]):

* Displaying the value already set by the user (if any), otherwise
* Presenting a list of common options to the user, and
* Allowing them to freely enter any value

This setup requires no additional JS and resolves[2].

This is different from the previous flow which used, if JS was available:

* A menu for a default 'recognised' set of pronouns, and if the user
  wanted another value:
* An extra text div if the user wanted to enter custom pronouns

Without JS enabled both the menu and the custom text div would always be
displayed.

This change means there's no longer a distinction between 'custom' and
'recognised' pronouns (this difference looks to have only been made in
code, and not in any data models).

Link: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist [1]
Link: https://codeberg.org/forgejo/forgejo/issues/6774 [2]

Co-authored-by: Matthew Hughes <matthewhughes934@gmail.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6835
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: mhughes9 <mhughes9@noreply.codeberg.org>
Co-committed-by: mhughes9 <mhughes9@noreply.codeberg.org>
2025-02-26 18:46:51 +00:00
..
security feat: migrate TOTP secrets to `keying` 2024-11-27 00:34:16 +01:00
account.go fix: extend `forgejo_auth_token` table 2024-11-15 10:59:36 +01:00
account_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
adopt.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
applications.go OAuth2 provider: support for granular scopes 2024-08-09 14:58:15 +02:00
blocked_users.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
keys.go Add setting to disable user features when user login type is not plain (#29615) 2024-04-07 11:09:21 +02:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth2.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
oauth2_common.go Validate OAuth Redirect URIs (#32643) 2024-12-03 10:19:22 +01:00
packages.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
profile.go Simplify pronouns in user settings (#6835) 2025-02-26 18:46:51 +00:00
runner.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
storage_overview.go feat(ui): add quota overview (#6602) 2025-02-26 14:36:53 +00:00
webhooks.go [REFACTOR] use Icon from interface in webhook list 2024-03-30 16:00:06 +01:00