Dear Gitlab users, due to maintenance reasons, Gitlab will not be available on Thursday 30.09.2021 from 5:00 pm to approximately 5:30 pm.

Commit d520c982 authored by Stefan Probst's avatar Stefan Probst
Browse files

feat: add contributed items screen, fix draft items

parent ff220f1c
Pipeline #207765 passed with stages
in 11 minutes and 33 seconds
......@@ -36,10 +36,12 @@ export type ItemCategory = Exclude<ItemBasicDto['category'], undefined>
/**
* item search query parameters.
*/
export type ItemSearchQuery = Omit<SearchItems.QueryParameters, 'f'> & {
export type ItemSearchQuery = Omit<SearchItems.QueryParameters, 'f' | 'd'> & {
'f.activity'?: Array<string>
'f.keyword'?: Array<string>
'f.source'?: Array<string>
'd.status'?: string
'd.owner'?: string
}
/**
......
......@@ -64,7 +64,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getDatasets'],
......
......@@ -66,7 +66,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getDatasets'],
......
......@@ -64,7 +64,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getPublications'],
......
......@@ -66,7 +66,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getPublications'],
......
......@@ -62,7 +62,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getTools'],
......
......@@ -64,7 +64,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getTools'],
......
......@@ -62,7 +62,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getTrainingMaterials'],
......
......@@ -64,7 +64,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getTrainingMaterials'],
......
......@@ -108,7 +108,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getWorkflows'],
......
......@@ -122,7 +122,7 @@ export function ItemForm(props: ItemFormProps<ItemFormValues>): JSX.Element {
)
queryClient.invalidateQueries({
queryKey: ['itemSearch'],
queryKey: ['searchItems'],
})
queryClient.invalidateQueries({
queryKey: ['getWorkflows'],
......
import ProtectedScreen from '@/modules/auth/ProtectedScreen'
import DatasetDraftEditScreen from '@/screens/item/dataset/DatasetDraftEditScreen'
/**
* Draft dataset edit page.
*/
export default function DatasetDraftEditPage(): JSX.Element {
return (
<ProtectedScreen>
<DatasetDraftEditScreen />
</ProtectedScreen>
)
}
import ProtectedScreen from '@/modules/auth/ProtectedScreen'
import DatasetDraftScreen from '@/screens/item/dataset/DatasetDraftScreen'
/**
* Draft dataset detail page.
*/
export default function DatasetDraftPage(): JSX.Element {
return (
<ProtectedScreen>
<DatasetDraftScreen />
</ProtectedScreen>
)
}
import ProtectedScreen from '@/modules/auth/ProtectedScreen'
import DatasetEditDraftScreen from '@/screens/item/dataset/DatasetDraftEditScreen'
import DatasetEditDraftScreen from '@/screens/item/dataset/DatasetVersionEditScreen'
/**
* Edit draft dataset page.
*/
export default function DatasetDraftEditPage(): JSX.Element {
export default function DatasetVersionEditPage(): JSX.Element {
return (
<ProtectedScreen>
<DatasetEditDraftScreen />
......
......@@ -2,7 +2,7 @@ import ProtectedScreen from '@/modules/auth/ProtectedScreen'
import PublicationDraftEditScreen from '@/screens/item/publication/PublicationDraftEditScreen'
/**
* Edit draft publication page.
* Draft publication edit page.
*/
export default function PublicationDraftEditPage(): JSX.Element {
return (
......
import ProtectedScreen from '@/modules/auth/ProtectedScreen'
import PublicationDraftScreen from '@/screens/item/publication/PublicationDraftScreen'
/**
* Draft publication detail page.
*/
export default function PublicationDraftPage(): JSX.Element {
return (
<ProtectedScreen>
<PublicationDraftScreen />
</ProtectedScreen>
)
}
import ProtectedScreen from '@/modules/auth/ProtectedScreen'
import PublicationVersionEditScreen from '@/screens/item/publication/PublicationVersionEditScreen'
/**
* Edit draft publication page.
*/
export default function PublicationVersionEditPage(): JSX.Element {
return (
<ProtectedScreen>
<PublicationVersionEditScreen />
</ProtectedScreen>
)
}
......@@ -2,7 +2,7 @@ import ProtectedScreen from '@/modules/auth/ProtectedScreen'
import ToolDraftEditScreen from '@/screens/item/tool/ToolDraftEditScreen'
/**
* Edit draft tool page.
* Draft tool edit page.
*/
export default function ToolDraftEditPage(): JSX.Element {
return (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment