Skip to content

Commit 79058b7

Browse files
committed
Merge branch 'main' into intellisense-for-yaml-editor
2 parents 674dad3 + ff66d6b commit 79058b7

19 files changed

+2639
-3139
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
contents: read
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
13+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
1414

1515
- name: Set up Node.js
1616
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
repo-token: ${{ secrets.GITHUB_TOKEN }}
3535

3636
- name: Checkout code
37-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
37+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3838

3939
- name: Docker meta
4040
id: meta

.github/workflows/on-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Checkout code
36-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3737
with:
3838
fetch-depth: 0 # Fetch all history for all tags and branches
3939

package-lock.json

Lines changed: 2569 additions & 2999 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"i18next": "25.6.1",
6161
"javascript-time-ago": "2.5.12",
6262
"js-yaml": "4.1.1",
63-
"monaco-editor": "0.54.0",
63+
"monaco-editor": "0.55.1",
6464
"monaco-yaml": "5.4.0",
6565
"path-browserify": "1.0.1",
6666
"react": "19.2.0",
@@ -97,7 +97,7 @@
9797
"eslint-plugin-jsx-a11y": "6.10.2",
9898
"eslint-plugin-prettier": "5.5.4",
9999
"eslint-plugin-react": "7.37.5",
100-
"eslint-plugin-react-hooks": "5.2.0",
100+
"eslint-plugin-react-hooks": "7.0.1",
101101
"fastify-tsconfig": "3.0.0",
102102
"globals": "16.5.0",
103103
"jsdom": "27.1.0",

src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCardMenu.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button, Menu, MenuItem } from '@ui5/webcomponents-react';
22

3-
import { Dispatch, FC, SetStateAction, useRef, useState } from 'react';
3+
import { Dispatch, FC, SetStateAction, useId, useState } from 'react';
44
import '@ui5/webcomponents-icons/dist/copy';
55
import '@ui5/webcomponents-icons/dist/accept';
66

