Skip to content

Commit

Permalink
NAS-130993: Make use of a 1/4 size widget in defaults, if possible. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKarpov98 authored Sep 23, 2024
1 parent d2f61c1 commit b23474a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ describe('getDefaultWidgets', () => {

expect(result).toHaveLength(8);
expect(result[0].slots[0].type).toBe(WidgetType.SystemInfoActive);
expect(result[1].slots[0].type).toBe(WidgetType.CpuModelWidget);
expect(result[1].slots[0].type).toBe(WidgetType.CpuUsageBar);
});
});
7 changes: 4 additions & 3 deletions src/app/pages/dashboard/services/get-default-widgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ const defaultWidgets: WidgetGroup[] = [
{
layout: WidgetGroupLayout.Halves,
slots: [
{ type: WidgetType.CpuModelWidget },
{ type: WidgetType.CpuUsageBar },
{ type: WidgetType.CpuTemperatureBar },
],
},
{
layout: WidgetGroupLayout.Halves,
layout: WidgetGroupLayout.QuartersAndHalf,
slots: [
{ type: WidgetType.CpuUsageGauge },
{ type: WidgetType.CpuModelWidget },
{ type: WidgetType.CpuUsageRecent },
{ type: WidgetType.CpuTemperatureBar },
],
},
{
Expand Down

0 comments on commit b23474a

Please sign in to comment.