Skip to content

Commit ba70be6

Browse files
author
Ronald A Richardson
committed
feat: add description and shortcuts to registerHeaderMenuItem
1 parent f11d032 commit ba70be6

1 file changed

Lines changed: 37 additions & 1 deletion

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 = [

0 commit comments

Comments
 (0)