Commit Graph

2621 Commits (ab347fd0f7f13b661b5728b4f47e76bc10c2204b)

Author SHA1 Message Date
wxiaoguang 6659a381ea
Fix closed dependency title ()
Fix 
wxiaoguang f6dbf0e7b3
Fix incorrect TagName/BranchName usages ()
Add add a new test
wxiaoguang fcd096231a
Simplify context ref name ()
wxiaoguang 1299fdb084
Add a confirm dialog for "sync fork" ()
Try to quickly fix 
wxiaoguang 5eff19a77a
Fix sidebar milestone link ()
Fix  
yp05327 3a749fc816
Fix 500 error when error occurred in migration page ()
The template should be `repo/migrate/{service type}`
But input element `service` is not in the form.

Related: 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang a98a836e76
Support public code/issue access for private repositories ()
Close , close  (will add "anonymous access" in following PRs)
Kemal Zebari ecd463c2f1
Validate that the tag doesn't exist when creating a tag via the web ()
Found while investigating .

This line no longer makes sense because the form field "TagName" is
required, so this would mean that this code path would never be covered.
Because it isn't covered, we end up going down the "update release"
logic where we eventually set `Release.IsTag` to false (meaning it will
now be treated as a release instead of a tag).

This snapshot rewrites the condition to ensure that we aren't trying to
create a tag that already exists.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang 81352542fd
Refactor context RefName and RepoAssignment ()
The `ctx.Repo.RefName` was used to be a "short name", it causes a lot of
ambiguity.

This PR does some refactoring and use `RefFullName` to replace the
legacy `RefName`, and simplify RepoAssignment
wxiaoguang 9024b79933
Remove unused CSS styles and move some styles to proper files ()
wxiaoguang a068462ac0
Refactor context repository ()
Lunny Xiao fd7d393c67
Fix unpin hint on the pinned pull requests ()
Chai-Shi e5f3c16587
Fix sync fork for consistency ()
Fixes 

An integration test could be added.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
yp05327 2298ff2152
Fix branch dropdown not display ref name ()
Before:

