Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { Link, useLocation, useParams } from 'react-router';
import {
ArrowLeft, BookOpen, FolderTree, ImagePlus, Layers, Loader2,
MapPin, Package, Plus, Save, Trash2, Users,
MapPin, Network, Package, Plus, Save, Trash2, Users,
} from 'lucide-react';
import InlineConfirmRow from '../ui/InlineConfirmRow';
import toast from '../ui/Toast';
Expand All @@ -35,6 +35,7 @@ import ShareToButton from '../sharing/ShareToButton';
import SyncToPeerButton from '../sharing/SyncToPeerButton';
import TabPills from '../ui/TabPills';
import CompositeSheetsEditor from './CompositeSheetsEditor';
import UniverseGraphTab from './graph/UniverseGraphTab';
import RenderTab from './RenderTab';
import UniverseBibleTab from './UniverseBibleTab';
import { OtherTab, TrunkView } from './UniverseTrunkPanels';
Expand All @@ -46,6 +47,7 @@ import {
TAB_BIBLE,
TAB_CAST,
TAB_COMPOSITES,
TAB_GRAPH,
TAB_OBJECTS,
TAB_OTHER,
TAB_PLACES,
Expand Down Expand Up @@ -456,6 +458,7 @@ export default function UniverseBuilder() {
hasOtherBuckets && { id: TAB_OTHER, label: 'Other', icon: FolderTree, count: bucketsByKind.other.reduce((n, k) => n + (draft.categories?.[k]?.variations?.length || 0), 0) },
{ id: TAB_COMPOSITES, label: 'Composites', icon: Layers, count: totalSheets },
{ id: TAB_RENDER, label: 'Render', icon: ImagePlus },
{ id: TAB_GRAPH, label: 'Graph', icon: Network },
]}
/>

Expand Down Expand Up @@ -609,6 +612,10 @@ export default function UniverseBuilder() {
runs={runs}
/>
)}

{activeTab === TAB_GRAPH && (
<UniverseGraphTab universeId={selectedId} universeName={draft.name} />
)}
</section>

{/* Single page-level lightbox for every thumb on the page: variation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ vi.mock('../ui/TabPills', () => ({ default: () => null }));
vi.mock('./CompositeSheetsEditor', () => ({ default: () => null }));
vi.mock('./RenderTab', () => ({ default: () => null }));
vi.mock('./UniverseBibleTab', () => ({ default: () => null }));
vi.mock('./graph/UniverseGraphTab', () => ({ default: () => null }));
vi.mock('./UniverseCategoryEditor', () => ({ CategoryEditor: () => null }));
vi.mock('./UniverseTrunkPanels', () => ({ OtherTab: () => null, TrunkView: () => null }));
vi.mock('lucide-react', () => {
const Icon = () => null;
return {
ArrowLeft: Icon, BookOpen: Icon, FolderTree: Icon, ImagePlus: Icon, Layers: Icon,
Loader2: Icon, MapPin: Icon, Package: Icon, Plus: Icon, Save: Icon, Trash2: Icon, Users: Icon,
Loader2: Icon, MapPin: Icon, Network: Icon, Package: Icon, Plus: Icon, Save: Icon,
Trash2: Icon, Users: Icon,
};
});

Expand Down
Loading