-
+
diff --git a/frontend/console/src/features/modules/decls/topic/TopicRightPanels.tsx b/frontend/console/src/features/modules/decls/topic/TopicRightPanels.tsx
index 8e486086e..9d8105fa0 100644
--- a/frontend/console/src/features/modules/decls/topic/TopicRightPanels.tsx
+++ b/frontend/console/src/features/modules/decls/topic/TopicRightPanels.tsx
@@ -7,7 +7,10 @@ export const topicPanels = (topic: Topic) => {
{
title: 'Details',
expanded: true,
- children: [
],
+ children: [
+
,
+
,
+ ],
},
] as ExpandablePanelProps[]
}
diff --git a/frontend/console/src/features/modules/decls/typealias/TypeAliasPanel.tsx b/frontend/console/src/features/modules/decls/typealias/TypeAliasPanel.tsx
index e04e6e34c..deffc12a9 100644
--- a/frontend/console/src/features/modules/decls/typealias/TypeAliasPanel.tsx
+++ b/frontend/console/src/features/modules/decls/typealias/TypeAliasPanel.tsx
@@ -1,19 +1,39 @@
+import { ResizablePanels } from '../../../../components/ResizablePanels'
import type { TypeAlias } from '../../../../protos/xyz/block/ftl/v1/console/console_pb'
+import { declIcon } from '../../module.utils'
import { Schema } from '../../schema/Schema'
+import { DeclDefaultPanels } from '../DeclDefaultPanels'
import { PanelHeader } from '../PanelHeader'
-import { References } from '../References'
+import { RightPanelHeader } from '../RightPanelHeader'
+import { typeAliasPanels } from './TypeAliasRightPanels'
export const TypeAliasPanel = ({ value, schema, moduleName, declName }: { value: TypeAlias; schema: string; moduleName: string; declName: string }) => {
if (!value || !schema) {
return
}
+
+ const decl = value.typealias
+ if (!decl) {
+ return
+ }
+
return (
-
-
-
-
-
-
+
+ }
+ rightPanelHeader={
}
+ rightPanelPanels={[...typeAliasPanels(value), ...DeclDefaultPanels(schema, value.references)]}
+ storageKeyPrefix='typeAliasPanel'
+ />
)
}
diff --git a/frontend/console/src/features/modules/decls/typealias/TypeAliasRightPanels.tsx b/frontend/console/src/features/modules/decls/typealias/TypeAliasRightPanels.tsx
new file mode 100644
index 000000000..f1507624d
--- /dev/null
+++ b/frontend/console/src/features/modules/decls/typealias/TypeAliasRightPanels.tsx
@@ -0,0 +1,16 @@
+import { RightPanelAttribute } from '../../../../components/RightPanelAttribute'
+import type { TypeAlias } from '../../../../protos/xyz/block/ftl/v1/console/console_pb'
+import type { ExpandablePanelProps } from '../../../console/ExpandablePanel'
+
+export const typeAliasPanels = (typeAlias: TypeAlias) => {
+ return [
+ {
+ title: 'Details',
+ expanded: true,
+ children: [
+
,
+
,
+ ],
+ },
+ ] as ExpandablePanelProps[]
+}