Skip to content
Open
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
4 changes: 4 additions & 0 deletions frontend/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export default defineConfig({
'babel-plugin-react-compiler',
{
target: '18',
compilationMode: 'annotation',
panicThreshold: 'critical_errors',
// In annotation mode, this still gates which files CAN be opted in.
// Files excluded here are ineligible even with 'use memo'.
sources: (filename: string) => {
if (filename.includes('/lib/redpanda-ui/')) {
return false;
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { Box, Button, ColorModeSwitch, CopyButton, Flex } from '@redpanda-data/ui';
import { Link, useLocation, useMatchRoute } from '@tanstack/react-router';
import { Heading } from 'components/redpanda-ui/components/typography';
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/layout/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { Link, useLocation } from '@tanstack/react-router';
import { Avatar, AvatarFallback, AvatarImage } from 'components/redpanda-ui/components/avatar';
import {
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/license/register-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use no memo';

import { ConnectError } from '@connectrpc/connect';
import {
Alert,
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/misc/kowl-json-view.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use no memo';

import { act, render, waitFor } from '@testing-library/react';

vi.mock('@redpanda-data/ui', async () => {
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/misc/user-preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import {
Button,
Checkbox,
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/acls/new-acl/create-acl.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/** biome-ignore-all lint/correctness/useUniqueElementIds: this is intentional for form usage */

'use no memo';

import { Button } from 'components/redpanda-ui/components/button';
import {
Card,
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/acls/principal-group-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { Box, Button, Flex, FormField, Grid, Icon, Input, InputGroup, InputLeftAddon, Text } from '@redpanda-data/ui';
import { TrashIcon } from 'components/icons';

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/acls/role-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { useNavigate } from '@tanstack/react-router';
import { Button } from 'components/redpanda-ui/components/button';
import { Combobox } from 'components/redpanda-ui/components/combobox';
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/acls/user-create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import {
Alert,
AlertIcon,
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/acls/user-edit-modals.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use no memo';

import { create } from '@bufbuild/protobuf';
import { ConnectError } from '@connectrpc/connect';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';
'use client';

import { create } from '@bufbuild/protobuf';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { create } from '@bufbuild/protobuf';
import { FieldMaskSchema } from '@bufbuild/protobuf/wkt';
import { Markdown } from '@redpanda-data/ui';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { create } from '@bufbuild/protobuf';
import { FieldMaskSchema } from '@bufbuild/protobuf/wkt';
import { getRouteApi, Link } from '@tanstack/react-router';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { getRouteApi, useNavigate } from '@tanstack/react-router';

const routeApi = getRouteApi('/agents/$id/');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { getRouteApi } from '@tanstack/react-router';

const routeApi = getRouteApi('/agents/$id/');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

'use client';

import { ConnectError } from '@connectrpc/connect';
Expand Down Expand Up @@ -284,7 +282,6 @@ const AIAgentsListPageContent = ({
}: {
deleteHandlerRef: React.RefObject<AIAgentDeleteHandlerRef>;
}) => {
'use no memo';
const navigate = useNavigate();
const [sorting, setSorting] = React.useState<SortingState>([]);
const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>([]);
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/connect/cluster-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { Box, Button, DataTable, Text } from '@redpanda-data/ui';
import { Link } from '@tanstack/react-router';
import { useCallback, useState } from 'react';
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/connect/connector-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import React, { useEffect, useRef, useState } from 'react';

import { ConfigPage } from './dynamic-ui/components';
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/connect/create-connector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import {
Alert,
AlertDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { Box, RadioGroup, Skeleton, Switch } from '@redpanda-data/ui';
import { useCallback, useState, useSyncExternalStore } from 'react';

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/connect/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { create } from '@bufbuild/protobuf';
import { Box, DataTable, Stack, Tooltip } from '@redpanda-data/ui';
import ErrorResult from 'components/misc/error-result';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { useNavigate } from '@tanstack/react-router';
import {
type ColumnDef,
Expand Down Expand Up @@ -153,7 +151,6 @@ export const KnowledgeBaseDocumentList: React.FC<KnowledgeBaseDocumentListProps>
isLoading,
knowledgebaseId,
}) => {
'use no memo';
const navigate = useNavigate();

// TanStack Table state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { ConnectError } from '@connectrpc/connect';
import { Clock, Search, Send, X } from 'lucide-react';
import React, { useCallback, useEffect, useRef, useState } from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

'use client';

import { ConnectError } from '@connectrpc/connect';
Expand Down Expand Up @@ -352,7 +350,6 @@ export const updatePageTitle = () => {
};

export const KnowledgeBaseListPage = () => {
'use no memo';
const featurePipelinesApi = useSupportedFeaturesStore((s) => s.pipelinesApi);
const navigate = useNavigate();
const [sorting, setSorting] = React.useState<SortingState>([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';
'use client';

import { create } from '@bufbuild/protobuf';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

/** biome-ignore-all lint/correctness/useUniqueElementIds: this is intentional for form usage */

import { create } from '@bufbuild/protobuf';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
/** biome-ignore-all lint/a11y/noStaticElementInteractions: leave for now */
/** biome-ignore-all lint/a11y/useKeyWithClickEvents: leave for now */

'use no memo';

import { create } from '@bufbuild/protobuf';
import { getRouteApi } from '@tanstack/react-router';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

'use client';

import { ConnectError } from '@connectrpc/connect';
Expand Down Expand Up @@ -267,7 +265,6 @@ export const updatePageTitle = () => {
};

const RemoteMCPListPageContent = ({ deleteHandlerRef }: { deleteHandlerRef: React.RefObject<MCPDeleteHandlerRef> }) => {
'use no memo';
const navigate = useNavigate();
const [sorting, setSorting] = React.useState<SortingState>([]);
const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>([]);
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/overview/api-connect-wizard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use no memo';

import { TransportProvider } from '@connectrpc/connect-query';
import { Markdown } from '@redpanda-data/ui';
import { useNavigate, useRouter } from '@tanstack/react-router';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import {
Box,
Button,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { useState } from 'react';

import type { uiSettings } from '../../../../state/ui';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use no memo';

import { ConnectError } from '@connectrpc/connect';
import { createConnectQueryKey } from '@connectrpc/connect-query';
import { zodResolver } from '@hookform/resolvers/zod';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use no memo';

import { create } from '@bufbuild/protobuf';
import { getRouteApi, useNavigate } from '@tanstack/react-router';

Expand Down
3 changes: 0 additions & 3 deletions frontend/src/components/pages/rp-connect/pipeline/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { create } from '@bufbuild/protobuf';
import { ConnectError } from '@connectrpc/connect';
import { Link as TanStackRouterLink, useNavigate } from '@tanstack/react-router';
Expand Down Expand Up @@ -491,7 +489,6 @@ const createColumns = ({
];

const PipelineListPageContent = () => {
'use no memo';
const navigate = useNavigate();
const resetOnboardingWizardStore = useResetOnboardingWizardStore();

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/schemas/schema-create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { useQueryClient } from '@tanstack/react-query';
import { TrashIcon } from 'components/icons';
import { Alert, AlertDescription, AlertTitle } from 'components/redpanda-ui/components/alert';
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/pages/schemas/schema-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { useQueryClient } from '@tanstack/react-query';
import { getRouteApi, Link, useNavigate } from '@tanstack/react-router';
import { EditIcon } from 'components/icons';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* use of this software will be governed by the Apache License, Version 2.0
*/

'use no memo';

import { create } from '@bufbuild/protobuf';
import { ConnectError } from '@connectrpc/connect';
import { useNavigate } from '@tanstack/react-router';
Expand Down Expand Up @@ -247,7 +245,6 @@ function SecretsStoreDataTableToolbar({ table }: { table: TanstackTable<SecretTa
}

export const SecretsStoreListPage = () => {
'use no memo';
const navigate = useNavigate();

const [sorting, setSorting] = React.useState<SortingState>([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { zodResolver } from '@hookform/resolvers/zod';
import { Form } from 'components/redpanda-ui/components/form';
import { useForm } from 'react-hook-form';
Expand All @@ -26,7 +24,6 @@ const TestWrapper = ({
defaultValues?: FormValues;
onFormChange?: (values: FormValues) => void;
}) => {
'use no memo';
const form = useForm<FormValues>({
resolver: zodResolver(FormSchema),
defaultValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* by the Apache License, Version 2.0
*/

'use no memo';

import { Button } from 'components/redpanda-ui/components/button';
import {
Dialog,
Expand Down
Loading
Loading