wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								2715ef6558 
								
							 
						 
						
							
							
								
								Fix scoped label layout ( #26932 )  
							
							 
							
							... 
							
							
							
							Fix  #26931  
							
						 
						
							2023-09-06 12:22:38 +00:00  
						
					 
				
					
						
							
							
								 
								Kerwin Bryant
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								113eb5fc24 
								
							 
						 
						
							
							
								
								Fix UI anomalies ( #26929 )  
							
							 
							
							
							
						 
						
							2023-09-06 07:00:45 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								97aa749578 
								
							 
						 
						
							
							
								
								Vendor `jquery.are-you-sure` with strict mode fixes ( #26901 )  
							
							 
							
							... 
							
							
							
							Extract from https://github.com/go-gitea/gitea/pull/25940  and because
https://github.com/go-gitea/gitea/pull/26743  does seem to need more
work.
This will be required if we are to run our JS in [strict
mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode ).
Previously, the two variables `$fields` and `$dirtyForms` polluted
`window`:
<img width="1145" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/e0270a0e-b881-4ed7-9cc4-e9ab25c0a2bc "> 
							
						 
						
							2023-09-06 00:02:44 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								682552378f 
								
							 
						 
						
							
							
								
								More fixes for the "commit-body" ( #26898 )  
							
							 
							
							... 
							
							
							
							The changes for "commit-body" in #26877  are not ideal.
The reason is: the "commit-body" is usually a `<pre>`, it has default
margins. In most cases, we do not need that large margin. So, this PR
introduces a general but small margin for all "commit-body" elements.
Then these `gt-m-0` could be removed.
The `:not` selector is not needed, because the `.timeline-item` selector
is already clear enough. 
							
						 
						
							2023-09-04 13:38:59 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								51cfe0e7de 
								
							 
						 
						
							
							
								
								Remove CSS `has` selector and improve various styles ( #26891 )  
							
							 
							
							... 
							
							
							
							Replace  #26850 
Major changes:
1. Remove all `has` selectors, it is still not supported by firefox.
Actually there could be some more general and clearer approaches
2. Remove `two-toggle-buttons`, the `.ui.buttons` just works well
3. Rewrite the `.ui.buttons` border styles, see the screenshots
4. Remove the "fine-tuning" paddings from the the flex children, they
could layout themselves well.



 
							
						 
						
							2023-09-04 18:22:46 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								fba7150ca9 
								
							 
						 
						
							
							
								
								Refactor "shortsha" ( #26877 )  
							
							 
							
							... 
							
							
							
							The old code used complex `if` blocks and strange HTML layouts.
<details>

</details>
This PR refactors the template code and remove legacy CSS styles. The UI
doesn't change much.

 
							
						 
						
							2023-09-03 02:58:52 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								9a3de436f4 
								
							 
						 
						
							
							
								
								Reorder blocks in vue SFCs ( #26874 )  
							
							 
							
							... 
							
							
							
							The [recommended order](https://vuejs.org/guide/scaling-up/sfc.html ) for
SFC blocks is script -> template -> style, which we were violating
because template and script were swapped. I do find script first also
easier to read because the imports are on top, letting me immideatly see
a component's dependencies.
This is a pure cut-paste refactor with some removal of some empty lines.
---------
Co-authored-by: Lauris BH <lauris@nix.lv> 
							
						 
						
							2023-09-02 14:59:07 +00:00  
						
					 
				
					
						
							
							
								 
								6543
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								79f7329971 
								
							 
						 
						
							
							
								
								Make it posible to customize nav text color via css var ( #26807 )  
							
							 
							
							... 
							
							
							
							---
*Sponsored by Kithara Software GmbH* 
							
						 
						
							2023-09-02 05:10:41 +02:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								fcb4941d47 
								
							 
						 
						
							
							
								
								Remove some unused CSS styles ( #26852 )  
							
							 
							
							... 
							
							
							
							1. `icons`: globally searched, no use in templates.
2. toast's `display: inline-block;`: there is a `display: flex` below. 
							
						 
						
							2023-09-01 08:59:38 +02:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								9b76df53dc 
								
							 
						 
						
							
							
								
								Minor dashboard tweaks, fix flex-list margins ( #26829 )  
							
							 
							
							... 
							
							
							
							Some small dashboard tweaks:
- Remove margin-bottom from divider so first item does not appear to
have un-equal margins
- Restore previous icon color
- Add slight margin-right to icon
Before:
<img width="783" alt="Screenshot 2023-08-31 at 00 10 28"
src="https://github.com/go-gitea/gitea/assets/115237/b75f70d7-8704-4afb-866d-fea0484c52d4 ">
After:
<img width="783" alt="Screenshot 2023-08-31 at 00 10 08"
src="https://github.com/go-gitea/gitea/assets/115237/50ed0c47-6f7c-449e-a054-13091369d43f ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-31 21:28:45 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								d5703d4a1b 
								
							 
						 
						
							
							
								
								Remove "TODO" tasks from CSS file ( #26835 )  
							
							 
							
							... 
							
							
							
							1. Use `gt-invisible` instead of `invisible`.
2. Use `gt-word-break` instead of `dont-break-out` (there is a slight
different "hyphens", but I think it won't affect too much since it is
only used for the "full name").
3. Remove `.small.button:has(svg)` , now our buttons could layout SVG
correctly, and actually I didn't see this CSS class is used in code. 
							
						 
						
							2023-08-31 10:49:53 +00:00  
						
					 
				
					
						
							
							
								 
								Denys Konovalov
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								5b5bb8d354 
								
							 
						 
						
							
							
								
								User details page ( #26713 )  
							
							 
							
							... 
							
							
							
							This PR implements a proposal to clean up the admin users table by
moving some information out to a separate user details page (which also
displays some additional information).
Other changes:
- move edit user page from `/admin/users/{id}` to
`/admin/users/{id}/edit` -> `/admin/users/{id}` now shows the user
details page
- show if user is instance administrator as a label instead of a
separate column
- separate explore users template into a page- and a shared one, to make
it possible to use it on the user details page
- fix issue where there was no margin between alert message and
following content on admin pages
<details>
<summary>Screenshots</summary>


</details>
Partially resolves  #25939 
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-31 11:21:18 +02:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								3d109861dd 
								
							 
						 
						
							
							
								
								Render code blocks in repo description ( #26830 )  
							
							 
							
							... 
							
							
							
							Backtick syntax now works in repo description too. Also, I replaced the
CSS for this was a new single class, making it more flexible and not
dependent on a parent. Also, very slightly reduced font size from 16.8px
to 16px.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-31 05:01:01 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								c35b16a9a4 
								
							 
						 
						
							
							
								
								Remove joinPaths function ( #26833 )  
							
							 
							
							... 
							
							
							
							Extract from https://github.com/go-gitea/gitea/pull/25940 .
`assetUrlPrefix` is guaranteed to not contain trailing slashes, making
this function unneeded. 
							
						 
						
							2023-08-31 02:46:44 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								19a1e1b20e 
								
							 
						 
						
							
							
								
								Remove polluted `.ui.right` ( #26825 )  
							
							 
							
							... 
							
							
							
							Each change is tested manually line by line. There are too many changes
so I can't share dozens of screenshots.
In short:
1. `ui right` could be still used in `ui top attached header`, because
there is a special case.
2. A lot of `ui right` are just no-op, so they can be removed safely.
3. Some of the `ui right` should be replaced by `gt-float-right` (to
avoid breaking, leave them to the future).
4. A few of the `ui right` could be rewritten by flex. 
							
						 
						
							2023-08-31 02:29:59 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								1bb9b1c4d9 
								
							 
						 
						
							
							
								
								Remove polluted ".ui.left" style ( #26809 )  
							
							 
							
							
							
						 
						
							2023-08-30 21:46:24 +08:00  
						
					 
				
					
						
							
							
								 
								delvh
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								2590707122 
								
							 
						 
						
							
							
								
								Remove fomantic `text` module ( #26777 )  
							
							 
							
							... 
							
							
							
							Corollary to #26775 :
All selectors I found that are actually used and not necessarily present
in the current code have been copied to `web_src/css/base.css`.
Everything else should be a clean removal. 
							
						 
						
							2023-08-30 10:37:17 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								508de3a58d 
								
							 
						 
						
							
							
								
								Fix Uint8Array comparisons and update vitest ( #26805 )  
							
							 
							
							... 
							
							
							
							Compare those `Uint8Array` via conversion to Array which are properly
comparable, so that we don't have to worry about whether `TextEncoder`
and `UInt8Array` from the environment are compatible or not.
---------
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2023-08-30 01:56:44 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								1a9998ce91 
								
							 
						 
						
							
							
								
								Improve flex list item padding ( #26779 )  
							
							 
							
							... 
							
							
							
							Replace #26761 
It's better to keep children elements simple, and let parent containers
layout the necessary padding/margin.
The old `not(:last-child)` and `.flex-item + .flex-item` are not easy to
maintain (for example, what if the developer would like to use a "tiny
height" item?)
The old approach also makes some UI look strange because the first item
doesn't have proper padding-top.
In this PR, we just simply use `.flex-item { padding: ... }`:
* Developers could manually set the item height they want easily
* It's easier to make it work with various containers -- with padding
(`ui segment`) and without padding (`div`)
And added more samples/examples.

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-29 23:13:30 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								96ba747ff2 
								
							 
						 
						
							
							
								
								Fix notification circle (border-radius) ( #26794 )  
							
							 
							
							... 
							
							
							
							`border-radius` means `radius`, not `diameter`, so it should be `50%` and `boxHeight / 2` 
							
						 
						
							2023-08-29 14:03:34 +00:00  
						
					 
				
					
						
							
							
								 
								yp05327
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								008f5d8cf1 
								
							 
						 
						
							
							
								
								Add default label in branch select list ( #26697 )  
							
							 
							
							
							
						 
						
							2023-08-29 12:15:19 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								db09b35590 
								
							 
						 
						
							
							
								
								Remove fomantic `item` module ( #26775 )  
							
							 
							
							... 
							
							
							
							All selectors had `.ui.items` prefix and I did not find it in any of the
templates or JS, so this is a pretty safe removal.
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-29 10:14:33 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								0ab70d4f2f 
								
							 
						 
						
							
							
								
								Improve modal dialog UI ( #26764 )  
							
							 
							
							... 
							
							
							
							1. Fine tune the CSS styles, and add more examples
2. Add necessary "dimmer" animation for modal dialogs, otherwise the UI
seems flicking (follow #26469 ) 
							
						 
						
							2023-08-28 23:49:21 +00:00  
						
					 
				
					
						
							
							
								 
								delvh
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								dca2f9371d 
								
							 
						 
						
							
							
								
								Unify `border-radius` behavior ( #26770 )  
							
							 
							
							... 
							
							
							
							## Changes
- no more hardcoded `border-radius`es (apart from `0`)
- no more value inconsistencies
- no more guessing what pixel value you should use
- two new variables:
- `--border-radius-medium` (for elements where the normal border radius
does not suffice)
  - `--border-radius-circle` (for displaying circles)
---------
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-08-28 19:43:59 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								4803766f7a 
								
							 
						 
						
							
							
								
								Refactor some CSS styles and simplify code ( #26771 )  
							
							 
							
							... 
							
							
							
							Refactor some CSS styles and simplify code.
Some styles are not in use, remove them. 
							
						 
						
							2023-08-28 22:14:51 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								67daa7bcb0 
								
							 
						 
						
							
							
								
								Remove some transition related code ( #26755 )  
							
							 
							
							... 
							
							
							
							Remove transition related code because the transition module has been
removed by #26469  
							
						 
						
							2023-08-28 01:26:23 +00:00  
						
					 
				
					
						
							
							
								 
								puni9869
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								e0a796a641 
								
							 
						 
						
							
							
								
								Adding hint `Archived` to archive label. ( #26741 )  
							
							 
							
							... 
							
							
							
							Followup  https://github.com/go-gitea/gitea/pull/26478 
## Archived labels UI
Changed:
* Enhanced the Filtered UI page to seamlessly incorporate a list of
archived labels.
Outsourced:
* Defer the implementation of specialized handling for archived labels
to upcoming pull requests. This step will be undertaken subsequent to
the successful merge of this pull request.
Screenshots



---
Part of https://github.com/go-gitea/gitea/issues/25237 
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-08-27 09:32:54 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								4fdb09de58 
								
							 
						 
						
							
							
								
								Fix incorrect "tabindex" attributes ( #26733 )  
							
							 
							
							... 
							
							
							
							Fix  #26731 
Almost all "tabindex" in code are incorrect.
1. All "input/button" by default are focusable, so no need to use "tabindex=0"
2. All "div/span" by default are not focusable, so no need to use "tabindex=-1"
3. All "dropdown" are focusable by framework, so no need to use "tabindex"
4. Some tabindex values are incorrect (eg: `new_form.tmpl`), so remove them
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-26 10:44:00 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								576644d815 
								
							 
						 
						
							
							
								
								Simplify helper CSS classes and avoid abuse ( #26728 )  
							
							 
							
							... 
							
							
							
							Removed CSS helper classes (some of them are not useful while some of
them are abused often)
* `gt-db`: in most cases it could be replaced by `gt-df` and the flex
layout should be encouraged. Other cases: either it does need the
`gt-df` (eg: by using `div` directly) or it is an abuse (eg: the warning
message in a form)
* `gt-di`: it doesn't seem useful, or it could be replaced by `gt-dib`
in most cases.
* `gt-dif`: not useful, it could be replaced by `flex-text-inline` or
`gt-df`
* `gt-js`: never used
* All `<i class="icon gt-df gt-ac gt-jc">` could be written as `<i
class="icon">`
## Some UI samples
### Admin Notice

### Admin Stacktrace

### Org Home

### Org Team Repo

### Release List

### User Setting Application Token Scope

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-26 01:35:10 +02:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								8b5c081d76 
								
							 
						 
						
							
							
								
								Remove fomantic loader module ( #26670 )  
							
							 
							
							... 
							
							
							
							Replace Fomantic `loader` CSS module with our existing `is-loading`
spinner. Only three places in the UI used this module, which are
pictured here:
imagediff:
<img width="1237" alt="Screenshot 2023-08-22 at 22 18 01"
src="https://github.com/go-gitea/gitea/assets/115237/b0d82531-f05e-43c6-9e5b-1bfc268c056d ">
webauthn:
<img width="894" alt="Screenshot 2023-08-22 at 22 05 05"
src="https://github.com/go-gitea/gitea/assets/115237/7b583425-d944-474a-a57a-22a65bbd8b29 ">
heatmap (I removed the previous loading text, it was unreadable because
it was tiny and on fast machines only visible for a fraction of a
second):
<img width="764" alt="Screenshot 2023-08-22 at 22 18 44"
src="https://github.com/go-gitea/gitea/assets/115237/1c7472d6-3e17-4224-a992-d8c0b380cc73 ">
Also, heatmap container does not resize any more after loading now and
previous duplicate id `user-heatmap` is gone.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-25 16:03:14 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								21b8ec29aa 
								
							 
						 
						
							
							
								
								Add `eslint-plugin-vue-scoped-css` ( #26720 )  
							
							 
							
							... 
							
							
							
							Adds
[eslint-plugin-vue-scoped-css](https://github.com/future-architect/eslint-plugin-vue-scoped-css )
and fixes discovered issues which are:
- 1 unused selector
- 3 selectors with `.full.height` parent in a `<style scoped>` block so
the rule could not find the parent. Move these into the unscoped block
instead. They worked before and after. 
							
						 
						
							2023-08-25 13:47:27 +00:00  
						
					 
				
					
						
							
							
								 
								Viktor Suprun
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								7b05d66e60 
								
							 
						 
						
							
							
								
								Fixed text overflow in dropdown menu ( #26694 )  
							
							 
							
							... 
							
							
							
							Fixes  #26622 

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-25 11:15:21 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								ee9e83b230 
								
							 
						 
						
							
							
								
								Remove incorrect CSS helper classes ( #26712 )  
							
							 
							
							
							
						 
						
							2023-08-25 06:47:59 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								636b6eaf2a 
								
							 
						 
						
							
							
								
								Focus editor on "Write" tab click ( #26714 )  
							
							 
							
							... 
							
							
							
							Focus the editor when clicking the "Write" tab. Works for both Textarea
and EasyMDE. Does for some reason not work without the
`requestAnimationFrame`. 
							
						 
						
							2023-08-25 13:26:32 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								390ec619f3 
								
							 
						 
						
							
							
								
								Fix review bar misalignment ( #26711 )  
							
							 
							
							
							
						 
						
							2023-08-24 23:46:30 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								8ac83043f5 
								
							 
						 
						
							
							
								
								Use "small-loading-icon" insead of "btn-octicon is-loading" ( #26710 )  
							
							 
							
							... 
							
							
							
							The "btn-octicon is-loading" was introduced by #21842  , it is only used
by the "Copy Content" button, but the "btn-octicon" selector would
affect too many uncertain elements.
Now there is a general "small-loading-icon" class, so the "btn-octicon
is-loading" could be removed. 
							
						 
						
							2023-08-24 10:21:41 -04:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								09faf43ef8 
								
							 
						 
						
							
							
								
								Improve Image Diff UI ( #26696 )  
							
							 
							
							... 
							
							
							
							1. Use `is-loading` instead of `ui loader`
2. Introduce class name `image-diff-tabs`, instead of searching `gt-hidden`, which is fragile
3. Align the UI elements, see the screenshots. 
							
						 
						
							2023-08-24 12:13:23 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								f67f57a4c2 
								
							 
						 
						
							
							
								
								Handle "comment form combo editor init" more gracefully ( #26688 )  
							
							 
							
							... 
							
							
							
							Now Gitea exposes unhandled promise rejection messages as error message on the UI.
The "comment form" was quite unclear before, so it should be handled more gracefully to avoid such error. 
							
						 
						
							2023-08-23 23:15:06 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								af33a1187b 
								
							 
						 
						
							
							
								
								Fix doubled box-shadow in branch dropdown menu ( #26678 )  
							
							 
							
							
							
						 
						
							2023-08-23 08:13:04 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								a428591f6b 
								
							 
						 
						
							
							
								
								Refactor toast module ( #26677 )  
							
							 
							
							... 
							
							
							
							1. Do not use "async"
2. Call `hideToast` instead of `removeElement` for manual closing 
							
						 
						
							2023-08-23 07:25:13 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								e4b2bdfbc0 
								
							 
						 
						
							
							
								
								More improvements for the "flex list" and the dashboard list ( #26675 )  
							
							 
							
							... 
							
							
							
							Follow #26649  and #25790  and add one more example (text truncate) in the devtest page 
							
						 
						
							2023-08-23 04:23:30 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								8f2e2878e5 
								
							 
						 
						
							
							
								
								Use line-height: normal by default ( #26635 )  
							
							 
							
							... 
							
							
							
							Fix  #26537  again because 1.15 is too small for some fonts. 
							
						 
						
							2023-08-22 10:19:15 +00:00  
						
					 
				
					
						
							
							
								 
								yp05327
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								c052f76266 
								
							 
						 
						
							
							
								
								Fix organization list in dashboard ( #26650 )  
							
							 
							
							... 
							
							
							
							Fix ui problem comes from #26326 
Before:

After:
 
							
						 
						
							2023-08-22 08:49:00 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								7934602a4c 
								
							 
						 
						
							
							
								
								Improve some flex layouts ( #26649 )  
							
							 
							
							... 
							
							
							
							Fix  #26617 
1. Separate the "flex-list" examples into a dedicated template, and add some more examples
2. Use `flex-basis` instead of `flex-shrink` for `flex-item-trailing`, to avoid wrapping the texts too aggressively
3. Some `flex-wrap: wrap;` are removed 
							
						 
						
							2023-08-22 12:57:02 +08:00  
						
					 
				
					
						
							
							
								 
								yp05327
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								a4a567f29f 
								
							 
						 
						
							
							
								
								Check disabled workflow when rerun jobs ( #26535 )  
							
							 
							
							... 
							
							
							
							In GitHub, we can not rerun jobs if the workflow is disabled.
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-22 10:30:02 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								42cbe6005a 
								
							 
						 
						
							
							
								
								Improve the branch selector tab UI ( #26631 )  
							
							 
							
							
							
						 
						
							2023-08-21 13:35:02 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								facdaee47b 
								
							 
						 
						
							
							
								
								Replace box-shadow for `floating` dropdown as well ( #26581 )  
							
							 
							
							... 
							
							
							
							Add `box-shadow` replacement to the `floating` dropdown variant as well,
which was missed in https://github.com/go-gitea/gitea/pull/26469 . The
Fomantic style has `!important`, so this has to have too. Also made a
tiny adjustment to shadow color on dark theme.
<img width="305" alt="Screenshot 2023-08-18 at 16 40 34"
src="https://github.com/go-gitea/gitea/assets/115237/a0aac9cb-6393-4d69-b0b3-00eaac5ccf9f ">
<img width="202" alt="Screenshot 2023-08-18 at 16 40 22"
src="https://github.com/go-gitea/gitea/assets/115237/0a5fa3aa-7452-4dbd-86ed-ccbc1c872ebb ">
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-21 12:49:49 +02:00  
						
					 
				
					
						
							
							
								 
								yp05327
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								f6e7798405 
								
							 
						 
						
							
							
								
								Add link to job details and tooltip to commit status in repo list in dashboard ( #26326 )  
							
							 
							
							... 
							
							
							
							Tooltip:

Link to the target job:
 
							
						 
						
							2023-08-21 15:26:10 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								ead52dd96c 
								
							 
						 
						
							
							
								
								Use "input" event instead of "keyup" event for migration form ( #26602 )  
							
							 
							
							... 
							
							
							
							Otherwise, "pasted" content won't update the UI. 
							
						 
						
							2023-08-20 16:36:07 +02:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								5feef6d5c0 
								
							 
						 
						
							
							
								
								Update JS dependencies ( #26586 )  
							
							 
							
							... 
							
							
							
							- Update all JS dependencies
- Adapt `ansi_up` import for ESM
- Tested Mermaid and Ansi rendering 
							
						 
						
							2023-08-19 10:18:39 +02:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								48c4a7e75c 
								
							 
						 
						
							
							
								
								Rewrite the DiffFileTreeItem and fix misalignment ( #26565 )  
							
							 
							
							... 
							
							
							
							Fix some layout / user-interaction problems and close  #25650  , the code
has been simplified (+46 −108)
<details>

</details>
---------
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2023-08-18 19:55:56 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								30e5278d1b 
								
							 
						 
						
							
							
								
								Allow text selection in actions step header ( #26588 )  
							
							 
							
							
							
						 
						
							2023-08-18 18:38:29 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								e5b3f53d36 
								
							 
						 
						
							
							
								
								Add minimum polyfill to support "relative-time-element" in PaleMoon ( #26575 )  
							
							 
							
							... 
							
							
							
							Close  #26525  
							
						 
						
							2023-08-18 17:27:11 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								fe2b9274b1 
								
							 
						 
						
							
							
								
								Fix various line-height styles ( #26553 )  
							
							 
							
							... 
							
							
							
							Fix  #26537 
Use the same default line-height as "normalize.css" instead of "1". "1"
is not right because it doesn't work with descent part and causes
overflow problems.

---------
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-08-17 21:50:32 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								376c0e25f7 
								
							 
						 
						
							
							
								
								Remove fomantic transition module ( #26469 )  
							
							 
							
							... 
							
							
							
							Removes all dropdown and dimmer animations. Works everywhere as far as I
can tell, but need to give this thorough testing. Removes around 70kb
JS/CSS.
Note, I'm not 100% sure regarding the various callbacks, those will need
more investigation, but it appears to work nonetheless.
Fixes: https://github.com/go-gitea/gitea/issues/15709  
							
						 
						
							2023-08-16 22:12:40 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								3e044d2c9f 
								
							 
						 
						
							
							
								
								Use unique class for breadcrumb divider ( #26524 )  
							
							 
							
							... 
							
							
							
							Fix regression from https://github.com/go-gitea/gitea/pull/25539 :
https://github.com/go-gitea/gitea/pull/26519#issuecomment-1678825200 .
Before:
<img width="429" alt="Screenshot 2023-08-15 at 15 46 12"
src="https://github.com/go-gitea/gitea/assets/115237/a818f60a-77a2-48fe-8e6f-363d152ccb1e ">
After:
<img width="424" alt="Screenshot 2023-08-15 at 15 46 19"
src="https://github.com/go-gitea/gitea/assets/115237/c90159e2-ced2-4a74-8a0f-a1b2b5d0b565 ">
<img width="605" alt="Screenshot 2023-08-15 at 15 56 11"
src="https://github.com/go-gitea/gitea/assets/115237/3ded6f57-86f4-422a-86cb-56dd2c216dee "> 
							
						 
						
							2023-08-16 00:08:23 +00:00  
						
					 
				
					
						
							
							
								 
								yp05327
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								8703b6c954 
								
							 
						 
						
							
							
								
								Improve clickable area in repo action view page ( #26115 )  
							
							 
							
							... 
							
							
							
							Before:

After:

In current design, the clickable area is too small, and it is hard to
find the correct clickable area as the area with background color (div
with class name `job-brief-item selected`) is bigger than it.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-16 00:44:43 +02:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								c7fd9ad8b4 
								
							 
						 
						
							
							
								
								Fix dark theme highlight for "NameNamespace" ( #26519 )  
							
							 
							
							... 
							
							
							
							The color is taken from "Name"
Before:

After:

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-16 00:10:10 +02:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								7563891cc4 
								
							 
						 
						
							
							
								
								Remove duplicate CSS import for chroma/base.css ( #26523 )  
							
							 
							
							
							
						 
						
							2023-08-16 05:13:56 +08:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								27e4ac3e40 
								
							 
						 
						
							
							
								
								Use `hidden` over `clip` for text truncation ( #26520 )  
							
							 
							
							... 
							
							
							
							Avoid browser bugs:
- Firefox not cutting off -
https://github.com/go-gitea/gitea/pull/26354#issuecomment-1678456052 
- Safari not showing ellipsis -
https://github.com/go-gitea/gitea/pull/26354#issuecomment-1678812801  
							
						 
						
							2023-08-15 13:23:51 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								d317c983bc 
								
							 
						 
						
							
							
								
								Set "type=button" for editor's toolbar buttons ( #26510 )  
							
							 
							
							... 
							
							
							
							The editor usually is in a form, so the buttons should have
"type=button", avoid conflicting with the form's submit. 
							
						 
						
							2023-08-15 19:31:48 +08:00  
						
					 
				
					
						
							
							
								 
								a1012112796
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								19872063a3 
								
							 
						 
						
							
							
								
								add disable workflow feature ( #26413 )  
							
							 
							
							... 
							
							
							
							As title, that's simmilar with github.


---------
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Jason Song <i@wolfogre.com> 
							
						 
						
							2023-08-14 15:14:30 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								253737eb36 
								
							 
						 
						
							
							
								
								Move dropzone progress bar to bottom to show filename when uploading ( #26492 )  
							
							 
							
							... 
							
							
							
							1. Make the "filename" visible
2. Avoiding UI flicker when the uploading is completing 
							
						 
						
							2023-08-14 22:36:53 +08:00  
						
					 
				
					
						
							
							
								 
								puni9869
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								cafce3b4b5 
								
							 
						 
						
							
							
								
								Allow to archive labels ( #26478 )  
							
							 
							
							... 
							
							
							
							## Archived labels 
This adds the structure to allow for archived labels.
Archived labels are, just like closed milestones or projects, a medium to hide information without deleting it.
It is especially useful if there are outdated labels that should no longer be used without deleting the label entirely.
## Changes
1. UI and API have been equipped with the support to mark a label as archived
2. The time when a label has been archived will be stored in the DB
## Outsourced for the future
There's no special handling for archived labels at the moment.
This will be done in the future.
## Screenshots


Part of https://github.com/go-gitea/gitea/issues/25237 
---------
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-14 11:56:14 +02:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								56b6b2b88e 
								
							 
						 
						
							
							
								
								Fix tooltip of commit select button ( #26472 )  
							
							 
							
							... 
							
							
							
							Previously, the tooltip for this button was only shown after opening and
closing it once because it was only set after the server response, now
it shows before opening it. 
							
						 
						
							2023-08-14 02:16:40 +00:00  
						
					 
				
					
						
							
							
								 
								Denys Konovalov
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								ab78c39e41 
								
							 
						 
						
							
							
								
								Refactor project templates ( #26448 )  
							
							 
							
							... 
							
							
							
							This PR refactors a bunch of projects-related code, mostly the
templates.
The following things were done:
  - rename boards to columns in frontend code
  - use the new `ctx.Locale.Tr` method
  - cleanup template, remove useless newlines, classes, comments
  - merge org-/user and repo level project template together
    - move "new column" button into project toolbar
- move issue card (shared by projects and pinned issues) to shared
template, remove useless duplicated styles
- add search function to projects (to make the layout more similar to
milestones list where it is inherited from 😆 )
  - maybe more changes I forgot I've done 😆  
Closes  #24893 
After:



---------
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-08-12 10:30:28 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								74930b1ccd 
								
							 
						 
						
							
							
								
								Avoiding accessing undefined mentionValues ( #26461 )  
							
							 
							
							... 
							
							
							
							The `window.config.mentionValues` might be undefined: 
```
{{if or .Participants .Assignees .MentionableTeams}}
    mentionValues: ...
{{end}}
``` 
							
						 
						
							2023-08-12 08:36:23 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								2fc0eb913c 
								
							 
						 
						
							
							
								
								Tweak actions menu ( #26278 )  
							
							 
							
							... 
							
							
							
							Ressurect lost changes from
https://github.com/go-gitea/gitea/pull/24451 .
- Always show icons for each entry in the menu
- Make all checkboxes toggle only their feature, e.g. "seconds" and
"timestamps" can now be toggled on together.
- Reorder the items
<img width="845" alt="Screenshot 2023-08-01 at 19 19 27"
src="https://github.com/go-gitea/gitea/assets/115237/8a76e9bf-7966-42a6-87c9-e88cdddaec82 ">
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-12 08:26:53 +00:00  
						
					 
				
					
						
							
							
								 
								yp05327
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								918d0f033d 
								
							 
						 
						
							
							
								
								Fix the display of orgs listed in user profile ( #26424 )  
							
							 
							
							... 
							
							
							
							Before:

After:

In #26214 , we changed each row's display into `flex` which caused this
problem.


In old version:

Maybe we can add paddings here?

In old version;
 
							
						 
						
							2023-08-11 03:28:36 +08:00  
						
					 
				
					
						
							
							
								 
								Maxim Slipenko
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								c2b6897e35 
								
							 
						 
						
							
							
								
								Fix text truncate ( #26354 )  
							
							 
							
							... 
							
							
							
							Fixes: https://github.com/go-gitea/gitea/issues/25597 
Before:

After:

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-07 22:44:04 +02:00  
						
					 
				
					
						
							
							
								 
								Kerwin Bryant
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								865d2221c0 
								
							 
						 
						
							
							
								
								Add `Retry` button when creating a mirror-repo fails ( #26228 )  
							
							 
							
							... 
							
							
							
							fixed  #26156  
* Added a retry button in the frontend (only displayed when the status
is abnormal)
* After clicking Retry, the backend adds the task back to the task queue


---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-04 10:21:32 +08:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								539015403f 
								
							 
						 
						
							
							
								
								Fix the topic validation rule and suport dots ( #26286 )  
							
							 
							
							... 
							
							
							
							1. Allow leading and trailing spaces by user input, these spaces have
already been trimmed at backend
2. Allow using dots in the topic 
							
						 
						
							2023-08-03 09:18:06 +00:00  
						
					 
				
					
						
							
							
								 
								Earl Warren
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								6ed4626ed5 
								
							 
						 
						
							
							
								
								Merge `templates/projects/list.tmpl` and `templates/repo/projects/list.tmpl` together ( #26265 )  
							
							 
							
							... 
							
							
							
							(cherry picked from commit 473862a1d599382ca022482e2e044025872d240b)
Refs: https://codeberg.org/forgejo/forgejo/pulls/1126 
Co-authored-by: Louis Seubert <louis.seubert.ls@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-01 16:54:54 +00:00  
						
					 
				
					
						
							
							
								 
								Denys Konovalov
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								b9baed2c74 
								
							 
						 
						
							
							
								
								Introduce `flex-list` & `flex-item` elements for Gitea UI ( #25790 )  
							
							 
							
							... 
							
							
							
							This PR introduces a new UI element type for Gitea called `flex-item`.
It consists of a horizontal card with a leading, main and trailing part:

The idea behind it is that in Gitea UI, we have many cases where we use
this kind of layout, but it is achieved in many different ways:
  - grid layout
  - `.ui.list` with additional hacky flexbox
- `.ui.key.list` - looks to me like a style set originally created for
ssh/gpg key list, was used in many other places
  - `.issue.list` - created for issue cards, used in many other places
  - ...
This new style is based on `.issue.list`, specifically the refactoring
of it done in #25750 .
In this PR, the new element is introduced and lots of templates are
being refactored to use that style. This allows to remove a lot of
page-specific css, makes many of the elements responsive or simply
provides a cleaner/better-looking way to present information.
A devtest section with the new style is also available.
<details>
<summary>Screenshots (left: before, right: after)</summary>



















</details>
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-01 00:13:42 +02:00  
						
					 
				
					
						
							
							
								 
								Panagiotis "Ivory" Vasilopoulos
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								d58c542579 
								
							 
						 
						
							
							
								
								Add 'Show on a map' button to Location in profile, fix layout ( #26214 )  
							
							 
							
							... 
							
							
							
							Not too important, but I think that it'd be a pretty neat touch.
Also fixes some layout bugs introduced by a previous PR.
---------
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-authored-by: Caesar Schinas <caesar@caesarschinas.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-07-31 08:44:45 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								7e160f8824 
								
							 
						 
						
							
							
								
								Reduce margins on user settings page, introduce `flex-container` ( #26046 )  
							
							 
							
							... 
							
							
							
							Same as https://github.com/go-gitea/gitea/pull/26026  but for the user
settings page. It introduces a new `flex-container` class and shares it
across both pages.
Before and After:
<img width="1264" alt="Screenshot 2023-07-21 at 19 35 57"
src="https://github.com/go-gitea/gitea/assets/115237/1358dab4-55c0-40ce-a4d5-673099304f3d ">
<img width="1269" alt="Screenshot 2023-07-21 at 19 35 42"
src="https://github.com/go-gitea/gitea/assets/115237/34812f6d-dc65-4009-b977-90e03efdc6d1 "> 
							
						 
						
							2023-07-31 07:16:03 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								aa723dea9b 
								
							 
						 
						
							
							
								
								Don't autosize textarea in diff view ( #26233 )  
							
							 
							
							... 
							
							
							
							Resizing the comment editor can be a very expensive operation because it
triggers page reflows, which on large PRs can take upwards of seconds to
complete. Disable this mechanism on the diff page only where we know
that the page can get large.
Fixes https://github.com/go-gitea/gitea/issues/26201  for the textarea
editor.
I don't think this can be fixed for EasyMDE because as far as I can
tell, it exposes no option to disable this resizing.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-31 00:11:15 +02:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								72d89eb8dd 
								
							 
						 
						
							
							
								
								Fix attachment clipboard copy on insecure origin ( #26224 )  
							
							 
							
							... 
							
							
							
							Fixes: https://github.com/go-gitea/gitea/issues/26202 
Actually later I found out the code did not use `clippie`, so I fixed
it. The bug was never in the clippie module like I initially suspected.
Also, I added a tooltip for feedback.
<img width="139" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/da501670-9c15-4412-969a-b559773c7ab9 ">
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-30 00:56:45 +02:00  
						
					 
				
					
						
							
							
								 
								sebastian-sauer
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								55532061c8 
								
							 
						 
						
							
							
								
								Add commits dropdown in PR files view and allow commit by commit review ( #25528 )  
							
							 
							
							... 
							
							
							
							This PR adds a new dropdown to select a commit or a commit range
(shift-click like github) of a Pull Request.
After selection of a commit only the changes of this commit will be shown.
When selecting a range of commits the diff of this range is shown.
This allows to review a PR commit by commit or by viewing only commit ranges.
The "Show changes since your last review" mechanism github uses is implemented, too.
When reviewing a single commit or a commit range the "Viewed" functionality is disabled.
## Screenshots
### The commit dropdown

### Selecting a commit range

### Show changes of a single commit only

### Show changes of a commit range

Fixes https://github.com/go-gitea/gitea/issues/20989 
Fixes https://github.com/go-gitea/gitea/issues/19263 
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2023-07-28 21:18:12 +02:00  
						
					 
				
					
						
							
							
								 
								puni9869
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								1d8d90fd37 
								
							 
						 
						
							
							
								
								Fixing the align of commit stats in commit_page template. ( #26161 )  
							
							 
							
							... 
							
							
							
							Fixing the align center to row and space around for commit_page
template. 
							
						 
						
							2023-07-28 13:12:44 -04:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								d88fed0db1 
								
							 
						 
						
							
							
								
								Hide branch/tag icon if branches/tags are empty ( #26204 )  
							
							 
							
							... 
							
							
							
							The branch/tag icons aren't hidden correctly if there is no branch/tag. This PR fixes it. 
							
						 
						
							2023-07-28 23:05:24 +08:00  
						
					 
				
					
						
							
							
								 
								Earl Warren
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								eaea530d6b 
								
							 
						 
						
							
							
								
								Render plaintext task list items for markdown files ( #26186 )  
							
							 
							
							... 
							
							
							
							- The library that's being used for org-mode, [doesn't render the status
of list items](https://github.com/niklasfasching/go-org/issues/63 ).
- Add a modified version of the proposed CSS snippet to still display
the status for the list items. The alternative was parsing HTML and
transforming it, which is too complicated for this small task.
- Resolves https://codeberg.org/Codeberg/Community/issues/1099 
(cherry picked from commit 9753c7e4b8490b8f1e3d19cb06187503b88afb88)
Refs: https://codeberg.org/forgejo/forgejo/pulls/1071 
Co-authored-by: Gusted <postmaster@gusted.xyz> 
							
						 
						
							2023-07-27 14:15:31 +00:00  
						
					 
				
					
						
							
							
								 
								delvh
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								bd6ef71854 
								
							 
						 
						
							
							
								
								Show branches and tags that contain a commit ( #25180 )  
							
							 
							
							... 
							
							
							
							Now, you can see for a commit which existing branches and tags contain it.
You first have to click on the `load branches and tags` button, they are not preloaded by default.
All branches and tags are ordered descending by creation date.
You can even see without much hassle if the given commit is already part of the default branch.
Closes  #25152  
## Screenshots
### Initial

### Loaded

---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-07-27 12:47:41 +02:00  
						
					 
				
					
						
							
							
								 
								yp05327
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								36732005b4 
								
							 
						 
						
							
							
								
								Disable download action logs button when there's no logs ( #26114 )  
							
							 
							
							... 
							
							
							
							If there's no logs, you can also click the download button, then you
will get `job is not started` page

https://gitea.com/yp05327/testrepo/actions/runs/38 
After:
If there's no steps displayed, the download button will be disabled.
 
							
						 
						
							2023-07-26 20:51:26 +02:00  
						
					 
				
					
						
							
							
								 
								Jason Song
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								a5e09a5595 
								
							 
						 
						
							
							
								
								Fix UI regression of asciinema player ( #26159 )  
							
							 
							
							... 
							
							
							
							It was caused by updating `asciinema-player`, the upstream changed the
CSS class prefix:
`40505e479e `
<details>
<summary>Before:</summary>
<img width="1320" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/b91a2cf5-c1da-43d6-bac2-bc278728b11e ">
</details>
<details>
<summary>After:</summary>
<img width="1311" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/c9872d25-e0bb-43d4-8b1e-d87c6b03c0a2 ">
</details> 
							
						 
						
							2023-07-26 09:46:59 +00:00  
						
					 
				
					
						
							
							
								 
								Lunny Xiao
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								5dc37ef97a 
								
							 
						 
						
							
							
								
								Display deprecated warning in admin panel pages as well as in the log file ( #26094 )  
							
							 
							
							... 
							
							
							
							This PR includes #26007  's changes but have a UI to prompt administrator
about the deprecated settings as well as the log or console warning.
Then users will have enough time to notice the problem and don't have
surprise like before.
<img width="1293" alt="图片"
src="https://github.com/go-gitea/gitea/assets/81045/c33355f0-1ea7-4fb3-ad43-cd23cd15391d ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-07-26 03:53:37 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								e62ea96ada 
								
							 
						 
						
							
							
								
								Increase table cell horizontal padding ( #26140 )  
							
							 
							
							... 
							
							
							
							Extract from https://github.com/go-gitea/gitea/pull/26043 , just the
padding increase.
Before and After (hard to notice, but it's there):
<img width="427" alt="Screenshot 2023-07-25 at 19 37 12"
src="https://github.com/go-gitea/gitea/assets/115237/9543dcda-eccb-4739-b7dd-06b076108ab4 ">
<img width="420" alt="Screenshot 2023-07-25 at 19 37 26"
src="https://github.com/go-gitea/gitea/assets/115237/0a9c3724-81a1-4c67-a13b-4b728a51fc3a ">
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-25 23:54:20 +02:00  
						
					 
				
					
						
							
							
								 
								puni9869
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								5a56f9699c 
								
							 
						 
						
							
							
								
								Fix UI for release tag page / wiki page / subscription page ( #25948 )  
							
							 
							
							... 
							
							
							
							Agenda:
This PR contains UI fixes for release tag page / wiki page /
subscription page.
Here is the list of changes made in this PR.
1. Release tag page
a. In the New Release page the whole ui got change. Now it is covering
in full page page with mobile view port. Description about the release
the editor preview now has a min-height. and the check boxes for
`Prerelease` and option are left aligned. Couple of divider are added.
2. Subscription page: 
a. In the subscription page the ui was distorted in mobile view. Now its
fix. Couple of unused styles were removed.
3. Create Wiki page:- 
a. In the page the preview of markdown is now contains a fix min-height
so this it will not distorted in desktop view and a divider is added
before action buttons. Couple of unused styles were removed.
# Before
## Release page
<img width="1391" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/319dec2e-08cf-40c5-920a-d651930ee28e ">
<img width="494" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/03249f40-2d36-4552-bb93-43832aac2f8b ">
<img width="1390" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/bf8b2d31-4857-480b-abd9-66a3ae6e24d8 ">
<img width="484" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/c3a58210-a337-4c8e-89a6-edb3975986bb ">
Editor 
<img width="958" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/3bdd299d-d12b-4774-ace9-7184b1a57b18 ">
Editor preview
<img width="1293" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/2b61c528-c018-4800-ab86-07aae56adecd ">
<img width="484" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/ff7bc5ee-9dc0-4f78-a0b1-94277ab27700 ">
#### After
<img width="1439" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/94f7e073-5977-40bd-98ef-0711ed0815cc ">
<img width="1384" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/83e3105f-c1ee-4329-b90f-8bb724dac50f ">
<img width="1440" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/05f024a5-52eb-4072-8599-d6ca12f6fad1 ">
<img width="1387" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/c73f069b-572a-4a13-aaa9-fc5b4dd3420d ">
<img width="1440" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/2f98f012-8e64-4a12-9595-5acdef18f85c ">
Markdown preview change
<img width="1368" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/31e583ec-48f6-4f1a-8b56-0164fcb127a5 ">
Wiki page
Before
<img width="1393" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/9c9cfdf6-3c2a-4f47-883b-76624d96f9a0 ">
<img width="499" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/522ad573-1ad2-4fa2-8bf7-48a3dded14e7 ">
Preview of mark down. 
<img width="488" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/998f3c25-9fca-43c8-b1ff-648aab291727 ">
Footer 
<img width="490" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/89c6cf4e-4599-4403-bac8-285efdd9361a ">
After
<img width="1389" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/1ee0fc72-f864-44c0-b2e4-e0e8a8470204 ">
<img width="498" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/b35b9a5d-8e26-4869-a6ed-6cef1f4a87a6 ">
<img width="499" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/b40bcbaa-fca6-42ab-9556-f950811b565d ">
Preview tab block has min-height 
<img width="1392" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/4a53d6c2-596c-423a-91b1-533cef734f93 ">
Mobile view
<img width="496" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/c5ffc4c9-3c21-4cad-bc32-2ea3f0644a08 ">
<img width="497" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/08dd560f-4333-41ec-95b9-8154910d2254 ">
<img width="496" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/9fba8f55-727b-4756-a4a6-2070c719b15b ">
## Subscription page
### Before
<img width="1393" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/0a7d561b-f56c-4ebe-93bd-952abecd437f ">
<img width="492" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/4dc44d0c-ea81-4130-8afb-8f271c029e8a ">
After
<img width="1394" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/a3567e30-2b5b-49d6-9ecb-2ab481ea4d36 ">
<img width="494" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/024da9e2-dfc4-4672-95cc-a6ac034d9712 ">
<img width="508" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/b748ecea-427c-4f8b-a1bf-08f82f9a42e6 "> 
							
						 
						
							2023-07-25 17:53:16 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								ad5ce59800 
								
							 
						 
						
							
							
								
								Improve commit graph alignment and truncating ( #26112 )  
							
							 
							
							... 
							
							
							
							Fix  #26101 
 
							
						 
						
							2023-07-25 10:17:41 +00:00  
						
					 
				
					
						
							
							
								 
								JakobDev
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								6598d0291c 
								
							 
						 
						
							
							
								
								Allow Organisations to have a E-Mail ( #25082 )  
							
							 
							
							... 
							
							
							
							Resolves  #25057 
This adds a E-Mail field to Organisations. The E-Mail is just shown on
the Profile when it is visited by a logged in User. The E-mail is not
used for something else.
**Screenshots:**


---------
Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: Denys Konovalov <privat@denyskon.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-25 08:26:27 +00:00  
						
					 
				
					
						
							
							
								 
								wxiaoguang
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								a7e8273574 
								
							 
						 
						
							
							
								
								Fix the truncate and alignment problem for some admin tables ( #26042 )  
							
							 
							
							... 
							
							
							
							Some "text truncate email" code were just copied&pasted, they are not
suitable for most admin tables.
For the table layouts, some "max-width" helpers could be very helpful.
At least, we can get rid of the confusing "email" CSS class.


 
							
						 
						
							2023-07-22 10:54:48 +00:00  
						
					 
				
					
						
							
							
								 
								HesterG
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								2f0e79e639 
								
							 
						 
						
							
							
								
								Use frontend fetch for branch dropdown component  ( #25719 )  
							
							 
							
							... 
							
							
							
							- Send request to get branch/tag list, use loading icon when waiting for
response.
- Only fetch when the first time branch/tag list shows.
- For backend, removed assignment to `ctx.Data["Branches"]` and
`ctx.Data["Tags"]` from `context/repo.go` and passed these data wherever
needed.
- Changed some `v-if` to `v-show` and used native `svg` as mentioned in
https://github.com/go-gitea/gitea/pull/25719#issuecomment-1631712757  to
improve perfomance when there are a lot of branches.
- Places Used the dropdown component:
     Repo Home Page
    
<img width="1429" alt="Screen Shot 2023-07-06 at 12 17 51"
src="https://github.com/go-gitea/gitea/assets/17645053/6accc7b6-8d37-4e88-ae1a-bd2b3b927ea0 ">
    Commits Page
<img width="1431" alt="Screen Shot 2023-07-06 at 12 18 34"
src="https://github.com/go-gitea/gitea/assets/17645053/2d0bf306-d1e2-45a8-a784-bc424879f537 ">
    Specific commit -> operations -> cherry-pick
    
<img width="758" alt="Screen Shot 2023-07-06 at 12 23 28"
src="https://github.com/go-gitea/gitea/assets/17645053/1e557948-3881-4e45-a625-8ef36d45ae2d ">
    Release Page
    
<img width="1433" alt="Screen Shot 2023-07-06 at 12 25 05"
src="https://github.com/go-gitea/gitea/assets/17645053/3ec82af1-15a4-4162-a50b-04a9502161bb ">
- Demo
https://github.com/go-gitea/gitea/assets/17645053/d45d266b-3eb0-465a-82f9-57f78dc5f9f3 
- Note:
UI of dropdown menu could be improved in another PR as it should apply
to more dropdown menus.
Fix  #14180 
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-07-21 11:20:04 +00:00  
						
					 
				
					
						
							
							
								 
								Yarden Shoham
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								dbbae67f44 
								
							 
						 
						
							
							
								
								Remove commit status running and warning from the dashboard repo list ( #26036 )  
							
							 
							
							... 
							
							
							
							Also added comments so the next time the dashboard repo list won't be
forgotten
Follows #25839 
Signed-off-by: Yarden Shoham <git@yardenshoham.com> 
							
						 
						
							2023-07-21 10:32:25 +00:00  
						
					 
				
					
						
							
							
								 
								yp05327
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								d57e55cd47 
								
							 
						 
						
							
							
								
								Fix escape problems in the branch selector ( #25875 )  
							
							 
							
							... 
							
							
							
							Fix  #25865  
							
						 
						
							2023-07-21 06:18:40 +00:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								d021c88d29 
								
							 
						 
						
							
							
								
								Reduce margins on admin pages ( #26026 )  
							
							 
							
							... 
							
							
							
							Reduce margins around admin boxes and reduce sidebar size from 275px to
240px. This is the same 16px margin we use on issue pages.
Before and After:
<img width="1270" alt="Screenshot 2023-07-21 at 00 28 11"
src="https://github.com/go-gitea/gitea/assets/115237/f9b0dcb0-8f7e-49b4-b130-54bf31c142fd ">
<img width="1271" alt="Screenshot 2023-07-21 at 00 30 51"
src="https://github.com/go-gitea/gitea/assets/115237/ddd75d59-9ab9-4061-8989-852e89727560 "> 
							
						 
						
							2023-07-21 03:11:42 +00:00  
						
					 
				
					
						
							
							
								 
								FuXiaoHei
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								f3d293d2bb 
								
							 
						 
						
							
							
								
								Actions Artifacts support uploading multiple files and directories ( #24874 )  
							
							 
							
							... 
							
							
							
							current actions artifacts implementation only support single file
artifact. To support multiple files uploading, it needs:
- save each file to each db record with same run-id, same artifact-name
and proper artifact-path
- need change artifact uploading url without artifact-id, multiple files
creates multiple artifact-ids
- support `path` in download-artifact action. artifact should download
to `{path}/{artifact-path}`.
- in repo action view, it provides zip download link in artifacts list
in summary page, no matter this artifact contains single or multiple
files. 
							
						 
						
							2023-07-21 10:42:01 +08:00  
						
					 
				
					
						
							
							
								 
								silverwind
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								36010243f7 
								
							 
						 
						
							
							
								
								Fix commit status color on dashboard repolist ( #25993 )  
							
							 
							
							... 
							
							
							
							Followup to https://github.com/go-gitea/gitea/pull/25935  which has
missed to change the icon on the repolist because the logic is not
shared with templates.
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-20 01:04:41 +02:00  
						
					 
				
					
						
							
							
								 
								Earl Warren
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								e20f8f0977 
								
							 
						 
						
							
							
								
								Improve profile readme rendering ( #25988 )  
							
							 
							
							... 
							
							
							
							- Tell the renderer to use the `document` mode, so it's consistent with
other renderers.
- Use the same padding as `.file-view.markup`, so it's consistent with
other containers that contain markup rendering.
- Resolves https://codeberg.org/forgejo/forgejo/issues/833 
Co-authored-by: Gusted <postmaster@gusted.xyz> 
							
						 
						
							2023-07-19 22:22:32 +00:00  
						
					 
				
					
						
							
							
								 
								Earl Warren
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								8833853dd6 
								
							 
						 
						
							
							
								
								avoid hard-coding height in language dropdown menu ( #25986 )  
							
							 
							
							... 
							
							
							
							This commit removes the hard-coded height of 500px, using that as a
max-height instead. The height of items in the dropdown menu, assuming a
default font size of 16px, is 36px, so the old CSS would cause overly
large dropdown menus in instances where less than 14 languages are
offered.
Refs: https://codeberg.org/forgejo/forgejo/pulls/1000 
Co-authored-by: rome-user <rome-user@noreply.codeberg.org>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-19 23:30:57 +02:00  
						
					 
				
					
						
							
							
								 
								Jason Song
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								6f1f3e6c08 
								
							 
						 
						
							
							
								
								Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled ( #25947 )  
							
							 
							
							... 
							
							
							
							Since OAuth2 will callback the root URL, if the user starts signing in
from a wrong host, Gitea will return 500 because it cannot find the
session.
<details>
<summary>How to reproduce</summary>
<img width="901" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/2c2e255c-e13e-4a11-9be7-b226bee54920 ">
<img width="1014" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/b31cfcf6-a320-483d-9ce5-ba8562f065e1 ">
</details>
So show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is
enabled.
<img width="1015" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/99e80b17-c790-49a3-bbf2-2bd9396a7daa "> 
							
						 
						
							2023-07-18 22:14:30 +00:00