Commit Graph

196 Commits

Author SHA1 Message Date
Sebastian Sdorra
0efdd2a483 Add experimental high contrast mode (#1845)
Add an experimental high contrast color theme to SCM-Manager. The high contrast mode uses a dark background and color with a high contrast for a better accessibility.
The change adds the theme to ui-styles and theme switcher to the storybook of ui-components.
2021-11-04 08:33:11 +01:00
Florian Scholdei
b896df5046 Add alternative text to controls to allow screen readers to read them aloud (#1840)
Add alternative text to controls to allow screen readers to read them aloud.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-11-03 10:11:40 +01:00
Florian Scholdei
2cb006d040 Replace styled-components with bulma helpers (#1783)
Use Bulma helpers whenever possible instead of custom styled components.
This pull request replaces primarily color definitions, spacing and flex instructions.
2021-09-15 17:40:08 +02:00
Eduard Heimbuch
43e1ea06c8 Fix HalRepresentationWithEmbedded type (#1793)
Fix HalRepresentationWithEmbedded type since _embedded can be null.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-09-02 15:47:15 +02:00
Eduard Heimbuch
58f792a285 Fetch clone modal data on first opening (#1784)
Get the data of the clone modal the first time it is opened. This way, we display a loading spinner for a fraction of a second when the modal is first opened. But we also prevent fetching a lot of data that is probably not needed.
2021-08-31 07:39:02 +02:00
Eduard Heimbuch
d6402ad1cb Redesign repository overview (#1740)
Change repository overview layout to use single rows instead cards. Also remove quick links and add clone action to repository entry. The default repository link now leads to the sources view.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-07-28 15:04:00 +02:00
Sebastian Sdorra
91fec0f478 Add detailed search result ui (#1738)
Add a dedicated search page with more results and different types.
Users and groups are now indexed along with repositories.

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-07-28 11:19:00 +02:00
Eduard Heimbuch
903285ad96 Improve collapse api on diff to enable external state management (#1736)
Create new diff collapse api which allows to handle the collapse state externally.
2021-07-26 10:32:10 +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
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
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
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
René Pfeuffer
84c8e02bf1 Feature Partial Diff (#1581)
With this pull request, diffs for Git are loaded in chunks. This means, that for diffs with a lot of files only a part of them are loaded. In the UI a button will be displayed to load more. In the REST API, the number of files can be specified. This only works for diffs, that are delivered as "parsed" diffs. Currently, this is only available for Git.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-03-12 13:52:17 +01:00
Florian Scholdei
bafe84b79a Fix wrapping of title and actions in source view (#1569)
The title of a file and the action buttons had to share the space. Now the title takes it needs and the actions move down if necessary. This behavior is similar to the list of files in changeset view (content component).
2021-03-04 09:54:08 +01:00
Konstantin Schaper
3a8d031ed5 Introduce stale while revalidate pattern (#1555)
This Improves the frontend performance with stale while
revalidate pattern.

There are noticeable performance problems in the frontend that
needed addressing. While implementing the stale-while-revalidate
pattern to display cached responses while re-fetching up-to-date
data in the background, in the same vein we used the opportunity
to remove legacy code involving redux as much as possible,
cleaned up many components and converted them to functional
react components.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-02-24 08:17:40 +01:00
Eduard Heimbuch
ac5d145266 Repository export read-only lock (#1519)
* Lock repository for read-only access only while exporting
* Create read-only check api

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-02-04 15:29:49 +01:00
René Pfeuffer
8e3b0e4145 Archive repository (#1477)
This adds a flag "archived" to repositories. Repositories marked with this can no longer be modified in any way. To do this, we switch to a new version of Shiro Static Permissions (sdorra/shiro-static-permissions#4) and specify a permission guard to check for every permission request, whether the repository in question is archived or not. Further we implement checks in stores and other activies so that no writing request may be executed by mistake.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2020-12-16 10:58:29 +01:00
Florian Scholdei
669cc39fa9 Add tooltip to shortlinks on repository overview 2020-11-24 17:34:21 +01:00
Eduard Heimbuch
6c16b74488 fix react error 2020-11-17 08:34:27 +01:00
Eduard Heimbuch
2087c27671 fix frontend react error 2020-11-17 08:34:27 +01:00
René Pfeuffer
5f99ece3bb Fix branches link
Without the trailing '/' further links like 'create' will lead to
illegal links because they will not be appended but will replace the
'branches' part.
2020-11-02 10:08:49 +01:00
Sebastian Sdorra
99dae1c1bc Fix css syntax highlighting conflict with bulma title 2020-10-26 15:24:54 +01:00
Sebastian Sdorra
5f30cf8f30 Fix css conflicts on diff syntaxhighlighting by using a css module 2020-10-23 13:52:10 +02:00
Sebastian Sdorra
0d31ad2138 Fix syntax highlighting for go files 2020-10-23 10:35:13 +02:00
Sebastian Sdorra
88286623a8 Move syntax-highlighter theme from ui-styles to ui-components 2020-10-22 10:17:51 +02:00
Konstantin Schaper
13134df198 Merge remote-tracking branch 'origin/feature/syntax-highlighting' into feature/syntax-highlighting 2020-10-21 14:29:05 +02:00
Konstantin Schaper
74f180f14a fix ui annotate glitch 2020-10-21 14:28:52 +02:00
Konstantin Schaper
97d207f16d Merge branch 'develop' into feature/syntax-highlighting 2020-10-21 14:14:25 +02:00
Florian Scholdei
6a93d861fa Fix empty content in modal view of collapsed panel 2020-10-21 10:50:14 +02:00
Florian Scholdei
36133e639c Fix vertical placement of comments and code in pr diff view 2020-10-21 10:48:45 +02:00
Konstantin Schaper
3b9fa12d71 fix visual glitch in annotate view 2020-10-20 12:21:05 +02:00
Florian Scholdei
cfb0b2d6c6 Merge with upstream, add missing refs in CHANGELOG.md 2020-10-20 11:11:18 +02:00
Florian Scholdei
27d4b0a755 Fix review findings 2020-10-20 10:18:44 +02:00
Konstantin Schaper
9b874e7eab fix imports 2020-10-19 20:47:59 +02:00
Konstantin Schaper
47aa05dfe0 fix lint warnings 2020-10-16 09:40:10 +02:00
Konstantin Schaper
af09435f51 Merge branch 'develop' into feature/syntax-highlighting 2020-10-15 18:20:47 +02:00
Sebastian Sdorra
ffd1daba52 There is no need for a class component here
We should use function component as much as possible, because their are easier to read and less confusing.
2020-10-15 11:32:27 +02:00
Florian Scholdei
ed4a564677 Update CHANGELOG.md 2020-10-15 00:38:29 +02:00
Florian Scholdei
ce56ec02d8 Add fullscreen option to diff view 2020-10-15 00:23:15 +02:00
René Pfeuffer
8e93248dd6 Add component for commit author 2020-10-14 16:26:25 +02:00
Konstantin Schaper
17f5f4b46e implement custom highlighting theme 2020-10-12 18:53:31 +02:00
Konstantin Schaper
a043e7f805 Merge remote-tracking branch 'origin/feature/annotate_prismjs' into feature/syntax-highlighting
# Conflicts:
#	package.json
#	scm-ui/eslint-config/package.json
#	scm-ui/ui-components/src/SyntaxHighlighter.tsx
#	scm-ui/ui-components/src/repos/annotate/Annotate.tsx
#	scm-ui/ui-plugins/package.json
#	yarn.lock
2020-10-12 11:23:56 +02:00
Florian Scholdei
7e37178fc5 Merge with upstream 2020-10-05 15:41:21 +02:00
Sebastian Sdorra
964f82bd09 Merge with develop 2020-09-02 07:45:44 +02:00
Sebastian Sdorra
95dde51bba Move escapeWhitespace to diffs and add small test 2020-09-02 07:40:52 +02:00
Sebastian Sdorra
a54d5c6c5d Fix layout overflow on changesets with multiple tags 2020-09-01 09:51:40 +02:00
Konstantin Schaper
cfbaf63b5c add additional precautious check 2020-08-26 11:34:15 +02:00