Commit Graph

434 Commits (c9a04cfdc8cf499651d69a6a5f2f2f0b47bc34ad)

Author SHA1 Message Date
zeripath 60ef2a7c67
Add fullTextSearch to dropdowns by default ()
This PR adds `fullTextSearch: 'exact'` to most dropdown
invocations meaning that if there is a search box for the
dropdown it will automatically do a fullTextSearch looking
for the provided fragment instead of starting at the beginning

We should consider changing other places that use
`fullTextSearch: true` to `'exact'` because these will be using a
fuzzy-textual search that doesn't necessarily return the
expected results.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Kyle D d475d53c41
Fix svg spacing ()
* Add right margin to icons in menu items

* Reduce padding on user profile submenu to fit in one line by default (english)
vnkmpf 51fb0463a3
Fix truncated organization names ()
* Fix truncated organization names

Previous ellipsis implementation hid vertical overflow - image + descent line of letters.
Organization visibility in select on dashboard was not always visible.
This commit extracts classes which don't make collisions with other items on page.
vnkmpf 441f3f0f20
Make fileheader sticky in diffs ()
* Make fileheader sticky 

* Remove sticky filenames when width is 480px or less

On mobile phone sticky filename is hidden due to the combination
of many possible widths and lengths.

* Fix text color for .markdown-info

* Fix visual of sticky diff box on 480px or less

- Hide arrow for select buttons.
- Fix changes, additions and deletions.
With flexbox they look very broken.
This commit hides some words to, so the result is:
"123 changed files  987 additions  456 deletions"
- center text in buttons

Co-authored-by: zeripath <art27@cantab.net>
a1012112796 ac701637b4
Add dismiss review feature ()
* Add dismiss review feature

refs:
    https://github.blog/2016-10-12-dismissing-reviews-on-pull-requests/
    https://developer.github.com/v3/pulls/reviews/#dismiss-a-review-for-a-pull-request

* change modal ui and error message

* Add unDismissReview api

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Romain c69c01d2b6
Sort / Move project boards ()
Sort Project board ()
vnkmpf 3a4801d195
Truncated organisations name ()
- truncate to max length 40
- add CSS ellipsis
Andrew Bezold bc05ddc0eb
Redirect on changed user and org name ()
* Add redirect for user

* Add redirect for orgs

* Add user redirect test

* Appease linter

* Add comment to DeleteUserRedirect function

* Fix locale changes

* Fix GetUserByParams

* Fix orgAssignment

* Remove debug logging

* Add redirect prompt

* Dont Export DeleteUserRedirect & only use it within a session

* Unexport newUserRedirect

* cleanup

* Fix & Dedub API code

* Format Template

* Add Migration & rm dublicat

* Refactor: unexport newRepoRedirect() & rm dedub del exec

* if this fails we'll need to re-rename the user directory

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Jimmy Praet 271a011ba1
Fix close/reopen with comment ()
it previously only worked for the simple textarea, and not for the rich textarea
zeripath 20f980dcc2
ensure timeout error is shown on u2f timeout ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 81c833d92d
Add support to migrate from gogs ()
Add support to migrate gogs:

  *  issues
  *  comments
  *  labels
  *  milestones
  *  wiki


Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Norwin b5570d3e68
Display current stopwatch in navbar ()
* add notification about running stopwatch to header

* serialize seconds, duration in stopwatches api

* ajax update stopwatch

i should get my testenv working locally...

* new variant: hover dialog

* noscript compatibility

* js: live-update stopwatch time

* js live update robustness
KN4CK3R 56a8929605
Comment - Reference in new issue ()
* Implemented "Reference in new issue"

* Fixed menu style on "pulls/x/files" because "button" has a style.

* Added context menu for PR file comments.

* Use only a single modal for every comment.

* Use current repository as default. Added search filter.

* Added suggested changes.

* Fixed assignment.

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Roberto Santalla ef85bf84ee
Project: show referenced PRs in issue cards ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Kyle D 41e19b93a2
Align dropdown right ()
Lauris BH ca63a9d3f1
Add edit, delete and reaction support to code review comments on issue page ()
6543 3091600cc8
KanBan: be able to set default board ()
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
Norwin a21adf92ec
restrict query selector to edit form ()
Co-authored-by: Lauris BH <lauris@nix.lv>
6543 6b3b6f1833
Add option to change username to the admin panel ()
Co-authored-by: Bwko <bouwko@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
Jimmy Praet bcb7f35221
Do not reload page after adding comments in Pull Request reviews ()
Fixed  
* use ajax on PR review page

