mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 00:03:47 +00:00
fix(sidebar): merge duplicate virtual-rows imports
Inlining virtual-row-dom-attributes left a second import from the same module, which fails audit:code-quality:native --deny-warnings.
This commit is contained in:
@@ -9,6 +9,7 @@ import { getWorkspaceStatus } from '../../workspace-status'
|
||||
import type { WorktreeGroupBy } from './groups'
|
||||
import {
|
||||
getVirtualRowTransform,
|
||||
getWorktreeVirtualRowTransform,
|
||||
shouldUseHeaderTopSpacing,
|
||||
type RenderRow
|
||||
} from '../viewport/virtual-rows'
|
||||
@@ -31,7 +32,6 @@ import {
|
||||
renderWorktreeSectionHeaderRow,
|
||||
type SectionHeaderRowContext
|
||||
} from '../headers/SectionHeader'
|
||||
import { getWorktreeVirtualRowTransform } from '../viewport/virtual-rows'
|
||||
import type { WorktreeRowDragState } from '../drag/row-state'
|
||||
|
||||
export type WorktreeVirtualRowContext = {
|
||||
|
||||
@@ -9,10 +9,10 @@ import {
|
||||
buildLineageRowRekeyMap,
|
||||
getActiveStickyIndexesForScroll,
|
||||
getRenderRowKey,
|
||||
getVirtualRowKey,
|
||||
pruneStaleVirtualRowElementCache,
|
||||
type RenderRow
|
||||
} from './virtual-rows'
|
||||
import { getVirtualRowKey } from './virtual-rows'
|
||||
import { countRecordKeysByReference } from '../scroll/tuning'
|
||||
import type { WorktreeListVirtualizer } from './use-virtualizer'
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ import {
|
||||
extractWorktreeVirtualRowIndexes,
|
||||
getRenderRowKey,
|
||||
getStickyHeaderIndexes,
|
||||
getVirtualRowIndex,
|
||||
WORKTREE_SIDEBAR_VIRTUAL_ROW_GAP,
|
||||
type RenderRow
|
||||
} from './virtual-rows'
|
||||
import { WORKTREE_SIDEBAR_REVEAL_TOP_INSET } from '../../worktree-sidebar-reveal'
|
||||
import { getVirtualRowIndex } from './virtual-rows'
|
||||
import {
|
||||
shouldAdjustWorktreeSidebarMeasuredRowScroll,
|
||||
USER_SCROLL_MEASUREMENT_ADJUSTMENT_SUPPRESS_MS
|
||||
|
||||
Reference in New Issue
Block a user