Commit Graph

62 Commits

Author SHA1 Message Date
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
Eduard Heimbuch
e68c178c86 Fix hg fileview resolves for same path on file and directory (#1746)
If a file and a directory with the same name existed somewhere at the same level in a Mercurial repository, our logic in the fileview command failed to collect them. The parent of the file was mistaken for the entire file path, resulting in confusing errors that the file could not be found in the manifest. With this fix, file detection should now be more secure than before.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-07-28 11:22:37 +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
Konstantin Schaper
d6e36e7145 implement react-query for all content views (#1708)
Implements react-query and replaces direct apiClient usage for sources, annotate and history content views.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-06-23 14:14:56 +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
89e938c6d7 Encode revision for extension point to fix breaking change (#1585)
Encode revision on extension points to fix a breaking change which slipped through with release 2.14.0.
2021-03-16 08:39:31 +01:00
Sebastian Sdorra
89548d45bd Filepath search (#1568)
Add search for files to the sources view. The search is only for finding file paths. It does not search any file metadata nor the content. Results get a rating, where file names are rated higher than file paths. The results are sorted by the score and the first 50 results are displayed.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-03-04 10:39:58 +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
Sebastian Sdorra
4ec01ff4d1 Fix endless loading spinner for sources of empty repositories (#1565) 2021-03-03 11:00:26 +01:00
Florian Scholdei
8e2c2aaa5e Prevent breadcrumb overflow and shrink large elements (#1563)
- Restore left margin on copy permalink
- Move slash to the right to make it resemble the console
- Shrink large elements
- Add new storyshot
- Fix separation of toggle icon and file title
2021-03-03 10:57:15 +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
Florian Scholdei
57c9484d41 Enrich styleguide with new features, rules and changes
The styleguide for usage of visual elements has not been updated for a long time. In the course of this story it should be adapted to the current standards and rules. In addition, heavy violations were rectified directly.
2021-01-28 12:46:42 +01:00
Florian Scholdei
c579de108f Option to create a permanent link to a source file
Adds a new button next to the breadcrumbs in the source view that allows users to create a permanent link to the active path (file or folder).
2021-01-07 10:15:50 +01:00
Florian Scholdei
e141e33aa3 Clarify prop usage by renaming in more self-evident name 2020-10-21 12:23:58 +02:00
Florian Scholdei
6024d8c3e1 Unify title usage within an area 2020-10-21 10:47:05 +02:00
Florian Scholdei
27d4b0a755 Fix review findings 2020-10-20 10:18:44 +02:00
Florian Scholdei
c366203d1f New Fullscreen component 2020-10-14 22:48:10 +02:00
Sebastian Sdorra
716c7c5083 Fix detection of markdown files for files having content does not start with '#' 2020-08-27 08:11:23 +02:00
Eduard Heimbuch
37bad5fd95 fix race condition in annotate view 2020-06-17 11:44:21 +02:00
Sebastian Sdorra
9353972da2 fixed wrong type import 2020-06-17 10:47:28 +02:00
René Pfeuffer
92d7b7703a Add "annotations" button to sources view 2020-06-12 17:27:32 +02:00
Sebastian Sdorra
ffd04eb55b added basePath to markdown components in order to allow navigation between md files 2020-05-19 15:52:11 +02: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
Eduard Heimbuch
b8fb08a500 decode branch/revision in content detailsView 2020-01-17 08:12:37 +01:00
Eduard Heimbuch
db1d89792e refactor markdownviewer // fix padding 2020-01-16 10:00:44 +01:00
Eduard Heimbuch
b5e78f46be add title translation 2020-01-15 21:11:47 +01:00
Eduard Heimbuch
75a94e2509 import markdown icon // fix toggle button size and position 2020-01-15 20:55:09 +01:00
Eduard Heimbuch
584f65c349 render markdown files in sourcesView 2020-01-15 20:29:18 +01:00
Sebastian Sdorra
74ad7ad50d fix switching from svn source with selected revision to commits view 2020-01-15 14:43:07 +01:00
Sebastian Sdorra
c85e37c665 fixed small review findings 2020-01-15 10:49:01 +01:00
Eduard Heimbuch
bafa25f025 reload historyView on branch switch // cleanup Sources 2020-01-15 10:04:30 +01:00
Eduard Heimbuch
5c654b433b replace current history entry on redirect to default branch instead of pushing a new history entry 2020-01-15 08:55:15 +01:00
Eduard Heimbuch
bee0b68f37 cleanup fetch content in sourcesView 2020-01-15 08:25:59 +01:00
Eduard Heimbuch
0888006a74 refactor code section 2020-01-14 18:07:57 +01:00
Eduard Heimbuch
28f1319935 expose baseurl in SourceExtensions for breadcrumb 2020-01-09 13:43:04 +01:00
Eduard Heimbuch
4e23fd95ab add breadcrumb to fileViewer 2020-01-09 09:34:40 +01:00
Eduard Heimbuch
0d546755a9 optimize all imports in ui-webapp and reformat with prettier 2020-01-08 15:57:13 +01:00
Eduard Heimbuch
b8d4bb6904 add redirects for old routes 2020-01-08 15:17:07 +01:00
Eduard Heimbuch
a43ffacf03 fix a ton of typescript errors 2020-01-08 13:40:07 +01:00
Eduard Heimbuch
987436e335 add loading spinner and error handling for codeOverview 2020-01-08 11:01:00 +01:00
Eduard Heimbuch
c73e85e3d6 fix routes for sources and changesets // fix typing errors 2020-01-08 10:31:43 +01:00
Eduard Heimbuch
20c00e7222 create new codeSection // add actionBar to codeSection // change routes for sources and changesets 2020-01-07 10:30:46 +01:00
Florian Scholdei
0100e290ae Small typo 2019-12-19 15:06:33 +01:00
Rene Pfeuffer
cf9d1edb70 Make partial file attributes explicit. 2019-12-18 11:48:17 +01:00
Florian Scholdei
53147db0e2 Move button to right side and small fixes 2019-11-28 02:01:49 +01:00
Eduard Heimbuch
d5bd83fafb fix encoding and decoding for branches including slashes 2019-11-01 13:52:53 +01:00
Eduard Heimbuch
557856185a small fix 2019-11-01 10:18:13 +01:00
Eduard Heimbuch
5a9cbbc073 use i18n for missing extension warning / fix encoding for branches containing slashes 2019-11-01 09:29:57 +01:00
Eduard Heimbuch
4f17bc6b1c refactor backend for modifyCommand / add sourceExtension for plugins 2019-10-30 12:59:54 +01:00