@@ -17,7 +17,7 @@ export const ControlPlaneCardMenu: FC<ControlPlanesListMenuProps> = ({
1717
isDeleteMcpButtonDisabled,
1818
setIsEditManagedControlPlaneWizardOpen,
1919
}) => {
20-
const buttonRef = useRef(null);
20+
const openerId = useId();
2121
const [menuIsOpen, setMenuIsOpen] = useState(false);
2222
const { t } = useTranslation();
2323

@@ -28,15 +28,15 @@ export const ControlPlaneCardMenu: FC<ControlPlanesListMenuProps> = ({
2828
return (
2929
<>
3030
<Button
31-
ref={buttonRef}
31+
id={openerId}
3232
icon="overflow"
3333
icon-end
3434
data-testid="ControlPlaneCardMenu-opener"
3535
onClick={handleOpenerClick}
3636
/>
3737
<Menu
3838
open={menuIsOpen}
39-
opener={buttonRef.current}
39+
opener={openerId}
4040
onItemClick={(event) => {
4141
const action = (event.detail.item as HTMLElement).dataset.action;
4242
if (action === 'editMcp') {

src/components/ControlPlanes/ControlPlanePageMenu.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Dispatch, FC, SetStateAction, useRef, useState } from 'react';
1+
import { Dispatch, FC, SetStateAction, useId, useState } from 'react';
22
import { useTranslation } from 'react-i18next';
33
import { Button, Menu, MenuItem } from '@ui5/webcomponents-react';
44

@@ -7,7 +7,7 @@ type ControlPlanesListMenuProps = {
77
};
88

99
export const ControlPlanePageMenu: FC<ControlPlanesListMenuProps> = ({ setIsEditManagedControlPlaneWizardOpen }) => {
10-
const buttonRef = useRef(null);
10+
const openerId = useId();
1111
const [menuIsOpen, setMenuIsOpen] = useState(false);
1212
const { t } = useTranslation();
1313

@@ -17,10 +17,10 @@ export const ControlPlanePageMenu: FC<ControlPlanesListMenuProps> = ({ setIsEdit
1717

1818
return (
1919
<>
20-
<Button ref={buttonRef} icon="overflow" icon-end onClick={handleOpenerClick} />
20+
<Button id={openerId} icon="overflow" icon-end onClick={handleOpenerClick} />
2121
<Menu
2222
open={menuIsOpen}
23-
opener={buttonRef.current}
23+
opener={openerId}
2424
onItemClick={(event) => {
2525
const action = (event.detail.item as HTMLElement).dataset.action;
2626
if (action === 'editMcp') {

src/components/ControlPlanes/List/MembersAvatarView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Avatar, AvatarGroup, Popover } from '@ui5/webcomponents-react';
22
import AvatarGroupType from '@ui5/webcomponents/dist/types/AvatarGroupType.js';
33
import PopoverPlacement from '@ui5/webcomponents/dist/types/PopoverPlacement.js';
4-
import { useRef, useState } from 'react';
4+
import { useId, useState } from 'react';
55
import { MemberTable } from '../../Members/MemberTable.tsx';
66
import { Member } from '../../../lib/api/types/shared/members';
77
import { generateInitialsForEmail } from '../../Helper/generateInitialsForEmail.ts';
@@ -13,7 +13,7 @@ interface Props {
1313
}
1414

1515
export function MembersAvatarView({ members, project, workspace }: Props) {
16-
const openerRef = useRef(null);
16+
const openerId = useId();
1717
const [popoverIsOpen, setPopoverIsOpen] = useState(false);
1818
const avatars = [];
1919

@@ -33,11 +33,11 @@ export function MembersAvatarView({ members, project, workspace }: Props) {
3333

3434
return (
3535
<div style={{ display: 'flex', justifyContent: 'flex-end' }}>
36-
<AvatarGroup ref={openerRef} style={{ maxWidth: '200px' }} type={AvatarGroupType.Group} onClick={handleOnClick}>
36+
<AvatarGroup id={openerId} style={{ maxWidth: '200px' }} type={AvatarGroupType.Group} onClick={handleOnClick}>
3737
{avatars}
3838
</AvatarGroup>
3939
<Popover
40-
opener={openerRef.current!}
40+
opener={openerId}
4141
placement={PopoverPlacement.Bottom}
4242
open={popoverIsOpen}
4343
onClose={() => {

src/components/Core/BreadcrumbFeedbackHeader.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Button, FlexBox, FlexBoxAlignItems, Menu, MenuItem } from '@ui5/webcomp
33
import { useTranslation } from 'react-i18next';
44
import { FeedbackButton } from './FeedbackButton.tsx';
55
import { BetaButton } from './BetaButton.tsx';
6-
import { useRef, useState } from 'react';
6+
import { useId, useState } from 'react';
77
import { useAuthOnboarding } from '../../spaces/onboarding/auth/AuthContextOnboarding.tsx';
88
import { SearchParamToggleVisibility } from '../Helper/FeatureToggleExistance.tsx';
99
import { PathAwareBreadcrumbs } from './PathAwareBreadcrumbs/PathAwareBreadcrumbs.tsx';
@@ -30,20 +30,20 @@ export function BreadcrumbFeedbackHeader() {
3030
function LogoutMenu() {
3131
const auth = useAuthOnboarding();
3232
const { t } = useTranslation();
33+
const openerId = useId();
3334

34-
const buttonRef = useRef(null);
3535
const [menuIsOpen, setMenuIsOpen] = useState(false);
3636
return (
3737
<>
3838
<Button
39-
ref={buttonRef}
39+
id={openerId}
4040
icon="menu2"
4141
onClick={() => {
4242
setMenuIsOpen(true);
4343
}}
4444
/>
4545
<Menu
46-
opener={buttonRef.current}
46+
opener={openerId}
4747
open={menuIsOpen}
4848
onClose={() => {
4949
setMenuIsOpen(false);

src/components/Dialogs/KubectlCommandInfo/KubectlCreateProjectDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { KubectlBaseDialog, FormField, CustomCommand } from './KubectlBaseDialog';
22
import { useTranslation } from 'react-i18next';
3+
import { useState } from 'react';
34

45
interface KubectlCreateProjectDialogProps {
56
onClose: () => void;
@@ -8,7 +9,7 @@ interface KubectlCreateProjectDialogProps {
89

910
export const KubectlCreateProjectDialog = ({ onClose, isOpen }: KubectlCreateProjectDialogProps) => {
1011
const { t } = useTranslation();
11-
const randomProjectName = Math.random().toString(36).substring(2, 8);
12+
const [randomProjectName] = useState(() => Math.random().toString(36).substring(2, 8));
1213

1314
const formFields: FormField[] = [
1415
{

0 commit comments

Comments
 (0)