Skip to content

Commit edfd9bf

Browse files
authored
Removed the global bottom "documents selected" split panel (#370)
* chore(ui): remove unused split panel UI and cleanup layout * feat(ui): remove global split panel and update LambdaArchitecture parameter
1 parent 548a66a commit edfd9bf

6 files changed

Lines changed: 4 additions & 260 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ SPDX-License-Identifier: MIT-0
99

1010
- **Configurable Lambda architecture** — New `LambdaArchitecture` parameter (`arm64` or `x86_64`) for all unified pattern Lambda container images. Defaults to `arm64` (Graviton) for best price-performance. Use `x86_64` when deploying with custom base images that only support AMD64. The parameter flows through to CodeBuild (`--platform` flag) and Dockerfile (`FROM` image suffix).
1111

12+
### Removed
13+
14+
- **Global split panel ("documents selected")** — Removed the persistent bottom split panel from the global Web UI layout and deleted the related split-panel components and `use-split-panel` hook. The split-panel was noisy on non-document-list pages and only provided full details for single-document selection; reintroduce as an opt-in, per-page component if needed (recommendation: enable only on `DocumentList`).
15+
1216
## [0.5.15]
1317

1418
### Added

src/ui/src/components/document-list/DocumentListSplitPanel.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/ui/src/components/document-list/documents-split-panel-config.tsx

Lines changed: 0 additions & 162 deletions
This file was deleted.

src/ui/src/components/genaiidp-layout/GenAIIDPLayout.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { DocumentsContext } from '../../contexts/documents';
1010
import { Document } from '../../types/documents';
1111

1212
import useNotifications from '../../hooks/use-notifications';
13-
import useSplitPanel from '../../hooks/use-split-panel';
1413
import useGraphQlApi from '../../hooks/use-graphql-api';
1514
import useAppContext from '../../contexts/app';
1615

@@ -27,7 +26,6 @@ import { appLayoutLabels } from '../common/labels';
2726
import Navigation from './navigation';
2827
import Breadcrumbs from './breadcrumbs';
2928
import ToolsPanel from './tools-panel';
30-
import SplitPanel from './documents-split-panel';
3129
import ConfigurationLayout from '../configuration-layout';
3230
import PricingLayout from '../pricing-layout';
3331
import CapacityPlanningLayout from '../capacity-planning/CapacityPlanningLayout';
@@ -90,8 +88,6 @@ const GenAIIDPLayout = ({ children, tools }: GenAIIDPLayoutProps): React.JSX.Ele
9088
abortWorkflows,
9189
} = useGraphQlApi({ initialPeriodsToLoad });
9290

93-
const { splitPanelOpen, onSplitPanelToggle, splitPanelSize, onSplitPanelResize } = useSplitPanel(selectedItems);
94-
9591
const documentsContextValue = {
9692
documents,
9793
getDocumentDetailsFromIds,
@@ -123,11 +119,6 @@ const GenAIIDPLayout = ({ children, tools }: GenAIIDPLayoutProps): React.JSX.Ele
123119
tools={tools ?? <ToolsPanel />}
124120
toolsOpen={toolsOpen}
125121
onToolsChange={({ detail }) => setToolsOpen(detail.open)}
126-
splitPanelOpen={splitPanelOpen}
127-
onSplitPanelToggle={onSplitPanelToggle}
128-
splitPanelSize={splitPanelSize}
129-
onSplitPanelResize={onSplitPanelResize}
130-
splitPanel={<SplitPanel />}
131122
content={
132123
children || (
133124
<Routes>

src/ui/src/components/genaiidp-layout/documents-split-panel.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/ui/src/hooks/use-split-panel.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)