![image](https://github.com/user-attachments/assets/899d25a9-80e9-48d5-a820-79c911c858e9)
After:

![image](https://github.com/user-attachments/assets/cf2a7407-909a-41db-9957-19d9214af57e)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang a5043af8ea
Fix assignee list overlapping in Issue sidebar ()
Fix  

![image](https://github.com/user-attachments/assets/714cebdc-ee76-43e3-9ece-a189f8ecb17a)

![image](https://github.com/user-attachments/assets/cbb58425-42b4-41ee-ba3c-7efbd24607dc)
yp05327 88366f280e
Move repo size to sidebar ()
![image](https://github.com/user-attachments/assets/8b14dbb7-ec36-4596-a6aa-72c14d93309d)
wxiaoguang 9c00e065a1
Fix form width ()
Fix 
Rowan Bohde a8e7caedfa
add submodule diff links ()
This adds links to submodules in diffs, similar to the existing link
when viewing a repo at a specific commit. It does this by expanding diff
parsing to recognize changes to submodules, and find the specific refs
that are added, deleted or changed.

Related 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang 40765b5d45
Fix repo empty guide ()
wxiaoguang cf60734a4d
Fix dropdown menu header and mobile view ()
![image](https://github.com/user-attachments/assets/3f831c8c-ef87-4282-880a-c2738f3e1d17)

----

![image](https://github.com/user-attachments/assets/c4c0519b-cfa6-42b4-bd28-205ee514eb34)

----

![image](https://github.com/user-attachments/assets/8624a605-9f2b-4905-9cbc-0af073972874)
ChristopherHX 4237736029
workflow_dispatch use workflow from trigger branch ()
* htmx updates the input form on branch switch
* add workflow warning to dispatch modal
* use name if description of input is empty
* show error if workflow_dispatch not available on branch

Closes 
Closes 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang 3d544a3ad3
Fix empty git repo handling logic ()
Fix 
wxiaoguang 68972a9947
Clean up legacy form CSS styles ()
wxiaoguang 85c756e279
Refactor pull-request compare&create page ()
The old code is unnecessarily complex.
Steffen Schröter 57eb9d0b64
Inherit submodules from template repository content ()
Fix 

---------

Signed-off-by: Steffen Schröter <steffen@vexar.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Chai-Shi 0387195abb
[Feature] Private README.md for organization ()
Implemented 

---------

Co-authored-by: Ben Chang <ben_chang@htc.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Henry Goodman a96776b3cb
Fix review code comment avatar alignment ()
Fixes 

Avatar should only have offset if the `Comment` has `Content` or
`Attachment` to align with the speech bubble.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
metiftikci 94048f3035
fix toggle commit body button ui when latest commit message is long ()
#### Before


![before](https://github.com/user-attachments/assets/fe36bdb3-10e8-4fe7-9106-0897f49bedb3)

#### After


![after](https://github.com/user-attachments/assets/745bd164-5f25-41ca-b340-36cb695551db)


## Edit:

I found an issue on mobile view and changed the code as using flex gap


![small](https://github.com/user-attachments/assets/dd7c2093-6860-4800-a2bc-676a03e764c8)


![large](https://github.com/user-attachments/assets/5c933779-8281-4d48-9fd0-4d7b245bf4ac)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang a92f5057ae
Fix and/or comment some legacy CSS problems ()
wxiaoguang 3d3ece36d2
Refactor comment history and fix content edit ()
And fix a regression bug for comment content editing.

Now 11 "import jquery" files left
Blender Defender 079a1ffe8f
De-emphasize signed commits ()
The new code structure is easier to make more improvements or
refactor, for example: change the colors to de-emphasize more, or design
some new layouts.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang b7260400f8
Refactor tmpl and blob_excerpt ()
1. do not use `{{/* */}}` to remove spaces, use `{{- -}}`
2. fix "blob_excerpt" endpoint, remove the legacy fragile code: have
tested commit diff and wiki diff
wxiaoguang 89f31f79fd
Fix outdated tmpl code ()
Some PRs were before tmpl ctx refactoring and used outdated code
bytedream 6279646ee4
Add auto-expanding running actions step ()
Auto-expands the currently running action step.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang afe314fa77
Use primary as button color ()
* Fix 
* Fix 
Tim 7580bd98c1
show warning on navigation if currently editing comment or title ()
This PR fixes the issue https://github.com/go-gitea/gitea/issues/32223

Make the browser to show the confirm popup, as it does with other forms.

---------

Co-authored-by: Tim Wundenberg <tim@wundenbergs.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
silverwind 141d782c1a
Refactor repo-projects.ts ()
- Remove jQuery
- Add types to all functions
- Tested all modified functionality

---------

Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang 2d7e6e9482
Fix various trivial problems ()
1. add/improve comments to help future readers could understand the
problem more easily.
2. add an error log to LDAP with username fallback
3. use `or` instead of `Iif` for "repo/branch_dropdown" (`Iif` was a
mistake, but it doesn't really affect the UI)
4. add `tw-font-mono` style to container digest to match dockerhub
5. fix a bug in RepoBranchTagSelector: the form is not updated when
there is no click to an item

---------

Co-authored-by: delvh <dev.lh@web.de>
wxiaoguang d28a4843b8
Fix incomplete Actions status aggregations ()
fix 
silverwind 74b06d4f5c
Repo file list enhancements ()
1. restore background color
2. fix border radius on top/bottom and on hover
3. parent link is now full-row again, much easier to click
4. parent link now uses directory icon, matching github
5 changed grid layout to remove auto width on file name column which could get too small.
6. mobile layout now shows more of the filename.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
silverwind df9a78cd04
Tweak repo sidebar ()
Before and after:

<img width="218" alt="Screenshot 2024-12-15 at 04 53 53"
src="https://github.com/user-attachments/assets/299b1f0a-ba72-47c6-b662-a9d540d4d741"
/>
<img width="222" alt="Screenshot 2024-12-15 at 04 53 41"
src="https://github.com/user-attachments/assets/5a2b5332-e324-4d20-82e9-21d1c850e826"
/>

Diff without whitespace:
https://github.com/go-gitea/gitea/pull/32847/files?diff=unified&w=1

The `tw-mt-2` is fine even if the element renders empty:

<img width="387" alt="image"
src="https://github.com/user-attachments/assets/76a976e4-ba2e-48a5-9248-c361552a937a"
/>

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao 9264811217
Remove translation to issue add time because the format is fixed should not be translated ()
The input content should always be `1h 2m 3s` and will be the same on
different UI languages. So the translation is wrong.
wxiaoguang 5bc030efa2
Fix various UI bugs ()
hiifong 30008fcfcf
Fix bug of branch/tag selector in the issue sidebar ()
Fix: 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao 6370d2fb93
Detect whether action view branch was deleted ()
Fix  

![图片](https://github.com/user-attachments/assets/a5a7eef8-0fea-4242-b199-1b0b73d9bbdb)
Chai-Shi c9487a755b
Add "n commits" link to contributors in contributors graph page ()
Fixes Issue  and inherit PR 

- I should extend the  fork but the fork is not synced, so I
created another PR.
- Use `silenced` class for the link, as in 

---------

Co-authored-by: Ben Chang <ben_chang@htc.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang 00e2b339b6
Fix "unicode escape" JS error ()
<details>


![image](https://github.com/user-attachments/assets/98aef2fb-791e-4b4a-b2ac-e880f8a52040)


![image](https://github.com/user-attachments/assets/532673ae-c4cf-4d84-a5c6-93e6eacd341c)


![image](https://github.com/user-attachments/assets/2a241a3d-b7f6-44ca-89d9-9d68386fbf3e)


![image](https://github.com/user-attachments/assets/1251e43d-41f2-42d1-a23b-3182e3812c3d)

</details>

---------

Co-authored-by: silverwind <me@silverwind.io>
wxiaoguang 4814f43af7
Fix repo home file list ()
1. use grid instead of table, completely drop "ui table" from that list
2. move some "commit sign" related styles into a new file by the way (no
change) because I need to figure out where `#repo-files-table` is used.
3. move legacy "branch/tag selector" related code into repo-legacy.ts,
now there are 13 `import $` files left.
Blender Defender 18061af490
Rearrange Clone Panel ()
Rearrange the clone panel to use less horizontal space.
The following changes have been made to achieve this:
- Moved everything into the dropdown menu
- Moved the HTTPS/SSH Switch to a separate line
- Moved the "Clone in VS Code"-Button up and added a divider
- Named the dropdown button "Code", added appropriate icon

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang e619384098
Add label/author/assignee filters to the user/org home issue list ()
Replace , fix 

Not perfect, but usable and much better than before. Since it is quite
complex, I am not quite sure whether there would be any regression, if
any, I will fix in first time.

I have tested the related pages many times: issue list, milestone issue
list, project view, user issue list, org issue list.