Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b86e298
Testing library updated
KonradPietocha May 7, 2025
7b803e3
Sentry updated
KonradPietocha May 7, 2025
72218e4
React router updated
KonradPietocha May 7, 2025
0ee314d
Merge branch 'main' into bump-react-and-react-dom
KonradPietocha May 7, 2025
8493686
Dependencies update
KonradPietocha May 7, 2025
9fed3ac
ui5 packages updated
KonradPietocha May 8, 2025
719979e
Update packages
KonradPietocha May 8, 2025
31b0f47
Update packages
KonradPietocha May 8, 2025
b3b2f25
Merge branch 'main' into bump-react-and-react-dom
KonradPietocha May 9, 2025
3303cdd
Packages update
KonradPietocha May 12, 2025
77e19c2
Rollback of an update we're not ready for yet
KonradPietocha May 12, 2025
4ed8ebc
Removing useless change
KonradPietocha May 12, 2025
0b4feac
Rollback of an update we're not ready for yet
KonradPietocha May 12, 2025
c30c500
Update packages
KonradPietocha May 12, 2025
167c08b
Correct updates
KonradPietocha May 12, 2025
ca25158
Correct updates
KonradPietocha May 12, 2025
8214bfe
Correct style variable
KonradPietocha May 12, 2025
b1ac744
Merge branch 'main' into bump-react-and-react-dom
KonradPietocha May 14, 2025
49932bc
Test corrections
KonradPietocha May 14, 2025
d07c59d
Tests correction
KonradPietocha May 14, 2025
6eac973
Tests correction
KonradPietocha May 14, 2025
1de7a15
Test correction
KonradPietocha May 14, 2025
2457149
Test correction
KonradPietocha May 15, 2025
b91b2f9
Merge branch 'main' into bump-react-and-react-dom
KonradPietocha May 15, 2025
5f13cdf
Test correction
KonradPietocha May 15, 2025
78532aa
Test correction
KonradPietocha May 15, 2025
f71d7c5
Test corrections
KonradPietocha May 15, 2025
4a2951f
Remove depracated substr and correct tests
KonradPietocha May 16, 2025
2b4f64d
Merge branch 'main' into bump-react-and-react-dom
KonradPietocha May 16, 2025
105d04d
Test corrections
KonradPietocha May 16, 2025
778675a
Tests and keys correction
KonradPietocha May 16, 2025
5ebbea3
Test correction
KonradPietocha May 16, 2025
c839524
Tests corrections
KonradPietocha May 16, 2025
86c6316
Lighthouse test correction
KonradPietocha May 16, 2025
84b08f4
Lighthouse test correction
KonradPietocha May 16, 2025
4255634
Lighthouse test correction
KonradPietocha May 16, 2025
53ee814
Accessible names added
KonradPietocha May 19, 2025
63388c4
Update
KonradPietocha May 19, 2025
c0a14ce
Update
KonradPietocha May 19, 2025
696816a
Update correction
KonradPietocha May 19, 2025
13b2dcc
Fix update errors caused by recoil
KonradPietocha May 19, 2025
e8b8553
Fix update errors caused by recoil
KonradPietocha May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kyma/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const loadExtensions = _obj(async function(extensionsFile, _, cb) {
} else {
resolve({
contents: data.toString(),
name: filePath.substr(filePath.lastIndexOf('/') + 1),
name: filePath.substring(filePath.lastIndexOf('/') + 1),
});
}
}),
Expand All @@ -43,7 +43,7 @@ const loadExtensions = _obj(async function(extensionsFile, _, cb) {
.then(res => res.text())
.then(contents => ({
contents,
name: fileAddress.substr(fileAddress.lastIndexOf('/') + 1),
name: fileAddress.substring(fileAddress.lastIndexOf('/') + 1),
}));

const requests = list.map(({ source }) => {
Expand Down
36,078 changes: 14,090 additions & 21,988 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,24 @@
"@datasert/cronjs-parser": "^1.4.0",
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
"@peculiar/x509": "^1.12.3",
"@sap-theming/theming-base-content": "^11.1.28",
"@sap-ui/common-css": "^0.38.0",
"@sap-theming/theming-base-content": "^11.29.3",
"@sap-ui/common-css": "^0.40.1",
"@sentry/react": "^9.9.0",
"@stoplight/json-ref-resolver": "^3.1.6",
"@types/jsonpath": "^0.2.4",
"@types/pluralize": "^0.0.29",
"@types/react-syntax-highlighter": "^15.5.13",
"@ui-schema/ui-schema": "^0.4.7",
"@ui5/webcomponents": "^2.8.0",
"@ui5/webcomponents-base": "^2.8.0",
"@ui5/webcomponents-compat": "^2.8.0",
"@ui5/webcomponents-fiori": "^2.8.0",
"@ui5/webcomponents-icons": "^2.8.0",
"@ui5/webcomponents-icons-tnt": "^2.8.0",
"@ui5/webcomponents-react": "^2.8.1",
"@ui5/webcomponents-react-base": "^2.8.1",
"@ui5/webcomponents-react-charts": "^2.8.1",
"@ui5/webcomponents-react-compat": "^2.8.1",
"@ui5/webcomponents": "^2.10.0",
"@ui5/webcomponents-base": "^2.10.0",
"@ui5/webcomponents-compat": "^2.10.0",
"@ui5/webcomponents-fiori": "^2.10.0",
"@ui5/webcomponents-icons": "^2.10.0",
"@ui5/webcomponents-icons-tnt": "^2.10.0",
"@ui5/webcomponents-react": "^2.10.0",
"@ui5/webcomponents-react-base": "^2.10.0",
"@ui5/webcomponents-react-charts": "^2.10.0",
"@ui5/webcomponents-react-compat": "^2.10.0",
"classnames": "^2.5.1",
"copy-to-clipboard": "^3.2.0",
"core-js": "^3.41.0",
Expand Down Expand Up @@ -113,8 +113,8 @@
"url": "^0.11.4"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/didyoumean": "^1.2.0",
"@types/enzyme": "^3.10.12",
"@types/file-saver": "^2.0.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.command-palette-search-bar {
width: var(--_ui5-v2-8-0_input_width) !important;
width: var(--_ui5-v2-10-0_input_width) !important;
}

.ui5-shellbar-mid-content {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.command-palette-ui {
position: absolute;
top: calc(var(--_ui5-v2-8-0_shellbar_root_height) + 0.5rem);
top: calc(var(--_ui5-v2-10-0_shellbar_root_height) + 0.5rem);
width: 100%;
height: 100%;

Expand All @@ -15,7 +15,7 @@
width: 60vw;
max-width: 700px;
position: absolute;
top: calc(var(--_ui5-v2-8-0_shellbar_root_height) * -1);
top: calc(var(--_ui5-v2-10-0_shellbar_root_height) * -1);
opacity: 0%; //prevent visually jumping
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/App/ContentWrapper/ContentWrapper.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--solidBg: var(--_ui5-v2-8-0_fcl_solid_bg);
--solidBg: var(--_ui5-v2-10-0_fcl_solid_bg);
}

#content-wrap {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Clusters/components/AddClusterWizard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
}

ui5-wizard::part(step-content) {
--_ui5-v2-8-0_wiz_content_item_wrapper_padding: 0;
--_ui5-v2-8-0_wiz_content_item_wrapper_bg: transparent;
--_ui5-v2-10-0_wiz_content_item_wrapper_padding: 0;
--_ui5-v2-10-0_wiz_content_item_wrapper_bg: transparent;
}

ui5-wizard {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function KubeconfigUpload({ kubeconfig, setKubeconfig, formRef }) {
}
} catch ({ message }) {
// get the message until the newline
setError(message.substr(0, message.indexOf('\n')));
setError(message.substring(0, message.indexOf('\n')));
}
},
[t, setError, setKubeconfig],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const ScanResultResourceTree = ({
return (
<TreeItem key={resource.endpoint} text={resource.kind} {...warningState}>
{resource.items?.map((item, i) => (
<ScanResultItemTree key={i} item={item} />
<ScanResultItemTree key={`${item?.name}-${i}`} item={item} />
))}
</TreeItem>
);
Expand All @@ -117,7 +117,10 @@ const ScanResultResourcesTree = ({
return (
<>
{filteredResources?.map((resource, i) => (
<ScanResultResourceTree key={i} resource={resource} />
<ScanResultResourceTree
key={`${resource?.kind}-${i}`}
resource={resource}
/>
))}
</>
);
Expand Down Expand Up @@ -170,7 +173,10 @@ const ScanResultNamespacesTree = ({
>
{scanResult.namespaces &&
Object.values(scanResult.namespaces).map((namespace, i) => (
<ScanResultNamespaceTree key={i} namespace={namespace} />
<ScanResultNamespaceTree
key={`${namespace.name}-${i}`}
namespace={namespace}
/>
))}
</TreeItem>
);
Expand Down
10 changes: 5 additions & 5 deletions src/components/Extensibility/ExtensibilityDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const ExtensibilityDetailsCore = ({
visibility: resource => prepareVisibility(def, resource),
value: resource => (
<Widget
key={i}
key={`${resource}-${i}`}
value={resource}
structure={def}
schema={schema}
Expand All @@ -128,7 +128,7 @@ export const ExtensibilityDetailsCore = ({
? [
(resource, i) => (
<Widget
key={i}
key={`${resource}-${i}`}
value={resource}
structure={body}
schema={schema}
Expand All @@ -149,7 +149,7 @@ export const ExtensibilityDetailsCore = ({
visibility: resource => prepareVisibility(def, resource),
value: resource => (
<Widget
key={i}
key={`${resource}-${i}`}
structure={def}
value={resource}
schema={schema}
Expand All @@ -169,7 +169,7 @@ export const ExtensibilityDetailsCore = ({
visibility: resource => prepareVisibility(def, resource),
value: resource => (
<Widget
key={i}
key={`${resource}-${i}`}
structure={def}
value={resource}
schema={schema}
Expand Down Expand Up @@ -198,7 +198,7 @@ export const ExtensibilityDetailsCore = ({
? [
(resource, i) => (
<Widget
key={i}
key={`${resource}-${i}`}
value={resource}
structure={health}
schema={schema}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Extensibility/ExtensibilityInjections.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const ExtensibilityInjections = ({ destination, slot, root }) => {
<ExtensibilityInjection
resMetaData={injection}
root={root}
key={index}
key={`${injection}-${index}`}
/>,
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Extensibility/ExtensibilityList.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const ExtensibilityListCore = ({
header: widgetT(column),
value: resource => (
<Widget
key={i}
key={`${resource}-${i}`}
value={resource}
structure={column}
schema={schema}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Extensibility/ExtensibilityWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function ExtensibilityWizardCore({
setError(null);
}
} catch ({ message }) {
setError(message.substr(0, message.indexOf('\n')));
setError(message.substring(0, message.indexOf('\n')));
setResourcesWithStatuses([]);
}
}, [yaml, t, resourceInitial]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function GenericList({
defaultOpen={
defaultOpen || index === newItemIndex ? true : undefined
}
key={index}
key={`${_val}-${index}`}
title={pluralize(tFromStoreKeys(ownKeys, schema), 1)}
nestingLevel={nestingLevel + 1}
actions={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function SimpleList({
.map((_val, index) => {
const ownKeys = storeKeys.push(index);
return (
<li key={index}>
<li key={`${_val}-${index}`}>
<FlexBox alignItems="Center">
<div className="bsl-col-md--11 simple-list">
<PluginStack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function FeaturedCard({ value, structure, schema, ...props }) {
<div className="button-container sap-margin-top-small">
{structure.children?.slice(0, 2).map((def, idx) => (
<Widget
key={idx}
key={`${value}-${idx}`}
value={value}
structure={def}
schema={schema}
Expand Down
11 changes: 8 additions & 3 deletions src/components/Extensibility/components/JoinedArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ export function JoinedArray({
<div>
{separator === 'break'
? value.map((val, i) => (
<div key={i}>
<div key={`${val}-${i}`}>
{structure?.children
? structure?.children?.map((def, idx) => (
<Widget structure={def} value={val} key={idx} {...props} />
<Widget
structure={def}
value={val}
key={`${def}-${idx}`}
{...props}
/>
))
: val}
</div>
Expand All @@ -44,7 +49,7 @@ export function JoinedArray({
structure={def}
arrayItems={[...arrayItems, val]}
value={val}
key={idx}
key={`${def}-${idx}`}
{...props}
/>
))}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Extensibility/components/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function Panel({
{Array.isArray(header)
? header.map((def, idx) => (
<Widget
key={idx}
key={`${def}-${idx}`}
structure={def}
schema={schema}
inlineContext={true}
Expand Down Expand Up @@ -77,7 +77,7 @@ export function Panel({
<div className={bodyClassNames}>
{structure.children.map((def, idx) => (
<Widget
key={idx}
key={`${value}-${idx}`}
value={value}
structure={def}
schema={schema}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Extensibility/components/Plain.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { Widget } from './Widget';

export function Plain({ structure, ...props }) {
return structure.children?.map((def, idx) => (
<Widget structure={def} {...props} key={idx} />
<Widget structure={def} {...props} key={`${def}-${idx}`} />
));
}
6 changes: 3 additions & 3 deletions src/components/Extensibility/components/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function Table({
return (
<Widget
{...props}
key={cellIndex}
key={`${entry}-${cellIndex}`}
value={entry}
scope={entry}
arrayItems={[...arrayItems, entry]}
Expand All @@ -123,7 +123,7 @@ export function Table({
{structure.collapsible.map((child, cellIndex) => (
<Widget
{...props}
key={cellIndex}
key={`${entry}-${cellIndex}`}
value={entry}
scope={entry}
arrayItems={[...arrayItems, entry]}
Expand All @@ -149,7 +149,7 @@ export function Table({
return (
<Widget
{...props}
key={index}
key={`${value}-${index}`}
value={value}
structure={content}
schema={schema}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Extensibility/components/Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function Widget({
return Array.isArray(sanitizedValue) && !Renderer.array ? (
sanitizedValue.map((valueItem, index) => (
<SingleWidget
key={index}
key={`${valueItem}-${index}`}
{...props}
inlineRenderer={inlineRenderer}
Renderer={Renderer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Bubbles({
>
{suggestions.map((suggestion, index) => (
<Button
key={index}
key={`${suggestion}-${index}`}
design="Default"
className="bubble-button"
onClick={() => onClick(suggestion)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/KymaCompanion/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export const Chat = ({
{chatHistory.map((message, index) => {
const isLast = index === chatHistory.length - 1;
return message.author === Author.AI ? (
<React.Fragment key={index}>
<React.Fragment key={`${message.author}-${index}`}>
<Message
author={message.author}
messageChunks={message.messageChunks}
Expand All @@ -360,7 +360,7 @@ export const Chat = ({
) : (
<Message
author={Author.USER}
key={index}
key={`${message.author}-${index}`}
messageChunks={message.messageChunks}
isLoading={message.isLoading}
hasError={message?.hasError ?? false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function TasksList({
justifyContent="SpaceBetween"
alignItems="Center"
className="loading-item"
key={index}
key={`${task?.task_name}-box-${index}`}
>
{task?.status === 'completed' ? (
<ObjectStatus
Expand Down
2 changes: 1 addition & 1 deletion src/components/Preferences/EditViewSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function EditViewSettings() {
>
{AVAILABLE_EDIT_VIEW_OPTIONS.map((available_option, index) => (
<Option
key={index}
key={`${available_option.key}-${index}`}
value={available_option.key}
selected={preferencesViewType === available_option.key}
>
Expand Down
Loading
Loading