Commit Graph

791 Commits

Author SHA1 Message Date
Konstantin Schaper
e5a1702e95 rework valueless text adapter to be backwards-compatible with edge-cases (#1737)
When implementing the remark rehype rework, which was supposed to be backwards-compatible, incorrect mdast was produced by the remarkValuelessTextAdapter in some edge-cases. This caused markdown generated by other plugins, such as the issue-tracker-plugin, to be faulty (e.g. Und die #10 ist *so* toll caused visual artifacts). This PR solves the issue by inlining the children of the empty text node instead of wrapping them in a paragraph. This is also more consistent with the previous output, as can be observed when pairing SCM-Manager <= 2.15.0 with the issue-tracker-plugin and using the aforementioned snippet.
2021-07-23 15:54:04 +02:00
Eduard Heimbuch
624605daaa Fix story-shots 2021-07-23 08:54:02 +02:00
Sebastian Sdorra
60045f2c71 Adjust logo for small header 2021-07-22 16:57:54 +02:00
CES Marvin
4b2ec8cb66 Prepare for next development iteration 2021-07-21 11:05:18 +00:00
CES Marvin
e6807ad56a Release version 2.21.0 2021-07-21 10:36:56 +00:00
Sebastian Sdorra
e321133ff7 Add search engine and quick search for repositories (#1727)
Add a powerful search engine based on lucene to the scm-manager api.
The api can be used to index objects, simply by annotating them and add them to an index.
The first indexed object is the repository which could queried by quick search in the header.
2021-07-14 11:49:38 +02:00
Florian Scholdei
0d0f9995fe Add files to empty repository (#1717)
It should also be possible to create new files in empty non-initiated repositories with the help of scm-manager/scm-editor-plugin/pull/39. So that the plugin can mount itself, a new endpoint was provided hereby.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-07-13 11:40:49 +02:00
Eduard Heimbuch
cd6e624e61 Small header (#1721)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-07-07 16:26:58 +02:00
Sebastian Sdorra
e5ebb78146 Fixed missing update if content of diff changes (#1714)
* Fixed missing update if content of diff changes

* Add property to disable automatic refetch in diffs

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-06-30 16:36:26 +02:00
Eduard Heimbuch
59c15feb87 Show last modified date on repository overview (#1715)
Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-06-30 08:40:49 +02:00
Konstantin Schaper
e1239aff92 implement react-query for edge-cases (#1711)
When initially implementing react-query, we focussed on core features. This pull request now replaces the remaining apiClient usages in ui-components and ui-webapp with react-query hooks.
2021-06-28 13:19:03 +02:00
CES Marvin
a80ea62d09 Prepare for next development iteration 2021-06-16 13:34:20 +00:00
CES Marvin
0fe8914f9d Release version 2.20.0 2021-06-16 13:05:07 +00: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
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
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
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
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
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
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
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
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
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
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