Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
8e089ce
upgrades for redux and related pkgs
arausly Sep 11, 2025
087675d
adapted for react 18
arausly Sep 30, 2025
1ca4cd8
added redux adaptations
arausly Sep 30, 2025
c60b5ec
added react-redux resolution
arausly Sep 30, 2025
732954d
fixed compilation issue in gui-elements
arausly Sep 30, 2025
13407fa
merged develop
arausly Dec 8, 2025
75cfe27
corrected interface to fix compilation errors
arausly Dec 8, 2025
44048ee
fixed failing tests
arausly Dec 15, 2025
5680494
Merge branch 'develop' into change/upgradedToReact18-CMEM-6639
andreas-schultz Jan 14, 2026
af62d92
Fix rule editor model tests
andreas-schultz Jan 19, 2026
76086c7
Add missing scrollTo function to window object
andreas-schultz Jan 19, 2026
5cf73b5
Fix warning in ActivitiesList.test
andreas-schultz Jan 19, 2026
1f32d7c
Fix deprecation warning in old mapping editor code
andreas-schultz Jan 19, 2026
587b005
Fix tests because of missing act usage
andreas-schultz Jan 19, 2026
3ddc1d0
Fix more deprecation warnings and test issues
andreas-schultz Jan 19, 2026
0366a8b
Fixed OOM in ValueRule test
andreas-schultz Jan 19, 2026
89b3b69
Fix task creation UI test
andreas-schultz Jan 20, 2026
b20311e
Upgrade babel-jest and browserslist
andreas-schultz Jan 20, 2026
edb67ab
Make rule editor model UI tests mode stable
andreas-schultz Jan 21, 2026
8e1478e
Make all rule editor model tests more reliable
andreas-schultz Jan 21, 2026
22787be
Replace react-beautiful with dnd-kit in package.json
andreas-schultz Jan 22, 2026
8dfe7c5
Refactor variables widget to use dnd-kit instead of react-beautiful
andreas-schultz Jan 22, 2026
40bcaff
Refactor hierachical mapping editor to use dndkit instead of react-be…
andreas-schultz Jan 22, 2026
1f3177e
Improve drag and drop behavior in mapping editor and variables widget
andreas-schultz Jan 23, 2026
4bc9eef
Only allow dragging via left mouse key by default
andreas-schultz Jan 23, 2026
a9df632
Adapt mapping list UI test
andreas-schultz Jan 23, 2026
09370bb
remove usage of deprecated Card components
haschek Jan 28, 2026
b3fbae8
replace deprecated alerts by Notification component
haschek Jan 28, 2026
f67ef82
replace deprecated Icon component
haschek Jan 28, 2026
fc8efcc
replace FAB by button in sticky card header
haschek Jan 28, 2026
101fe0f
forward gui elements, include new NotAvailable component
haschek Jan 29, 2026
051779f
replace deprecated NotAvailable component by new one
haschek Jan 29, 2026
da69c83
forward gui elements
haschek Feb 2, 2026
29c2fc5
replace usage of deprecated ConfirmationDialog component
haschek Feb 2, 2026
f4da4dc
replace ScrollingHOC from deprecated GUI elements by minimal replication
haschek Feb 2, 2026
f8cf60b
replace deprecated Radio/Groups
haschek Feb 2, 2026
32ab0a7
remove all deprecated style imports that are not necessary anymore
haschek Feb 2, 2026
3a7c25b
remove almost all mdl styles and replace elements that were based on …
haschek Feb 2, 2026
d32c413
use Grid components instead of custom grid
haschek Feb 3, 2026
10d6a57
remove unused css rules
haschek Feb 3, 2026
aa94f9e
replace custom elements by base components from gui elements
haschek Feb 4, 2026
bd4fe96
use base components for object rule details
haschek Feb 5, 2026
3ad15d0
Replace deprecated MultiAutoComplete component with MultiSuggestField
andreas-schultz Feb 6, 2026
a510f93
Remove old deprecated gui elements from dependencies
andreas-schultz Feb 9, 2026
c579ac6
move down label/description again
haschek Feb 9, 2026
180f2c6
add Fieldset around autocomplete box
haschek Feb 9, 2026
bb2dfe6
forward gui elements, include fix for tag borders
haschek Feb 9, 2026
c3a8f01
forward gui elements
haschek Feb 10, 2026
8d64f79
forward gui elements
haschek Feb 10, 2026
b8239d8
use base components instead of custom styles
haschek Feb 10, 2026
5782712
remove usage of styles from the deprecated gui elements
haschek Feb 10, 2026
a0a1fc0
remove unused code
haschek Feb 10, 2026
062e1ef
forward gui elements
haschek Feb 10, 2026
a14f5ae
adjust suggestion view
haschek Feb 10, 2026
65cd4c8
Fix MessageHandler and ExampleView UI tests
andreas-schultz Feb 11, 2026
71ab024
Get rid of deprecated ScrollingHOC and replace with hooks based alter…
andreas-schultz Feb 11, 2026
bb70e6a
smaller fixes
andreas-schultz Feb 11, 2026
d4b0eeb
use zebra style again for the mapping list
haschek Feb 11, 2026
49da414
Migrate UI test from checking deprecated MDL component to updated com…
andreas-schultz Feb 12, 2026
ce30a1c
Merge branch 'feature/replaceDeprecatedGuiComponents-CMEM-4905' of ht…
andreas-schultz Feb 12, 2026
95472e3
Fix RemoveMappingRuleDialog UI test
andreas-schultz Feb 12, 2026
5394fd2
Replace direct Blueprint MultiSuggestField.ofType usage with gui-elem…
andreas-schultz Feb 13, 2026
3681686
Replace direct Blueprint MultiSuggestField.ofType usage with gui-elem…
andreas-schultz Feb 13, 2026
5cfcf0f
Fix all imports in gui-elements components to not import from index
andreas-schultz Feb 16, 2026
6f5e847
forward gui elements, include fixes in imports
haschek Feb 17, 2026
da0d970
adjust column width for trees in hierarchical mapping views
haschek Feb 17, 2026
1c600fd
align order of properties in edit and read mode
haschek Feb 17, 2026
7a1b0b2
add missing property name
haschek Feb 17, 2026
f7b1de7
Fix first item selection in 'Create new item' dialog
andreas-schultz Feb 17, 2026
bcfcd5c
Merge branch 'feature/replaceDeprecatedGuiComponents-CMEM-4905' of ht…
andreas-schultz Feb 17, 2026
cbe7c0e
Fix regression: item not selected on click anymore
andreas-schultz Feb 18, 2026
a894676
Upgrade react-hook-form from 5.x to 7.x
andreas-schultz Feb 18, 2026
2d57606
Add test IDs to 'Add mapping' menu
andreas-schultz Feb 19, 2026
eb3f8c0
Remove old Scala template based UIs
andreas-schultz Feb 19, 2026
3ea009c
fix temlate for server error, do not use deprecated styles
haschek Feb 19, 2026
daa897c
fix config template
haschek Feb 19, 2026
db9313d
Fix regression of drag&drop of mapping rule rows
andreas-schultz Feb 19, 2026
f7fcd7e
Merge branch 'feature/replaceDeprecatedGuiComponents-CMEM-4905' of ht…
andreas-schultz Feb 19, 2026
a95f5ed
Make rule re-init (again) after edit&save
andreas-schultz Feb 20, 2026
4f23dc4
Add test IDs to mapping editor
andreas-schultz Feb 20, 2026
32f6028
Remove unnecessary elements (navigation, dialogs, tab bar) and js/css…
andreas-schultz Feb 20, 2026
c952df6
Fix regressions in task creation UI
andreas-schultz Feb 20, 2026
1255aa0
Adapt test for buildStringValuedObject
andreas-schultz Feb 20, 2026
f8f7c9b
Merge branch 'develop' into feature/replaceDeprecatedGuiComponents-CM…
andreas-schultz Feb 23, 2026
91cfd7a
adjust client error display, update markup to new classes
haschek Feb 23, 2026
d7581fe
Fix compile issue in clientError.scala.html
andreas-schultz Feb 23, 2026
f59df3a
Fix jest configuration; add nodrag class to several linking editor el…
andreas-schultz Feb 23, 2026
79b7b1e
Add data test id
andreas-schultz Feb 23, 2026
68e04a4
Merge branch 'develop' into change/upgradedToReact18-CMEM-6639
andreas-schultz Apr 13, 2026
1ecd671
Re-add changes to extracted config.js
andreas-schultz Apr 13, 2026
1d6001d
Fix VariablesWidget
andreas-schultz Apr 13, 2026
ae9329e
Merge branch 'change/upgradedToReact18-CMEM-6639' into feature/replac…
andreas-schultz Apr 14, 2026
791e555
Fix VocabularyMultiSelect after merge
andreas-schultz Apr 14, 2026
9a2d886
Refactor imports from index
andreas-schultz Apr 14, 2026
941d8e8
Fix compile issues
andreas-schultz Apr 14, 2026
2f36cc7
Remove incomplete createRange mocks from tests
andreas-schultz Apr 14, 2026
85217dc
Fix task creation after project selection regression
andreas-schultz Apr 15, 2026
efe4a15
Remove usage of useDebugValue breadcrumbsHelper
andreas-schultz Apr 15, 2026
3698649
Remove possible race condition in Create dialog
andreas-schultz Apr 16, 2026
8ebeda9
Several improvements in Create dialog
andreas-schultz Apr 16, 2026
ca1aef7
Make artefact loading state consistent
andreas-schultz Apr 16, 2026
f571e56
Improve center and fit view after init in rule editor
andreas-schultz Apr 16, 2026
3ecd999
Fix auto-config for auto-complete inputs
andreas-schultz Apr 17, 2026
95c3e1f
Remove old forced re-render hack in ParameterAutoCompletion
andreas-schultz Apr 17, 2026
072542a
Reset drop down list immediately in MultiSelect when query changes
andreas-schultz Apr 17, 2026
2728fe2
Fix external value setting in create/update modal
andreas-schultz Apr 20, 2026
9618a7b
Remove race conditions in MappingsWorkview
andreas-schultz Apr 21, 2026
dd40dbe
Remove initialization step in PathInputOperator and calculate everyth…
andreas-schultz Apr 22, 2026
2de9102
Merge gui-elements branch feature/replaceDeprecatedGuiComponents-CMEM…
andreas-schultz Apr 23, 2026
4b42602
Merge pull request #1000 from silk-framework/feature/replaceDeprecate…
andreas-schultz Apr 23, 2026
b83230d
Improve types in various places
andreas-schultz Apr 23, 2026
887d946
forward gui elements, include deloyment fixes
haschek Apr 27, 2026
05ee66a
Merge remote-tracking branch 'origin/develop' into change/upgradedToR…
haschek Apr 27, 2026
428bc1b
update lock file for dependencies
haschek Apr 28, 2026
7b98986
fix path for silk
haschek Apr 28, 2026
5510623
fix jest imports for subprojects like DI
haschek Apr 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/gui-elements
Submodule gui-elements updated 98 files
+2 −1 .github/workflows/publish-featurefix-prerelease.yml
+19 −0 CHANGELOG.md
+8 −3 eslint.config.mjs
+6 −5 package.json
+3 −8 src/cmem/ActivityControl/ActivityControlWidget.stories.tsx
+13 −13 src/cmem/ActivityControl/ActivityControlWidget.tsx
+6 −4 src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx
+4 −4 src/cmem/ActivityControl/SilkActivityControl.tsx
+17 −7 src/cmem/ContentBlobToggler/ContentBlobToggler.tsx
+7 −2 src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx
+2 −1 src/cmem/markdown/Markdown.tsx
+2 −3 src/cmem/react-flow/configuration/graph.ts
+2 −3 src/cmem/react-flow/configuration/linking.ts
+2 −3 src/cmem/react-flow/configuration/workflow.ts
+1 −1 src/components/Accordion/AccordionItem.tsx
+1 −1 src/components/Accordion/Stories/AccordionItem.stories.tsx
+5 −2 src/components/Application/ApplicationSidebarNavigation.tsx
+7 −1 src/components/Application/ApplicationTitle.tsx
+13 −10 src/components/Application/_header.scss
+4 −3 src/components/Application/stories/ColorPalettes.stories.tsx
+4 −4 src/components/AutoSuggestion/AutoSuggestion.tsx
+1 −1 src/components/AutoSuggestion/AutoSuggestionList.tsx
+9 −18 src/components/AutocompleteField/AutoCompleteField.tsx
+1 −1 src/components/AutocompleteField/autoCompleteFieldUtils.tsx
+1 −1 src/components/Badge/Badge.stories.tsx
+10 −5 src/components/Button/Button.tsx
+1 −1 src/components/Card/CardHeader.tsx
+1 −1 src/components/Card/stories/Card.stories.tsx
+1 −1 src/components/Checkbox/Stories/Checkbox.stories.tsx
+1 −1 src/components/ColorField/ColorField.tsx
+1 −1 src/components/ContentGroup/ContentGroup.stories.tsx
+3 −3 src/components/ContentGroup/ContentGroup.tsx
+10 −4 src/components/ContextOverlay/ContextMenu.tsx
+4 −4 src/components/ContextOverlay/ContextOverlay.tsx
+5 −2 src/components/DecoupledOverlay/DecoupledOverlay.tsx
+1 −1 src/components/Depiction/Depiction.tsx
+1 −1 src/components/Dialog/SimpleDialog.tsx
+1 −1 src/components/Dialog/stories/Modal.stories.tsx
+1 −1 src/components/Form/FieldItem.tsx
+3 −3 src/components/Form/FieldSet.tsx
+1 −1 src/components/Form/Stories/FieldItem.stories.tsx
+1 −1 src/components/Form/Stories/FieldSet.stories.tsx
+1 −1 src/components/Grid/stories/GridColumn.stories.tsx
+1 −1 src/components/Grid/stories/GridRow.stories.tsx
+2 −2 src/components/HoverToggler/HoverToggler.tsx
+2 −2 src/components/Icon/IconButton.tsx
+1 −1 src/components/Icon/stories/IconButton.stories.tsx
+1 −1 src/components/Icon/stories/TestIcon.stories.tsx
+3 −3 src/components/Label/Label.tsx
+1 −1 src/components/Menu/MenuItem.tsx
+1 −1 src/components/Menu/Stories/MenuItem.stories.tsx
+59 −24 src/components/MultiSelect/MultiSelect.tsx
+1 −34 src/components/MultiSuggestField/tests/MultiSuggestField.test.tsx
+15 −0 src/components/NotAvailable/NotAvailable.stories.tsx
+71 −0 src/components/NotAvailable/NotAvailable.tsx
+2 −1 src/components/Notification/Notification.stories.tsx
+3 −3 src/components/Notification/Notification.tsx
+1 −1 src/components/OverviewItem/OverviewItemActions.tsx
+1 −1 src/components/OverviewItem/OverviewItemDepiction.tsx
+1 −1 src/components/OverviewItem/stories/OverviewItem.stories.tsx
+1 −1 src/components/OverviewItem/stories/OverviewItemActions.stories.tsx
+1 −1 src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx
+1 −1 src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx
+1 −1 src/components/PropertyValuePair/PropertyValueList.tsx
+1 −1 src/components/RadioButton/Stories/RadioButton.stories.tsx
+8 −6 src/components/Select/Select.tsx
+2 −2 src/components/Skeleton/Skeleton.tsx
+1 −1 src/components/Structure/TitleSubsection.tsx
+1 −1 src/components/Table/Table.tsx
+4 −4 src/components/Table/TableContainer.tsx
+1 −1 src/components/Table/TableExpandRow.tsx
+1 −1 src/components/Tabs/TabTitle.tsx
+1 −1 src/components/Tag/stories/Tag.stories.tsx
+1 −1 src/components/Tag/stories/TagList.stories.tsx
+1 −1 src/components/TextField/TextArea.tsx
+1 −1 src/components/TextField/stories/TextArea.stories.tsx
+1 −3 src/components/TextField/stories/TextField.stories.tsx
+4 −1 src/components/TextReducer/TextReducer.stories.tsx
+1 −1 src/components/Tooltip/Tooltip.tsx
+4 −2 src/components/Typography/typography.scss
+5 −5 src/components/VisualTour/VisualTour.tsx
+1 −0 src/components/index.ts
+2 −2 src/extensions/codemirror/CodeMirror.tsx
+10 −8 src/extensions/react-flow/edges/EdgeLabel.tsx
+6 −7 src/extensions/react-flow/edges/EdgeNew.tsx
+5 −6 src/extensions/react-flow/edges/EdgeTools.tsx
+2 −1 src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx
+4 −4 src/extensions/react-flow/handles/HandleContent.tsx
+1 −1 src/extensions/react-flow/handles/HandleDefault.tsx
+3 −3 src/extensions/react-flow/handles/HandleTools.tsx
+1 −1 src/extensions/react-flow/markers/ReactFlowMarkers.tsx
+20 −19 src/extensions/react-flow/nodes/NodeContent.tsx
+1 −1 src/extensions/react-flow/nodes/NodeDefault.tsx
+1 −2 src/extensions/react-flow/nodes/NodeDefaultV12.tsx
+8 −8 src/extensions/react-flow/nodes/NodeTools.tsx
+5 −3 src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx
+1 −1 src/test/setupTests.js
+42 −48 yarn.lock
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
],
"scripts": {},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {},
"resolutions": {
Expand All @@ -22,10 +22,11 @@
"**/minimist": "1.2.8",
"**/moment": "2.29.4",
"**/nanoid": "3.3.4",
"**/react": "^17.0.2",
"**/react-dom": "^17.0.2",
"**/react": "^18.2.0",
"**/react-dom": "^18.2.0",
"**/semver-regex": "3.1.4",
"**/@types/react": "^17.0.85",
"**/url-parse": "1.5.9"
"**/@types/react": "^18.2.0",
"**/url-parse": "1.5.9",
"**/react-redux": "^9.1.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ class Branding @Inject() () extends InjectedController {
Ok(bytes).as("image/png").withHeaders("Cache-Control" -> "public, max-age=86400")
}

