Multiple Sidebar items

Hi all,

Is it possible to have multiple items on the Sidebar? I tried adding multiple but when trying to activate the add-in, I receive the following error message:
Could not transform JSON manifest to AddonManifest. Message: Duplicate component types found. Component types must be unique.”

My components config in the manifest looks like:

“components”: [
{
“type”: “sidebar”,
“accessLevel”: “EVERYONE”,
“path”: “/sidebar1”,
“label”: “Sidebar1”,
“iconPath”: “/img/sidebar1.svg”
},
{
“type”: “sidebar”,
“accessLevel”: “EVERYONE”,
“path”: “/sidebar2”,
“label”: “Sidebar2”,
“iconPath”: “/img/sidebar2.svg”
}
]

If this is not possible, is it possible to add sub items to the sidebar item? I did see and example of options in the documentation, but it’s not clear how to use them:
“components”: [
{
“type”: “sidebar”,
“label”: “${sidebarLabel}”,
“accessLevel”: “ADMINS”,
“path”: “${sidebarPath}”,
“options”: {
“option 1”: “option 1 value”,
“option 2”: “option 2 value”
},
“iconPath”: “/trt”,
],

Any advice would be greatly appreciated.

Thank you very much!

Hi pieter,

It’s not possible to have multiple Sidebar items in one add-on. It’s also not possible to have sub items, so we’ll have to review the documentation.

Best option is to have a sidebar item and then render multiple tabs as we have it in other pages.

Could you share what the use case would be for having more than one sidebar item?

Hi Uroš,

Thank you for responding!

I want to link Clockify clients to a organization on my end - users would then be able to add notes, documentation, etc to an organization from the Clockify interface. Since the client edit page is a popup and not a tabbed interface, i though adding my own organization tab could work.

Any chance of you guys adding a client detail page where we can add a tab? :smiley:

Thank you for your response.

I think it will be a useful add-on. Client management is currently not yet developed and for now it’s not in the near future planning to add details page.
So I think best way would be to use the sidebar element with tabs and you can take already existing client data and enrich it.

The dev-docs you mentioned is a bit off so we’ll adapt it soon.