Skip to content

Commit 4f57b17

Browse files
author
solovevayaroslavna
committed
Merge branch 'main' into PMM-11773-Templates-select-issues
# Conflicts: # public/app/percona/dbaas/components/DBCluster/EditDBClusterPage/DBClusterAdvancedOptions/Templates/Templates.tsx
2 parents 6b84dd8 + 440781e commit 4f57b17

File tree

402 files changed

+9144
-9786
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

402 files changed

+9144
-9786
lines changed

.editorconfig

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010
max_line_length = 120
11+
ij_continuation_indent_size = 8
12+
ij_formatter_off_tag = @formatter:off
13+
ij_formatter_on_tag = @formatter:on
14+
ij_formatter_tags_enabled = false
15+
ij_smart_tabs = false
16+
ij_visual_guides = none
17+
ij_wrap_on_typing = false
1118

1219
[*.go]
1320
indent_style = tab
@@ -28,3 +35,174 @@ indent_size = 2
2835

2936
[*.star]
3037
indent_size = 4
38+
39+
[{*.ats,*.cts,*.mts,*.ts,*.tsx}]
40+
ij_continuation_indent_size = 2
41+
ij_typescript_align_imports = false
42+
ij_typescript_align_multiline_array_initializer_expression = false
43+
ij_typescript_align_multiline_binary_operation = false
44+
ij_typescript_align_multiline_chained_methods = false
45+
ij_typescript_align_multiline_extends_list = false
46+
ij_typescript_align_multiline_for = true
47+
ij_typescript_align_multiline_parameters = true
48+
ij_typescript_align_multiline_parameters_in_calls = false
49+
ij_typescript_align_multiline_ternary_operation = false
50+
ij_typescript_align_object_properties = 0
51+
ij_typescript_align_union_types = false
52+
ij_typescript_align_var_statements = 0
53+
ij_typescript_array_initializer_new_line_after_left_brace = false
54+
ij_typescript_array_initializer_right_brace_on_new_line = false
55+
ij_typescript_array_initializer_wrap = off
56+
ij_typescript_assignment_wrap = off
57+
ij_typescript_binary_operation_sign_on_next_line = false
58+
ij_typescript_binary_operation_wrap = off
59+
ij_typescript_blacklist_imports = rxjs/Rx,node_modules/**,**/node_modules/**,@angular/material,@angular/material/typings/**
60+
ij_typescript_blank_lines_after_imports = 0
61+
ij_typescript_blank_lines_around_class = 1
62+
ij_typescript_blank_lines_around_field = 0
63+
ij_typescript_blank_lines_around_field_in_interface = 0
64+
ij_typescript_blank_lines_around_function = 1
65+
ij_typescript_blank_lines_around_method = 1
66+
ij_typescript_blank_lines_around_method_in_interface = 1
67+
ij_typescript_block_brace_style = end_of_line
68+
ij_typescript_block_comment_add_space = false
69+
ij_typescript_block_comment_at_first_column = true
70+
ij_typescript_call_parameters_new_line_after_left_paren = false
71+
ij_typescript_call_parameters_right_paren_on_new_line = false
72+
ij_typescript_call_parameters_wrap = off
73+
ij_typescript_catch_on_new_line = false
74+
ij_typescript_chained_call_dot_on_new_line = true
75+
ij_typescript_class_brace_style = end_of_line
76+
ij_typescript_comma_on_new_line = false
77+
ij_typescript_do_while_brace_force = never
78+
ij_typescript_else_on_new_line = false
79+
ij_typescript_enforce_trailing_comma = keep
80+
ij_typescript_enum_constants_wrap = on_every_item
81+
ij_typescript_extends_keyword_wrap = off
82+
ij_typescript_extends_list_wrap = off
83+
ij_typescript_field_prefix = _
84+
ij_typescript_file_name_style = relaxed
85+
ij_typescript_finally_on_new_line = false
86+
ij_typescript_for_brace_force = never
87+
ij_typescript_for_statement_new_line_after_left_paren = false
88+
ij_typescript_for_statement_right_paren_on_new_line = false
89+
ij_typescript_for_statement_wrap = off
90+
ij_typescript_force_quote_style = false
91+
ij_typescript_force_semicolon_style = true
92+
ij_typescript_function_expression_brace_style = end_of_line
93+
ij_typescript_if_brace_force = never
94+
ij_typescript_import_merge_members = global
95+
ij_typescript_import_prefer_absolute_path = true
96+
ij_typescript_import_sort_members = true
97+
ij_typescript_import_sort_module_name = false
98+
ij_typescript_import_use_node_resolution = true
99+
ij_typescript_imports_wrap = on_every_item
100+
ij_typescript_indent_case_from_switch = true
101+
ij_typescript_indent_chained_calls = true
102+
ij_typescript_indent_package_children = 0
103+
ij_typescript_jsdoc_include_types = false
104+
ij_typescript_jsx_attribute_value = braces
105+
ij_typescript_keep_blank_lines_in_code = 2
106+
ij_typescript_keep_first_column_comment = true
107+
ij_typescript_keep_indents_on_empty_lines = false
108+
ij_typescript_keep_line_breaks = true
109+
ij_typescript_keep_simple_blocks_in_one_line = false
110+
ij_typescript_keep_simple_methods_in_one_line = false
111+
ij_typescript_line_comment_add_space = true
112+
ij_typescript_line_comment_at_first_column = false
113+
ij_typescript_method_brace_style = end_of_line
114+
ij_typescript_method_call_chain_wrap = off
115+
ij_typescript_method_parameters_new_line_after_left_paren = false
116+
ij_typescript_method_parameters_right_paren_on_new_line = false
117+
ij_typescript_method_parameters_wrap = off
118+
ij_typescript_object_literal_wrap = on_every_item
119+
ij_typescript_parentheses_expression_new_line_after_left_paren = false
120+
ij_typescript_parentheses_expression_right_paren_on_new_line = false
121+
ij_typescript_place_assignment_sign_on_next_line = false
122+
ij_typescript_prefer_as_type_cast = false
123+
ij_typescript_prefer_explicit_types_function_expression_returns = false
124+
ij_typescript_prefer_explicit_types_function_returns = false
125+
ij_typescript_prefer_explicit_types_vars_fields = false
126+
ij_typescript_prefer_parameters_wrap = false
127+
ij_typescript_reformat_c_style_comments = false
128+
ij_typescript_space_after_colon = true
129+
ij_typescript_space_after_comma = true
130+
ij_typescript_space_after_dots_in_rest_parameter = false
131+
ij_typescript_space_after_generator_mult = true
132+
ij_typescript_space_after_property_colon = true
133+
ij_typescript_space_after_quest = true
134+
ij_typescript_space_after_type_colon = true
135+
ij_typescript_space_after_unary_not = false
136+
ij_typescript_space_before_async_arrow_lparen = true
137+
ij_typescript_space_before_catch_keyword = true
138+
ij_typescript_space_before_catch_left_brace = true
139+
ij_typescript_space_before_catch_parentheses = true
140+
ij_typescript_space_before_class_lbrace = true
141+
ij_typescript_space_before_class_left_brace = true
142+
ij_typescript_space_before_colon = true
143+
ij_typescript_space_before_comma = false
144+
ij_typescript_space_before_do_left_brace = true
145+
ij_typescript_space_before_else_keyword = true
146+
ij_typescript_space_before_else_left_brace = true
147+
ij_typescript_space_before_finally_keyword = true
148+
ij_typescript_space_before_finally_left_brace = true
149+
ij_typescript_space_before_for_left_brace = true
150+
ij_typescript_space_before_for_parentheses = true
151+
ij_typescript_space_before_for_semicolon = false
152+
ij_typescript_space_before_function_left_parenth = true
153+
ij_typescript_space_before_generator_mult = false
154+
ij_typescript_space_before_if_left_brace = true
155+
ij_typescript_space_before_if_parentheses = true
156+
ij_typescript_space_before_method_call_parentheses = false
157+
ij_typescript_space_before_method_left_brace = true
158+
ij_typescript_space_before_method_parentheses = false
159+
ij_typescript_space_before_property_colon = false
160+
ij_typescript_space_before_quest = true
161+
ij_typescript_space_before_switch_left_brace = true
162+
ij_typescript_space_before_switch_parentheses = true
163+
ij_typescript_space_before_try_left_brace = true
164+
ij_typescript_space_before_type_colon = false
165+
ij_typescript_space_before_unary_not = false
166+
ij_typescript_space_before_while_keyword = true
167+
ij_typescript_space_before_while_left_brace = true
168+
ij_typescript_space_before_while_parentheses = true
169+
ij_typescript_spaces_around_additive_operators = true
170+
ij_typescript_spaces_around_arrow_function_operator = true
171+
ij_typescript_spaces_around_assignment_operators = true
172+
ij_typescript_spaces_around_bitwise_operators = true
173+
ij_typescript_spaces_around_equality_operators = true
174+
ij_typescript_spaces_around_logical_operators = true
175+
ij_typescript_spaces_around_multiplicative_operators = true
176+
ij_typescript_spaces_around_relational_operators = true
177+
ij_typescript_spaces_around_shift_operators = true
178+
ij_typescript_spaces_around_unary_operator = false
179+
ij_typescript_spaces_within_array_initializer_brackets = false
180+
ij_typescript_spaces_within_brackets = false
181+
ij_typescript_spaces_within_catch_parentheses = false
182+
ij_typescript_spaces_within_for_parentheses = false
183+
ij_typescript_spaces_within_if_parentheses = false
184+
ij_typescript_spaces_within_imports = true
185+
ij_typescript_spaces_within_interpolation_expressions = false
186+
ij_typescript_spaces_within_method_call_parentheses = false
187+
ij_typescript_spaces_within_method_parentheses = false
188+
ij_typescript_spaces_within_object_literal_braces = true
189+
ij_typescript_spaces_within_object_type_braces = true
190+
ij_typescript_spaces_within_parentheses = false
191+
ij_typescript_spaces_within_switch_parentheses = false
192+
ij_typescript_spaces_within_type_assertion = false
193+
ij_typescript_spaces_within_union_types = true
194+
ij_typescript_spaces_within_while_parentheses = false
195+
ij_typescript_special_else_if_treatment = true
196+
ij_typescript_ternary_operation_signs_on_next_line = false
197+
ij_typescript_ternary_operation_wrap = off
198+
ij_typescript_union_types_wrap = on_every_item
199+
ij_typescript_use_chained_calls_group_indents = false
200+
ij_typescript_use_double_quotes = true
201+
ij_typescript_use_explicit_js_extension = auto
202+
ij_typescript_use_path_mapping = always
203+
ij_typescript_use_public_modifier = false
204+
ij_typescript_use_semicolon_after_statement = true
205+
ij_typescript_var_declaration_wrap = normal
206+
ij_typescript_while_brace_force = never
207+
ij_typescript_while_on_new_line = false
208+
ij_typescript_wrap_comments = false

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"import/external-module-folders": ["node_modules", ".yarn"]
88
},
99
"rules": {
10+
"@typescript-eslint/no-unnecessary-type-assertion": "off",
1011
"react/prop-types": "off",
1112
"@emotion/jsx-import": "error",
1213
"lodash/import-scope": [2, "member"],

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@
279279
"@opentelemetry/api": "1.2.0",
280280
"@opentelemetry/exporter-collector": "0.25.0",
281281
"@opentelemetry/semantic-conventions": "1.7.0",
282-
"@percona/platform-core": "^1.0.12",
283282
"@popperjs/core": "2.11.5",
284283
"@prometheus-io/lezer-promql": "^0.37.0-rc.1",
285284
"@react-aria/button": "3.6.1",

packages/grafana-data/src/types/icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export const availableIconsIndex = {
153153
search: true,
154154
'search-minus': true,
155155
'search-plus': true,
156+
'server-network': true,
156157
'share-alt': true,
157158
shield: true,
158159
'shield-exclamation': true,
@@ -196,7 +197,6 @@ export const availableIconsIndex = {
196197
'percona-database-checks': true,
197198
'percona-database': true,
198199
'percona-disk': true,
199-
'percona-inventory': true,
200200
'percona-kubernetes': true,
201201
'percona-memory': true,
202202
'percona-network': true,

packages/grafana-ui/src/components/Icon/cached.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@
171171
"mono/percona-database-checks",
172172
"mono/percona-database",
173173
"mono/percona-disk",
174-
"mono/percona-inventory",
175174
"mono/percona-kubernetes",
176175
"mono/percona-memory",
177176
"mono/percona-network",

packages/grafana-ui/src/components/Icon/iconBundle.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ import u1168 from '../../../../../public/img/icons/mono/percona-dashboard.svg';
179179
import u1169 from '../../../../../public/img/icons/mono/percona-database-checks.svg';
180180
import u1170 from '../../../../../public/img/icons/mono/percona-database.svg';
181181
import u1171 from '../../../../../public/img/icons/mono/percona-disk.svg';
182-
import u1172 from '../../../../../public/img/icons/mono/percona-inventory.svg';
183182
import u1173 from '../../../../../public/img/icons/mono/percona-kubernetes.svg';
184183
import u1174 from '../../../../../public/img/icons/mono/percona-memory.svg';
185184
import u1175 from '../../../../../public/img/icons/mono/percona-network.svg';
@@ -402,7 +401,6 @@ export function initIconCache() {
402401
cacheItem(u1169, 'mono/percona-database-checks.svg');
403402
cacheItem(u1170, 'mono/percona-database.svg');
404403
cacheItem(u1171, 'mono/percona-disk.svg');
405-
cacheItem(u1172, 'mono/percona-inventory.svg');
406404
cacheItem(u1173, 'mono/percona-kubernetes.svg');
407405
cacheItem(u1174, 'mono/percona-memory.svg');
408406
cacheItem(u1175, 'mono/percona-network.svg');

packages/grafana-ui/src/components/Icon/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const alwaysMonoIcons: IconName[] = [
1515
'percona-dashboard',
1616
'percona-kubernetes',
1717
'percona-summary',
18-
'percona-inventory',
1918
'percona-add',
2019
'percona-alert',
2120
'percona-disk',

packages/grafana-ui/src/components/Tags/TagList.tsx

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,39 @@ export interface Props {
2121
getAriaLabel?: (name: string, i: number) => string;
2222
/** Icon to show next to tag label */
2323
icon?: IconName;
24+
/** @Percona */
25+
/** Set same color for all tags */
26+
colorIndex?: number;
2427
}
2528

2629
export const TagList = memo(
27-
forwardRef<HTMLUListElement, Props>(({ displayMax, tags, icon, onClick, className, getAriaLabel }, ref) => {
28-
const theme = useTheme2();
29-
const styles = getStyles(theme, Boolean(displayMax && displayMax > 0));
30-
const numTags = tags.length;
31-
const tagsToDisplay = displayMax ? tags.slice(0, displayMax) : tags;
32-
return (
33-
<ul className={cx(styles.wrapper, className)} aria-label="Tags" ref={ref}>
34-
{tagsToDisplay.map((tag, i) => (
35-
<li className={styles.li} key={tag}>
36-
<Tag name={tag} icon={icon} onClick={onClick} aria-label={getAriaLabel?.(tag, i)} data-tag-id={i} />
37-
</li>
38-
))}
39-
{displayMax && displayMax > 0 && numTags - displayMax > 0 && (
40-
<span className={styles.moreTagsLabel}>+ {numTags - displayMax}</span>
41-
)}
42-
</ul>
43-
);
44-
})
30+
forwardRef<HTMLUListElement, Props>(
31+
({ displayMax, tags, icon, onClick, className, getAriaLabel, colorIndex }, ref) => {
32+
const theme = useTheme2();
33+
const styles = getStyles(theme, Boolean(displayMax && displayMax > 0));
34+
const numTags = tags.length;
35+
const tagsToDisplay = displayMax ? tags.slice(0, displayMax) : tags;
36+
return (
37+
<ul className={cx(styles.wrapper, className)} aria-label="Tags" ref={ref}>
38+
{tagsToDisplay.map((tag, i) => (
39+
<li className={styles.li} key={tag}>
40+
<Tag
41+
colorIndex={colorIndex}
42+
name={tag}
43+
icon={icon}
44+
onClick={onClick}
45+
aria-label={getAriaLabel?.(tag, i)}
46+
data-tag-id={i}
47+
/>
48+
</li>
49+
))}
50+
{displayMax && displayMax > 0 && numTags - displayMax > 0 && (
51+
<span className={styles.moreTagsLabel}>+ {numTags - displayMax}</span>
52+
)}
53+
</ul>
54+
);
55+
}
56+
)
4557
);
4658

4759
TagList.displayName = 'TagList';

packages/grafana-ui/src/types/react-table-config.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ declare module 'react-table' {
106106
UseSortByColumnProps<D> {
107107
className?: string;
108108
style?: CSSProperties;
109+
// @PERCONA
110+
// By default, cells with too much text get their content hidden using ellipsis. This allows to override that config.
111+
noHiddenOverflow?: boolean;
109112
}
110113

111114
export interface Cell<D extends Record<string, unknown> = Record<string, unknown>, V = any>

public/app/features/dashboard/components/ShareModal/ShareLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class ShareLink extends PureComponent<Props, State> {
188188
{/* We modified this text and link */}
189189
To render a panel image, you must install the&nbsp;
190190
<a
191-
href="https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/render-dashboard-images.html"
191+
href="https://docs.percona.com/percona-monitoring-and-management/how-to/share-dashboard.html#share-as-a-png-file"
192192
target="_blank"
193193
rel="noopener noreferrer"
194194
className="external-link"

0 commit comments

Comments
 (0)