Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
317 changes: 161 additions & 156 deletions eslint.config.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"cypress": "^14.1.0",
"eslint-config-prettier": "^10.1.1",
"eslint-import-resolver-typescript": "^4.1.1",
"eslint-plugin-i18next": "^6.1.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest-dom": "5.5.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
Expand Down
7 changes: 6 additions & 1 deletion public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"detailsLabel": "Details:"
},
"CopyKubeconfigButton": {
"kubeconfigButton": "Kubeconfig",
"copiedMessage": "Copied to Clipboard",
"failedMessage": "Failed to copy, Error:",
"menuDownload": "Download",
Expand All @@ -97,7 +98,10 @@
"navigateHome": "Back to Homepage"
},
"IntelligentBreadcrumbs": {
"homeLabel": "Home"
"homeLabel": "Home",
"projects": "Projects",
"workspaces": "Workspaces",
"mcps": "MCPs"
},
"MCPContext": {
"errorMessage": "An unknown error occurred"
Expand All @@ -107,6 +111,7 @@
"subtitleMessage": "Looks like this page is not opened inside of the Hyperspace Portal. Contact admins for help."
},
"ShellBar": {
"betaButton": "Beta",
"betaButtonDescription": "This web app is currently in Beta, and may not be ready for productive use. We're actively improving the experience and would love your feedback — your input helps shape the future of the app!",
"signOutButton": "Sign Out",
"feedbackMessageLabel": "Message",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ControlPlanes/CopyKubeconfigButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function CopyKubeconfigButton() {
return (
<>
<Button icon="slim-arrow-down" icon-end onClick={handleOpenerClick}>
Kubeconfig
{t('CopyKubeconfigButton.kubeconfigButton')}
</Button>
<Menu
ref={popoverRef}
Expand Down
10 changes: 7 additions & 3 deletions src/components/Core/IntelligentBreadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ export default function IntelligentBreadcrumbs() {
</BreadcrumbsItem>
{projectName && (
<>
<BreadcrumbsItem href={`${PREFIX}/projects`}>Projects</BreadcrumbsItem>
<BreadcrumbsItem href={`${PREFIX}/projects`}>{t('IntelligentBreadcrumbs.projects')}</BreadcrumbsItem>
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>{projectName}</BreadcrumbsItem>
{workspaceName && (
<>
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>Workspaces</BreadcrumbsItem>
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>
{t('IntelligentBreadcrumbs.workspaces')}
</BreadcrumbsItem>
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>{workspaceName}</BreadcrumbsItem>
{controlPlaneName && (
<>
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>MCPs</BreadcrumbsItem>
<BreadcrumbsItem href={`${PREFIX}/projects/${projectName}`}>
{t('IntelligentBreadcrumbs.mcps')}
</BreadcrumbsItem>
<BreadcrumbsItem
href={`${PREFIX}/projects/${projectName}/workspaces/${workspaceName}/mcps/${controlPlaneName}`}
>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Core/ShellBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function ShellBarComponent() {
const betaButtonRef = useRef<ButtonDomRef>(null);

const { user } = useAuthOnboarding();
const { t } = useTranslation();

const onProfileClick = (e: Ui5CustomEvent<ShellBarDomRef, ShellBarProfileClickEventDetail>) => {
profilePopoverRef.current!.opener = e.detail.targetRef;
Expand Down Expand Up @@ -115,7 +116,7 @@ export function ShellBarComponent() {
<Button ref={betaButtonRef} className={styles.betaButton} onClick={onBetaClick}>
<span className={styles.betaContent}>
<Icon name="information" className={styles.betaIcon} />
<span className={styles.betaText}>Beta</span>
<span className={styles.betaText}>{t('ShellBar.betaButton')}</span>
</span>
</Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const KubectlBaseDialog = ({
headerText={title}
open={open}
style={{ width: '550px' }}
footer={<Bar endContent={<Button onClick={onClose}>Close</Button>} />}
footer={<Bar endContent={<Button onClick={onClose}>{t('common.close')}</Button>} />}
onClose={onClose}
>
<FlexBox direction="Column" style={{ gap: '16px' }}>
Expand Down
2 changes: 2 additions & 0 deletions src/components/Dialogs/KubectlCommandInfo/KubectlTerminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const KubectlTerminal = ({ command }: KubeCtlTerminalProps) => {

return (
<>
{/* eslint-disable-next-line i18next/no-literal-string */}
<span>echo &apos;</span>
<div style={{ marginLeft: '16px' }}>{yamlLines}</div>
<span>&apos;</span> | <span>{kubectlPart}</span>
Expand Down Expand Up @@ -94,6 +95,7 @@ export const KubectlTerminal = ({ command }: KubeCtlTerminalProps) => {
</FlexBox>

<div style={{ padding: '12px 16px', overflowX: 'auto' }}>
{/* eslint-disable-next-line i18next/no-literal-string */}
<span style={{ marginRight: '8px' }}>❯</span>
{FormattedCommand()}
</div>
Expand Down
Loading