-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start integration of Discovery page with Data Library
- Loading branch information
1 parent
f5d64f2
commit 00e81fc
Showing
9 changed files
with
69 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 1 addition & 11 deletions
12
packages/frontend/src/features/DataLibrary/selection/registeredActions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 20 additions & 57 deletions
77
packages/frontend/src/features/Discovery/ActionBar/AddToDataLibrary.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/frontend/src/features/Discovery/ActionBar/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
import { HTTPError } from '@gen3/core'; | ||
import { ValidatedSelectedItem } from '../../DataLibrary/types'; | ||
|
||
export interface ActionButtonProps< | ||
T extends Record<string, any> = Record<string, any>, | ||
> { | ||
selectedResources: Array<T>; | ||
manifestFieldName?: string; | ||
} | ||
|
||
export type DataActionFunction<T = void> = ( | ||
validatedSelections: ReadonlyArray<ValidatedSelectedItem>, | ||
params?: Record<string, any>, // function options from the config | ||
done?: (arg0?: string) => void, | ||
onError?: (error: HTTPError | Error) => void, | ||
onAbort?: () => void, | ||
signal?: AbortSignal, | ||
) => Promise<T>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters