-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/Tapis-v3-redesign' into task/DES-2629--v3-apps-form
- Loading branch information
Showing
39 changed files
with
379 additions
and
134 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './FileListingTable/FileListingTable'; | ||
export * from './DatafilesBreadcrumb/DatafilesBreadcrumb'; |
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,4 +1 @@ | ||
export * from './lib/common-components'; | ||
export { Spinner } from './lib/Spinner'; | ||
export { Icon } from './lib/Icon'; | ||
export { SecondaryButton, PrimaryButton } from './lib/Button'; | ||
export * from './datafiles'; |
7 changes: 0 additions & 7 deletions
7
client/modules/_common_components/src/lib/common-components.module.css
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
client/modules/_common_components/src/lib/common-components.spec.tsx
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
client/modules/_common_components/src/lib/common-components.tsx
This file was deleted.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
client/modules/_hooks/src/datafiles/publications/useAmendProject.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { useMutation, useQueryClient } from '@tanstack/react-query'; | ||
import apiClient from '../../apiClient'; | ||
|
||
async function amendProject(projectId: string) { | ||
const res = await apiClient.post(`/api/publications/v2/amend/`, { | ||
projectId, | ||
}); | ||
return res.data; | ||
} | ||
|
||
export function useAmendProject() { | ||
const queryClient = useQueryClient(); | ||
return useMutation({ | ||
mutationFn: ({ projectId }: { projectId: string }) => | ||
amendProject(projectId), | ||
onSuccess: () => | ||
queryClient.invalidateQueries({ | ||
queryKey: ['datafiles', 'published'], | ||
}), | ||
}); | ||
} |
34 changes: 34 additions & 0 deletions
34
client/modules/_hooks/src/datafiles/publications/useVersionProject.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { useMutation, useQueryClient } from '@tanstack/react-query'; | ||
import apiClient from '../../apiClient'; | ||
|
||
async function versionProject( | ||
projectId: string, | ||
entityUuids: string[], | ||
versionInfo: string | ||
) { | ||
const res = await apiClient.post(`/api/publications/v2/version/`, { | ||
projectId, | ||
entityUuids, | ||
versionInfo, | ||
}); | ||
return res.data; | ||
} | ||
|
||
export function useVersionProject() { | ||
const queryClient = useQueryClient(); | ||
return useMutation({ | ||
mutationFn: ({ | ||
projectId, | ||
entityUuids, | ||
versionInfo, | ||
}: { | ||
projectId: string; | ||
entityUuids: string[]; | ||
versionInfo: string; | ||
}) => versionProject(projectId, entityUuids, versionInfo), | ||
onSuccess: () => | ||
queryClient.invalidateQueries({ | ||
queryKey: ['datafiles', 'published'], | ||
}), | ||
}); | ||
} |
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
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
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
Oops, something went wrong.