My dashboard

My Dashboard

And now for some code

My dashboard default ships with the product, so all you need to do is edit it. You can find the shipped version in …

Hubstream.Intelligence.Server.Frontend/Data/Home/userdashboardlayout.json

JSON
{
  "PageName": "My Investigations",
  "Tiles": [
    {
      "SubHeaderLabel": "Dashboard",
      "SubHeader": "null",
      "Header": "null",
      "HeaderLabel": "My Investigations",
      "ContainerWidth": "full",
      "ContainerOverFlow": "true",
      "TileType": "LabelCard",
      "PositionSize": [ 0, 0, 20, 2 ],
      "IsFixed": true,
      "IsResizable": false
    },
    {
      "MenuItems": [
        {
          "Icon": "th",
          "Name": "User",
          "Caption": "User Dashboard",
          "Parent": true
        },
        {
          "Icon": "th",
          "Name": "Team",
          "Caption": "Team Dashboard"
        }
      ],
      "TileType": "SideMenu",
      "IsFixed": true,
      "IsResizable": false
    },
    {
      "TileType": "LayoutContainer",
      "ContainerBorder": "3px 0 0 0",
      "ContainerWidth": "half",
      "IsFixed": true,
      "PositionSize": [ 0, 2, 5, 7 ],
      "Tiles": [
        {
          "Caption": "Days Active",
          "TileType": "SmallLabel",
          "PositionSize": [ 0, 0, 20, 1 ],
          "IsFixed": true,
          "IsResizable": false,
          "Filters": [ "TimePeriodName" ]
        },
        {
          "TileType": "Chart",
          "ChartType": "DonutChart",
          "PositionSize": [ 0, 1, 20, -1 ],
          "IsFixed": true,
          "DataAPI": "tbl/investigation/dashboard/User/summary/TimePeriodName",
          "FieldName": "TimePeriodName",
          "EntityName": "Investigation",
          "FieldExpression": "DateTimeReceived.DateRange",
          "Expression": "UserDashboard-DaysActive",
          "ColorField": "TimePeriodColor",
          "SelfFilterExclusion": true
        }
      ]
    },
    {
      "TileType": "LayoutContainer",
      "IsFixed": true,
      "ContainerWidth": "half",
      "PositionSize": [ 0, 9, 5, 7 ],
      "Tiles": [
        {
          "Caption": "Active By Source Organization",
          "TileType": "SmallLabel",
          "PositionSize": [ 0, 0, 20, 1 ],
          "IsFixed": true,
          "IsResizable": false,
          "Filters": [ "ContactOrganization" ]
        },
        {
          "TileType": "Chart",
          "ChartType": "BubbleChart",
          "PositionSize": [ 0, 1, 20, -1 ],
          "IsFixed": true,
          "DataAPI": "tbl/investigation/dashboard/User/summary/ContactOrganization",
          "FieldName": "ContactOrganization",
          "Expression": "UserDashboard-ContactOrganization",
          "EntityName": "Investigation",
          "FieldExpression": "ContactOrganization",
          "SelfFilterExclusion": true,
          "DefaultNullCaption": "Not Specified"
        }
      ]
    },
    {
      "TileType": "LayoutContainer",
      "ContainerBorder": "3px 3px 3px 3px",
      "ContainerWidth": "full",
      "ContainerOverFlow": "true",
      "IsFixed": true,
      "PositionSize": [ 5, 2, 10, -1 ],
      "Tiles": [
        {
          "Caption": "My Investigations",
          "TileType": "SmallLabel",
          "PositionSize": [ 0, 0, 20, 1 ],
          "IsFixed": true,
          "IsResizable": false,
          "Filters": [ "ActiveStatus", "TimePeriodName" ]
        },
        {
          "Caption": "active",
          "TileType": "NumberLabel",
          "PositionSize": [ 0, 1, 2, 1 ],
          "DataAPI": "tbl/investigation/dashboard/User/count",
          "FieldName": "ActiveStatus",
          "Expression": "UserDashboard-ActiveInvestigation-Count",
          "Filters": [
            {
              "FieldName": "ActiveStatus",
              "FieldValue": "0"
            }
          ],
          "EntityName": "Investigation",
          "FieldExpression": "Status.Group",
          "ActiveValue": "0",
          "IsFixed": true,
          "IsResizable": false
        },
        {
          "Caption": "new today",
          "TileType": "NumberLabel",
          "PositionSize": [ 2, 1, 3, 1 ],
          "DataAPI": "tbl/investigation/dashboard/User/count",
          "FieldName": "TimePeriodName",
          "Expression": "UserDashboard-ActiveInvestigation-NewToday",
          "Filters": [
            {
              "FieldName": "TimePeriodName",
              "FieldValue": "Today"
            }
          ],
          "ActiveValue": "Today",
          "EntityName": "Investigation",
          "FieldExpression": "DateTimeReceived.DateRange",
          "IsFixed": true,
          "IsResizable": false
        },
        {
          "Caption": "new this week",
          "TileType": "NumberLabel",
          "PositionSize": [ 5, 1, 3, 1 ],
          "DataAPI": "tbl/investigation/dashboard/User/count",
          "FieldName": "TimePeriodName",
          "Expression": "UserDashboard-ActiveInvestigation-ThisWeek",
          "Filters": [
            {
              "FieldName": "TimePeriodName",
              "FieldValue": "This week"
            }
          ],
          "ActiveValue": "This week",
          "EntityName": "Investigation",
          "FieldExpression": "DateTimeReceived.DateRange",
          "IsFixed": true,
          "IsResizable": false
        },
        {
          "Header": "Action",
          "TileType": "OptionsMenu",
          "PositionSize": [ 15, 1, 5, 2 ],
          "IsFixed": true,
          "ActionMenus": [
            {
              "Tooltip": "View All Investigations",
              "Icon": "list",
              "Action": "openlistpage",
              "source": "Investigation"
            },
            {
              "Tooltip": "Add new Investigation",
              "Icon": "plus",
              "Action": "addnewInvestigation",
              "AccessInfo": "EntityAccessInfo",
              "AccessInfoAction": "Add"
            }
          ]
        },
        {
          "TileType": "MiniTable",
          "PositionSize": [ 0, 3, 20, 20 ],
          "IsFixed": true,
          "DynamicHeightOffset": 302,
          "EntityName": "Investigation",
          "DataAPI": "api/v2/tbl/investigation/dashboard/User/list",
          "RowCountAPI": "tbl/investigation/dashboard/User/count",
          "Expression": "UserDashboard-MyInvestigation",
          "RowCountExpression": "UserDashboard-MyInvestigation-Count",
          "OutputColumns": [
            {
              "FieldName": "InvestigationID",
              "TargetFieldName": "ID"
            },
            {
              "FieldName": "Name"
            },
            {
              "FieldName": "PriorityIcon",
              "TargetFieldName": "SubIcon"
            },
            {
              "FieldName": "PriorityColor",
              "TargetFieldName": "SubIconColor"
            },
            {
              "FieldName": "Status"
            },
            {
              "FieldName": "TimePeriodName"
            },
            {
              "FieldName": "TimePeriodColor",
              "TargetFieldName": "ItemColor"
            },
            {
              "FieldName": "DateUpdated",
              "FormatType": "DeltaDate",
              "TargetFieldName": "DateUpdatedText"
            }
          ]
        }
      ]
    },
    {
      "TileType": "LayoutContainer",
      "ContainerBorder": "3px 0 3px 0",
      "ContainerWidth": "full",
      "ContainerOverFlow": "true",
      "IsFixed": true,
      "PositionSize": [ 15, 2, 5, -1 ],
      "Tiles": [
        {
          "Caption": "Alerts",
          "TileType": "SmallLabel",
          "PositionSize": [ 0, 0, 20, 1 ],
          "IsFixed": true,
          "IsResizable": false,
          "FilterGroup": "Notification",
          "Filters": [ "Unread" ]
        },
        {
          "Caption": "unread",
          "TileType": "NumberLabel",
          "PositionSize": [ 0, 1, 4, 1 ],
          "DataAPI": "app/notifications/count",
          "FilterGroup": "Notification",
          "FieldName": "Unread",
          "Filters": [
            {
              "FieldName": "Unread",
              "FieldValue": "1"
            }
          ],
          "ActiveValue": "1",
          "ExcludeOtherFilters": true,
          "IsFixed": true,
          "IsResizable": false
        },
        {
          "Header": "Action",
          "TileType": "OptionsMenu",
          "PositionSize": [ 10, 1, 10, 2 ],
          "IsFixed": true,
          "ActionMenus": []
        },
        {
          "TileType": "Timeline",
          "TimelineBorder": "1px 0 0 0",
          "PositionSize": [ 0, 3, 20, 20, 2 ],
          "RowCountAPI": "app/notifications/count",
          "IsFixed": true,
          "DynamicHeightOffset": 305,
          "IsResizable": false,
          "FilterGroup": "Notification"
        }
      ]
    }
  ]
}