<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add more widgets to the Morpheus Dashboard in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250834#M4008</link>
    <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/ollie_phillips"&gt;@Ollie_Phillips&lt;/A&gt; ,&lt;/P&gt;
&lt;P&gt;I have tried the approach what you suggested like, updating &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/main/morpheus-home-dashboard-plugin" rel="noopener nofollow ugc"&gt;morpheus-dashboards repo code&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I could able to inject the our application related widgets to the existing Dashboard.&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149639i5DB60A52540C396A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="44bfa19c22cc7befa20cce84e8f25060381b77ef.png" alt="44bfa19c22cc7befa20cce84e8f25060381b77ef.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Queries:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Instead of updating &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/main/morpheus-home-dashboard-plugin" rel="noopener nofollow ugc"&gt;morpheus-dashboards repo code&lt;/A&gt;, can we achieve it through from our repo?  is that possible ?&lt;/LI&gt;
&lt;LI&gt;If updating &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/main/morpheus-home-dashboard-plugin" rel="noopener nofollow ugc"&gt;morpheus-dashboards repo code&lt;/A&gt; is the only way, then how do call our rest api services which are defined in other jar file ? And to which repo we need to push the code ?&lt;/LI&gt;
&lt;LI&gt;While adding widgets, we are required to change/add css, how do we add our custom css ?&lt;/LI&gt;
&lt;LI&gt;Is there any storybook/framework link for UI components reference ?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;CC: &lt;A class="mention" href="https://community.hpe.com/u/david"&gt;@david&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Ramkee Mukuru&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 06:45:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2025-02-20T06:45:49Z</dc:date>
    <item>
      <title>Add more widgets to the Morpheus Dashboard</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250833#M4007</link>
      <description>&lt;P&gt;We are trying to add/append few more widgets to the existing Dashboard (Operations &amp;gt; Dashboard) but not successful. Is that allowed to do ? if so how do we add our Application related widgets to Dashboard ?&lt;/P&gt;
&lt;P&gt;If we pick morpheus-dashboard plugin code and update the widgets its working, but overwriting existing dashboard is not ideal thing i believe.  can you please guide us how do we achieve this&lt;BR /&gt;
&lt;A class="mention" href="https://community.hpe.com/u/david"&gt;@david&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 20:27:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250833#M4007</guid>
      <dc:creator />
      <dc:date>2025-02-16T20:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add more widgets to the Morpheus Dashboard</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250834#M4008</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/ollie_phillips"&gt;@Ollie_Phillips&lt;/A&gt; ,&lt;/P&gt;
&lt;P&gt;I have tried the approach what you suggested like, updating &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/main/morpheus-home-dashboard-plugin" rel="noopener nofollow ugc"&gt;morpheus-dashboards repo code&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I could able to inject the our application related widgets to the existing Dashboard.&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149639i5DB60A52540C396A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="44bfa19c22cc7befa20cce84e8f25060381b77ef.png" alt="44bfa19c22cc7befa20cce84e8f25060381b77ef.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Queries:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Instead of updating &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/main/morpheus-home-dashboard-plugin" rel="noopener nofollow ugc"&gt;morpheus-dashboards repo code&lt;/A&gt;, can we achieve it through from our repo?  is that possible ?&lt;/LI&gt;
&lt;LI&gt;If updating &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/main/morpheus-home-dashboard-plugin" rel="noopener nofollow ugc"&gt;morpheus-dashboards repo code&lt;/A&gt; is the only way, then how do call our rest api services which are defined in other jar file ? And to which repo we need to push the code ?&lt;/LI&gt;
&lt;LI&gt;While adding widgets, we are required to change/add css, how do we add our custom css ?&lt;/LI&gt;
&lt;LI&gt;Is there any storybook/framework link for UI components reference ?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;CC: &lt;A class="mention" href="https://community.hpe.com/u/david"&gt;@david&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Ramkee Mukuru&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 06:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250834#M4008</guid>
      <dc:creator />
      <dc:date>2025-02-20T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add more widgets to the Morpheus Dashboard</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250835#M4009</link>
      <description>&lt;P&gt;I’ve annotated below against your queries:&lt;/P&gt;
