Commit Graph

11936 Commits

Author SHA1 Message Date
Konstantin Schaper
640a270e1d refactor form fields to enable usage with react-hook-form (#1656)
React Hook Form is a library that makes working with forms easier and reduces boilerplate. For it to be used in our project, some of the form fields had to be adjusted.
2021-05-14 09:08:57 +02:00
Konstantin Schaper
7286a62a80 Implement api for extension point typings (#1638)
Currently, the only way to explore available extension points is through our documentation or by browsing the source code. Once you find them, there is no guard rails and the usage is prone to user errors. This new api allows the declaration of extension points as types in code. This way, exposing an extension point is as easy as exporting it from a module. Both the implementation and the developer who uses the extension point work with the same shared type that allows auto-completion and type-checks for safety. This feature is backwards-compatible as the generic methods all have sensible defaults for the type parameters.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-05-12 16:05:30 +02:00
Eduard Heimbuch
b6b304f338 Use correct syntax for config routes (#1652) 2021-05-12 13:46:28 +02:00
Eduard Heimbuch
708f262454 Add testing guide (#1653) 2021-05-12 13:28:04 +02:00
Eduard Heimbuch
a71766ad4d Add TrustManagerProvider (#1654) 2021-05-12 08:56:51 +02:00
Sebastian Sdorra
a75cfaa6d9 Chromatic (#1655)
Integrate Chromatic into the build process of SCM-Manager.
2021-05-11 14:09:09 +02:00
Sebastian Sdorra
9e45d8255d Fix sse for notifications behind nginx reverse proxy (#1650) 2021-05-10 08:57:46 +02:00
CES Marvin
87bcdc3560 Prepare for next development iteration 2021-05-05 14:02:00 +00:00
CES Marvin
3791656760 Release version 2.18.0 2.18.0 2021-05-05 13:30:50 +00:00
René Pfeuffer
d938dfe7c2 Adjust changelog for release 2.18.0 2021-05-05 14:52:13 +02:00
Eduard Heimbuch
7e3a6b6fb2 Show correct default branch in repository config (#1643) 2021-05-05 14:45:18 +02:00
Sebastian Sdorra
b975fb655d Feature/global notifications (#1646)
Add global notifications
2021-05-05 14:43:16 +02:00
Sebastian Sdorra
de28cac4ab Fix flickering form elements on repository initialization (#1645) 2021-05-05 07:20:36 +02:00
René Pfeuffer
77b62be68a Fix messages for post commit hooks in git (#1647)
Fixes the transmission of messages from post commit hooks in Git repositories. We therefore use a new method patched in jGit for SCM-Manager. This simplifies the trigger logic a lot.
2021-05-04 16:53:43 +02:00
Eduard Heimbuch
579b58ba5f Show hg binary verification error messages (#1637)
Show hg verification error messages on global hg config page if trying to save invalid hg binary.
2021-05-03 19:04:08 +02:00
Eduard Heimbuch
7464baf767 Fix missing license headers 2021-04-30 16:13:19 +02:00
Eduard Heimbuch
9610285e55 Copy openapi spec to dev-war 2021-04-30 16:05:14 +02:00
Eduard Heimbuch
0fb7ab3219 Add license check for scm-ui 2021-04-30 16:05:01 +02:00
Eduard Heimbuch
af8980de19 Improve repository information page (#1636)
Only show relevant information for repository on repository information page. The initialization code example is only shown if the repository is still empty.
2021-04-29 18:13:32 +02:00
Konstantin Schaper
32b268e6f5 add extension point for custom link protocol renderers in markdown (#1639)
This PR allows for custom link protocols to be declared and rendered in markdown.
A new extension point markdown-renderer.link.protocol allows for renderers to hook into the api and implement any custom protocol.

Example:

[description](myprotocol:somelink)
binder.bind("markdown-renderer.link.protocol", { protocol: "myprotocol", renderer: MyProtocolRenderer })
This renderer functions similar to link renderers and receives the href and the description. The latter as the children property.

This PR also fixes two bugs where external- and anchor links were not correctly rendered in pull requests by the review-plugin.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-04-29 13:15:22 +02:00
Eduard Heimbuch
8f91c217fc Add patch endpoint for global config (#1629)
Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-04-28 08:47:29 +02:00
CES Marvin
9782fd2e8f Prepare for next development iteration 2021-04-26 14:31:33 +00:00
CES Marvin
11fa65f537 Release version 2.17.1 2.17.1 2021-04-26 13:51:39 +00:00
Eduard Heimbuch
d9449ba5cf Adjust changelog for release 2.17.1 2021-04-26 15:41:17 +02:00
René Pfeuffer
2b38f55991 Make code larger (#1631)
Sets the font size for code to 1rem like other text
2021-04-26 12:10:54 +02:00
René Pfeuffer
6cd8fc5ba4 Fix deserialization of embedded values in HAL objects (#1630)
The embedded avatar object of the repository avatar plugin
leads to an exception without this configuration, when
a repository json object is deserialized. This happens
for example when the description of a repository should
be modified.
2021-04-26 08:11:13 +02:00
CES Marvin
26c04a2f8b Prepare for next development iteration 2021-04-22 09:19:35 +00:00
CES Marvin
a9c64642aa Release version 2.17.0 2.17.0 2021-04-22 08:50:04 +00:00
Konstantin Schaper
ad458567b5 restrict markdown linting to docs 2021-04-22 10:04:09 +02:00
Konstantin Schaper
2006945ce6 Adjust changelog for release 2.17.0 2021-04-22 09:59:29 +02:00
Konstantin Schaper
67a0f5c16c remove console log 2021-04-22 09:24:46 +02:00
Eduard Heimbuch
e72b21702b Fix storyshots 2021-04-22 07:20:45 +02:00
Eduard Heimbuch
8897ea8c2f Fix code block for syntax highlighter 2021-04-21 16:36:08 +02:00
Eduard Heimbuch
7579d91505 Fix limit with negative integer for SearchUtil (#1627)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-04-21 16:19:16 +02:00
Florian Scholdei
05ef203038 Fix validation in "Add Entry" components (#1625) 2021-04-21 14:36:52 +02:00
Snyk bot
b6018280ed fix: upgrade @wojtekmaj/enzyme-adapter-react-17 from 0.4.1 to 0.5.0 (#1616)
Snyk has created this PR to upgrade @wojtekmaj/enzyme-adapter-react-17 from 0.4.1 to 0.5.0.

See this package in npm:
https://www.npmjs.com/package/@wojtekmaj/enzyme-adapter-react-17

See this project in Snyk:
https://app.snyk.io/org/scm-manager/project/c2672d02-e9a5-4817-a550-563e28be7150?utm_source=github&utm_medium=upgrade-pr
2021-04-21 13:19:59 +02:00
Snyk bot
c96b67b31d fix: upgrade react-refresh from 0.9.0 to 0.10.0 (#1626)
Snyk has created this PR to upgrade react-refresh from 0.9.0 to 0.10.0.

See this package in npm:
https://www.npmjs.com/package/react-refresh

See this project in Snyk:
https://app.snyk.io/org/scm-manager/project/11c43517-7233-448c-92c4-bc5d1e85f874?utm_source=github&utm_medium=upgrade-pr
2021-04-21 13:19:35 +02:00
Eduard Heimbuch
fa22581e3e Add changelog entry for remark-rehype compatibility 2021-04-21 13:19:07 +02:00
Eduard Heimbuch
b5d4d7f75c Feature/remark rehype (#1622)
Make remark compatible with rehype plugins so we can sanitize the content with rehype-sanitize-plugin.

Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2021-04-21 12:05:37 +02:00
Eduard Heimbuch
8b1c56c43d Add button to hg config ui to trigger automatic configuration (#1620)
* Add button to hg config ui to trigger automatic configuration
* Fix review findings

Co-authored-by: Florian Scholdei <florian.scholdei@cloudogu.com>
2021-04-21 11:45:02 +02:00
Eduard Heimbuch
5603aef54d Fix unit test 2021-04-21 10:39:20 +02:00
Eduard Heimbuch
f154ba7d83 Fix compatibility with old redux api (#1618) 2021-04-21 10:11:15 +02:00
René Pfeuffer
1e83c34823 Enable Health Checks (#1621)
In the release of version 2.0.0 of SCM-Manager, the health checks had been neglected. This makes them visible again in the frontend and adds the ability to trigger them. In addition there are two types of health checks: The "normal" ones, now called "light checks", that are run on startup, and more intense checks run only on request.

As a change to version 1.x, health checks will no longer be persisted for repositories.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-04-21 10:09:23 +02:00
Sebastian Sdorra
893cf4af4c Add graphviz to docker image (#1623)
This fixes the usage of the plantuml plugin inside of a docker
container.
2021-04-20 14:05:01 +02:00
Eduard Heimbuch
84c1e7ed37 Add new extension point for repository avatars (#1614)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-04-15 11:14:42 +02:00
Konstantin Schaper
29f4c754bb Lint markdown files 2021-04-14 15:24:15 +02:00
Florian Scholdei
43c5c44905 Add header to toplevel error boundary (#1613)
In the event of a reload due to a change of focus, possible error boundaries were displayed without the SCM-Manager header. This change complements the appropriate header.
2021-04-07 16:18:36 +02:00
Florian Scholdei
84ba05bab8 Correct positioning and coloring of button groups in modals (#1612) 2021-04-07 13:04:30 +02:00
René Pfeuffer
0a6e6e6c85 Fix rename of namespace with UTF-8 (#1611) 2021-04-06 09:19:31 +02:00
CES Marvin
5f887d4fa8 Prepare for next development iteration 2021-03-26 10:15:25 +00:00