0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 14:36:16 +02:00

5431 Commits

Author SHA1 Message Date
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
f164de9d2a
ensure group header only shows teams link if actor is group admin or owner 2026-04-02 20:48:03 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
696cbd033a
tweak styles on page for editing teams in a group 2026-04-02 20:48:03 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
b28493db6c
update team repository template to use repository URL and FullName methods 2026-04-02 20:48:02 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
603acbe38f
format templates 2026-04-02 20:47:39 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
5efa32fe1c
fix data-url in root level group tree sortable 2026-04-02 20:44:13 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
92cb2a7080
add group breadcrumbs to repo page header 2026-04-02 20:44:12 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
ab1eb20ab3
run formatter and fix lint errors 2026-04-02 20:44:11 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
b32762ae23
create templates for group selection menu displayed in organization dashboard header, and update dashboard template to show said selection menu 2026-04-02 20:34:41 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
e91c1db2cb
inject group id and organization name into dashboard repo list's data object 2026-04-02 20:34:41 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
37a210cac3
remove Projects tab from group header menu 2026-04-02 20:31:56 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
00df4275f7
remove SafeHTML calls in group team page template 2026-04-02 20:24:56 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
52c2dabcc3
update group homepage template to reflect new file paths 2026-04-02 20:24:56 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
cc236c39ec
add missing class to the group selector in the repo creation form 2026-04-02 20:24:56 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
89440056d7
update org home page to show group navigation menu on the right 2026-04-02 20:24:55 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
8d82d52c30
add templates for pages to add and manage teams with access to a group 2026-04-02 20:22:47 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
92e1da2bd3
add a menu for selecting parent group to repo creation page 2026-04-02 20:20:43 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
8ea3118e05
add sidebar which displays accessible group hierarchy to organization home page 2026-04-02 20:15:47 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
8a56edb0c1
create templates to display a sidebar containing a user's groups in a tree-like hierarchy 2026-04-02 20:15:47 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2047492033
add templates for main group page 2026-04-02 20:15:47 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
8c0b7c4c1d
add template for group selection dropdown 2026-04-02 20:15:46 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
0184b67292
add templates for group settings page 2026-04-02 20:15:46 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
be78507164
add template for creating a new group 2026-04-02 20:15:46 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
d2cb6f8da7
ensure we do not display an add button when viewing a group's projects 2026-04-02 20:15:46 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
a374a30a7f
update swagger definitions 2026-04-02 20:01:14 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
a9f1cc99fd
update swagger tool
unmarshal json directly into ordered map
2026-04-02 20:01:10 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
ca8c0d572d
update swagger definitions 2026-04-02 20:01:09 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
cf7dc29b8f
use a custom ordered map to create group swagger mixin 2026-04-02 20:01:08 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
46cd9b7379
update swagger definitions 2026-04-02 20:01:07 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
0794c7bb64
update group swagger definitions 2026-04-02 20:01:02 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
83fb6e0610
update v1_groups.json 2026-04-02 20:01:02 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
9e901e50e2
run formatter 2026-04-02 20:01:01 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
d2b13f7749
fix swagger comments in repo adoption routes 2026-04-02 20:01:00 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
3c9dc0daf4
update swagger definitions 2026-04-02 20:01:00 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
dcc372105b
chore: update makefile and add new tool
this tool will generate group-related swagger schemas without repeating the same comments twice in different places
2026-04-02 20:00:59 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
ba0c7caabb
add AvatarURL field to api groups (in modules/structs package) 2026-04-02 20:00:56 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
ab817e4251
add api routes and functions to get a repository group's subgroups and repos 2026-04-02 20:00:54 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
243ff36900
fix swagger definition references to nonexistent CreateGroupOption 2026-04-02 20:00:54 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
52d17c410a
add appropriate swagger definitions 2026-04-02 20:00:53 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
303f2b79da
regenerate swagger definitions 2026-04-02 20:00:51 -04:00
Navneet
3ffccb8fe5
Redirect to the only OAuth2 provider when no other login methods and fix various problems (#36901)
Fixes: #36846 

1. When there is only on OAuth2 login method, automatically direct to it
2. Fix legacy problems in code, including:
   * Rename template filename and fix TODO comments
   * Fix legacy variable names
   * Add missing SSPI variable for template
   * Fix unnecessary layout, remove garbage styles
* Only do AppUrl(ROOT_URL) check when it is needed (avoid unnecessary
warnings to end users)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-01 12:50:57 +00:00
Nicolas
ca8c71359c
Show workflow link (#37070)
Add the workflow link to the left list.

Superseeds #31906

---------

Signed-off-by: Nicolas <bircni@icloud.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-01 11:42:41 +00:00
Nicolas
35b654c9d6
Add webhook name field to improve webhook identification (#37025) (#37040)
Add an optional Name field to webhooks so users can give them
human-readable labels instead of relying only on URLs. The webhook
overview page now displays names when available, or falls back to the
URL for unnamed webhooks.

Fixes #37025

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-01 09:56:20 +08:00
silverwind
e2e8509239
Replace Monaco with CodeMirror (#36764)
- Replace monaco-editor with CodeMirror 6
- Add `--color-syntax-*` CSS variables for all syntax token types,
shared by CodeMirror, Chroma and EasyMDE
- Consolidate chroma CSS into a single theme-independent file
(`modules/chroma.css`)
- Syntax colors in the code editor now match the code view and
light/dark themes
- Code editor is now 12px instead of 14px font size to match code view
and GitHub
- Use a global style for kbd elements
- When editing existing files, focus will be on codemirror instead of
filename input.
- Keyboard shortcuts are roughtly the same as VSCode
- Add a "Find" button, useful for mobile
- Add context menu similar to Monaco
- Add a command palette (Ctrl/Cmd+Shift+P or F1) or via button
- Add clickable URLs via Ctrl/Cmd+click
- Add e2e test for the code editor
- Remove `window.codeEditors` global
- The main missing Monaco features are hover types and semantic rename
but these were not fully working because monaco operated only on single
files and only for JS/TS/HTML/CSS/JSON.

| | Monaco (main) | CodeMirror (cm) | Delta |
|---|---|---|---|
| **Build time** | 7.8s | 5.3s | **-32%** |
| **JS output** | 25 MB | 14 MB | **-44%** |
| **CSS output** | 1.2 MB | 1012 KB | **-17%** |
| **Total (no maps)** | 23.3 MB | 12.1 MB | **-48%** |

Fixes: #36311
Fixes: #14776
Fixes: #12171

<img width="1333" height="555" alt="image"
src="https://github.com/user-attachments/assets/f0fe3a28-1ed9-4f22-bf25-2b161501d7ce"
/>

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2026-03-31 21:50:45 +00:00
wxiaoguang
d288b4529b
Refactor "org teams" page and help new users to "add member" to an org (#37051)
* Fix #22054
* Replace #34593, #27800
* And refactor legacy code, fix various problems

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-31 21:30:25 +08:00
wxiaoguang
6ca5573718
Refactor issue sidebar and fix various problems (#37045)
Fix various legacy problems, including:

* Don't create default column when viewing an empty project
* Fix layouts for Windows
* Fix (partially) #15509
* Fix (partially) #17705

The sidebar refactoring: it is a clear partial-reloading approach,
brings better user experiences, and it makes "Multiple projects" /
"Project column on issue sidebar" feature easy to be added.

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-31 10:03:52 +08:00
wxiaoguang
daf581fa89
Add tests for pull request's content_version in API (#37044)
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
2026-03-30 17:28:45 +00:00
silverwind
612ce46cda
Fix theme discovery and Vite dev server in dev mode (#37033)
1. In dev mode, discover themes from source files in
`web_src/css/themes/` instead of AssetFS. In prod, use AssetFS only.
Extract shared `collectThemeFiles` helper to deduplicate theme file
handling.
2. Implement `fs.ReadDirFS` on `LayeredFS` to support theme file
discovery.
3. `IsViteDevMode` now performs an HTTP health check against the vite
dev server instead of only checking the port file exists. Result is
cached with a 1-second TTL.
4. Refactor theme caching from mutex to atomic pointer with time-based
invalidation, allowing themes to refresh when vite dev mode state
changes.
5. Move `ViteDevMiddleware` into `ProtocolMiddlewares` so it applies to
both install and web routes.
6. Show a `ViteDevMode` label in the page footer when vite dev server is
active.
7. Add `/__vite_dev_server_check` endpoint to vite dev server for the
health check.
8. Ensure `.vite` directory exists before writing the dev-port file.
9. Minor CSS fixes: footer gap, navbar mobile alignment.

---
This PR was written with the help of Claude Opus 4.6

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-30 14:59:10 +00:00
Myers Carpenter
c31e0cfc1c
Expose content_version for optimistic locking on issue and PR edits (#37035)
- Add `content_version` field to Issue and PullRequest API responses
- Accept optional `content_version` in `PATCH
/repos/{owner}/{repo}/issues/{index}` and `PATCH
/repos/{owner}/{repo}/pulls/{index}` — returns 409 Conflict when stale,
succeeds silently when omitted (backward compatible)
- Pre-check `content_version` before any mutations to prevent partial
writes (e.g. title updated but body rejected)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-30 13:44:32 +00:00
Myers Carpenter
2633f9677d
Correct swagger annotations for enums, status codes, and notification state (#37030)
## ⚠️ BREAKING ⚠️

- delete reaction endpoints is changed to return 204 No Content rather
than 200 with no content.

## Summary

Add swagger:enum annotations and migrate all enum comments from the
deprecated comma-separated format to JSON arrays. Introduce
NotifySubjectStateType with open/closed/merged values. Fix delete
reaction endpoints to return 204 instead of 200.
2026-03-30 08:28:48 +08:00
silverwind
0ec66b5380
Migrate from webpack to vite (#37002)
Replace webpack with Vite 8 as the frontend bundler. Frontend build is
around 3-4 times faster than before. Will work on all platforms
including riscv64 (via wasm).

`iife.js` is a classic render-blocking script in `<head>` (handles web
components/early DOM setup). `index.js` is loaded as a `type="module"`
script in the footer. All other JS chunks are also module scripts
(supported in all browsers since 2018).

Entry filenames are content-hashed (e.g. `index.C6Z2MRVQ.js`) and
resolved at runtime via the Vite manifest, eliminating the `?v=` cache
busting (which was unreliable in some scenarios like vscode dev build).

Replaces: https://github.com/go-gitea/gitea/pull/36896
Fixes: https://github.com/go-gitea/gitea/issues/17793
Signed-off-by: silverwind <me@silverwind.io>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-29 10:24:30 +00:00