Commit Graph

58 Commits

Author SHA1 Message Date
Eduard Heimbuch
c8207d89da Fix routing for entity names with parenthesis (#1998)
If entities like users, groups or repository namespaces contains parenthesis the frontend router gets confused and doesn't work properly. To fix this issue we escape the chars in the url which may cause such problems because they are reserved by the http url schema.

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
Co-authored-by: Florian Scholdei <florian.scholdei@cloudogu.com>
2022-04-13 13:06:02 +02:00
Konstantin Schaper
4d203ff36f codify extension points docs (#1947)
This pull request converts the current incomplete textual documentation of the available frontend extension points to in-code definitions that act both as documentation and as type helpers for improving overall code quality. All extension points available in the SCM-Manager core are now available, but no plugin was updated and only those parts of the core codebase had the new types added that did not require runtime changes. The only exception to this is the breadcrumbs, which was a simple change that is fully backwards-compatible.
2022-03-29 15:04:14 +02:00
Phil-Ah
78b507921d Enhance ui-elements to be more accessible on smaller screens (#1950)
Enable breaking of content to be fully available on small screens or highly zoomed displays. This should help improve accessibility.

Co-authored-by: Florian Scholdei <florian.scholdei@cloudogu.com>
Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2022-02-18 14:48:21 +01:00
Eduard Heimbuch
49844d1595 Compare branches, tags and revisions (#1920)
Add branch/tag/revision compare to see diffs and changesets between the source and target revisions. This feature is reachable from the branch/tag detail page and also the source code view.

Co-authored-by: Florian Scholdei <florian.scholdei@cloudogu.com>
Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2022-01-20 11:00:49 +01:00
Eduard Heimbuch
289175331f Fix es lint errors and warnings and enforce es lint as build breaker. (#1878)
Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2021-12-09 09:12:02 +01:00
René Pfeuffer
142e077b46 Fix color for namespace in high contrast theme 2021-11-16 15:14:18 +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
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
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
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
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
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
367d7294b8 Enable refetch on focus (#1559)
During the integration of react-query we had to disable the refetch on focus option, because it has cleared our input fields on refocusing the browser tab. This problem comes mostly from a wrong use of routes. Often routes were used with the component prop and a anonymous function e.g.:

```jsx
<Route path="/my/route" component={() => <AwesomeComponent />} />
```

This triggers not only rerendering but remounting of the route component every time the parent is rerendered. With the ongoing work on the migration from redux to react-query, we have removed the usage of routes with component functions. So we can now safely enable the option refetch on mount of react-query.
2021-02-25 08:30:23 +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
Eduard Heimbuch
fd7f28fc3f do not add JumpToFileButtons if no path exists cause they are broken anyway 2020-11-17 08:34:27 +01:00
René Pfeuffer
bbfe2b08bc Extract common function 'matchedUrl' 2020-09-18 17:38:10 +02:00
René Pfeuffer
4523e22feb Extract common function 'stripEndingSlash' 2020-09-18 17:20:54 +02:00
Eduard Heimbuch
f9b3d14541 add tag overview for repository 2020-09-16 12:45:22 +02:00
René Pfeuffer
80e538c76e Change api for components as page title 2020-09-10 10:18:00 +02:00
René Pfeuffer
7f760efb12 Make namespace links dark 2020-09-10 10:17:29 +02:00
René Pfeuffer
794b207f1f Render namespace as link in repo detail header 2020-09-10 10:17:29 +02:00
Eduard Heimbuch
e9edd5ad8f fix formatting with prettier 2020-08-12 12:53:59 +02:00
Konstantin Schaper
c9ccaed61d fix source buttons not displaying for file renaming 2020-08-11 10:09:28 +02:00
Konstantin Schaper
c69ab4ea65 refactor to use file control factory 2020-08-10 20:48:08 +02:00
Florian Scholdei
e8d140173a Replace relative path with absolute 2020-07-28 12:03:41 +02:00
Eduard Heimbuch
cd8a9873a9 - add global rename repositories permission
- add api call on rename action
2020-06-25 10:49:59 +02:00
Sebastian Sdorra
13633fb57e un collapse menu on each interaction with it 2020-03-31 11:00:07 +02:00
Sebastian Sdorra
7917bfdab8 merge with develop branch 2020-03-26 11:40:47 +01:00
Florian Scholdei
b438cbdebc Fix behavior of secondary navigation and content (with different display sizes) 2020-03-25 15:35:46 +01:00
Eduard Heimbuch
16c89f4b9f Merge branch 'develop' of github.com:scm-manager/scm-manager into feature/favourite_repository 2020-03-25 10:28:58 +01:00
Eduard Heimbuch
df285182a8 move favorite icon from details table to page title 2020-03-25 08:08:40 +01:00
Florian Scholdei
8a94a7e634 Change sizíng of the content area from dynamic-'rest' to fixed to prevent the navigation from being pushed out 2020-03-24 11:59:49 +01:00
Florian Scholdei
f1b34eb502 Changeover to MIT license (#1066)
* prepare license-maven-plugin for license migration
* added license mapping for tsx files and added some more excludes
* Changeover to MIT license
* Fix build problems
* Delete old remaining licenses
* Add more exclude path for license checker
* Rename included netbeans license, add exclude .m2/repository/
* Specify .m2 exclude because not only repository/, also wrapper/ must match
* Add .cache/ exclude for license check
* Modify formatting of license in java classes to comply with convention and IDE
* Add IntelliJ documentation for license configuration
* Update CHANGELOG.md
* Exclude tmp/workspace/ dir for license check
* Edit README.md

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2020-03-23 15:35:58 +01:00
René Pfeuffer
c4a6f5a978 Rename subnavigation component 2020-03-11 16:30:48 +01:00
Eduard Heimbuch
13799044bd use position sticky to avoid css glitches // cleanup 2020-03-10 10:45:37 +01:00
Eduard Heimbuch
2db6980098 fix toggle button position 2020-03-09 14:03:01 +01:00
Eduard Heimbuch
e110033e3b fix review findings 2020-03-02 14:13:51 +01:00
Eduard Heimbuch
4df33fcc73 fix styling 2020-02-28 14:58:56 +01:00
Eduard Heimbuch
2d038327d0 fix re-render bug for changesets 2020-02-28 13:15:27 +01:00
Eduard Heimbuch
ed53745d9f make secondary navigation also for user, group and administration collapsable 2020-02-26 15:45:24 +01:00
Eduard Heimbuch
7232815900 use react context to toggle collapsable repository menu 2020-02-26 10:41:39 +01:00
Eduard Heimbuch
eee6cad1d3 make repository navigation fixed // add title for collapsed navigation items 2020-02-25 17:15:23 +01:00
Eduard Heimbuch
7fe8b58e7d make secondary navigation collapsable // save collapse status in local storage 2020-02-25 09:49:23 +01:00
Sebastian Sdorra
c85e37c665 fixed small review findings 2020-01-15 10:49:01 +01:00
Eduard Heimbuch
184b6e6e98 fix changesets routes for pagination 2020-01-10 09:19:09 +01:00
Eduard Heimbuch
28f1319935 expose baseurl in SourceExtensions for breadcrumb 2020-01-09 13:43:04 +01:00
Eduard Heimbuch
b8d4bb6904 add redirects for old routes 2020-01-08 15:17:07 +01:00
Eduard Heimbuch
c73e85e3d6 fix routes for sources and changesets // fix typing errors 2020-01-08 10:31:43 +01:00