&lt;ASIDE class="quote no-group" data-username="ramkee" data-post="3" data-topic="2281"&gt;
ramkee:
&lt;BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;Are we allowed to update the existing dashboard code ? if so what if other teams also wants to add their own widgets, How do we co-ordinate&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;The code once modified is your code. You can submit pull requests to the Morpheus plugin repo of course.&lt;/P&gt;
&lt;P&gt;If you want to manage internally and it will be internal teams contributing then version control should facilitate that too.&lt;/P&gt;
&lt;ASIDE class="quote no-group" data-username="ramkee" data-post="3" data-topic="2281"&gt;
ramkee:
&lt;BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;Are there any fixed &lt;CODE style="background : #f0f1f2;"&gt;category&lt;/CODE&gt; enums ? or we can create any custom names&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;	    rtn.setCategory("environment");
		rtn.setTitle("environment count");
		rtn.setDescription("environment count");
		rtn.setUiSize("xl widget-short");
		rtn.setTemplatePath("hbs/environment-count-widget");
		rtn.setScriptPath("environment-count-widget.js");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;From what I could determine, category was a meta type HTML wrapper. - so it can be anything. The widget providers provide all the properties needed for the UI beyond that.&lt;/P&gt;
&lt;ASIDE class="quote no-group" data-username="ramkee" data-post="3" data-topic="2281"&gt;
ramkee:
&lt;BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;What should be the code to give permissions here. For example, my main plugin provider code is xyz should we provide that or anything am missing here&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt; rtn.setPermission(getMorpheus().getPermission().getByCode("admin-health").blockingGet());&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;The &lt;CODE style="background : #f0f1f2;"&gt;Operations &amp;gt; Dashboard&lt;/CODE&gt; role permission will display the page UI. So your XYZ dashboard widget provider will be visible by default, unless you attach other permission requirements via the code you show above.&lt;/P&gt;
&lt;P&gt;Those are not definitive answers, I’m just reviewing the code.  If you want to dig into this, please open a Technical Request.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 19:27:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250835#M4009</guid>
      <dc:creator>Ollie-Phillips</dc:creator>
      <dc:date>2025-02-17T19:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add more widgets to the Morpheus Dashboard</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250836#M4010</link>
      <description>&lt;P&gt;Adding comments below:&lt;/P&gt;
&lt;ASIDE class="quote no-group" data-username="ramkee" data-post="6" data-topic="2281"&gt;
ramkee:
&lt;BLOCKQUOTE&gt;
&lt;OL&gt;
&lt;LI&gt;Instead of updating &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/main/morpheus-home-dashboard-plugin"&gt;morpheus-dashboards repo code&lt;/A&gt;, can we achieve it through from our repo? is that possible ?&lt;/LI&gt;
&lt;/OL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Fork the repo, remove all the widget providers you don’t need and add your own. That’s the way I would go.  Building ground up is possible, but likely offers more opportunity for error. Subtract from what works.&lt;/P&gt;
&lt;ASIDE class="quote no-group" data-username="ramkee" data-post="6" data-topic="2281"&gt;
ramkee:
&lt;BLOCKQUOTE&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;If updating &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/main/morpheus-home-dashboard-plugin"&gt;morpheus-dashboards repo code&lt;/A&gt; is the only way, then how do call our rest api services which are defined in other jar file ? And to which repo we need to push the code ?&lt;/LI&gt;
&lt;/OL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Your widget will presumably make the call to the REST API endpoint? You will keep your changes in your repo. You mention that is a JAR file, so if that is a custom controller, you will likely need to develop a cookie based authentication since that is UI.&lt;/P&gt;
&lt;ASIDE class="quote no-group" data-username="ramkee" data-post="6" data-topic="2281"&gt;
ramkee:
&lt;BLOCKQUOTE&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;While adding widgets, we are required to change/add css, how do we add our custom css ?&lt;/LI&gt;
&lt;/OL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;They can be loaded as scripts but I typically add inline in the html view. Use &lt;CODE style="background : #f0f1f2;"&gt;!Important&lt;/CODE&gt; to prevent override.&lt;/P&gt;
&lt;ASIDE class="quote no-group" data-username="ramkee" data-post="6" data-topic="2281"&gt;
ramkee:
&lt;BLOCKQUOTE&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Is there any storybook/framework link for UI components reference ?&lt;/LI&gt;
&lt;/OL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;None that I’m aware of.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 09:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250836#M4010</guid>
      <dc:creator>Ollie-Phillips</dc:creator>
      <dc:date>2025-02-20T09:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add more widgets to the Morpheus Dashboard</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250837#M4011</link>
      <description>&lt;P&gt;Great, Thank you very much &lt;A class="mention" href="https://community.hpe.com/u/ollie_phillips"&gt;@Ollie_Phillips&lt;/A&gt; for your time and answering all my queries. It helps!&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Ramkee Mukuru&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 05:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250837#M4011</guid>
      <dc:creator />
      <dc:date>2025-02-21T05:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add more widgets to the Morpheus Dashboard</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250838#M4012</link>
      <description>&lt;P&gt;Thank you &lt;A class="mention" href="https://community.hpe.com/u/ollie_phillips"&gt;@Ollie_Phillips&lt;/A&gt; for the confirmation!&lt;/P&gt;
