Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 6cc186d

Browse files
authored
feat: LSDV-5069: Create new defaults for panels and tabs (#1362)
feat: lsdv-5069: create new defaults for pannels and tabs
1 parent 8368773 commit 6cc186d

File tree

1 file changed

+14
-14
lines changed
  • src/components/SidePanels/TabPanels

1 file changed

+14
-14
lines changed

src/components/SidePanels/TabPanels/utils.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const panelViews = [
121121
name: 'history',
122122
title: 'History',
123123
component: panelComponents['history'] as FC<PanelProps>,
124-
active: true,
124+
active: false,
125125
},
126126

127127
{
@@ -134,7 +134,7 @@ const panelViews = [
134134
name: 'info',
135135
title: 'Info',
136136
component: panelComponents['info'] as FC<PanelProps>,
137-
active: false,
137+
active: true,
138138
},
139139
{
140140
name: 'comments',
@@ -145,7 +145,7 @@ const panelViews = [
145145
];
146146

147147
export const enterprisePanelDefault: Record<string, PanelBBox> = {
148-
'regions-info': {
148+
'info-comments-history': {
149149
order: 1,
150150
top: 0,
151151
left: 0,
@@ -156,12 +156,12 @@ export const enterprisePanelDefault: Record<string, PanelBBox> = {
156156
height: DEFAULT_PANEL_HEIGHT,
157157
visible: true,
158158
detached: false,
159-
alignment: Side.left,
159+
alignment: Side.right,
160160
maxHeight: DEFAULT_PANEL_MAX_HEIGHT,
161-
panelViews: [panelViews[0], panelViews[4]],
161+
panelViews: [panelViews[3], panelViews[4], panelViews[1]],
162162
},
163-
'history-comments-relations': {
164-
order: 1,
163+
'regions-relations': {
164+
order: 2,
165165
top: 0,
166166
left: 0,
167167
relativeLeft: 0,
@@ -173,12 +173,12 @@ export const enterprisePanelDefault: Record<string, PanelBBox> = {
173173
detached: false,
174174
alignment: Side.right,
175175
maxHeight: DEFAULT_PANEL_MAX_HEIGHT,
176-
panelViews: [panelViews[1], panelViews[2], panelViews[3]],
176+
panelViews: [panelViews[0], panelViews[2]],
177177
},
178178
};
179179

180180
export const openSourcePanelDefault: Record<string, PanelBBox> = {
181-
'regions-info': {
181+
'info-history': {
182182
order: 1,
183183
top: 0,
184184
left: 0,
@@ -189,12 +189,12 @@ export const openSourcePanelDefault: Record<string, PanelBBox> = {
189189
height: DEFAULT_PANEL_HEIGHT,
190190
visible: true,
191191
detached: false,
192-
alignment: Side.left,
192+
alignment: Side.right,
193193
maxHeight: DEFAULT_PANEL_MAX_HEIGHT,
194-
panelViews: [panelViews[0]],
194+
panelViews: [panelViews[3], panelViews[1]],
195195
},
196-
'history-comments-relations': {
197-
order: 1,
196+
'regions-relations': {
197+
order: 2,
198198
top: 0,
199199
left: 0,
200200
relativeLeft: 0,
@@ -206,7 +206,7 @@ export const openSourcePanelDefault: Record<string, PanelBBox> = {
206206
detached: false,
207207
alignment: Side.right,
208208
maxHeight: DEFAULT_PANEL_MAX_HEIGHT,
209-
panelViews: [panelViews[1], panelViews[2], panelViews[3]],
209+
panelViews: [panelViews[0], panelViews[2]],
210210
},
211211
};
212212

0 commit comments

Comments
 (0)