* handle review comments

* extract duplicate code

FetchCodeCommentsByLine was initially more or less copied from fetchCodeCommentsByReview. Now they both use a common findCodeComments function instead

* use the Engine that was passed into the method

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Cirno the Strongest 21fbee1503
Various UI fixes ()
* Fix 

* Fix 

* Fix 

* Fix 

* Use octicon to show private status of repo in admin dashboard

* Fix 

* Fix 
Kyle D 4092c044e0
Kd/fix team avatar aspect ratio ()
* Add org member avatar to text data for fixed width

* set min-width to prevent single char lines
Kyle D 0f99edf123
Prevent clipping input text in Chrome ()
a1012112796 b003116fca
fix branch selector on new issue page ()
fix 

Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
silverwind 8e5aea88c7
Improve label and text wrapping ()
* Improve label wrapping

- Adjust issue list styles so labels can wrap on the same line as the
  text. This relies on `display: inline` with the HTML whitespace being
  used as the separator.
- Add global word-break: break-word. This should generally avoid text
  overflows in various places.

* add whitespace to history labels

* use overflow-wrap

* restore word-break rules

* use correct pre

* use better selector for middle align

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Jimmy Praet 40274b4a93
Team dashboards ()
silverwind 50a2dd52ba
Update JS dependencies and webpack ()
* Update JS dependencies

- Update all JS dependencies
- Adapt webpack config for version 5
- Update to Less 4.0, adapting usage of removed mixin syntax
- Enable new ESLint rules and fix discovered issues

* update license-webpack-plugin to fix missing licenses

* update license-webpack-plugin once more to get webpack into the license output

* switch to license-checker-webpack-plugin again for performance

* update deps again

Co-authored-by: Lauris BH <lauris@nix.lv>
silverwind fe403725f4
Improve basic button and label styles ()
* Improve disabled styles for repo buttons

- Simplify disabled styling of label by matching for the disabled
  attribute.
- Raise fomantic disabled opacity from .45 to .55 to for more contrast.
- Use CSS vars for basic button styles.

* restore clickability on label

* color tweaks and remove arc-green style

* slightly reduce button size

* consolidate vars

* also cover active class

* slightly more distinct active class

* remove useless rule
Norwin 24ecdbdb0d
Fix UI on edit auth source page ()
* do not override OAuth URLs with default values when editing an auth source (fixes )
* show custom url inputs by default for providers that don't provide an official hosted service
silverwind 04ae0f2f3f
Disable Fomantic's custom scrollbars ()
We already have custom scrollbars in our own CSS which are superior to
Fomantic's so diable them to save a few bytes and prevent interference.
Lunny Xiao 2c8d302eb1
Fix heatmap total contributions ()
silverwind b4f8da533e
Search and Diff CSS enhancements ()
* Search and Diff CSS enhancements

- Use flexbox for language stats
- Improve labels and code boxes on repo and code search
- Use flexbox on diff header and improve suppressed diff text
- Add dedicated color for diff expander

* more diff tweaks, less vertical padding on header

* more minor tweaks

* always show fold icon, image diff improvments

* remove margin

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Cirno the Strongest f3c4baa84b
Show dropdown with all statuses for commit ()
* Show dropdown with all statuses for commit

* Use popups

* Remove unnecessary change

* Style popup

* Use divided list

* As per @silverwind

* Refactor GetLastCommitStatus

* Missing dropdown on repo home and commit page

* Fix tests

* Make status icon be a part of a link on PR list

* Fix missing translation call

* Indent fix

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind 4aabbacdfe
Fix merge button dropdown triangle alignment ()
https://github.com/go-gitea/gitea/pull/14028 had improved dropdown
triangle display for buttons with text but had regressed it for buttons
without. Fix this by adding a class to prevent horizontal margin adjustment.

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
silverwind e25e7b9598
Commit list display tweaks ()
- Make plain <pre> inherit our monospace fonts, overriding fomantic's
  css reset which means expanded commit messages now follow the font
  settings.
