This commit is contained in:
Gk0Wk
2024-04-07 17:21:15 +08:00
parent d46785cb68
commit 7e9cf66d01
12 changed files with 52 additions and 14 deletions

View File

@@ -17,10 +17,10 @@ import _ from 'lodash';
// fakeAgentSelections,
// fakeCurrentAgentSelection,
// } from './data/fakeAgentAssignment';
import CheckIcon from '@/icons/checkIcon';
import CheckIcon from '@/icons/CheckIcon';
import AgentIcon from '@/components/AgentIcon';
import { globalStorage } from '@/storage';
import SendIcon from '@/icons/sendIcon';
import SendIcon from '@/icons/SendIcon';
const HtmlTooltip = styled(({ className, ...props }: TooltipProps) => (
<Tooltip {...props} classes={{ popper: className }} />

View File

@@ -18,7 +18,7 @@ import {
usePlanModificationContext,
} from './context';
import { IPlanTreeNode, globalStorage } from '@/storage';
import SendIcon from '@/icons/sendIcon';
import SendIcon from '@/icons/SendIcon';
const RequirementNoteNode: React.FC<{
data: {

View File

@@ -235,7 +235,12 @@ export default observer(
() =>
importantLineRects
.sort((a, b) => {
return a.to === b.to ? 0 : a.to === actionIsHovered ? 1 : -1;
// eslint-disable-next-line no-nested-ternary
return a[0].to === b[0].to
? 0
: a[0].to === actionIsHovered
? 1
: -1;
})
.map(([line, from, to]) => {
const key = `${line.from}.${line.to}`;

View File

@@ -17,7 +17,7 @@ import {
useTaskModificationContext,
} from './context';
import { IAgentActionTreeNode, globalStorage } from '@/storage';
import SendIcon from '@/icons/sendIcon';
import SendIcon from '@/icons/SendIcon';
import { ActionType } from '@/storage/plan';
const RequirementNoteNode: React.FC<{