&lt;P&gt;Sorry for asking few more queries for better understanding!&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Can i assume that, the second approach which i tried will not work ?&lt;/LI&gt;
&lt;/UL&gt;
&lt;ASIDE class="quote no-group" data-username="ramkee" data-post="3" data-topic="2281"&gt;
ramkee:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Approach 2 for actual functionality implementation:&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;UL&gt;
&lt;LI&gt;To which repo we should push the modified dashboard code ?&lt;/LI&gt;
&lt;LI&gt;Our application code (custom REST endpoints) in &lt;CODE style="background : #f0f1f2;"&gt;xyz plugin jar&lt;/CODE&gt; file, and this &lt;CODE style="background : #f0f1f2;"&gt;modified dashboard code&lt;/CODE&gt; in other jar file. If i want to fire an API call from dashboard jar to xyz plugin jar, will that be possible ?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 18 Feb 2025 05:12:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250838#M4012</guid>
      <dc:creator />
      <dc:date>2025-02-18T05:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add more widgets to the Morpheus Dashboard</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250839#M4013</link>
      <description>&lt;P&gt;This is the code for the dashboard used in latest versions of Morpheus&lt;/P&gt;
&lt;ASIDE class="onebox githubfolder" data-onebox-src="https://github.com/gomorpheus/morpheus-dashboards/tree/rc-1.1.2"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32" /&gt;

      &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/rc-1.1.2" target="_blank" rel="noopener"&gt;github.com&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;H3&gt;&lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/rc-1.1.2" target="_blank" rel="noopener"&gt;GitHub - gomorpheus/morpheus-dashboards at rc-1.1.2&lt;/A&gt;&lt;/H3&gt;

  &lt;P&gt;&lt;A href="https://github.com/gomorpheus/morpheus-dashboards/tree/rc-1.1.2" target="_blank" rel="noopener"&gt;rc-1.1.2&lt;/A&gt;&lt;/P&gt;

  &lt;P&gt;&lt;SPAN class="label1"&gt;Dashboard Plugins for the MorpheusData platform. Contribute to gomorpheus/morpheus-dashboards development by creating an account on GitHub.&lt;/SPAN&gt;&lt;/P&gt;

  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;

