mirror of
https://github.com/hanzoai/insights.git
synced 2026-11-02 14:32:45 +00:00
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
22 lines
857 B
TypeScript
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: [],
|
|
}
|