Skip to content

Commit 531e1d4

Browse files
authored
Merge pull request #38 from fleetbase/feature/header-menu-shortcuts
feat: add description and shortcuts to header menu registration
2 parents f11d032 + 0f250f3 commit 531e1d4

3 files changed

Lines changed: 91 additions & 15 deletions

File tree

addon/extension.js

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,43 @@ export default {
66
const widgetService = universe.getService('widget');
77

88
// Register in header menu
9-
menuService.registerHeaderMenuItem('Developers', 'console.developers', { icon: 'code', priority: 2 });
9+
menuService.registerHeaderMenuItem('Developers', 'console.developers', {
10+
icon: 'code',
11+
priority: 2,
12+
description: 'API keys, webhooks, socket channels, event logs, and developer tooling.',
13+
shortcuts: [
14+
{
15+
title: 'API Keys',
16+
description: 'Create and manage API keys for authenticating your integrations.',
17+
icon: 'key',
18+
route: 'console.developers.api-keys',
19+
},
20+
{
21+
title: 'Webhooks',
22+
description: 'Configure webhook endpoints to receive real-time event notifications.',
23+
icon: 'webhook',
24+
route: 'console.developers.webhooks',
25+
},
26+
{
27+
title: 'Sockets',
28+
description: 'Monitor active WebSocket channels and connected clients.',
29+
icon: 'plug',
30+
route: 'console.developers.sockets',
31+
},
32+
{
33+
title: 'Events',
34+
description: 'Browse the full history of platform events and payloads.',
35+
icon: 'bolt',
36+
route: 'console.developers.events',
37+
},
38+
{
39+
title: 'Logs',
40+
description: 'Inspect API request and response logs for debugging.',
41+
icon: 'terminal',
42+
route: 'console.developers.logs',
43+
},
44+
],
45+
});
1046

1147
// Register widgets
1248
const widgets = [

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fleetbase/dev-engine",
3-
"version": "0.2.12",
3+
"version": "0.2.13",
44
"description": "Fleetbase Developers extension provides a module for managing developer resources such as API keys, webhooks, sockets, events and logs.",
55
"fleetbase": {
66
"route": "developers"
@@ -42,8 +42,8 @@
4242
},
4343
"dependencies": {
4444
"@babel/core": "^7.23.2",
45-
"@fleetbase/ember-core": "^0.3.8",
46-
"@fleetbase/ember-ui": "^0.3.14",
45+
"@fleetbase/ember-core": "^0.3.17",
46+
"@fleetbase/ember-ui": "^0.3.25",
4747
"@fortawesome/ember-fontawesome": "^2.0.0",
4848
"@fortawesome/fontawesome-svg-core": "6.4.0",
4949
"@fortawesome/free-brands-svg-icons": "6.4.0",

pnpm-lock.yaml

Lines changed: 51 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)