def aboutDialog = Action {
val aboutHtml = Html(WorkbenchConfig.get.about.loadAsString())
Ok(views.html.aboutDialog(aboutHtml))
}

def mdlStyle = Action {
val bytes = WorkbenchConfig.get.mdlStyle.get.loadAsBytes
Ok(bytes).as("text/css")
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@
@(errorMessage: String)(implicit request: RequestHeader, workspaceReact: WorkspaceReact)

@content = {
<div class="mdl-grid mdl-grid--centered">
<div class="mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet">
<div class="mdl-card mdl-shadow--2dp mdl-card--stretch">
<div class="mdl-card__title mdl-card--border">
<div style="max-width: 60rem; margin: 0 auto; padding: 1rem; ">
<div class="eccgui-card bp5-card">
<header>
<div class="eccgui-card__header">
<h3 class="mdl-card__title-text">
Error
</h3>
</div>
<div class="mdl-card__content">
<div class="mdl-alert mdl-alert--danger mdl-alert--border mdl-alert--spacing">
<div class="mdl-alert__content">
<p>@errorMessage</p>
</header>
<hr class="eccgui-separation__divider-horizontal">
<div class="eccgui-card__content">
<div class='@{s"bp5-toast eccgui-notification eccgui-intent--warning eccgui-notification--static"}'>
<div class="bp5-toast-message" role="alert">
<div class="eccgui-notification__content">
<div class="eccgui-notification__messagebody">
<p>@errorMessage</p>
</div>
</div>
</div>
</div>
Expand Down
32 changes: 25 additions & 7 deletions silk-workbench/silk-workbench-core/app/views/configView.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,31 @@
}

@content = {
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="configRootSearch">
<label class="mdl-textfield__label" for="configRootSearch">Search</label>
</div>

<div id="configRoot">
@render(config.root())
<div style="max-width: 80rem; margin: 0 auto; padding: 1rem; ">
<div class="eccgui-card bp5-card">
<header>
<div class="eccgui-card__header">
<h3 class="mdl-card__title-text">
Configuration
</h3>
</div>
</header>
<hr class="eccgui-separation__divider-horizontal">
<div class="eccgui-card__content">
<div class="bp5-input-group bp5-fill bp5-round eccgui-textfield eccgui-textfield--searchinput">
<span class="bp5-input-left-container">
<span class="bp5-icon">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" width="20" height="20" viewBox="0 0 32 32" aria-hidden="true" class="eccgui-icon" xmlns="http://www.w3.org/2000/svg"><path d="M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z"></path></svg>
</span>
</span>
<input id="configRootSearch" type="search" class="bp5-input" dir="auto" placeholder="Enter search term" aria-label="Enter search term" value="" style="padding-left: 33px;">
</div>
<div class="eccgui-separation__spacing-horizontal eccgui-separation__spacing--medium"></div>
<div id="configRoot" style="max-height: 75vh; overflow: auto;">
@render(config.root())
</div>
</div>
</div>
</div>
}

Expand Down
21 changes: 0 additions & 21 deletions silk-workbench/silk-workbench-core/app/views/frame.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@
<head>
<title>@config.workbench.title</title>
<link rel="shortcut icon" type="image/png" href="@Assets.at("img/favicon.png")" />

<link rel="stylesheet" media="screen" href="@Assets.at("main.css")" />
<link rel="stylesheet" href="@Assets.at("libs/jquery-ui/base/jquery-ui.css")" type="text/css" media="screen, projection"/>
<link rel="stylesheet" href="@Assets.at("libs/jquery-ui/base/jquery-ui.structure.css")" type="text/css" media="screen, projection"/>
<link rel="stylesheet" href="@Assets.at("libs/jquery-ui/base/jquery-ui.theme.css")" type="text/css" media="screen, projection"/>
<link rel="stylesheet" href="@Assets.at("libs/mdl-vertical-tabs/mdl-vertical-tabs.css")" type="text/css" media="screen, projection"/>

<script src="@Assets.at("libs/lodash/lodash.js")" type="text/javascript"></script>
<script src="@Assets.at("libs/jquery/dist/jquery.js")" type="text/javascript"></script>
<script src="@Assets.at("libs/jquery-migrate/dist/jquery-migrate.js")" type="text/javascript"></script>
<script src="@Assets.at("libs/jquery-ui/jquery-ui.js")" type="text/javascript"></script>
Expand All @@ -28,27 +24,10 @@
publicBaseUrl:"@{WorkbenchConfig.publicBaseUrl}"
}
</script>
<script src="@Assets.at("main.js")" type="text/javascript"></script>