&lt;P&gt;It looks like adding widgets to the existing dashboard while retaining all the existing widgets would is possible, either by adding to an existing section or creating a new section. Just modify this code and rebuild.&lt;/P&gt;
&lt;P&gt;Broadly, the changes needed are these:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create your new provider/s, template and script for JS, following an existing widget provider example&lt;/LI&gt;
&lt;LI&gt;Register the new provider in the &lt;CODE style="background : #f0f1f2;"&gt;MorpheusHomeDashboardPlugin.groovy&lt;/CODE&gt; file, following the approach used to register other providers.&lt;/LI&gt;
&lt;LI&gt;To add as a new section, create a new key in the &lt;CODE style="background : #f0f1f2;"&gt;dashboardItemGroups&lt;/CODE&gt; dict/map of the &lt;CODE style="background : #f0f1f2;"&gt;HomeDashboardProvider.groovy&lt;/CODE&gt; provider. This represents the section. Let’s call it “custom”.&lt;/LI&gt;
&lt;LI&gt;Add the code/s of your new provider/s as as a array on that key&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;def dashboardItemGroups = [
    ... removed for brevity
    custom: [
         'my-new-widget-providers-code',
         'another-of-my-widget-providers-code'
    ]
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Have you tried this approach?&lt;/P&gt;
&lt;P&gt;Should you wish to revert your changes you can reload the unmodified plugin, which you can find on the &lt;A href="http://share.morpheusdata.com"&gt;share.morpheusdata.com&lt;/A&gt; website here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://share.morpheusdata.com/plugin/morpheus-home-dashboard-plugin/history" class="onebox" target="_blank" rel="noopener"&gt;https://share.morpheusdata.com/plugin/morpheus-home-dashboard-plugin/history&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 10:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250839#M4013</guid>
      <dc:creator>Ollie-Phillips</dc:creator>
      <dc:date>2025-02-17T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add more widgets to the Morpheus Dashboard</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250840#M4014</link>
      <description>&lt;P&gt;HI &lt;A class="mention" href="https://community.hpe.com/u/ollie_phillips"&gt;@Ollie_Phillips&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for taking your time and explaining in detail.&lt;BR /&gt;
I have tried in 2 ways.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Approach 1 for POC:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I have take a clone of &lt;A href="https://github.com/gomorpheus/morpheus-dashboards" rel="noopener nofollow ugc"&gt;morpheus-dashboards&lt;/A&gt; repo.&lt;/LI&gt;
&lt;LI&gt;Tried to add some content to &lt;CODE style="background : #f0f1f2;"&gt;Environment&lt;/CODE&gt; widget and updated the labels&lt;/LI&gt;
&lt;LI&gt;I have removed the existing default dashboard plugin and uploaded custom dashboard plugin&lt;/LI&gt;
&lt;LI&gt;It worked and result is as shown below&lt;BR /&gt;
&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149728iC5D014529F8E8D99/image-size/large?v=v2&amp;amp;px=2000" role="button" title="a96e24df8ec2877fe7805bc45927dc3e27c951b2.png" alt="a96e24df8ec2877fe7805bc45927dc3e27c951b2.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Approach 2 for actual functionality implementation:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;We are under impression that, we should not disturb the existing Morpheus Dashboard as it is generic.&lt;/LI&gt;
&lt;LI&gt;We have our own repo, in which we created a dashboard provider  by taking the reference of &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/blob/main/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/dashboard/HomeDashboardProvider.groovy" rel="noopener nofollow ugc"&gt;HomeDashboardProvider.groovy&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Then we created DashbaordItemProvider file as well just like existing &lt;A href="https://github.com/gomorpheus/morpheus-dashboards/blob/main/morpheus-home-dashboard-plugin/src/main/groovy/com/morpheusdata/dashboard/EnvironmentCountItemProvider.groovy" rel="noopener nofollow ugc"&gt;DashbaordItemProvider&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Created script js and hbs files as well.&lt;/LI&gt;
&lt;LI&gt;In DashboardProvider added the group and item&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; dashboardItemGroups = new HashMap&amp;lt;&amp;gt;();
dashboardItemGroups.put("top", List.of("dashboard-item-environment-count"));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Then we have registered DashboardProvider and DashbaordItemProvider in side our main PluginProvider.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;this.registerProvider(new EnvironmentCountItemProvider(this, morpheus));
this.registerProvider(new DashboardProvider(this, morpheus));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt; Unable to see the sample widget in the Dashboard.&lt;/LI&gt;
&lt;LI&gt;Just to make sure that there are no widget code conflicts, so tried removing the existing dashboard jar file and tested but no luck.&lt;/LI&gt;
&lt;LI&gt;If i use same widget code as &lt;CODE style="background : #f0f1f2;"&gt;Environment&lt;/CODE&gt; &amp;amp;&amp;amp; category as &lt;CODE style="background : #f0f1f2;"&gt;environment&lt;/CODE&gt; in my code, that specific &lt;CODE style="background : #f0f1f2;"&gt;Environment&lt;/CODE&gt; widget is disappeared.&lt;/LI&gt;
&lt;/UL&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;dashboard-item-environment-count&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Queries:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are we allowed to update the existing dashboard code ? if so what if other teams also wants to add their own widgets, How do we co-ordinate ?&lt;/LI&gt;
&lt;LI&gt;Are there any fixed &lt;CODE style="background : #f0f1f2;"&gt;category&lt;/CODE&gt; enums ? or we can create any custom names&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;	    rtn.setCategory("environment");
		rtn.setTitle("environment count");
		rtn.setDescription("environment count");
		rtn.setUiSize("xl widget-short");
		rtn.setTemplatePath("hbs/environment-count-widget");
		rtn.setScriptPath("environment-count-widget.js");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;What should be the code to give permissions here. For example, my main plugin provider code is xyz should we provide that or anything am missing here&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt; rtn.setPermission(getMorpheus().getPermission().getByCode("admin-health").blockingGet());&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Let me know if you need further information.&lt;/P&gt;
&lt;P&gt;CC: &lt;A class="mention" href="https://community.hpe.com/u/david"&gt;@david&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Thank you&lt;/EM&gt;&lt;BR /&gt;
Ramkee Mukuru&lt;BR /&gt;
*Feel free to reach me on HPE slack/teams!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 11:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/add-more-widgets-to-the-morpheus-dashboard/m-p/7250840#M4014</guid>
      <dc:creator />
      <dc:date>2025-02-17T11:47:00Z</dc:date>
    </item>
  </channel>
</rss>

