diff --git a/web/app/components/app/app-access-control/__tests__/access-control-dialog.spec.tsx b/web/app/components/app/app-access-control/__tests__/access-control-dialog.spec.tsx index 5c7d2f2dc0b..9b3dd8ee050 100644 --- a/web/app/components/app/app-access-control/__tests__/access-control-dialog.spec.tsx +++ b/web/app/components/app/app-access-control/__tests__/access-control-dialog.spec.tsx @@ -1,4 +1,3 @@ -/* eslint-disable ts/no-explicit-any */ import { fireEvent, render, screen, waitFor } from '@testing-library/react' import AccessControlDialog from '../access-control-dialog' diff --git a/web/app/components/app/app-access-control/__tests__/index.spec.tsx b/web/app/components/app/app-access-control/__tests__/index.spec.tsx index f2fa09f98a8..612d17d88ae 100644 --- a/web/app/components/app/app-access-control/__tests__/index.spec.tsx +++ b/web/app/components/app/app-access-control/__tests__/index.spec.tsx @@ -1,4 +1,3 @@ -/* eslint-disable ts/no-explicit-any */ import type { App } from '@/types/app' import { fireEvent, render, screen, waitFor } from '@testing-library/react' import { toast } from '@/app/components/base/ui/toast' diff --git a/web/app/components/base/app-icon-picker/ImageInput.tsx b/web/app/components/base/app-icon-picker/ImageInput.tsx index 21ceae0fcf2..720340e313c 100644 --- a/web/app/components/base/app-icon-picker/ImageInput.tsx +++ b/web/app/components/base/app-icon-picker/ImageInput.tsx @@ -73,7 +73,6 @@ const ImageInput: FC = ({ const handleShowImage = () => { if (isAnimatedImage) { return ( - // eslint-disable-next-line next/no-img-element ) } diff --git a/web/app/components/base/image-uploader/image-list.tsx b/web/app/components/base/image-uploader/image-list.tsx index a951680b3f1..9fddaddf622 100644 --- a/web/app/components/base/image-uploader/image-list.tsx +++ b/web/app/components/base/image-uploader/image-list.tsx @@ -1,4 +1,3 @@ -/* eslint-disable next/no-img-element */ import type { FC } from 'react' import type { ImageFile } from '@/types/app' import { useState } from 'react' diff --git a/web/app/components/base/markdown-blocks/__tests__/plugin-paragraph.spec.tsx b/web/app/components/base/markdown-blocks/__tests__/plugin-paragraph.spec.tsx index b18ac1cdcc7..1d3a1c34f05 100644 --- a/web/app/components/base/markdown-blocks/__tests__/plugin-paragraph.spec.tsx +++ b/web/app/components/base/markdown-blocks/__tests__/plugin-paragraph.spec.tsx @@ -1,4 +1,3 @@ -/* eslint-disable next/no-img-element */ import type { ExtraProps } from 'streamdown' import { render, screen } from '@testing-library/react' import userEvent from '@testing-library/user-event' diff --git a/web/app/components/workflow/comment/comment-icon.tsx b/web/app/components/workflow/comment/comment-icon.tsx index 301d7decfa3..c1663007cd2 100644 --- a/web/app/components/workflow/comment/comment-icon.tsx +++ b/web/app/components/workflow/comment/comment-icon.tsx @@ -208,10 +208,10 @@ export const CommentIcon: FC = memo(({ comment, onClick, isAct onMouseLeave={handleMouseLeave} >
-
= memo(({ position, onSubmit, o className="relative shrink-0 cursor-move" onPointerDown={handleDragPointerDown} > -
-
+
+
= memo(({ position, onSubmit, o 'relative z-10 flex-1 rounded-xl border border-components-chat-input-border bg-components-panel-bg-blur pb-[4px] shadow-md', )} > -
+
= ({ comment, onClick }) => {
-
{comment.created_by_account.name}
-
+
{comment.created_by_account.name}
+
{formatTimeFromNow(comment.updated_at * 1000)}
diff --git a/web/app/components/workflow/comment/index.tsx b/web/app/components/workflow/comment/index.tsx deleted file mode 100644 index cb8e6ab04d6..00000000000 --- a/web/app/components/workflow/comment/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -export { CommentIcon } from './comment-icon' -export { CommentInput } from './comment-input' -export { CommentCursor } from './cursor' -export { MentionInput } from './mention-input' -export { CommentThread } from './thread' diff --git a/web/app/components/workflow/comment/mention-input.tsx b/web/app/components/workflow/comment/mention-input.tsx index 8db73f614c0..8924deb3315 100644 --- a/web/app/components/workflow/comment/mention-input.tsx +++ b/web/app/components/workflow/comment/mention-input.tsx @@ -3,7 +3,6 @@ import type { ReactNode } from 'react' import type { UserProfile } from '@/service/workflow-comment' import { RiArrowUpLine, RiAtLine, RiLoader2Line } from '@remixicon/react' -import { useParams } from 'next/navigation' import { forwardRef, memo, @@ -21,6 +20,7 @@ import Textarea from 'react-textarea-autosize' import Avatar from '@/app/components/base/avatar' import Button from '@/app/components/base/button' import EnterKey from '@/app/components/base/icons/src/public/common/EnterKey' +import { useParams } from '@/next/navigation' import { fetchMentionableUsers } from '@/service/workflow-comment' import { cn } from '@/utils/classnames' import { useStore, useWorkflowStore } from '../store' @@ -511,7 +511,7 @@ const MentionInputInner = forwardRef(({
(({