@header

<!-- MDL inclusions: -->
@coreLinks.mainStyles()

@if(config.workbench.mdlStyle.isDefined) {
@* This indicates that Silk is running in a modified version which can supply an alternative version of MDL. *@
<link type="text/css" href="@config.baseUrl/core/mdlStyle" rel="stylesheet" />
}

<link type="text/css" href="@Assets.at("mdl-adjustments.css")" rel="stylesheet" />
<link type="text/css" href="@Assets.at("libs/mdl-selectfield/dist/mdl-selectfield.css")" rel="stylesheet" />
<link type="text/css" href="@Assets.at("libs/dialog-polyfill/dialog-polyfill.css")" rel="stylesheet" />


<script src="@Assets.at("libs/material-design-lite/material.js")" type="text/javascript"></script>
<script src="@Assets.at("libs/mdl-selectfield/dist/mdl-selectfield.js")" type="text/javascript"></script>
<script src="@Assets.at("libs/dialog-polyfill/dialog-polyfill.js")" type="text/javascript"></script>

</head>
<body>
@content
Expand Down
35 changes: 4 additions & 31 deletions silk-workbench/silk-workbench-core/app/views/main.scala.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,12 @@
@import config.WorkbenchConfig
@import controllers.core.Start
@import config.WorkbenchConfig.WorkspaceReact
@import org.silkframework.config.TaskSpec
@import org.silkframework.workbench.Context