- Adjust link styling and keyword highlighting in commit message
- Consolidate .commit-summary styles to single selector group

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind 3260e15668
Dashboard search tweaks ()
- Fix color of inactive pagination parts caused by overreaching CSS
selector.
- Slightly reduce horizontal padding on list items
- Add spacing around pagination and move it outside of <ul>
silverwind 8af9df0036
Diff and code review refactors and improvements ()
* Diff CSS refactors and misc tweaks

- Simplify Diff CSS styling
- Add color variables for diff
- Fix vertical centering of inline comment button
- Slightly adjust text colors, e.g. in comment header

* Code review improvments

* selector tweak

* fix diff issues, add inactive bg color

Co-authored-by: 6543 <6543@obermui.de>
silverwind a8fa380c25
Dropdown triangle fixes ()
* Dropdown triangle fixes

Fomantic's CSS assumes the dropdown triangles are fonts but we've recently
swapped them for SVG so we need to wrestle a bit with Fomantic to get it
to display properly and not cause buttons to resize.

Fixes: https://github.com/go-gitea/gitea/issues/14014

* move css and add link
Cirno the Strongest 5f55bab70e
Fix webhook list styling ()
* Fix webhook list styling

* As per @silverwind
silverwind f547b27347
Fix markdown checkboxes on Blink ()
Blink still requires a vendor prefix for `mask-image` and `mask-size`,
so add that here to fix the rendering.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Cirno the Strongest 27d0a5554f
Hide command line instructions when merge form is visible ()
* Hide commandline instructions when merge form is visible

* As per @silverwind

Co-authored-by: zeripath <art27@cantab.net>
bobemoe b35c1b5784
add thumbnail preview section to issue attachments ()
* add thumbnail preview section to attachments

* dont show thumbnail if the image is already shown inline

* update router to pass the `content` to the attachemnts template

* limit attachment preview height to 150px (same as width)

* remove unused css (referance removed in https://github.com/go-gitea/gitea/pull/11141/files#diff-9faae32445ed9673de2830c9fc35e93f44487f0a0068202988adaf00a5bac850L66 )

* dont show divider after edit if no attachemnts

Co-authored-by: James <inbox.dev@jhodges.co.uk>
Co-authored-by: 6543 <6543@obermui.de>
silverwind 41e8b834af
Markdown task list improvements ()
* Markdown task list improvements

- Remove `.ui` class and wrappers to prevent fomantic from messing with it.
- Change rendered HTML to match GitHub.
- Add custom styling for the checkboxes.

* fix unittest

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind 1837e647eb
Diff stat improvements ()
* Diff stat improvements

- Combine number to just total number of changes
- Add tooltip over stats bar
- Increase contrast on file name
- Refactor classes and CSS to be more reusable

* misc tweaks

* make count bold
silverwind 160f606a15
Reorganize Chroma styles ()
This moves the Chroma styles into separate files with base,light and
dark variants. Should work exactly as before.
silverwind d0043ffb7f
Better vertical align of buttons in headers ()
The previous method used `transform` which formed a CSS stacking context
which caused issues with dropdowns appearing behind other elements which
made `position: static` necessary but that again caused even more
issues.

This method achieves the same as before, but without the additional
stacking context.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind 1cb1fb8a2e
Remove JS globals related to timetracking and due date ()
Refactor to avoid these globals. Should work exactly as before.
Lunny Xiao 2d71cdb668
Add pull request manually merge instruction ()
* add pull request command line instructions

* Add pull request manually merge instuction

* Fix styles

* Fix lint

* Move inline style to class file

* add space between merge button and hint text

* Add sentence end charcter

* Change the language file

* adjust secondary bg

* further adjustment

Co-authored-by: silverwind <me@silverwind.io>
silverwind c85bb62635
Replace more icons with SVG, repo search tweaks ()
* Replace more icons with SVG

- Replace remaining icons on admin page with SVG
- Fix vertical menu background on arc-green
- Minor improvments to frontpage repo search
- More icon replacements here and there

* fix integration

* whitespace tweak

* add comment

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind 48dd0e21f9
Markdown: Enable wrapping in code blocks and a color tweak ()
- Enable wrapping of long lines in code blocks like already done in code
  view.
- Slightly lighten the background of code blocks on default theme
- Darken the background on inline code and kbd elements on arc-green

Co-authored-by: 6543 <6543@obermui.de>