Otto
7bb043ce9b
Merge pull request 'Rework user profile settings' ( #6407 ) from fnetx/profile-a11y into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6407
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-12-30 20:28:36 +00:00
Earl Warren
5e7981aa07
Merge pull request 'Update code.forgejo.org/oci/alpine Docker tag to v3.21 (forgejo)' ( #6404 ) from renovate/forgejo-minor-3.21-alpine-packages into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6404
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-12-30 16:07:16 +00:00
Otto Richter
2885ea8da2
Rework user profile settings
...
Accessibility:
- improved semantic layout
- Fixes unlabelled input for custom pronouns. CC @hazy
- Adds labels to dropdowns.
- Shortens certain texts for less verbose screen reader outputs and
people with slow reading speed.
- Turned optional username rename helper text with low contrast into
"normal" help text.
UI/UX:
- Removes section about primary email which is no longer managed in the
profile section.
- Fixes section about primary email not displaying in user settings when notifications are
not available.
- Removes primary email display, because it is not actually a form
element here. (Alternatively, we could display it and link to the
account settings for managing the email)
2024-12-30 16:42:58 +01:00
Earl Warren
8e3c066b27
Merge pull request 'chore(branding): strip metadata information from the footer' ( #6403 ) from earl-warren/forgejo:wip-footer into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6403
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
2024-12-30 15:29:21 +00:00
Earl Warren
e819f649aa
Update code.forgejo.org/oci/alpine Docker tag to v3.21 (followup)
2024-12-30 15:22:42 +00:00
Gusted
de4053db83
Merge pull request 'fix: use DateUtils for blocked users list' ( #6410 ) from gusted/forgejo-datetime into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6410
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-12-30 10:54:00 +00:00
Gusted
57f7253610
fix: use DateUtils for blocked users list
...
- Should've been fixed with #5796 but seems I've overlooked.
2024-12-30 10:58:24 +01:00
Earl Warren
8d6f0d49c6
Merge pull request '[gitea] week 2024-53 cherry pick (gitea/main -> forgejo)' ( #6391 ) from earl-warren/wcp/2024-53 into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6391
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-12-30 08:26:15 +00:00
Earl Warren
a5dc315a64
Merge pull request 'feat: don't allow blocking the doer' ( #6411 ) from gusted/forgejo-org-block-yourown into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6411
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
2024-12-30 08:14:17 +00:00
Renovate Bot
0569714439
Update renovate Docker tag to v39.86.0 (forgejo) ( #6412 )
...
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
2024-12-30 08:10:09 +00:00
Gusted
e14f2d0c84
feat: don't allow blocking the doer
...
- In the case of organization blocking users, disallow blocking the doer.
- Resolves #5390
- Added integration test.
2024-12-30 00:09:07 +01:00
Gusted
db7be1a1db
Merge pull request 'feat: add synchronization for SSH keys for OpenID Connect' ( #6232 ) from Maks1mS/forgejo:feat/add-oidc-ssh-keys into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6232
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-12-29 22:43:28 +00:00
Earl Warren
2c81893c76
chore(branding): strip metadata information from the footer
...
When the Forgejo version is displayed in the footer, the metadata
should not be displayed. It was once an indication that Forgejo
includes all of Gitea. But since the hard fork the codebase diverged
and this is no longer accurate.
The metadata is still displayed in the API, admin panels or headers
for the sake of backward compatibility.
Refs: https://codeberg.org/forgejo/discussions/issues/244
2024-12-29 22:40:13 +00:00
Gusted
d071c09bf7
Merge pull request 'cmd/dump: add option flag to skip repository archives' ( #6387 ) from c8h4/forgejo:dump-skip-repo-archive into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6387
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-12-29 22:31:28 +00:00
Christoph Heiss
e8a022ac9a
dump: add option to skip repository archives data
...
One might want to exclude this data when dumping, esp. since repository
archives are more of temporary data by nature.
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-12-29 19:59:22 +01:00
Christoph Heiss
4ed10f782b
dump: reword cli flag descriptions and log messages
...
Currently, they are pretty inconsistent in wording. Rewrite them to a
unified, coherent style.
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-12-29 19:59:22 +01:00
Gusted
3870acbdfd
Merge pull request 'fix: xorm needs to be lowercase otherwise it is ignored' ( #6405 ) from earl-warren/forgejo:wip-webauthn into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6405
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
2024-12-29 18:26:31 +00:00
Earl Warren
b03ecf584c
fix: xorm needs to be lowercase otherwise it is ignored
...
Fixes: https://codeberg.org/forgejo/forgejo/issues/6389
2024-12-29 16:25:51 +00:00
Renovate Bot
036426e230
Update code.forgejo.org/oci/alpine Docker tag to v3.21
2024-12-29 16:04:55 +00:00
Otto
b74406d82c
Merge pull request 'Cosmetic changes and fixes around repo homepage' ( #6401 ) from 0ko/forgejo:ui-repo-meta-2 into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6401
Reviewed-by: Otto <otto@codeberg.org>
2024-12-29 14:46:34 +00:00
0ko
02c34f9908
ui: cosmetic changes and fixes around repo homepage
2024-12-29 18:52:02 +05:00
Otto
6d61ae5cbe
Merge pull request 'Rework new repo dialog' ( #6386 ) from fnetx/new-repo-form into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6386
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
2024-12-29 13:22:48 +00:00
Otto Richter
8d829a97b2
tests(e2e): Test new repo dialog and behaviour
...
- screenshots and basic accessibility scan of collapsed and expanded sections
- the dropdowns do not pass the accessibility checks, but I haven't found an easy fix
- I manually confirmed the dropdown behaviour via orca and firefox, though
2024-12-29 13:49:28 +01:00
Otto
6723087a6e
Merge pull request 'feat: When comparing in repos, mention that pull request creation requires sign-in' ( #6286 ) from litchipi/forgejo:contrib/sign_in_pr_ui into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6286
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
2024-12-29 12:17:41 +00:00
Otto Richter
8d32ca32c2
New repo: Rework initialization
...
- only show settings when ticked
- only offer README selection when there are multiple options
2024-12-29 13:05:30 +01:00
Earl Warren
37f05617a5
Improve Actions test ( #32883 ) (followup)
2024-12-28 21:56:33 +00:00
Otto Richter
4cde56906e
New repo: Rework advanced and template sections
...
- make sections collapsible
- only offer object format selection when there is an actual choice
2024-12-28 22:32:19 +01:00
Otto Richter
81599155e8
New repo: Rework basic settings
...
- separate template
- ensure correct labelling of elements
- drop additional required indicators for field that already have
browser semantics (the icon has colour contrast issues anyway),
especially as the first dropdown cannot be left empty
2024-12-28 22:32:11 +01:00
Otto Richter
471e5b1975
New repo: Clean up and improve CSS
...
- drop custom layout rules for this page
- move form-related content to form.css
- extend new form CSS to add gap between labels and input fields
2024-12-28 22:31:12 +01:00
Earl Warren
9c43fa0644
Merge pull request 'Fix overflow in git notes' ( #6390 ) from JakobDev/forgejo:noteoverflow into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6390
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-12-28 20:43:33 +00:00
Zettat123
b18dcd69f2
Improve Actions test ( #32883 )
...
This PR adds a mock runner to test more actions features.
(cherry picked from commit df98452c0de9d01338f00aa5d85757623523b1fc)
2024-12-28 19:33:53 +00:00
Zettat123
92ac337263
Support org labels when adding labels by label names ( #32988 )
...
Fix #32891
(cherry picked from commit 44b4fb21a4e99f327303f66cc7e48f7ca7ba09e1)
2024-12-28 19:32:09 +00:00
Lunny Xiao
2ffa9a5e6e
demilestone should not include milestone ( #32923 )
...
Fix #32887
(cherry picked from commit f44712f22bc7bfce049c64c27f60453ff1e41a5c)
Conflicts:
services/issue/milestone_test.go
trivial conflicts (require vs assert)
2024-12-28 19:24:24 +00:00
JakobDev
dcdeb23cc3
Fix overflow in git notes
2024-12-28 20:19:58 +01:00
katsu
0efd7130f0
fix trailing comma not matched in the case of alphanumeric issue ( #32945 )
...
Fix #32428 .
Patch the regex to match `,`besides `.` `"` `'` `:` and space.
(cherry picked from commit fb75151fb14e866cab8d893c588f5673902b278b)
2024-12-28 19:00:07 +00:00
Earl Warren
234b57b00c
Merge pull request 'chore(release): v10.0 is cut, v9.0 is soon to be EOL' ( #6370 ) from earl-warren/forgejo:wip-renovate-v10 into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6370
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-27 08:41:29 +00:00
Maxim Slipenko
af88ddae8c
Merge branch 'feat/add-oidc-ssh-keys' of codeberg.org:Maks1mS/forgejo into feat/add-oidc-ssh-keys
2024-12-27 11:18:27 +03:00
Maxim Slipenko
666654a5ef
fix: return empty slice if AttributeSSHPublicKey is missing in RawData
2024-12-27 11:17:27 +03:00
Maks1mS
8a3fb4885e
Merge branch 'forgejo' into feat/add-oidc-ssh-keys
2024-12-26 14:33:09 +00:00
Codeberg Translate
e94134def6
i18n: update of translations from Codeberg Translate ( #6331 )
...
Co-authored-by: 0ko <0ko@users.noreply.translate.codeberg.org>
Co-authored-by: Fjuro <fjuro@alius.cz>
Co-authored-by: tacaly <tacaly@users.noreply.translate.codeberg.org>
Co-authored-by: tacaly <frederick@tacaly.com>
Co-authored-by: artnay <artnay@users.noreply.translate.codeberg.org>
Co-authored-by: WithLithum <withlithum@users.noreply.translate.codeberg.org>
Co-authored-by: Wuzzy <wuzzy@disroot.org>
Co-authored-by: Atalanttore <atalanttore@users.noreply.translate.codeberg.org>
Co-authored-by: Juno Takano <jutty@users.noreply.translate.codeberg.org>
Co-authored-by: emansije <emansije@users.noreply.translate.codeberg.org>
Co-authored-by: earl-warren <earl-warren@users.noreply.translate.codeberg.org>
Co-authored-by: Edgarsons <edgarsons@users.noreply.translate.codeberg.org>
Co-authored-by: Benedikt Straub <benedikt-straub@web.de>
Co-authored-by: SomeTr <sometr@users.noreply.translate.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6331
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Codeberg Translate <translate@noreply.codeberg.org>
Co-committed-by: Codeberg Translate <translate@noreply.codeberg.org>
2024-12-26 09:26:46 +00:00
Earl Warren
410c8b913f
Merge pull request 'chore(i18n): user/label translations in danish/latvian' ( #6375 ) from earl-warren/forgejo:wip-lint-locale into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6375
2024-12-26 08:46:33 +00:00
Earl Warren
5eb0877381
chore(i18n): user/label translations in danish/latvian
...
Refs: https://codeberg.org/forgejo/forgejo/pulls/6331
2024-12-26 09:40:21 +01:00
Earl Warren
180fb3f4d6
Merge pull request 'Revert "Update dependency idiomorph to v0.4.0"' ( #6372 ) from gusted/forgejo-idiomorph-revert into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6372
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-12-26 07:52:58 +00:00
Gusted
64deec434a
Revert "Update dependency idiomorph to v0.4.0"
...
This reverts commit f9aaefd107
.
I've not not yet been able to determine what commit caused it, but 0.4.0
is broken for Forgejo's usecase it's not morphing and instead
replacing (it seems) elements when there's no need to.
2024-12-25 23:08:03 +01:00
Litchi Pi
dd4a1107ed
template: repo: compare: display a warning if the user is not logged in
...
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
2024-12-25 17:18:00 +00:00
Earl Warren
72dcf04690
chore(release): v10.0 is cut, v9.0 is soon to be EOL
2024-12-25 12:00:15 +01:00
Earl Warren
6836ded397
chore(release): first commit of v11.0
2024-12-25 11:22:30 +01:00
Earl Warren
7b5932738e
Merge pull request 'feat: harden keying implementation' ( #6368 ) from gusted/forgejo-harden-keying into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6368
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-12-25 08:05:56 +00:00
Renovate Bot
f9ffc91ace
Update dependency djlint to v1.36.4 (forgejo) ( #6365 )
...
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
2024-12-25 00:37:19 +00:00
Gusted
967603abcc
feat: harden keying implementation
...
Harden the current checks in place, I doubt these will ever hit (you can
prove easily by reading the current source code this cannot happen) but
just in case a new Go version does something weird or something else
goes catastrophicly wrong, this should add an extra defense-in-depth
layer.
`n != aeadKeySize` will panic a nil error, don't think it's needed to
add more logic to this, a nil error is enough to indicate that that
condition failed (given the other condition is `err != nil`).
Also move constant integers to being `const`, this helps reducing the
amount of instructions being done for the extra check.
2024-12-25 00:10:18 +01:00