@import config.WorkbenchConfig.WorkspaceReact
@(context: Option[Context[_ <: TaskSpec]], selectedTab: String = "", titleLabel: String = "")(header: Html)(toolbar: Html)(content: Html)(implicit request: RequestHeader, workspaceReact: WorkspaceReact)

@frame(header) {
<dialog id="primary_dialog" class="mdl-dialog__container">
@* Filled with template dialog.scala.html *@
</dialog>
<dialog id="secondary_dialog" class="mdl-dialog__container">
@* Filled with template dialog.scala.html *@
</dialog>

<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<div class="mdl-layout__inner-container">

@if(config.workbench.showHeader(request)) {
@tabbar(context, selectedTab, titleLabel)
}
@if(toolbar != null) {
<div id="toolbar" class="clearfix">
@toolbar
</div>
}
<main class="mdl-layout__content">
<div id="content" class="mdl-tabs__panel is-active">
@content
</div>
<div id="dialogContainer">
<div class="dialog">
</div>
</div>
<div class="eccgui-application__container">
<main class="cds--content eccgui-application__content">
@content
</main>
</div>
</div>
}
101 changes: 51 additions & 50 deletions silk-workbench/silk-workbench-core/app/views/serverError.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,70 +11,71 @@
@frame {

} {
<div class="mdl-grid mdl-grid--centered">
<div class="mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet">
<div class="mdl-card mdl-shadow--2dp mdl-card--stretch">
<div class="mdl-card__title mdl-card--border">
<h3 class="mdl-card__title-text">
@{title.getOrElse(exception.title)}
</h3>
</div>
<div class="mdl-card__content">
<div class="@{s"mdl-alert mdl-alert--$intent mdl-alert--border mdl-alert--spacing"}">
<div class="mdl-alert__content">
<p>@{details.getOrElse(exception.description)}</p>
</div>
<div style="max-width: 60rem; margin: 0 auto; padding: 1rem; ">
<div class="eccgui-card bp5-card">
<header>
<div class="eccgui-card__header">
<h3 class="mdl-card__title-text">
@{title.getOrElse(exception.title)}
</h3>
</div>
@if(showExceptionId) {
<div>
This exception has been logged with id <strong>@exception.id</strong>.
</header>
<hr class="eccgui-separation__divider-horizontal">
<div class="eccgui-card__content">
<div class='@{s"bp5-toast eccgui-notification eccgui-intent--$intent eccgui-notification--static"}'>
<div class="bp5-toast-message" role="alert">
<div class="eccgui-notification__content">
<div class="eccgui-notification__messagebody">
<p>@{details.getOrElse(exception.description)}</p>
@if(showExceptionId) {
<p>
This exception has been logged with id <strong>@exception.id</strong>.
</p>
}
</div>
<div class="eccgui-notification__actions error-details-buttons-without-style">
<button type="button" class="bp5-button eccgui-button">
<span class="bp5-button-text">Show details</span>
</button>
<button type="button" class="bp5-button eccgui-button" style="display: none;">
<span class="bp5-button-text">Hide details</span>
</button>
</div>
<script type="text/javascript">
$(function () {
$(".error-details-buttons-without-style button").click(function() {
$(".error-details-without-style").slideToggle(300, function() {
$(".error-details-buttons-without-style button").toggle();
});
});
});
</script>
<div class="bp5-button-group bp5-minimal"></div>
</div>
</div>
}
</div>
@if(showDetails) {
<div class="error-details-buttons">
<button class="mdl-button mdl-js-button mdl-button--raised">
Show Details
</button>
<button class="mdl-button mdl-js-button mdl-button--raised" style="display: none;">
Hide Details
</button>
</div>
}
</div>
@if(showDetails) {
<div class="error-details" style="display: none;">
<div class="error-details-without-style eccgui-typography__contentblock" style="display: none;">
<div class="eccgui-separation__spacing-horizontal eccgui-separation__spacing--medium"></div>
<h4>Details:</h4>

<div class="error-details-scrollbox">
@for(cause <- Option(exception.cause)) {
<pre class="error-details-scrollbox" style="max-height: 50vh; overflow: auto;">
@for(cause <- Option(exception.cause)) {
@stacktrace(exception.cause)
}
</div>
}
</pre>
</div>
}
}
</div>
</div>
</div>

</div>
<script type="text/javascript">
$(function () {
$(".error-details-buttons button").click(function() {
$(".error-details").slideToggle(300, function() {
$(".error-details-buttons button").toggle();
});
});
});
</script>

}

@stacktrace(ex: Throwable) = {
<p class="error-details-stacktrace">
<code class="error-details-stacktrace">
@for(el <- ex.getStackTrace) {
@el.toString
<br/>
}
</p>
</code>
@if(ex.getCause != null) {
<strong>Cause:</strong>
@ex.getCause.getMessage
Expand Down
Loading
Loading