[ARVADOS-WORKBENCH2] updated: 2.1.0-295-g31e84a93
Git user
git at public.arvados.org
Mon Apr 5 14:33:05 UTC 2021
Summary of changes:
Makefile | 2 +-
README.md | 79 +++++----
src/common/plugintypes.ts | 178 +++++++++++++++++++++
src/components/form-dialog/form-dialog.tsx | 5 +-
src/index.tsx | 3 +-
src/models/link.ts | 5 +-
src/plugins.tsx | 30 ++++
src/plugins/README.md | 65 ++++++++
src/plugins/blank/index.tsx | 22 +++
src/plugins/example/exampleComponents.tsx | 131 +++++++++++++++
src/plugins/example/index.tsx | 85 ++++++++++
src/plugins/root-redirect/index.tsx | 20 +++
src/routes/route-change-handlers.ts | 9 +-
src/store/breadcrumbs/breadcrumbs-actions.ts | 2 +-
src/store/context-menu/context-menu-actions.ts | 4 +-
src/store/navigation/navigation-action.ts | 30 +++-
.../side-panel-tree/side-panel-tree-actions.ts | 38 +++--
src/store/side-panel/side-panel-action.ts | 36 +----
src/store/store.ts | 9 +-
src/store/workbench/workbench-actions.ts | 6 +-
.../form-fields/project-form-fields.tsx | 3 +-
src/views-components/main-app-bar/account-menu.tsx | 71 ++++----
src/views-components/main-app-bar/main-app-bar.tsx | 28 ++--
.../main-content-bar/main-content-bar.tsx | 28 +++-
.../project-properties-dialog.tsx | 70 ++++----
.../side-panel-button/side-panel-button.tsx | 40 +++--
src/views/workbench/workbench.tsx | 68 ++++----
27 files changed, 844 insertions(+), 223 deletions(-)
create mode 100644 src/common/plugintypes.ts
create mode 100644 src/plugins.tsx
create mode 100644 src/plugins/README.md
create mode 100644 src/plugins/blank/index.tsx
create mode 100644 src/plugins/example/exampleComponents.tsx
create mode 100644 src/plugins/example/index.tsx
create mode 100644 src/plugins/root-redirect/index.tsx
via 31e84a9315728c2f58a26bf0e9e1d2b38326fb86 (commit)
via 0445c9903e02cf27b36c1b41ffbd76de81b9d2e8 (commit)
via 370d78f65bca409aa1a295d94a96436959b568ae (commit)
via b05f087c3e2bbaaa829d602af6d90fa565a9900e (commit)
via 160378cd58ef72daacfc5577e3c23ddbc35a5f7f (commit)
via 381ea9efdee553e5b52282f22add58d4859ab4ef (commit)
via fa03027f1954dfdd98c3d3d4f74ea3a016cf57c0 (commit)
via dd8c2373f5230831c051711d9e52a3b2defd9dd0 (commit)
via e4de9a43cee1a8859cb2a42ea01723d632621ce4 (commit)
via 950ea822015652a479f236fff9ea8271b60f1ee9 (commit)
via 623f5deee7b203090fb71f028e01ed55e0f8a38c (commit)
via 30557563fd5fb704554f4d6109493f673ae7f5e5 (commit)
from 5385afcada8666051658c6889c83848702497759 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 31e84a9315728c2f58a26bf0e9e1d2b38326fb86
Merge: 5385afca 0445c990
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Mon Apr 5 10:32:46 2021 -0400
Merge branch '17426-plug-ins' refs #17426
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --cc src/views-components/side-panel-button/side-panel-button.tsx
index bf03bf6c,151cfb68..fb5ea11f
--- a/src/views-components/side-panel-button/side-panel-button.tsx
+++ b/src/views-components/side-panel-button/side-panel-button.tsx
@@@ -15,9 -15,12 +15,12 @@@ import { navigateToRunProcess } from '~
import { runProcessPanelActions } from '~/store/run-process-panel/run-process-panel-actions';
import { getUserUuid } from '~/common/getuser';
import { matchProjectRoute } from '~/routes/routes';
-import { GroupResource } from '~/models/group';
+import { GroupClass, GroupResource } from '~/models/group';
import { ResourcesState, getResource } from '~/store/resources/resources';
import { extractUuidKind, ResourceKind } from '~/models/resource';
+ import { pluginConfig } from '~/plugins';
+ import { ElementListReducer } from '~/common/plugintypes';
+ import { Location } from 'history';
type CssRules = 'button' | 'menuItem' | 'icon';
commit 0445c9903e02cf27b36c1b41ffbd76de81b9d2e8
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Mon Apr 5 10:31:50 2021 -0400
17426: Add "enableWhenPristine" option for dialog boxes.
Update README.
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/src/components/form-dialog/form-dialog.tsx b/src/components/form-dialog/form-dialog.tsx
index 8c847ca4..6970a38a 100644
--- a/src/components/form-dialog/form-dialog.tsx
+++ b/src/components/form-dialog/form-dialog.tsx
@@ -42,6 +42,7 @@ interface DialogProjectDataProps {
dialogTitle: string;
formFields: React.ComponentType<InjectedFormProps<any> & WithDialogProps<any>>;
submitLabel?: string;
+ enableWhenPristine?: boolean;
}
type DialogProjectProps = DialogProjectDataProps & WithDialogProps<{}> & InjectedFormProps<any> & WithStyles<CssRules>;
@@ -76,7 +77,7 @@ export const FormDialog = withStyles(styles)((props: DialogProjectProps) =>
onClick={props.handleSubmit}
className={props.classes.lastButton}
color="primary"
- disabled={props.invalid || props.submitting || props.pristine}
+ disabled={props.invalid || props.submitting || (props.pristine && !props.enableWhenPristine)}
variant="contained">
{props.submitLabel || 'Submit'}
{props.submitting && <CircularProgress size={20} className={props.classes.progressIndicator} />}
@@ -85,5 +86,3 @@ export const FormDialog = withStyles(styles)((props: DialogProjectProps) =>
</form>
</Dialog>
);
-
-
diff --git a/src/plugins/README.md b/src/plugins/README.md
index f95317c3..931590cb 100644
--- a/src/plugins/README.md
+++ b/src/plugins/README.md
@@ -32,30 +32,32 @@ differently from the standard `arvados-workbench2` to avoid confusion.
## Existing plugins
-* "example"
+### example
This is an example plugin showing how to add a new navigation tree
item, displaying a new center panel, as well as adding account menu
and "New" menu items, and showing how to use SET_PROPERTY and
getProperty() for state.
-* "blank"
+### blank
This deletes all of the existing user interface. If you want the
application to only display your plugin's UI elements and none of the
standard elements, you would load and register this first.
-* "root-redirect"
+### root-redirect
This helper takes a path when registered. It tweaks the navigation
behavior so that the default starting location when the application
loads will be the path you provide, instead of "Projects".
-* "sample-tracker"
-
-This can be found at
-
+### sample-tracker
+This is a a new set of user interface screens that assist with
+clinical sample tracking and analysis. It is intended as a demo of
+how a real-world application can built using the Workbench 2
+plug-in interface. It can be found at
+https://github.com/arvados/sample-tracker .
## Developing plugins
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list