diff --git a/frontend/console/e2e/module.spec.ts b/frontend/console/e2e/module.spec.ts
index 9646ca33fc..52e9fea8ad 100644
--- a/frontend/console/e2e/module.spec.ts
+++ b/frontend/console/e2e/module.spec.ts
@@ -10,6 +10,5 @@ ftlTest('shows verbs for deployment', async ({ page }) => {
await expect(page).toHaveURL(/\/modules\/echo/)
- await expect(page.getByText('Deployment', { exact: true })).toBeVisible()
- await expect(page.getByText('Created Deployment dpl-echo')).toBeVisible()
+ await expect(page.getByText('module echo {')).toBeVisible()
})
diff --git a/frontend/console/src/features/modules/ModulePanel.tsx b/frontend/console/src/features/modules/ModulePanel.tsx
index 7b378b8bba..4938a5ee5e 100644
--- a/frontend/console/src/features/modules/ModulePanel.tsx
+++ b/frontend/console/src/features/modules/ModulePanel.tsx
@@ -1,8 +1,20 @@
+import { useMemo } from 'react'
import { useParams } from 'react-router-dom'
-import { DeploymentPage } from '../deployments/DeploymentPage'
+import { useModules } from '../../api/modules/use-modules'
+import { Schema } from './schema/Schema'
export const ModulePanel = () => {
const { moduleName } = useParams()
+ const modules = useModules()
- return
+ const module = useMemo(() => {
+ if (!modules.isSuccess || modules.data.modules.length === 0) {
+ return
+ }
+ return modules.data.modules.find((module) => module.name === moduleName)
+ }, [modules?.data, moduleName])
+
+ if (!module) return
+
+ return
}
diff --git a/frontend/console/src/features/modules/decls/DeclLink.tsx b/frontend/console/src/features/modules/decls/DeclLink.tsx
index 48baf55132..6c0c58f88a 100644
--- a/frontend/console/src/features/modules/decls/DeclLink.tsx
+++ b/frontend/console/src/features/modules/decls/DeclLink.tsx
@@ -3,12 +3,13 @@ import { useNavigate } from 'react-router-dom'
import { useSchema } from '../../../api/schema/use-schema'
import type { PullSchemaResponse } from '../../../protos/xyz/block/ftl/v1/ftl_pb.ts'
import type { Decl } from '../../../protos/xyz/block/ftl/v1/schema/schema_pb'
+import { classNames } from '../../../utils'
import { DeclSnippet } from './DeclSnippet'
const SnippetContainer = ({ decl }: { decl: Decl }) => {
return (
-
-
+
+