Lauris BH
6f07f2acf2
Fix error color contrast in dark theme ( #2778 )
2023-11-09 07:07:20 +01:00
Robert Kaussow
4c2dbca2e9
Replace linter icons to match theme ( #2765 )
...
@qwerty287 @anbraten What do you think about this approach? This way the
icons fit more into the existing design. I've also moved the icon in the
tab to the end as this looks IMO a bit better on mobile view, but open
for discussions.
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/f56a9688-4ca2-4b7b-a053-3e74effe6976 )
<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/93cd4dd6-4e22-4210-9fee-f8d134d3df42 "
width=350> <img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/6128fec9-3dc5-4483-abde-5a911b236138 "
width=350>
Alternative idea for errors:
<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/bee8b1ea-8d27-43cc-9fb1-2df0031d3551 "
width=350>
Or just use one symbol and only change the color for errors/warnings?
2023-11-09 00:03:36 +02:00
qwerty287
a417cca25b
UI enhancements/fixes ( #2754 )
...
- disallow collapsing pipeline configs if it's only one config
- do not show name if only one config
2023-11-05 15:55:49 +01:00
Anbraten
a0f2ee9506
Add deprecation warnings ( #2725 )
2023-11-04 15:30:47 +01:00
Anbraten
33f9574dce
Add version and update notes ( #2722 )
2023-11-04 14:20:50 +01:00
Anbraten
b949c190de
Some UI fixes ( #2698 )
...
- fix first log line being dropped if channel was opened
- link org and repo on repo logs view
- fix decline pipeline status does not update
2023-11-04 06:51:26 +01:00
Anbraten
fe489287fc
Fix active tab not updating on prop change ( #2712 )
2023-11-03 16:01:14 +01:00
Anbraten
49f95edf00
Fix step selection ( #2719 )
...
Just reverted those lines from #1572
2023-11-03 14:42:59 +01:00
Anbraten
5ff006614f
Enhance linter and errors ( #1572 )
...
Co-authored-by: 6543 <m.huber@kithara.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-11-03 11:44:03 +01:00
qwerty287
2ff916c804
Refactor UI dark/bright mode ( #2590 )
...
- collapse pipeline configs by default, closes
https://github.com/woodpecker-ci/woodpecker/discussions/2557
- refactor ui themes: instead of just differentiating between "is dark"
or "is not dark", add a third "auto" option following the browser
settings (closes
https://github.com/woodpecker-ci/woodpecker/discussions/2204 ) and put
everything into an enum. also move the option from the navbar to user
settings.
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-01 10:30:40 +01:00
Anbraten
284fb99194
UI cleanups and improvements ( #2548 )
2023-10-08 17:49:13 +02:00
Michalis Zampetakis
259ff78a62
Fix PR event trigger and list for bitbucket repos ( #2539 )
...
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-10-08 14:18:49 +02:00
renovate[bot]
a93027b9b5
chore(deps): update dependency prettier to v3 ( #2420 )
2023-09-10 11:01:52 +02:00
Robert Kaussow
5c2f02c4a1
Harmonize pipeline status information and add a review link to the approval ( #2345 )
...
Ref:
https://github.com/woodpecker-ci/woodpecker/discussions/2162#discussioncomment-6666864
Adds a `PipelineInfo` view to harmonize pipeline status information and
add a review link to the approval view.
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/41062b5f-0f15-4c3c-b72c-e22092804072 )
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/4cfb1bc8-8bfd-4217-bce3-c9a1378f58ee )
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/f3b22a07-464e-4d29-85f0-de122bce1bbe )
---------
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-09-09 08:35:53 +02:00
qwerty287
d04bb72e5e
Add repos list for admins ( #2347 )
2023-09-08 12:26:20 +02:00
qwerty287
971534929c
Only show commit title ( #2361 )
...
https://github.com/woodpecker-ci/woodpecker/issues/2359
2023-08-30 17:08:56 +02:00
Robert Kaussow
91192a900a
Truncate commit message in pipeline log view header ( #2356 )
2023-08-30 16:17:01 +02:00
qwerty287
9718791eac
Increase header padding again ( #2348 )
...
From #2327
(https://github.com/woodpecker-ci/woodpecker/pull/2327#pullrequestreview-1600673521 )
This probably needs some discussion first, but I think it looks ugly
with the current padding.
**Before**
![Screenshot 2023-08-29 at 17-17-00
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/0f4df035-b10e-4309-b119-2044fad1d534 )
**After**
![Screenshot 2023-08-29 at 17-16-48
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/c45328c1-c3bf-401d-83fa-1b4b1b96d0c0 )
2023-08-29 18:31:25 +02:00
Robert Kaussow
81aa9b1439
Use full width header on pipeline view and show repo name ( #2327 )
...
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
Co-authored-by: 6543 <m.huber@kithara.com>
2023-08-29 15:57:58 +02:00
Robert Kaussow
d155dfdecb
Use html list for changed files list ( #2346 )
...
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/743317fa-cce6-4eb5-aaa4-7f38aadfcb66 )
2023-08-29 15:06:56 +02:00
qwerty287
5bd12aa646
Show that repo is disabled ( #2340 )
...
And allow to show badges for disabled repos
Fixes 3rd checkbox from
https://github.com/woodpecker-ci/woodpecker/discussions/2162#discussion-5498655
![Screenshot 2023-08-28 at 11-13-23
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/d881f0c5-6225-4921-9d05-a26f27ad5365 )
2023-08-28 18:57:44 +02:00
qwerty287
479ced3b25
Add org list ( #2338 )
...
![Screenshot 2023-08-28 at 10-08-20
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/e3248b05-7899-43ca-a0cf-4834eae078d8 )
Closes #2307
2023-08-28 11:15:16 +02:00
Robert Kaussow
e139abf15a
Add min height to mobile pipeline view and fix overflow ( #2335 )
...
The mobile pipeline view in landscape view is not really usable. The
idea is to add a min-height to use the screen a bit better for the main
content. Before:
[before.webm](https://github.com/woodpecker-ci/woodpecker/assets/3391958/c4f38da6-c0f2-4549-9f80-90a4b02ddc94 )
After:
[after.webm](https://github.com/woodpecker-ci/woodpecker/assets/3391958/a0397d52-aeda-4edf-9200-953ca4738daa )
2023-08-28 00:36:48 +02:00
Robert Kaussow
2f6909847f
Fix mobile login view ( #2332 )
...
Before:
<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/27a97d84-1aea-4edd-8816-65693429caf9 "
width="300">
<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/efcba454-515c-453e-abce-6cfd63b30dc7 "
width="500">
After:
<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/3fa4ee48-f230-4cdb-bdb9-8527477cb4e2 "
width="300">
<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/2b327f53-8a33-4506-adb3-1f7ccb64c702 "
width="500">
2023-08-27 20:58:06 +02:00
Robert Kaussow
c5240d8ce0
Fix button loading spinner when activating repos ( #2333 )
...
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/2234
There is no internal `repo.id` for not enabled repos. Use the remote
forge repo id instead.
2023-08-27 17:54:33 +02:00
qwerty287
81ead7cbf2
Support user secrets ( #2126 )
2023-08-21 15:04:12 +02:00
qwerty287
35baaa8224
Use browser-native tooltips ( #2189 )
...
Replace the `floating-vue` library with the browser-native tooltips.
Reduces `dist` size by 45KB.
2023-08-20 15:07:27 +02:00
qwerty287
3bdeb47d8c
Use Vue setup directive ( #2165 )
2023-08-08 12:22:39 +02:00
qwerty287
67b7de5cc2
Fix UI and backend paths with subpath ( #1799 )
...
I'm not sure if this is an ideal fix for this, but it seems to work for
me. If you have another idea just let me know.
Closes #1798
Closes #1773
2023-08-07 16:05:18 +02:00
qwerty287
d09c418941
Improve user settings ( #2087 )
...
Make the user settings tabbed as well, currently only holding "Settings"
(language) and "API". Can be extended with user secrets (#1739 ) etc.
later.
![Screenshot 2023-08-02 at 09-56-00
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/15d82800-8a4d-47fe-aa77-33462f63585e )
![Screenshot 2023-08-02 at 09-56-05
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/de2640be-144c-4190-adb6-56d43a38bdda )
---------
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2023-08-03 11:35:12 +02:00
qwerty287
1a7f7a9427
Allow to disable swagger ( #2093 )
...
https://github.com/woodpecker-ci/woodpecker/issues/1944
2023-08-03 02:42:30 +02:00
Robert Kaussow
dca01e6817
Use consistent woodpecker color scheme ( #2003 )
...
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1079
What do you think about using a consistent `woodpecker` color scheme?
Right now, the `lime` color scheme from windicss is used that does not
really fit the primary color used for the documentation website. I have
used the primary color `#4CAF50` from the docs and created a color
palette with https://palettte.app/ :
<details>
<summary>JSON source</summary>
```Json
[
{
"paletteName": "New Palette",
"swatches": [
{
"name": "New Swatch",
"color": "166E30"
},
{
"name": "New Swatch",
"color": "248438"
},
{
"name": "New Swatch",
"color": "369943"
},
{
"name": "New Swatch",
"color": "4CAF50"
},
{
"name": "New Swatch",
"color": "68C464"
},
{
"name": "New Swatch",
"color": "8AD97F"
}
]
}
]
```
</details>
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/a254f1e0-ce17-43a9-9e8b-72252296fd6f )
I have added this color scheme to the windicss config and replaced the
use of `lime` in the UI. While `woodpecker-300` would be the primary
color that is used for the docs, I currently use `woodpecke-400` as
primary color for the UI to fix some contrast issues.
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/7bf751e1-f2a6-481c-bee7-a27d27cf8adb )
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/e5673dc7-81c1-4fd4-bef9-14494bc5aa27 )
What do you think? If you would like to stay with the current colors,
that's fine for me, I can just use the custom CSS feature in this case.
---------
Co-authored-by: 6543 <6543@obermui.de>
2023-08-02 09:09:12 +02:00
Robert Kaussow
2e954801b8
Always use a static back route ( #2028 )
...
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1998
---------
Co-authored-by: 6543 <6543@obermui.de>
2023-07-24 20:06:26 +02:00
Anbraten
e5d5ec8b47
Use id to access orgs ( #1873 )
...
closes #1743
fixes: setting secrets for own user namespace
- create org in database
- use orgID for org related APIs
Co-authored-by: 6543 <6543@obermui.de>
2023-07-21 19:45:32 +02:00
6543
572449b845
make pending pipelines cancable ( #2013 )
...
in some edgecases we get pipelines that we can not cancle via WebUI.
fix https://codeberg.org/Codeberg-CI/feedback/issues/126
2023-07-18 06:12:17 +02:00
qwerty287
570f5044e8
Drop support for Bitbucket Server ( #1994 )
...
Closes #1962
2023-07-13 15:47:25 +02:00
qwerty287
0e25d6d35a
pnpm update
(#1902 )
...
Using a simple `pnpm update` didn't fix any of the issues in #1900 but
it fixes some vulnerabilities shown with `pnpm audit`. I didn't try to
force-update `semver` to fix the security vulnerability there.
---------
Co-authored-by: 6543 <6543@obermui.de>
2023-07-02 12:47:36 +02:00
qwerty287
3033abc3b4
Add own workflow model ( #1784 )
...
Closes #1287
---------
Co-authored-by: 6543 <6543@obermui.de>
2023-06-27 18:01:18 +02:00
Anbraten
ff01a9ff1d
Access repos by their ids ( #1691 )
...
closes #1295
closes #648
# TODO
- [x] add new routes with `:repoID`
- [x] load repo in middleware using `:repoID` if present
- [x] update UI routes `:owner/:name` to `:repoID`
- [x] load repos using id in UI
- [x] add lookup endpoint `:owner/:name` to `:repoID`
- [x] redirect `:owner/:name` to `:repoID` in UI
- [x] use badge with `:repoID` route in UI
- [x] update `woodpecker-go`
- [x] check cli
- [x] add migrations / deprecation notes
- [x] check if #648 got solved directly
- [x] Test
- [x] create repo
- [x] repo pages
- [x] ui redirects
- [x] forge status links
2023-06-13 01:07:52 +02:00
Martin W. Kirst
14177635b6
Update swagger API specification ( #1782 )
...
# Summary
This PR drops the outdated former swagger.yaml/json and introduced
automatic API document generation from Go code.
The generated code is also used to generate documentation/markdown for
the community page,
as well as enable the Woodpecker server to serve a Swagger Web UI for
manual tinkering.
I did opt-in for gin-swagger, a middleware for the Gin framework, to
ease implementation and have a sophisticated output.
This middleware only produces Swagger v2 specs. AFAIK the newer OpenApi
3x tooling is not yet that mature,
so I guess that's fine for now.
## Implemenation notes
- former swagger.json files removed
- former // swagger godocs removed
- introduced new dependency gin-swagger, which uses godoc annotations on
top of Gin Handler functions.
- reworked Makefile to automatically generate Go code for the server
- introduce new dependency go-swagger, to generate Markdown for
documentation purposes
- add a Swagger Web UI, incl. capabilities for manual API exploration
- consider relative root paths in the implementation
- write documentation for all exposed API endpoints
- incl. API docs in the community website (auto-generated)
- provide developer documentation, for the Woodpecker authors
- no other existing logic/code was intentionally changed
---------
close #292
---------
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2023-06-03 21:38:36 +02:00
Anbraten
cfb53cb995
Redirect to new pipeline ( #1761 )
...
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-05-17 19:33:28 +02:00
qwerty287
02913fa7b6
Add reset token button ( #1755 )
...
Closes #696
2023-05-14 18:48:33 +02:00
qwerty287
0f9188597e
Initiate Pagination Implementation for API and Infinite Scroll in UI ( #1651 )
...
- Add pagination support to the API endpoints that return lists of items
- Adjust UI to enable infinite scrolling via pagination
2023-04-30 03:40:13 +02:00
qwerty287
0970f35df5
Do not store inactive repos ( #1658 )
...
Do not sync repos with forge if the repo is not necessary in DB.
In the DB, only repos that were active once or repos that are currently
active are stored. When trying to enable new repos, the repos list is
fetched from the forge instead and displayed directly. In addition to
this, the forge func `Perm` was removed and is now merged with `Repo`.
Solves a TODO on RepoBatch.
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-03-21 23:01:59 +01:00
qwerty287
88d2486ab2
Various UI improvements ( #1663 )
...
https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1475128683
https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1477858832
(2.)
and the last two tasks from
https://github.com/woodpecker-ci/woodpecker/issues/1314#issue-1418804461
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-03-21 17:31:24 +01:00
Anbraten
2337f1854a
Add queue details UI for admins ( #1632 )
...
# Changes
- Adds an admin view to see the whole work-queue of the server.
- The admin can also pause / resume the queue.
- The view is reloading data every 5 seconds automatically.
- The task model from queue got removed in favor of the one from models.
2023-03-20 04:50:56 +01:00
qwerty287
42a115e19e
Add PR pipeline list ( #1641 )
...
Instead of viewing PR pipelines in the branches lists, add a separate
list for them. The API endpoint for PRs supports pagination (thus I
added a lot of pagination-related stuff), the UI doesn't yet though.
![wp](https://user-images.githubusercontent.com/80460567/226099133-bb4935d6-c357-4d73-8465-9157e25c0d82.png )
Closes #1619
Extends this part of #1640
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-03-19 10:43:57 +01:00
Anbraten
25e2c8055c
UI improvements ( #1640 )
2023-03-18 21:49:12 +01:00
Anbraten
277a839157
Add users UI for admins ( #1634 )
...
Co-authored-by: Lauris BH <lauris@nix.lv>
2023-03-18 21:21:20 +01:00
Hayden
73c47bd2ff
Add collapsable support to panel elements ( #1601 )
...
Closes #1312
Updates the `Panel` component to support collapsing
## Example
https://user-images.githubusercontent.com/64056131/222880570-6611fdd7-4577-4ed5-9798-fce829a4a752.mp4
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-03-05 07:50:04 +01:00