Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit 7f77c6b

Browse files
twoGiantsclaude
andcommitted
feat: wire /functions route, remove template
Register FunctionsListPage at /functions with a Functions nav section in the dev perspective. Remove the template ExamplePage and its CSS. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 197fd4a commit 7f77c6b

4 files changed

Lines changed: 18 additions & 56 deletions

File tree

console-extensions.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
[
22
{
3-
"type": "console.page/route",
3+
"type": "console.navigation/section",
44
"properties": {
5-
"exact": true,
6-
"path": "/example",
7-
"component": { "$codeRef": "ExamplePage" }
5+
"id": "functions-section",
6+
"name": "%plugin__console-functions-plugin~Functions%",
7+
"perspective": "dev"
88
}
99
},
1010
{
1111
"type": "console.navigation/href",
1212
"properties": {
13-
"id": "example",
14-
"name": "%plugin__console-plugin-template~Plugin example%",
15-
"href": "/example",
16-
"perspective": "admin",
17-
"section": "home"
13+
"id": "functions-list",
14+
"name": "%plugin__console-functions-plugin~Functions%",
15+
"href": "/functions",
16+
"section": "functions-section",
17+
"perspective": "dev"
18+
}
19+
},
20+
{
21+
"type": "console.page/route",
22+
"properties": {
23+
"path": "/functions",
24+
"component": { "$codeRef": "FunctionsListPage" },
25+
"exact": true
1826
}
1927
}
2028
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"displayName": "Serverless Functions",
9191
"description": "A Functions-as-a-Service PoC UI for the OpenShift Web Console. Developers create, edit, and deploy serverless functions without CLI knowledge.",
9292
"exposedModules": {
93-
"ExamplePage": "./components/ExamplePage"
93+
"FunctionsListPage": "./views/FunctionsListPage"
9494
},
9595
"dependencies": {
9696
"@console/pluginAPI": "^4.21.0"

src/components/ExamplePage.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/components/example.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)