@xynolog/react-ui 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -46
- package/package.json +12 -9
- package/src/components/Button/Button.tsx +0 -188
- package/src/components/Button/__tests__/Button.test.tsx +0 -449
- package/src/components/CodeMirrorRenderer.tsx +0 -536
- package/src/components/DelegateProgress.tsx +0 -308
- package/src/components/ErrorBoundary.tsx +0 -174
- package/src/components/ItemFoundLog.tsx +0 -42
- package/src/components/LiveRegion.tsx +0 -261
- package/src/components/ProtectedErrorBoundary.tsx +0 -114
- package/src/components/ResizeHandle.tsx +0 -167
- package/src/components/ResourceTagsInline.tsx +0 -120
- package/src/components/SessionExpiryBanner.tsx +0 -74
- package/src/components/SessionTimer.tsx +0 -17
- package/src/components/StatusDisplay.tsx +0 -131
- package/src/components/Toast.tsx +0 -217
- package/src/components/Toolbar.tsx +0 -194
- package/src/components/UserMenuSkeleton.tsx +0 -13
- package/src/components/__tests__/DelegateProgress.denominator.test.tsx +0 -102
- package/src/components/__tests__/DelegateProgress.test.tsx +0 -649
- package/src/components/__tests__/ErrorBoundary.test.tsx +0 -565
- package/src/components/__tests__/LiveRegion.a11y.test.tsx +0 -258
- package/src/components/__tests__/LiveRegion.hooks.test.tsx +0 -140
- package/src/components/__tests__/ProtectedErrorBoundary.test.tsx +0 -225
- package/src/components/__tests__/ResizeHandle.test.tsx +0 -159
- package/src/components/__tests__/ResourceTagsInline.test.tsx +0 -325
- package/src/components/__tests__/SessionExpiryBanner.test.tsx +0 -124
- package/src/components/__tests__/SessionTimer.test.tsx +0 -199
- package/src/components/__tests__/StatusDisplay.test.tsx +0 -179
- package/src/components/__tests__/Toast.test.tsx +0 -96
- package/src/components/__tests__/Toolbar.test.tsx +0 -111
- package/src/components/__tests__/UserMenuSkeleton.test.tsx +0 -182
- package/src/components/annotation/AnchoredTextNotice.tsx +0 -36
- package/src/components/annotation/AnnotateToolbar.tsx +0 -531
- package/src/components/annotation/__tests__/AnnotateToolbar.display.test.tsx +0 -127
- package/src/components/annotation/__tests__/AnnotateToolbar.test.tsx +0 -304
- package/src/components/annotation-popups/JsonLdView.tsx +0 -127
- package/src/components/annotation-popups/SharedPopupElements.tsx +0 -131
- package/src/components/annotation-popups/__tests__/JsonLdView.test.tsx +0 -432
- package/src/components/annotation-popups/__tests__/SharedPopupElements.test.tsx +0 -297
- package/src/components/branding/XynologBranding.tsx +0 -41
- package/src/components/branding/__tests__/XynologBranding.test.tsx +0 -383
- package/src/components/error-states/ResourceErrorState.tsx +0 -30
- package/src/components/error-states/__tests__/ResourceErrorState.test.tsx +0 -102
- package/src/components/image-annotation/AnnotationOverlay.tsx +0 -307
- package/src/components/image-annotation/SvgDrawingCanvas.tsx +0 -514
- package/src/components/image-annotation/__tests__/AnnotationOverlay.click.test.tsx +0 -169
- package/src/components/image-annotation/__tests__/AnnotationOverlay.hover.test.tsx +0 -83
- package/src/components/image-annotation/__tests__/SvgDrawingCanvas.annotate-gate.test.tsx +0 -228
- package/src/components/image-annotation/__tests__/SvgDrawingCanvas.click.test.tsx +0 -204
- package/src/components/layout/LeftSidebar.tsx +0 -150
- package/src/components/layout/PageLayout.tsx +0 -49
- package/src/components/layout/SkipLinks.tsx +0 -36
- package/src/components/layout/UnifiedHeader.tsx +0 -151
- package/src/components/layout/__tests__/LeftSidebar.test.tsx +0 -426
- package/src/components/layout/__tests__/PageLayout.test.tsx +0 -311
- package/src/components/layout/__tests__/SkipLinks.a11y.test.tsx +0 -218
- package/src/components/layout/__tests__/UnifiedHeader.test.tsx +0 -555
- package/src/components/loading-states/ComposeLoadingState.tsx +0 -19
- package/src/components/loading-states/ResourceLoadingState.tsx +0 -13
- package/src/components/loading-states/__tests__/ComposeLoadingState.test.tsx +0 -37
- package/src/components/loading-states/__tests__/ResourceLoadingState.test.tsx +0 -31
- package/src/components/modals/ComposeStep.tsx +0 -245
- package/src/components/modals/ConfigureGatherStep.tsx +0 -110
- package/src/components/modals/ConfigureGenerationStep.tsx +0 -458
- package/src/components/modals/ConfigureSearchStep.tsx +0 -124
- package/src/components/modals/ContextSummary.tsx +0 -317
- package/src/components/modals/CorpusPane.tsx +0 -96
- package/src/components/modals/DiscardPrompt.tsx +0 -44
- package/src/components/modals/GatherContextStep.tsx +0 -480
- package/src/components/modals/KbIdentityConflictModal.tsx +0 -122
- package/src/components/modals/KeyboardShortcutsHelpModal.tsx +0 -238
- package/src/components/modals/PermissionDeniedModal.tsx +0 -207
- package/src/components/modals/ReferenceWizardModal.tsx +0 -656
- package/src/components/modals/ResourceGenerateModal.tsx +0 -457
- package/src/components/modals/SearchModal.tsx +0 -334
- package/src/components/modals/SearchResultsStep.tsx +0 -117
- package/src/components/modals/SessionEndedModal.tsx +0 -148
- package/src/components/modals/WizardFooter.tsx +0 -72
- package/src/components/modals/__tests__/ComposeStep.test.tsx +0 -187
- package/src/components/modals/__tests__/ConfigureGatherStep.test.tsx +0 -92
- package/src/components/modals/__tests__/ConfigureGenerationStep.test.tsx +0 -574
- package/src/components/modals/__tests__/ConfigureSearchStep.test.tsx +0 -124
- package/src/components/modals/__tests__/GatherContextStep.resource.test.tsx +0 -702
- package/src/components/modals/__tests__/KbIdentityConflictModal.test.tsx +0 -102
- package/src/components/modals/__tests__/KeyboardShortcutsHelpModal.test.tsx +0 -115
- package/src/components/modals/__tests__/PermissionDeniedModal.test.tsx +0 -218
- package/src/components/modals/__tests__/ReferenceWizardModal.test.tsx +0 -936
- package/src/components/modals/__tests__/ResourceGenerateModal.test.tsx +0 -532
- package/src/components/modals/__tests__/SearchModal.accessibility.test.tsx +0 -95
- package/src/components/modals/__tests__/SearchModal.basic.test.tsx +0 -84
- package/src/components/modals/__tests__/SearchModal.keyboard.test.tsx +0 -162
- package/src/components/modals/__tests__/SearchModal.search-wiring.test.tsx +0 -237
- package/src/components/modals/__tests__/SearchModal.translations.test.tsx +0 -91
- package/src/components/modals/__tests__/SearchResultsStep.test.tsx +0 -95
- package/src/components/modals/__tests__/SessionEndedModal.test.tsx +0 -171
- package/src/components/modals/__tests__/WizardFooter.test.tsx +0 -446
- package/src/components/modals/__tests__/search-modal-harness.ts +0 -82
- package/src/components/navigation/CollapsibleResourceNavigation.tsx +0 -364
- package/src/components/navigation/NavigationMenu.tsx +0 -66
- package/src/components/navigation/ObservableLink.tsx +0 -90
- package/src/components/navigation/SimpleNavigation.tsx +0 -169
- package/src/components/navigation/SortableResourceTab.tsx +0 -122
- package/src/components/navigation/__tests__/NavigationMenu.a11y.test.tsx +0 -302
- package/src/components/navigation/__tests__/NavigationMenu.test.tsx +0 -399
- package/src/components/navigation/__tests__/ObservableLink.test.tsx +0 -85
- package/src/components/navigation/__tests__/SimpleNavigation.test.tsx +0 -193
- package/src/components/navigation/__tests__/SortableResourceTab.test.tsx +0 -421
- package/src/components/pdf-annotation/PdfAnnotationCanvas.client.tsx +0 -10
- package/src/components/pdf-annotation/PdfAnnotationCanvas.tsx +0 -632
- package/src/components/pdf-annotation/PdfPageView.tsx +0 -527
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.annotate-gate.test.tsx +0 -295
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.pixels-before-anchoring.test.tsx +0 -166
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.test.tsx +0 -1719
- package/src/components/pdf-annotation/__tests__/estimate-slot-height.test.ts +0 -61
- package/src/components/pdf-annotation/__tests__/rects-for-page.test.ts +0 -110
- package/src/components/pdf-annotation/estimate-slot-height.ts +0 -31
- package/src/components/pdf-annotation/rects-for-page.ts +0 -50
- package/src/components/resource/AnnotateView.tsx +0 -373
- package/src/components/resource/AnnotationHistory.tsx +0 -169
- package/src/components/resource/BrowseView.tsx +0 -440
- package/src/components/resource/DownloadFileLink.tsx +0 -53
- package/src/components/resource/HistoryEvent.tsx +0 -186
- package/src/components/resource/ResourceViewer.tsx +0 -617
- package/src/components/resource/__tests__/AnnotateView.code-point-offsets.test.tsx +0 -482
- package/src/components/resource/__tests__/AnnotateView.embeddable.test.tsx +0 -78
- package/src/components/resource/__tests__/AnnotateView.focus.test.tsx +0 -147
- package/src/components/resource/__tests__/AnnotateView.registry.test.tsx +0 -143
- package/src/components/resource/__tests__/AnnotationHistory.test.tsx +0 -257
- package/src/components/resource/__tests__/BrowseView.code-point-offsets.test.tsx +0 -123
- package/src/components/resource/__tests__/BrowseView.embeddable.test.tsx +0 -76
- package/src/components/resource/__tests__/BrowseView.links.test.tsx +0 -84
- package/src/components/resource/__tests__/BrowseView.overlay-async.test.tsx +0 -165
- package/src/components/resource/__tests__/BrowseView.reference-hover.test.tsx +0 -200
- package/src/components/resource/__tests__/BrowseView.registry.test.tsx +0 -57
- package/src/components/resource/__tests__/BrowseView.test.tsx +0 -915
- package/src/components/resource/__tests__/HistoryEvent.test.tsx +0 -571
- package/src/components/resource/__tests__/ResourceViewer.delete-failure.test.tsx +0 -103
- package/src/components/resource/__tests__/ResourceViewer.embeddable.test.tsx +0 -250
- package/src/components/resource/__tests__/ResourceViewer.mode-switch.test.tsx +0 -262
- package/src/components/resource/__tests__/ResourceViewer.multi-mount-invalidation.test.tsx +0 -166
- package/src/components/resource/__tests__/ResourceViewer.registry.test.tsx +0 -112
- package/src/components/resource/__tests__/ResourceViewer.toolbar-opt-out.test.tsx +0 -207
- package/src/components/resource/__tests__/ResourceViewer.toolbar-prefs.test.tsx +0 -274
- package/src/components/resource/__tests__/annotation-interactions.test.tsx +0 -116
- package/src/components/resource/__tests__/browse-renderers.dispatch.test.tsx +0 -183
- package/src/components/resource/__tests__/browse-renderers.test.tsx +0 -47
- package/src/components/resource/__tests__/download-link.test.tsx +0 -171
- package/src/components/resource/__tests__/event-formatting.test.ts +0 -379
- package/src/components/resource/__tests__/inline-embedding.test.tsx +0 -133
- package/src/components/resource/__tests__/media-completeness.test.tsx +0 -144
- package/src/components/resource/annotate-renderers.tsx +0 -186
- package/src/components/resource/browse-renderers.tsx +0 -133
- package/src/components/resource/event-formatting.ts +0 -393
- package/src/components/resource/panels/AssessmentEntry.tsx +0 -127
- package/src/components/resource/panels/AssessmentPanel.tsx +0 -309
- package/src/components/resource/panels/CollaborationPanel.tsx +0 -228
- package/src/components/resource/panels/CommentEntry.tsx +0 -242
- package/src/components/resource/panels/CommentsPanel.tsx +0 -320
- package/src/components/resource/panels/DelegateSection.tsx +0 -282
- package/src/components/resource/panels/DelegateShell.tsx +0 -134
- package/src/components/resource/panels/HighlightEntry.tsx +0 -83
- package/src/components/resource/panels/HighlightPanel.tsx +0 -212
- package/src/components/resource/panels/JsonLdPanel.tsx +0 -119
- package/src/components/resource/panels/PanelHeader.tsx +0 -22
- package/src/components/resource/panels/ReferenceEntry.tsx +0 -232
- package/src/components/resource/panels/ReferencesPanel.tsx +0 -626
- package/src/components/resource/panels/ResourceInfoPanel.tsx +0 -433
- package/src/components/resource/panels/StatisticsPanel.tsx +0 -145
- package/src/components/resource/panels/TagEntry.tsx +0 -87
- package/src/components/resource/panels/TaggingPanel.tsx +0 -554
- package/src/components/resource/panels/UnifiedAnnotationsPanel.tsx +0 -384
- package/src/components/resource/panels/__tests__/AssessmentEntry.test.tsx +0 -292
- package/src/components/resource/panels/__tests__/AssessmentPanel.test.tsx +0 -685
- package/src/components/resource/panels/__tests__/CollaborationPanel.test.tsx +0 -685
- package/src/components/resource/panels/__tests__/CommentEntry.test.tsx +0 -750
- package/src/components/resource/panels/__tests__/CommentsPanel.test.tsx +0 -877
- package/src/components/resource/panels/__tests__/DelegateSection.test.tsx +0 -623
- package/src/components/resource/panels/__tests__/DelegateShell.test.tsx +0 -212
- package/src/components/resource/panels/__tests__/HighlightEntry.test.tsx +0 -236
- package/src/components/resource/panels/__tests__/HighlightPanel.annotationProgress.test.tsx +0 -506
- package/src/components/resource/panels/__tests__/HighlightPanel.out-of-order.test.tsx +0 -132
- package/src/components/resource/panels/__tests__/JsonLdPanel.test.tsx +0 -230
- package/src/components/resource/panels/__tests__/PanelHeader.test.tsx +0 -54
- package/src/components/resource/panels/__tests__/ReferenceEntry.test.tsx +0 -578
- package/src/components/resource/panels/__tests__/ReferencesPanel.headless.test.tsx +0 -193
- package/src/components/resource/panels/__tests__/ReferencesPanel.observable-flow.test.tsx +0 -193
- package/src/components/resource/panels/__tests__/ReferencesPanel.test.tsx +0 -1080
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +0 -812
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.text-layer.test.tsx +0 -106
- package/src/components/resource/panels/__tests__/StatisticsPanel.test.tsx +0 -329
- package/src/components/resource/panels/__tests__/TagEntry.test.tsx +0 -250
- package/src/components/resource/panels/__tests__/TaggingPanel.test.tsx +0 -772
- package/src/components/resource/panels/__tests__/UnifiedAnnotationsPanel.delegated-job.test.tsx +0 -207
- package/src/components/resource/panels/__tests__/UnifiedAnnotationsPanel.failure.test.tsx +0 -89
- package/src/components/resource/panels/__tests__/agent-label.test.ts +0 -136
- package/src/components/resource/panels/agent-label.ts +0 -35
- package/src/components/settings/SettingsPanel.tsx +0 -251
- package/src/components/settings/__tests__/SettingsPanel.test.tsx +0 -260
- package/src/components/viewers/ImageViewer.tsx +0 -18
- package/src/components/viewers/__tests__/ImageViewer.test.tsx +0 -57
- package/src/components/viewers/index.ts +0 -1
- package/src/features/auth/__tests__/AuthErrorDisplay.test.tsx +0 -181
- package/src/features/auth/components/AuthErrorDisplay.tsx +0 -89
- package/src/features/moderate-entity-tags/__tests__/EntityTagsPage.test.tsx +0 -387
- package/src/features/moderate-entity-tags/components/EntityTagsPage.tsx +0 -161
- package/src/features/moderate-entity-tags/state/__tests__/entity-tags-state-unit.test.ts +0 -183
- package/src/features/moderate-entity-tags/state/entity-tags-state-unit.ts +0 -73
- package/src/features/moderate-recent/__tests__/RecentDocumentsPage.test.tsx +0 -422
- package/src/features/moderate-recent/components/RecentDocumentsPage.tsx +0 -117
- package/src/features/moderate-tag-schemas/__tests__/TagSchemasPage.test.tsx +0 -481
- package/src/features/moderate-tag-schemas/components/TagSchemasPage.tsx +0 -161
- package/src/features/resource-compose/__tests__/ResourceComposePage.test.tsx +0 -600
- package/src/features/resource-compose/__tests__/UploadProgressBar.test.tsx +0 -256
- package/src/features/resource-compose/components/ResourceComposePage.tsx +0 -809
- package/src/features/resource-compose/components/UploadProgressBar.tsx +0 -125
- package/src/features/resource-compose/state/__tests__/compose-page-state-unit.test.ts +0 -195
- package/src/features/resource-compose/state/compose-page-state-unit.ts +0 -187
- package/src/features/resource-discovery/__tests__/ResourceCard.test.tsx +0 -338
- package/src/features/resource-discovery/__tests__/ResourceDiscoveryPage.test.tsx +0 -449
- package/src/features/resource-discovery/components/ResourceCard.tsx +0 -80
- package/src/features/resource-discovery/components/ResourceDiscoveryPage.tsx +0 -330
- package/src/features/resource-discovery/state/__tests__/discover-state-unit.test.ts +0 -477
- package/src/features/resource-discovery/state/discover-state-unit.ts +0 -162
- package/src/features/resource-viewer/__tests__/ResourceViewerPage.content-loading.test.tsx +0 -260
- package/src/features/resource-viewer/__tests__/ResourceViewerPage.test.tsx +0 -570
- package/src/features/resource-viewer/__tests__/generation-params.test.ts +0 -49
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +0 -1058
- package/src/features/resource-viewer/generation-params.ts +0 -23
- package/src/features/resource-viewer/hooks/__tests__/useResourceViewedReport.test.tsx +0 -77
- package/src/features/resource-viewer/hooks/useResourceViewedReport.ts +0 -38
- package/src/features/resource-viewer/state/__tests__/resource-loader-state-unit.test.ts +0 -178
- package/src/features/resource-viewer/state/__tests__/resource-viewer-page-state-unit.test.ts +0 -505
- package/src/features/resource-viewer/state/resource-loader-state-unit.ts +0 -93
- package/src/features/resource-viewer/state/resource-viewer-page-state-unit.ts +0 -156
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useState } from 'react';
|
|
4
|
-
import { useSessionExpiry, formatTime } from '@xynolog/react-ui';
|
|
5
|
-
|
|
6
|
-
export function SessionExpiryBanner() {
|
|
7
|
-
const { timeRemaining, isExpiringSoon } = useSessionExpiry();
|
|
8
|
-
const [dismissed, setDismissed] = useState(false);
|
|
9
|
-
const formattedTime = formatTime(timeRemaining);
|
|
10
|
-
|
|
11
|
-
// Don't show if:
|
|
12
|
-
// - Session is not expiring soon
|
|
13
|
-
// - User dismissed the banner
|
|
14
|
-
// - No time to display
|
|
15
|
-
if (!isExpiringSoon || dismissed || !formattedTime) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<div
|
|
21
|
-
className="xynolog-session-expiry-banner"
|
|
22
|
-
role="alert"
|
|
23
|
-
aria-live="polite"
|
|
24
|
-
data-visible="true"
|
|
25
|
-
>
|
|
26
|
-
<div className="xynolog-session-expiry-content">
|
|
27
|
-
<div className="xynolog-session-expiry-message">
|
|
28
|
-
<span className="xynolog-session-expiry-icon">
|
|
29
|
-
<svg
|
|
30
|
-
className="xynolog-icon"
|
|
31
|
-
fill="none"
|
|
32
|
-
stroke="currentColor"
|
|
33
|
-
viewBox="0 0 24 24"
|
|
34
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
35
|
-
>
|
|
36
|
-
<path
|
|
37
|
-
strokeLinecap="round"
|
|
38
|
-
strokeLinejoin="round"
|
|
39
|
-
strokeWidth={2}
|
|
40
|
-
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
41
|
-
/>
|
|
42
|
-
</svg>
|
|
43
|
-
</span>
|
|
44
|
-
<p className="xynolog-session-expiry-text">
|
|
45
|
-
<span className="xynolog-session-expiry-label">
|
|
46
|
-
Session expiring soon:
|
|
47
|
-
</span>{' '}
|
|
48
|
-
{formattedTime} remaining
|
|
49
|
-
</p>
|
|
50
|
-
</div>
|
|
51
|
-
<button
|
|
52
|
-
onClick={() => setDismissed(true)}
|
|
53
|
-
className="xynolog-session-expiry-dismiss"
|
|
54
|
-
aria-label="Dismiss warning"
|
|
55
|
-
>
|
|
56
|
-
<svg
|
|
57
|
-
className="xynolog-icon--small"
|
|
58
|
-
fill="none"
|
|
59
|
-
stroke="currentColor"
|
|
60
|
-
viewBox="0 0 24 24"
|
|
61
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
62
|
-
>
|
|
63
|
-
<path
|
|
64
|
-
strokeLinecap="round"
|
|
65
|
-
strokeLinejoin="round"
|
|
66
|
-
strokeWidth={2}
|
|
67
|
-
d="M6 18L18 6M6 6l12 12"
|
|
68
|
-
/>
|
|
69
|
-
</svg>
|
|
70
|
-
</button>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
);
|
|
74
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useSessionExpiry } from '../hooks/useSessionExpiry';
|
|
4
|
-
import { formatTime } from '../lib/formatTime';
|
|
5
|
-
|
|
6
|
-
export function SessionTimer() {
|
|
7
|
-
const { timeRemaining } = useSessionExpiry();
|
|
8
|
-
const formattedTime = formatTime(timeRemaining);
|
|
9
|
-
|
|
10
|
-
if (!formattedTime) return null;
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<div className="xynolog-session-timer">
|
|
14
|
-
Session: {formattedTime} remaining
|
|
15
|
-
</div>
|
|
16
|
-
);
|
|
17
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
4
|
-
import { useXynolog } from '../session/XynologProvider';
|
|
5
|
-
import { useObservable } from '../hooks/useObservable';
|
|
6
|
-
import './StatusDisplay.css';
|
|
7
|
-
|
|
8
|
-
interface StatusDisplayProps {
|
|
9
|
-
isFullyAuthenticated?: boolean;
|
|
10
|
-
isAuthenticated?: boolean;
|
|
11
|
-
hasValidGatewayToken?: boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface StatusData {
|
|
15
|
-
status: string;
|
|
16
|
-
version: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function StatusDisplay({
|
|
20
|
-
isFullyAuthenticated = false,
|
|
21
|
-
isAuthenticated = false,
|
|
22
|
-
hasValidGatewayToken = false,
|
|
23
|
-
}: StatusDisplayProps) {
|
|
24
|
-
const xynolog = useObservable(useXynolog().activeSession$)?.client;
|
|
25
|
-
const [data, setData] = useState<StatusData | null>(null);
|
|
26
|
-
const [loading, setLoading] = useState(true);
|
|
27
|
-
const [error, setError] = useState<Error | null>(null);
|
|
28
|
-
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
if (!xynolog) {
|
|
31
|
-
setLoading(false);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const fetchStatus = () => {
|
|
36
|
-
xynolog
|
|
37
|
-
.system!.status()
|
|
38
|
-
.then((result) => {
|
|
39
|
-
setData(result as StatusData);
|
|
40
|
-
setError(null);
|
|
41
|
-
setLoading(false);
|
|
42
|
-
})
|
|
43
|
-
.catch((err) => {
|
|
44
|
-
setError(err instanceof Error ? err : new Error(String(err)));
|
|
45
|
-
setLoading(false);
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
fetchStatus();
|
|
50
|
-
const interval = setInterval(fetchStatus, 30000);
|
|
51
|
-
return () => clearInterval(interval);
|
|
52
|
-
}, [xynolog]);
|
|
53
|
-
|
|
54
|
-
const getStatusContent = () => {
|
|
55
|
-
if (isAuthenticated && !hasValidGatewayToken) {
|
|
56
|
-
return '🚀 Frontend Status: Ready • Gateway: Please sign out and sign in again to reconnect';
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (!isFullyAuthenticated) {
|
|
60
|
-
return '🚀 Frontend Status: Ready • Gateway: Authentication required';
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (data) {
|
|
64
|
-
return `🚀 Frontend Status: Ready • Gateway: ${data.status} (v${data.version})`;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (loading) {
|
|
68
|
-
return '🚀 Frontend Status: Ready • Gateway: Connecting...';
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (error) {
|
|
72
|
-
const errorMessage = error.message;
|
|
73
|
-
if (
|
|
74
|
-
errorMessage.includes('401') ||
|
|
75
|
-
errorMessage.includes('Unauthorized')
|
|
76
|
-
) {
|
|
77
|
-
return '🚀 Frontend Status: Ready • Gateway: Please sign out and sign in again';
|
|
78
|
-
}
|
|
79
|
-
return '🚀 Frontend Status: Ready • Gateway: Connection failed';
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return '🚀 Frontend Status: Ready • Gateway: Unknown';
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
const getStatusType = ():
|
|
86
|
-
'warning' | 'info' | 'success' | 'loading' | 'error' => {
|
|
87
|
-
if (isAuthenticated && !hasValidGatewayToken) {
|
|
88
|
-
return 'warning';
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (!isFullyAuthenticated) {
|
|
92
|
-
return 'info';
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (data) {
|
|
96
|
-
return 'success';
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
if (loading) {
|
|
100
|
-
return 'loading';
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
return 'error';
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
return (
|
|
107
|
-
<section
|
|
108
|
-
className="xynolog-status-display"
|
|
109
|
-
data-status={getStatusType()}
|
|
110
|
-
role="status"
|
|
111
|
-
aria-live="polite"
|
|
112
|
-
aria-label="System status information"
|
|
113
|
-
>
|
|
114
|
-
<p className="xynolog-status-message">
|
|
115
|
-
<span className="sr-only">System status: </span>
|
|
116
|
-
{getStatusContent()}
|
|
117
|
-
</p>
|
|
118
|
-
{!isFullyAuthenticated ? (
|
|
119
|
-
<p className="xynolog-status-hint">Sign in to view gateway status</p>
|
|
120
|
-
) : error ? (
|
|
121
|
-
<p
|
|
122
|
-
className="xynolog-status-hint xynolog-status-error-hint"
|
|
123
|
-
role="alert"
|
|
124
|
-
>
|
|
125
|
-
<span className="sr-only">Error: </span>
|
|
126
|
-
Check that the gateway server is running and accessible
|
|
127
|
-
</p>
|
|
128
|
-
) : null}
|
|
129
|
-
</section>
|
|
130
|
-
);
|
|
131
|
-
}
|
package/src/components/Toast.tsx
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import React, { useEffect, useState } from 'react';
|
|
4
|
-
import { createPortal } from 'react-dom';
|
|
5
|
-
import './Toast.css';
|
|
6
|
-
|
|
7
|
-
export type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
8
|
-
|
|
9
|
-
export interface ToastMessage {
|
|
10
|
-
id: string;
|
|
11
|
-
message: string;
|
|
12
|
-
type: ToastType;
|
|
13
|
-
duration?: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface ToastProps {
|
|
17
|
-
toast: ToastMessage;
|
|
18
|
-
onClose: (id: string) => void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const icons = {
|
|
22
|
-
success: (
|
|
23
|
-
<svg
|
|
24
|
-
className="xynolog-toast-icon"
|
|
25
|
-
fill="none"
|
|
26
|
-
stroke="currentColor"
|
|
27
|
-
viewBox="0 0 24 24"
|
|
28
|
-
>
|
|
29
|
-
<path
|
|
30
|
-
strokeLinecap="round"
|
|
31
|
-
strokeLinejoin="round"
|
|
32
|
-
strokeWidth={2}
|
|
33
|
-
d="M5 13l4 4L19 7"
|
|
34
|
-
/>
|
|
35
|
-
</svg>
|
|
36
|
-
),
|
|
37
|
-
error: (
|
|
38
|
-
<svg
|
|
39
|
-
className="xynolog-toast-icon"
|
|
40
|
-
fill="none"
|
|
41
|
-
stroke="currentColor"
|
|
42
|
-
viewBox="0 0 24 24"
|
|
43
|
-
>
|
|
44
|
-
<path
|
|
45
|
-
strokeLinecap="round"
|
|
46
|
-
strokeLinejoin="round"
|
|
47
|
-
strokeWidth={2}
|
|
48
|
-
d="M6 18L18 6M6 6l12 12"
|
|
49
|
-
/>
|
|
50
|
-
</svg>
|
|
51
|
-
),
|
|
52
|
-
warning: (
|
|
53
|
-
<svg
|
|
54
|
-
className="xynolog-toast-icon"
|
|
55
|
-
fill="none"
|
|
56
|
-
stroke="currentColor"
|
|
57
|
-
viewBox="0 0 24 24"
|
|
58
|
-
>
|
|
59
|
-
<path
|
|
60
|
-
strokeLinecap="round"
|
|
61
|
-
strokeLinejoin="round"
|
|
62
|
-
strokeWidth={2}
|
|
63
|
-
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
64
|
-
/>
|
|
65
|
-
</svg>
|
|
66
|
-
),
|
|
67
|
-
info: (
|
|
68
|
-
<svg
|
|
69
|
-
className="xynolog-toast-icon"
|
|
70
|
-
fill="none"
|
|
71
|
-
stroke="currentColor"
|
|
72
|
-
viewBox="0 0 24 24"
|
|
73
|
-
>
|
|
74
|
-
<path
|
|
75
|
-
strokeLinecap="round"
|
|
76
|
-
strokeLinejoin="round"
|
|
77
|
-
strokeWidth={2}
|
|
78
|
-
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
79
|
-
/>
|
|
80
|
-
</svg>
|
|
81
|
-
),
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
function Toast({ toast, onClose }: ToastProps) {
|
|
85
|
-
useEffect(() => {
|
|
86
|
-
const timer = setTimeout(() => {
|
|
87
|
-
onClose(toast.id);
|
|
88
|
-
}, toast.duration || 3000);
|
|
89
|
-
|
|
90
|
-
return () => clearTimeout(timer);
|
|
91
|
-
}, [toast, onClose]);
|
|
92
|
-
|
|
93
|
-
return (
|
|
94
|
-
<div className="xynolog-toast" data-variant={toast.type} role="alert">
|
|
95
|
-
<div className="xynolog-toast-icon-wrapper">{icons[toast.type]}</div>
|
|
96
|
-
<p className="xynolog-toast-message">{toast.message}</p>
|
|
97
|
-
<button
|
|
98
|
-
onClick={() => onClose(toast.id)}
|
|
99
|
-
className="xynolog-toast-close"
|
|
100
|
-
aria-label="Close"
|
|
101
|
-
>
|
|
102
|
-
<svg
|
|
103
|
-
className="xynolog-toast-close-icon"
|
|
104
|
-
fill="none"
|
|
105
|
-
stroke="currentColor"
|
|
106
|
-
viewBox="0 0 24 24"
|
|
107
|
-
>
|
|
108
|
-
<path
|
|
109
|
-
strokeLinecap="round"
|
|
110
|
-
strokeLinejoin="round"
|
|
111
|
-
strokeWidth={2}
|
|
112
|
-
d="M6 18L18 6M6 6l12 12"
|
|
113
|
-
/>
|
|
114
|
-
</svg>
|
|
115
|
-
</button>
|
|
116
|
-
</div>
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface ToastContainerProps {
|
|
121
|
-
toasts: ToastMessage[];
|
|
122
|
-
onClose: (id: string) => void;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export function ToastContainer({ toasts, onClose }: ToastContainerProps) {
|
|
126
|
-
const [mounted, setMounted] = useState(false);
|
|
127
|
-
|
|
128
|
-
useEffect(() => {
|
|
129
|
-
setMounted(true);
|
|
130
|
-
return () => setMounted(false);
|
|
131
|
-
}, []);
|
|
132
|
-
|
|
133
|
-
if (!mounted) return null;
|
|
134
|
-
|
|
135
|
-
return createPortal(
|
|
136
|
-
<div className="xynolog-toast-container">
|
|
137
|
-
{toasts.map((toast) => (
|
|
138
|
-
<Toast key={toast.id} toast={toast} onClose={onClose} />
|
|
139
|
-
))}
|
|
140
|
-
</div>,
|
|
141
|
-
document.body,
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Toast context and hook for global toast management
|
|
146
|
-
interface ToastContextType {
|
|
147
|
-
showToast: (message: string, type?: ToastType, duration?: number) => void;
|
|
148
|
-
showSuccess: (message: string, duration?: number) => void;
|
|
149
|
-
showError: (message: string, duration?: number) => void;
|
|
150
|
-
showWarning: (message: string, duration?: number) => void;
|
|
151
|
-
showInfo: (message: string, duration?: number) => void;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
const ToastContext = React.createContext<ToastContextType | undefined>(
|
|
155
|
-
undefined,
|
|
156
|
-
);
|
|
157
|
-
|
|
158
|
-
export function ToastProvider({ children }: { children: React.ReactNode }) {
|
|
159
|
-
const [toasts, setToasts] = useState<ToastMessage[]>([]);
|
|
160
|
-
|
|
161
|
-
const showToast = React.useCallback(
|
|
162
|
-
(message: string, type: ToastType = 'info', duration?: number) => {
|
|
163
|
-
const id = Date.now().toString();
|
|
164
|
-
const newToast: ToastMessage =
|
|
165
|
-
duration !== undefined
|
|
166
|
-
? { id, message, type, duration }
|
|
167
|
-
: { id, message, type };
|
|
168
|
-
setToasts((prev) => [...prev, newToast]);
|
|
169
|
-
},
|
|
170
|
-
[],
|
|
171
|
-
);
|
|
172
|
-
|
|
173
|
-
const showSuccess = React.useCallback(
|
|
174
|
-
(message: string, duration?: number) =>
|
|
175
|
-
showToast(message, 'success', duration),
|
|
176
|
-
[showToast],
|
|
177
|
-
);
|
|
178
|
-
const showError = React.useCallback(
|
|
179
|
-
(message: string, duration?: number) =>
|
|
180
|
-
showToast(message, 'error', duration),
|
|
181
|
-
[showToast],
|
|
182
|
-
);
|
|
183
|
-
const showWarning = React.useCallback(
|
|
184
|
-
(message: string, duration?: number) =>
|
|
185
|
-
showToast(message, 'warning', duration),
|
|
186
|
-
[showToast],
|
|
187
|
-
);
|
|
188
|
-
const showInfo = React.useCallback(
|
|
189
|
-
(message: string, duration?: number) =>
|
|
190
|
-
showToast(message, 'info', duration),
|
|
191
|
-
[showToast],
|
|
192
|
-
);
|
|
193
|
-
|
|
194
|
-
const handleClose = React.useCallback((id: string) => {
|
|
195
|
-
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
196
|
-
}, []);
|
|
197
|
-
|
|
198
|
-
const contextValue = React.useMemo(
|
|
199
|
-
() => ({ showToast, showSuccess, showError, showWarning, showInfo }),
|
|
200
|
-
[showToast, showSuccess, showError, showWarning, showInfo],
|
|
201
|
-
);
|
|
202
|
-
|
|
203
|
-
return (
|
|
204
|
-
<ToastContext.Provider value={contextValue}>
|
|
205
|
-
{children}
|
|
206
|
-
<ToastContainer toasts={toasts} onClose={handleClose} />
|
|
207
|
-
</ToastContext.Provider>
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export function useToast() {
|
|
212
|
-
const context = React.useContext(ToastContext);
|
|
213
|
-
if (context === undefined) {
|
|
214
|
-
throw new Error('useToast must be used within a ToastProvider');
|
|
215
|
-
}
|
|
216
|
-
return context;
|
|
217
|
-
}
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import type { ReactNode } from 'react';
|
|
4
|
-
import { useTranslations } from '../contexts/TranslationContext';
|
|
5
|
-
import type { Theme } from '../contexts/ThemeContext';
|
|
6
|
-
import { useXynolog } from '../session/XynologProvider';
|
|
7
|
-
import type { ToolbarPanelType } from '../state/shell-state-unit';
|
|
8
|
-
import './toolbar/Toolbar.css';
|
|
9
|
-
|
|
10
|
-
type ToolbarContext = 'document' | 'simple';
|
|
11
|
-
|
|
12
|
-
export interface ToolbarProps<T extends string = string> {
|
|
13
|
-
context: ToolbarContext;
|
|
14
|
-
activePanel: T | null;
|
|
15
|
-
|
|
16
|
-
// Document context specific
|
|
17
|
-
isArchived?: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* What a page renders the host's panel container with (its `ToolbarPanels`
|
|
22
|
-
* prop): the open panel, the theme setting, and the page's own panels.
|
|
23
|
-
*/
|
|
24
|
-
export interface ToolbarPanelsProps {
|
|
25
|
-
activePanel: ToolbarPanelType | null;
|
|
26
|
-
theme: Theme;
|
|
27
|
-
children?: ReactNode;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Toolbar component for panel navigation
|
|
32
|
-
*
|
|
33
|
-
* @emits panel:toggle - Toggle panel visibility. Payload: { panel: string }
|
|
34
|
-
*/
|
|
35
|
-
export function Toolbar<T extends string = string>({
|
|
36
|
-
context,
|
|
37
|
-
activePanel,
|
|
38
|
-
isArchived = false,
|
|
39
|
-
}: ToolbarProps<T>) {
|
|
40
|
-
const t = useTranslations('Toolbar');
|
|
41
|
-
const xynolog = useXynolog();
|
|
42
|
-
|
|
43
|
-
const handlePanelToggle = (panel: string) => {
|
|
44
|
-
xynolog.emit('panel:toggle', { panel });
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<div className="xynolog-toolbar" data-context={context}>
|
|
49
|
-
{/* Document Context - show document-specific panels */}
|
|
50
|
-
{context === 'document' && (
|
|
51
|
-
<>
|
|
52
|
-
{/* Annotations Icon - unified panel for all annotation types */}
|
|
53
|
-
{!isArchived && (
|
|
54
|
-
<button
|
|
55
|
-
onClick={() => handlePanelToggle('annotations')}
|
|
56
|
-
className="xynolog-toolbar-button"
|
|
57
|
-
data-active={activePanel === 'annotations'}
|
|
58
|
-
data-panel="annotations"
|
|
59
|
-
aria-label={t('annotations')}
|
|
60
|
-
aria-pressed={activePanel === 'annotations'}
|
|
61
|
-
title={t('annotations')}
|
|
62
|
-
>
|
|
63
|
-
<span
|
|
64
|
-
className="xynolog-toolbar-icon xynolog-toolbar-icon-large"
|
|
65
|
-
aria-hidden="true"
|
|
66
|
-
>
|
|
67
|
-
A
|
|
68
|
-
</span>
|
|
69
|
-
</button>
|
|
70
|
-
)}
|
|
71
|
-
|
|
72
|
-
{/* Document Info Icon */}
|
|
73
|
-
<button
|
|
74
|
-
onClick={() => handlePanelToggle('info')}
|
|
75
|
-
className="xynolog-toolbar-button"
|
|
76
|
-
data-active={activePanel === 'info'}
|
|
77
|
-
data-panel="info"
|
|
78
|
-
aria-label={t('resourceInfo')}
|
|
79
|
-
aria-pressed={activePanel === 'info'}
|
|
80
|
-
title={t('resourceInfo')}
|
|
81
|
-
>
|
|
82
|
-
<span className="xynolog-toolbar-icon" aria-hidden="true">
|
|
83
|
-
ℹ️
|
|
84
|
-
</span>
|
|
85
|
-
</button>
|
|
86
|
-
|
|
87
|
-
{/* History Icon */}
|
|
88
|
-
<button
|
|
89
|
-
onClick={() => handlePanelToggle('history')}
|
|
90
|
-
className="xynolog-toolbar-button"
|
|
91
|
-
data-active={activePanel === 'history'}
|
|
92
|
-
data-panel="history"
|
|
93
|
-
aria-label={t('history')}
|
|
94
|
-
aria-pressed={activePanel === 'history'}
|
|
95
|
-
title={t('history')}
|
|
96
|
-
>
|
|
97
|
-
<span className="xynolog-toolbar-icon" aria-hidden="true">
|
|
98
|
-
📒
|
|
99
|
-
</span>
|
|
100
|
-
</button>
|
|
101
|
-
|
|
102
|
-
{/* JSON-LD Icon */}
|
|
103
|
-
<button
|
|
104
|
-
onClick={() => handlePanelToggle('jsonld')}
|
|
105
|
-
className="xynolog-toolbar-button"
|
|
106
|
-
data-active={activePanel === 'jsonld'}
|
|
107
|
-
data-panel="jsonld"
|
|
108
|
-
aria-label="JSON-LD"
|
|
109
|
-
aria-pressed={activePanel === 'jsonld'}
|
|
110
|
-
title="JSON-LD"
|
|
111
|
-
>
|
|
112
|
-
<span className="xynolog-toolbar-icon" aria-hidden="true">
|
|
113
|
-
🌐
|
|
114
|
-
</span>
|
|
115
|
-
</button>
|
|
116
|
-
|
|
117
|
-
{/* Collaboration Icon */}
|
|
118
|
-
<button
|
|
119
|
-
onClick={() => handlePanelToggle('collaboration')}
|
|
120
|
-
className="xynolog-toolbar-button"
|
|
121
|
-
data-active={activePanel === 'collaboration'}
|
|
122
|
-
data-panel="collaboration"
|
|
123
|
-
aria-label={t('collaboration')}
|
|
124
|
-
aria-pressed={activePanel === 'collaboration'}
|
|
125
|
-
title={t('collaboration')}
|
|
126
|
-
>
|
|
127
|
-
<span className="xynolog-toolbar-icon" aria-hidden="true">
|
|
128
|
-
👥
|
|
129
|
-
</span>
|
|
130
|
-
</button>
|
|
131
|
-
</>
|
|
132
|
-
)}
|
|
133
|
-
|
|
134
|
-
{/* Knowledge Base Icon - always visible */}
|
|
135
|
-
<button
|
|
136
|
-
onClick={() => handlePanelToggle('knowledge-base')}
|
|
137
|
-
className="xynolog-toolbar-button"
|
|
138
|
-
data-active={activePanel === 'knowledge-base'}
|
|
139
|
-
data-panel="knowledge-base"
|
|
140
|
-
aria-label={t('knowledgeBase')}
|
|
141
|
-
aria-pressed={activePanel === 'knowledge-base'}
|
|
142
|
-
title={t('knowledgeBase')}
|
|
143
|
-
>
|
|
144
|
-
<svg
|
|
145
|
-
className="xynolog-toolbar-icon"
|
|
146
|
-
aria-hidden="true"
|
|
147
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
148
|
-
fill="none"
|
|
149
|
-
viewBox="0 0 24 24"
|
|
150
|
-
strokeWidth={1.5}
|
|
151
|
-
stroke="currentColor"
|
|
152
|
-
width="20"
|
|
153
|
-
height="20"
|
|
154
|
-
>
|
|
155
|
-
<path
|
|
156
|
-
strokeLinecap="round"
|
|
157
|
-
strokeLinejoin="round"
|
|
158
|
-
d="M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 5.625c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"
|
|
159
|
-
/>
|
|
160
|
-
</svg>
|
|
161
|
-
</button>
|
|
162
|
-
|
|
163
|
-
{/* User Icon - always visible, appears above settings */}
|
|
164
|
-
<button
|
|
165
|
-
onClick={() => handlePanelToggle('user')}
|
|
166
|
-
className="xynolog-toolbar-button"
|
|
167
|
-
data-active={activePanel === 'user'}
|
|
168
|
-
data-panel="user"
|
|
169
|
-
aria-label={t('userAccount')}
|
|
170
|
-
aria-pressed={activePanel === 'user'}
|
|
171
|
-
title={t('userAccount')}
|
|
172
|
-
>
|
|
173
|
-
<span className="xynolog-toolbar-icon" aria-hidden="true">
|
|
174
|
-
👤
|
|
175
|
-
</span>
|
|
176
|
-
</button>
|
|
177
|
-
|
|
178
|
-
{/* Settings Icon - always visible without scrolling */}
|
|
179
|
-
<button
|
|
180
|
-
onClick={() => handlePanelToggle('settings')}
|
|
181
|
-
className="xynolog-toolbar-button"
|
|
182
|
-
data-active={activePanel === 'settings'}
|
|
183
|
-
data-panel="settings"
|
|
184
|
-
aria-label={t('settings')}
|
|
185
|
-
aria-pressed={activePanel === 'settings'}
|
|
186
|
-
title={t('settings')}
|
|
187
|
-
>
|
|
188
|
-
<span className="xynolog-toolbar-icon" aria-hidden="true">
|
|
189
|
-
⚙️
|
|
190
|
-
</span>
|
|
191
|
-
</button>
|
|
192
|
-
</div>
|
|
193
|
-
);
|
|
194
|
-
}
|