WIP: Fix errors

This commit is contained in:
somebody1234 2024-11-18 22:49:25 +10:00
parent 33f0e9b390
commit 50bdd0a9a0
2 changed files with 15 additions and 6 deletions

View File

@ -75,6 +75,7 @@ export type MutationMethod = DefineBackendMethods<
| 'deleteAsset'
| 'deleteDatalink'
| 'deleteInvitation'
| 'deleteProjectExecution'
| 'deleteTag'
| 'deleteUser'
| 'deleteUserGroup'

View File

@ -10,6 +10,7 @@ import inspectIcon from '#/assets/inspect.svg'
import versionsIcon from '#/assets/versions.svg'
import { useEventCallback } from '#/hooks/eventCallbackHooks'
import { ProjectExecutions } from '#/layouts/AssetProjectExecutions'
import { useBackend } from '#/providers/BackendProvider'
import {
useAssetPanelProps,
@ -74,9 +75,7 @@ export interface AssetPanelContextProps {
readonly spotlightOn: AssetPropertiesSpotlight | null
}
/**
* Props for an {@link AssetPanel}.
*/
/** Props for an {@link AssetPanel}. */
export interface AssetPanelProps {
readonly backendType: BackendType
readonly category: Category
@ -131,9 +130,7 @@ export function AssetPanel(props: AssetPanelProps) {
)
}
/**
* The internal implementation of the Asset Panel Tabs.
*/
/** The internal implementation of the Asset Panel Tabs. */
const InternalAssetPanelTabs = memo(function InternalAssetPanelTabs(props: AssetPanelProps) {
const { category } = props
@ -213,6 +210,10 @@ const InternalAssetPanelTabs = memo(function InternalAssetPanelTabs(props: Asset
<AssetProjectSessions backend={backend} item={item} />
</AssetPanelTabs.TabPanel>
<AssetPanelTabs.TabPanel id="executions" resetKeys={[item?.id]}>
<ProjectExecutions backend={backend} item={item} />
</AssetPanelTabs.TabPanel>
<AssetPanelTabs.TabPanel id="docs" resetKeys={[item?.id]}>
<AssetDocs backend={backend} item={item} />
</AssetPanelTabs.TabPanel>
@ -253,6 +254,13 @@ const InternalAssetPanelTabs = memo(function InternalAssetPanelTabs(props: Asset
isExpanded={isExpanded}
onPress={expandTab}
/>
<AssetPanelTabs.Tab
id="executions"
icon={sessionsIcon}
label={getText('executions')}
isExpanded={isExpanded}
onPress={expandTab}
/>
<AssetPanelTabs.Tab
id="docs"
icon={docsIcon}