Commit Graph

2845 Commits

Author SHA1 Message Date
Eduard Heimbuch
ab2bd6d679 Fix single tag deletion (#1700)
Redirect to tags overview after a single tag was deleted to prevent error page.

Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2021-06-16 14:45:40 +02:00
Konstantin Schaper
17ecec03b2 tidy up suggestions api (#1699)
Streamlines the suggestions/autocomplete api and removes redundancy. All logic accessing the backend is now in hooks in ui-api.
2021-06-15 15:36:21 +02:00
Eduard Heimbuch
e5e79398d2 Update story-shots 2021-06-15 10:13:08 +02:00
Konstantin Schaper
aa98044290 Form elements that support react-hook-form can now be made read-only (#1696)
The recently integrated form library react-hook-form does not submit disabled inputs, but a behaviour where interaction with an input is not possible and it is still submitted is necessary. This feature implements a readOnly property for all components that support react-hook-form. It is visually indistinguishable from a disabled input but will be submitted when the form is submitted. All form fields use disabled fieldset wrappers to accomplish this goal because react-hook-form only checks the disabled property on the input itself, not any ancestors, and the inputs are still correctly displayed as disabled.
2021-06-15 10:11:59 +02:00
Florian Scholdei
58a8232aa9 Uniform rendering of tooltips for repository badges (#1698)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-06-15 09:29:24 +02:00
CES Marvin
ce2440ad02 Prepare for next development iteration 2021-06-09 15:32:47 +00:00
CES Marvin
f415cde6be Release version 2.19.1 2021-06-09 14:55:01 +00:00
Florian Scholdei
b058764fa1 Harmonize FileInput component with styleguide (#1693) 2021-06-09 16:39:07 +02:00
Florian Scholdei
f274b7f4b2 Add handling when duplicated branch part cannot be created (#1692)
Add handling when duplicated branch cannot be created because a part of the name already exists as a branch
2021-06-09 14:58:59 +02:00
René Pfeuffer
017708fc6f Fix tag position for repos with fav star (#1691)
Fixes the position of repository tags (like 'archived')
when the extension point 'repository.afterTitle' is bound
(for example in the landing page plugin with the fav star).
2021-06-09 09:05:13 +02:00
CES Marvin
18b64023fc Prepare for next development iteration 2021-06-04 13:25:11 +00:00
CES Marvin
9c372a8df9 Release version 2.19.0 2021-06-04 12:57:19 +00:00
Eduard Heimbuch
dd0975b49a Feature/mirror (#1683)
Add mirror command and extension points.

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2021-06-04 14:05:47 +02:00
Florian Scholdei
e55ba52ace Show source code controls even if a file is not present (#1680)
This fix preserves the context and shows the error in the component where normally the content of the file is displayed, so that you can still change the branch and the path.
2021-06-02 15:27:41 +02:00
Florian Scholdei
5cb2f077d9 Fix annotate overflow and doubled spacing in code views (#1678)
Fix annotate overflow: Total div size was smaller than minimum size of individual children (+ margin).
Fix doubled spacing in code content views: Spacing duplicates through .panel-block as default for styling, various containers and inner syntax highlighter definition. Unfortunately, the latter is not easy to change, since it is also used with inline syntax highlighter.
2021-06-02 08:57:36 +02:00
Eduard Heimbuch
8ed2c1509f Fix endless loop in Select component 2021-06-01 15:20:41 +02:00
Florian Scholdei
1df1038b6e Fix create link so that its correctly highlighted
The "Create Repository" button in the TabGroup when creating a repository was not highlighted when the "Add Repository" button is first clicked from within the Repository Overview. This is because the routes were not matching. I fixed the lower link in the "Add Repository" button that leads to the create page.
2021-06-01 15:14:06 +02:00
Florian Scholdei
9b7da23a20 Fix administration page error for empty release feed url (#1667) 2021-05-31 08:34:26 +02:00
Eduard Heimbuch
a954e019ec Fix endless loop on render Select component 2021-05-28 10:07:55 +02:00
Sebastian Sdorra
dabc7d7e8e New configuration form (#1674)
This change introduces a new hook useConfigLink and a new component ConfigurationForm.
These combination should replace the old Configuration component, which is not typed and which could not be used with react-hook-form.
2021-05-27 15:46:08 +02:00
Konstantin Schaper
ed4f24b784 fix create link so that its correctly highlighted (#1671) 2021-05-26 15:59:28 +02:00
Florian Scholdei
42745c9e34 Notifications for health checks (#1664)
Add list of emergency contacts to global configuration. This user will receive e-mails and notification if some serious system error occurs like repository health check failed.
2021-05-20 08:30:20 +02:00
Konstantin Schaper
cb6806a36f fix repository form switcher button label translations for plugins 2021-05-17 09:13:33 +02:00
Sebastian Sdorra
8e16fa11c9 Add extension point for repository creators (#1657)
Adds an extension point for repository creator such as repository create, repository import or repository mirror.
2021-05-14 09:15:35 +02:00
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
Sebastian Sdorra
a75cfaa6d9 Chromatic (#1655)
Integrate Chromatic into the build process of SCM-Manager.
2021-05-11 14:09:09 +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 2021-05-05 13:30:50 +00: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
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
0fb7ab3219 Add license check for scm-ui 2021-04-30 16:05:01 +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
CES Marvin
9782fd2e8f Prepare for next development iteration 2021-04-26 14:31:33 +00:00
CES Marvin
11fa65f537 Release version 2.17.1 2021-04-26 13:51:39 +00: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
CES Marvin
26c04a2f8b Prepare for next development iteration 2021-04-22 09:19:35 +00:00
CES Marvin
a9c64642aa Release version 2.17.0 2021-04-22 08:50:04 +00: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
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
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
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