Files
Arthur Moreira de DeusGitHubgreptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
8301bc21c0 feat: Add button to create group (#35365)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-21 10:32:33 -07:00

22 lines
857 B
TypeScript

import { ProductManifest } from '../../frontend/src/types'
export const manifest: ProductManifest = {
name: 'Groups',
urls: {
groups: (groupTypeIndex: string | number): string => `/groups/${groupTypeIndex}`,
groupsNew: (groupTypeIndex: string | number): string => `/groups/${groupTypeIndex}/new`,
// :TRICKY: Note that groupKey is provided by user. We need to override urlPatternOptions for kea-router.
group: (
groupTypeIndex: string | number,
groupKey: string,
encode: boolean = true,
tab?: string | null
): string =>
`/groups/${groupTypeIndex}/${encode ? encodeURIComponent(groupKey) : groupKey}${tab ? `/${tab}` : ''}`,
},
fileSystemTypes: {
// TODO: create group node entries in the backend
},
treeItemsProducts: [],
}