@semiont/react-ui 0.5.5 → 0.5.7
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 +59 -55
- package/dist/{PdfAnnotationCanvas.client-CN3C3S55.js → PdfAnnotationCanvas.client-NIMALXNZ.js} +7 -27
- package/dist/PdfAnnotationCanvas.client-NIMALXNZ.js.map +1 -0
- package/dist/{ar-U2EXWUMQ.js → ar-SONK6MON.js} +3 -7
- package/dist/ar-SONK6MON.js.map +1 -0
- package/dist/{bn-DRJGV772.js → bn-ZKPRITNG.js} +3 -7
- package/dist/bn-ZKPRITNG.js.map +1 -0
- package/dist/{chunk-3Q3TUKWP.js → chunk-Y2EEAOMZ.js} +29 -29
- package/dist/{cs-PTWDM23V.js → cs-LPXQ7NHQ.js} +3 -7
- package/dist/cs-LPXQ7NHQ.js.map +1 -0
- package/dist/{da-KSNIKYSS.js → da-6TKY7MCY.js} +6 -10
- package/dist/da-6TKY7MCY.js.map +1 -0
- package/dist/{de-F2XBEWFY.js → de-C3GNII74.js} +3 -7
- package/dist/de-C3GNII74.js.map +1 -0
- package/dist/{el-DLD2GWAP.js → el-UBCXQDJ7.js} +3 -7
- package/dist/el-UBCXQDJ7.js.map +1 -0
- package/dist/{es-WLPYWGB5.js → es-BQ23TRI7.js} +11 -15
- package/dist/es-BQ23TRI7.js.map +1 -0
- package/dist/{fa-BAXHSDZG.js → fa-AFTBZB77.js} +3 -7
- package/dist/fa-AFTBZB77.js.map +1 -0
- package/dist/{fi-FCHSYVOT.js → fi-WOYNLZC2.js} +3 -7
- package/dist/fi-WOYNLZC2.js.map +1 -0
- package/dist/{fr-3UERBSL6.js → fr-NDSMIFJM.js} +3 -7
- package/dist/fr-NDSMIFJM.js.map +1 -0
- package/dist/{he-F6F3FV2K.js → he-VJXVRDOY.js} +3 -7
- package/dist/he-VJXVRDOY.js.map +1 -0
- package/dist/{hi-4BK6IK7Q.js → hi-BF6PHIE2.js} +3 -7
- package/dist/hi-BF6PHIE2.js.map +1 -0
- package/dist/{id-7ECCWP3J.js → id-GXG5QCZY.js} +3 -7
- package/dist/id-GXG5QCZY.js.map +1 -0
- package/dist/index.css +103 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +271 -120
- package/dist/index.js +877 -698
- package/dist/index.js.map +1 -1
- package/dist/{it-234Z6XK6.js → it-XKHHCBAF.js} +3 -7
- package/dist/it-XKHHCBAF.js.map +1 -0
- package/dist/{ja-PJWQI4OQ.js → ja-TX7VM4XD.js} +3 -7
- package/dist/ja-TX7VM4XD.js.map +1 -0
- package/dist/{ko-APUEW2RS.js → ko-DNC7EQ7J.js} +3 -7
- package/dist/ko-DNC7EQ7J.js.map +1 -0
- package/dist/{ms-PJBZWZWD.js → ms-POZGBKPH.js} +3 -7
- package/dist/ms-POZGBKPH.js.map +1 -0
- package/dist/{nl-L4C3ZBCU.js → nl-IRMTKI7Z.js} +4 -11
- package/dist/nl-IRMTKI7Z.js.map +1 -0
- package/dist/{no-QE5N5KNG.js → no-ZUDJA4S6.js} +20 -24
- package/dist/no-ZUDJA4S6.js.map +1 -0
- package/dist/{pl-5Q2D23PD.js → pl-2NGAXL5U.js} +3 -7
- package/dist/pl-2NGAXL5U.js.map +1 -0
- package/dist/{pt-AIGUOIOC.js → pt-ABMCXZUM.js} +118 -122
- package/dist/pt-ABMCXZUM.js.map +1 -0
- package/dist/{ro-T56CSHTY.js → ro-VOJP6O5X.js} +3 -7
- package/dist/ro-VOJP6O5X.js.map +1 -0
- package/dist/{sv-L4TJQ2UH.js → sv-4HVFIIE5.js} +43 -47
- package/dist/sv-4HVFIIE5.js.map +1 -0
- package/dist/test-utils.js +2 -2
- package/dist/test-utils.js.map +1 -1
- package/dist/{th-6O7Y6O2Q.js → th-IFPZP3HQ.js} +3 -7
- package/dist/th-IFPZP3HQ.js.map +1 -0
- package/dist/{tr-D4CQCSNO.js → tr-2GYEAMJ4.js} +3 -7
- package/dist/tr-2GYEAMJ4.js.map +1 -0
- package/dist/{uk-2HMQG6ND.js → uk-XCJBVLLD.js} +3 -7
- package/dist/uk-XCJBVLLD.js.map +1 -0
- package/dist/{vi-XVJ4RUEJ.js → vi-4FR7CB2F.js} +3 -7
- package/dist/vi-4FR7CB2F.js.map +1 -0
- package/dist/{zh-K2KDPGHK.js → zh-NSKFOINB.js} +3 -7
- package/dist/zh-NSKFOINB.js.map +1 -0
- package/package.json +17 -13
- package/src/components/Button/__tests__/Button.test.tsx +0 -2
- package/src/components/CodeMirrorRenderer.tsx +2 -0
- package/src/components/ErrorBoundary.tsx +0 -9
- package/src/components/ProtectedErrorBoundary.css +119 -0
- package/src/components/ProtectedErrorBoundary.tsx +24 -15
- package/src/components/__tests__/AnnotateReferencesProgressWidget.test.tsx +0 -1
- package/src/components/__tests__/ErrorBoundary.test.tsx +20 -13
- package/src/components/__tests__/LiveRegion.hooks.test.tsx +1 -1
- package/src/components/__tests__/ProtectedErrorBoundary.test.tsx +2 -1
- package/src/components/__tests__/ResizeHandle.test.tsx +0 -1
- package/src/components/__tests__/SessionExpiryBanner.test.tsx +0 -1
- package/src/components/__tests__/StatusDisplay.test.tsx +0 -1
- package/src/components/__tests__/Toast.test.tsx +2 -3
- package/src/components/__tests__/Toolbar.test.tsx +0 -1
- package/src/components/annotation/annotations.css +14 -0
- package/src/components/annotation-popups/__tests__/JsonLdView.test.tsx +3 -5
- package/src/components/annotation-popups/__tests__/SharedPopupElements.test.tsx +0 -1
- package/src/components/branding/__tests__/SemiontBranding.test.tsx +1 -2
- package/src/components/layout/__tests__/LeftSidebar.test.tsx +5 -6
- package/src/components/layout/__tests__/PageLayout.test.tsx +1 -3
- package/src/components/layout/__tests__/SkipLinks.a11y.test.tsx +8 -8
- package/src/components/layout/__tests__/UnifiedHeader.test.tsx +12 -1
- package/src/components/modals/__tests__/KeyboardShortcutsHelpModal.test.tsx +0 -1
- package/src/components/modals/__tests__/PermissionDeniedModal.test.tsx +3 -4
- package/src/components/modals/__tests__/ResourceSearchModal.test.tsx +1 -2
- package/src/components/modals/__tests__/SearchModal.basic.test.tsx +1 -1
- package/src/components/modals/__tests__/SearchModal.keyboard.test.tsx +0 -5
- package/src/components/modals/__tests__/SearchModal.search-wiring.test.tsx +1 -2
- package/src/components/modals/__tests__/SearchModal.visual.test.tsx +2 -2
- package/src/components/modals/__tests__/SessionExpiredModal.test.tsx +0 -1
- package/src/components/navigation/NavigationMenu.tsx +1 -1
- package/src/components/navigation/__tests__/Footer.a11y.test.tsx +4 -0
- package/src/components/navigation/__tests__/Footer.test.tsx +3 -6
- package/src/components/navigation/__tests__/NavigationMenu.a11y.test.tsx +1 -1
- package/src/components/navigation/__tests__/NavigationMenu.test.tsx +7 -9
- package/src/components/navigation/__tests__/ObservableLink.test.tsx +0 -1
- package/src/components/navigation/__tests__/SimpleNavigation.test.tsx +1 -2
- package/src/components/navigation/__tests__/SortableResourceTab.test.tsx +0 -1
- package/src/components/pdf-annotation/PdfAnnotationCanvas.tsx +6 -4
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.test.tsx +10 -19
- package/src/components/resource/AnnotateView.tsx +35 -37
- package/src/components/resource/BrowseView.tsx +31 -31
- package/src/components/resource/__tests__/AnnotationHistory.test.tsx +0 -1
- package/src/components/resource/__tests__/BrowseView.test.tsx +12 -14
- package/src/components/resource/__tests__/HistoryEvent.test.tsx +0 -5
- package/src/components/resource/__tests__/ResourceViewer.mode-switch.test.tsx +4 -6
- package/src/components/resource/__tests__/event-formatting.test.ts +1 -1
- package/src/components/resource/panels/CollaborationPanel.tsx +1 -1
- package/src/components/resource/panels/JsonLdPanel.tsx +33 -16
- package/src/components/resource/panels/ReferencesPanel.tsx +1 -1
- package/src/components/resource/panels/__tests__/AssessmentEntry.test.tsx +4 -5
- package/src/components/resource/panels/__tests__/AssessmentPanel.test.tsx +8 -7
- package/src/components/resource/panels/__tests__/AssistSection.test.tsx +14 -10
- package/src/components/resource/panels/__tests__/CollaborationPanel.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/CommentEntry.test.tsx +31 -18
- package/src/components/resource/panels/__tests__/CommentsPanel.test.tsx +7 -6
- package/src/components/resource/panels/__tests__/HighlightEntry.test.tsx +5 -6
- package/src/components/resource/panels/__tests__/HighlightPanel.annotationProgress.test.tsx +19 -13
- package/src/components/resource/panels/__tests__/JsonLdPanel.test.tsx +95 -426
- package/src/components/resource/panels/__tests__/PanelHeader.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/ReferenceEntry.test.tsx +5 -5
- package/src/components/resource/panels/__tests__/ReferencesPanel.test.tsx +40 -7
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +4 -4
- package/src/components/resource/panels/__tests__/StatisticsPanel.test.tsx +30 -32
- package/src/components/resource/panels/__tests__/TagEntry.test.tsx +6 -6
- package/src/components/resource/panels/__tests__/TaggingPanel.test.tsx +7 -6
- package/src/components/settings/__tests__/SettingsPanel.test.tsx +0 -1
- package/src/components/viewers/__tests__/ImageViewer.test.tsx +0 -1
- package/src/features/admin-exchange/__tests__/AdminExchangePage.test.tsx +7 -10
- package/src/features/admin-exchange/__tests__/ImportProgress.test.tsx +38 -27
- package/src/features/admin-exchange/components/ImportProgress.tsx +28 -34
- package/src/features/auth/__tests__/SignInForm.a11y.test.tsx +2 -0
- package/src/features/auth/__tests__/SignUpForm.a11y.test.tsx +11 -12
- package/src/features/auth/__tests__/SignUpForm.test.tsx +3 -3
- package/src/features/moderate-tag-schemas/components/TagSchemasPage.tsx +1 -0
- package/src/features/moderation-linked-data/__tests__/LinkedDataPage.test.tsx +11 -9
- package/src/features/resource-compose/__tests__/ResourceComposePage.test.tsx +2 -1
- package/src/features/resource-compose/components/ResourceComposePage.tsx +36 -9
- package/src/features/resource-compose/state/compose-page-state-unit.ts +5 -8
- package/src/features/resource-discovery/__tests__/ResourceCard.test.tsx +0 -1
- package/src/features/resource-discovery/__tests__/ResourceDiscoveryPage.test.tsx +33 -35
- package/src/features/resource-discovery/components/ResourceDiscoveryPage.tsx +12 -11
- package/src/features/resource-discovery/state/__tests__/discover-state-unit.test.ts +204 -11
- package/src/features/resource-discovery/state/discover-state-unit.ts +70 -11
- package/src/features/resource-viewer/__tests__/ResourceViewerPage.test.tsx +2 -2
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +10 -7
- package/src/features/resource-viewer/state/__tests__/resource-viewer-page-state-unit.test.ts +37 -1
- package/src/features/resource-viewer/state/resource-viewer-page-state-unit.ts +14 -7
- package/src/integrations/__tests__/css-modules-helper.test.tsx +2 -3
- package/src/integrations/__tests__/styled-components-theme.test.ts +1 -3
- package/src/styles/features/exchange.css +0 -30
- package/src/styles/index.css +1 -0
- package/translations/ar.json +1 -3
- package/translations/bn.json +1 -3
- package/translations/cs.json +1 -3
- package/translations/da.json +4 -6
- package/translations/de.json +1 -3
- package/translations/el.json +1 -3
- package/translations/es.json +9 -11
- package/translations/fa.json +1 -3
- package/translations/fi.json +1 -3
- package/translations/fr.json +1 -3
- package/translations/he.json +1 -3
- package/translations/hi.json +1 -3
- package/translations/id.json +1 -3
- package/translations/it.json +1 -3
- package/translations/ja.json +1 -3
- package/translations/ko.json +1 -3
- package/translations/ms.json +1 -3
- package/translations/nl.json +2 -7
- package/translations/no.json +18 -20
- package/translations/pl.json +1 -3
- package/translations/pt.json +116 -118
- package/translations/ro.json +1 -3
- package/translations/sv.json +41 -43
- package/translations/th.json +1 -3
- package/translations/tr.json +1 -3
- package/translations/uk.json +1 -3
- package/translations/vi.json +1 -3
- package/translations/zh.json +1 -3
- package/dist/PdfAnnotationCanvas.client-CN3C3S55.js.map +0 -1
- package/dist/ar-U2EXWUMQ.js.map +0 -1
- package/dist/bn-DRJGV772.js.map +0 -1
- package/dist/cs-PTWDM23V.js.map +0 -1
- package/dist/da-KSNIKYSS.js.map +0 -1
- package/dist/de-F2XBEWFY.js.map +0 -1
- package/dist/el-DLD2GWAP.js.map +0 -1
- package/dist/es-WLPYWGB5.js.map +0 -1
- package/dist/fa-BAXHSDZG.js.map +0 -1
- package/dist/fi-FCHSYVOT.js.map +0 -1
- package/dist/fr-3UERBSL6.js.map +0 -1
- package/dist/he-F6F3FV2K.js.map +0 -1
- package/dist/hi-4BK6IK7Q.js.map +0 -1
- package/dist/id-7ECCWP3J.js.map +0 -1
- package/dist/it-234Z6XK6.js.map +0 -1
- package/dist/ja-PJWQI4OQ.js.map +0 -1
- package/dist/ko-APUEW2RS.js.map +0 -1
- package/dist/ms-PJBZWZWD.js.map +0 -1
- package/dist/nl-L4C3ZBCU.js.map +0 -1
- package/dist/no-QE5N5KNG.js.map +0 -1
- package/dist/pl-5Q2D23PD.js.map +0 -1
- package/dist/pt-AIGUOIOC.js.map +0 -1
- package/dist/ro-T56CSHTY.js.map +0 -1
- package/dist/sv-L4TJQ2UH.js.map +0 -1
- package/dist/th-6O7Y6O2Q.js.map +0 -1
- package/dist/tr-D4CQCSNO.js.map +0 -1
- package/dist/uk-2HMQG6ND.js.map +0 -1
- package/dist/vi-XVJ4RUEJ.js.map +0 -1
- package/dist/zh-K2KDPGHK.js.map +0 -1
- /package/dist/{chunk-3Q3TUKWP.js.map → chunk-Y2EEAOMZ.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
|
|
2
2
|
import type { MockedFunction } from 'vitest';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { render, screen,
|
|
4
|
+
import { render, screen, waitFor } from '@testing-library/react';
|
|
5
5
|
import userEvent from '@testing-library/user-event';
|
|
6
6
|
import '@testing-library/jest-dom';
|
|
7
7
|
import { CommentsPanel } from '../CommentsPanel';
|
|
8
|
-
import type {
|
|
8
|
+
import type { EventBus } from '@semiont/core';
|
|
9
9
|
import { createTestSemiontWrapper } from '../../../../test-utils';
|
|
10
10
|
|
|
11
|
-
import type { Annotation } from '@semiont/core';
|
|
11
|
+
import type { Annotation, AnnotationId } from '@semiont/core';
|
|
12
12
|
|
|
13
13
|
// Composition-based event tracker
|
|
14
14
|
interface TrackedEvent {
|
|
@@ -56,7 +56,7 @@ vi.mock('../../../../contexts/TranslationContext', () => ({
|
|
|
56
56
|
TranslationProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
57
57
|
}));
|
|
58
58
|
|
|
59
|
-
// Mock @semiont/
|
|
59
|
+
// Mock @semiont/http-transport utilities
|
|
60
60
|
vi.mock('@semiont/core', async () => {
|
|
61
61
|
const actual = await vi.importActual('@semiont/core');
|
|
62
62
|
return {
|
|
@@ -68,7 +68,7 @@ vi.mock('@semiont/core', async () => {
|
|
|
68
68
|
|
|
69
69
|
// Mock CommentEntry component to simplify testing
|
|
70
70
|
vi.mock('../CommentEntry', () => ({
|
|
71
|
-
CommentEntry: ({ comment, onClick,
|
|
71
|
+
CommentEntry: ({ comment, onClick, onCommentHover }: any) => (
|
|
72
72
|
<div
|
|
73
73
|
data-testid={`comment-${comment.id}`}
|
|
74
74
|
onClick={() => onClick()}
|
|
@@ -91,10 +91,11 @@ const mockGetTargetSelector = getTargetSelector as MockedFunction<typeof getTarg
|
|
|
91
91
|
// Test data fixtures
|
|
92
92
|
const createMockComment = (id: string, start: number, end: number): Annotation => ({
|
|
93
93
|
'@context': 'http://www.w3.org/ns/anno.jsonld',
|
|
94
|
-
id,
|
|
94
|
+
id: id as AnnotationId,
|
|
95
95
|
type: 'Annotation',
|
|
96
96
|
motivation: 'commenting',
|
|
97
97
|
creator: {
|
|
98
|
+
'@type': 'Person',
|
|
98
99
|
name: `user${id}@example.com`,
|
|
99
100
|
},
|
|
100
101
|
created: `2024-01-0${id.slice(-1)}T10:00:00Z`,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
|
2
|
-
import
|
|
3
|
-
import { screen, fireEvent } from '@testing-library/react';
|
|
2
|
+
import { screen } from '@testing-library/react';
|
|
4
3
|
import '@testing-library/jest-dom';
|
|
5
4
|
import { renderWithProviders } from '../../../../test-utils';
|
|
6
5
|
import userEvent from '@testing-library/user-event';
|
|
7
|
-
import type { components } from '@semiont/core';
|
|
8
6
|
|
|
9
|
-
import type { Annotation } from '@semiont/core';
|
|
7
|
+
import type { Annotation, AnnotationId } from '@semiont/core';
|
|
10
8
|
|
|
11
|
-
// Mock @semiont/
|
|
9
|
+
// Mock @semiont/http-transport
|
|
12
10
|
vi.mock('@semiont/core', async () => {
|
|
13
11
|
const actual = await vi.importActual('@semiont/core');
|
|
14
12
|
return {
|
|
@@ -25,10 +23,11 @@ const mockGetAnnotationExactText = getAnnotationExactText as MockedFunction<type
|
|
|
25
23
|
|
|
26
24
|
const createMockHighlight = (overrides?: Partial<Annotation>): Annotation => ({
|
|
27
25
|
'@context': 'http://www.w3.org/ns/anno.jsonld',
|
|
28
|
-
id: 'highlight-1',
|
|
26
|
+
id: 'highlight-1' as AnnotationId,
|
|
29
27
|
type: 'Annotation',
|
|
30
28
|
motivation: 'highlighting',
|
|
31
29
|
creator: {
|
|
30
|
+
'@type': 'Person',
|
|
32
31
|
name: 'alice@example.com',
|
|
33
32
|
},
|
|
34
33
|
created: '2024-06-15T12:00:00Z',
|
|
@@ -16,9 +16,8 @@ import React from 'react';
|
|
|
16
16
|
import { screen } from '@testing-library/react';
|
|
17
17
|
import { renderWithProviders } from '../../../../test-utils';
|
|
18
18
|
import { HighlightPanel } from '../HighlightPanel';
|
|
19
|
-
import type { components } from '@semiont/core';
|
|
20
19
|
|
|
21
|
-
import type { Annotation } from '@semiont/core';
|
|
20
|
+
import type { Annotation, AnnotationId } from '@semiont/core';
|
|
22
21
|
|
|
23
22
|
// Mock translations - simulates useTranslations('HighlightPanel')
|
|
24
23
|
// The mock receives keys like 'title', 'noHighlights', etc. and returns translated strings
|
|
@@ -55,7 +54,9 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
55
54
|
|
|
56
55
|
mockAnnotations = [
|
|
57
56
|
{
|
|
58
|
-
|
|
57
|
+
'@context': 'http://www.w3.org/ns/anno.jsonld',
|
|
58
|
+
type: 'Annotation',
|
|
59
|
+
id: 'highlight-1' as AnnotationId,
|
|
59
60
|
motivation: 'highlighting',
|
|
60
61
|
target: {
|
|
61
62
|
source: 'resource-1',
|
|
@@ -78,7 +79,7 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
78
79
|
pendingAnnotation={null}
|
|
79
80
|
isAssisting={true}
|
|
80
81
|
progress={{
|
|
81
|
-
|
|
82
|
+
stage: 'analyzing',
|
|
82
83
|
percentage: 30,
|
|
83
84
|
message: 'Analyzing text for highlights...',
|
|
84
85
|
}}
|
|
@@ -129,7 +130,7 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
129
130
|
pendingAnnotation={null}
|
|
130
131
|
isAssisting={false}
|
|
131
132
|
progress={{
|
|
132
|
-
|
|
133
|
+
stage: 'complete',
|
|
133
134
|
percentage: 100,
|
|
134
135
|
message: 'Complete! Created 14 highlights',
|
|
135
136
|
}}
|
|
@@ -150,7 +151,8 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
150
151
|
pendingAnnotation={null}
|
|
151
152
|
isAssisting={true}
|
|
152
153
|
progress={{
|
|
153
|
-
|
|
154
|
+
stage: 'analyzing',
|
|
155
|
+
percentage: 0,
|
|
154
156
|
message: 'Analyzing...',
|
|
155
157
|
requestParams: [
|
|
156
158
|
{ label: 'Instructions', value: 'Find important points' },
|
|
@@ -203,7 +205,8 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
203
205
|
pendingAnnotation={null}
|
|
204
206
|
isAssisting={true}
|
|
205
207
|
progress={{
|
|
206
|
-
|
|
208
|
+
stage: 'analyzing',
|
|
209
|
+
percentage: 0,
|
|
207
210
|
message: 'Analyzing...',
|
|
208
211
|
}}
|
|
209
212
|
annotateMode={true}
|
|
@@ -219,7 +222,8 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
219
222
|
pendingAnnotation={null}
|
|
220
223
|
isAssisting={true}
|
|
221
224
|
progress={{
|
|
222
|
-
|
|
225
|
+
stage: 'analyzing',
|
|
226
|
+
percentage: 0,
|
|
223
227
|
message: 'Analyzing...',
|
|
224
228
|
}}
|
|
225
229
|
annotateMode={false}
|
|
@@ -254,7 +258,8 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
254
258
|
pendingAnnotation={null}
|
|
255
259
|
isAssisting={false}
|
|
256
260
|
progress={{
|
|
257
|
-
|
|
261
|
+
stage: 'complete',
|
|
262
|
+
percentage: 100,
|
|
258
263
|
message: 'Done!',
|
|
259
264
|
}}
|
|
260
265
|
annotateMode={true}
|
|
@@ -274,7 +279,7 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
274
279
|
pendingAnnotation={null}
|
|
275
280
|
isAssisting={true}
|
|
276
281
|
progress={{
|
|
277
|
-
|
|
282
|
+
stage: 'started',
|
|
278
283
|
percentage: 0,
|
|
279
284
|
message: 'Starting...',
|
|
280
285
|
}}
|
|
@@ -291,7 +296,7 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
291
296
|
pendingAnnotation={null}
|
|
292
297
|
isAssisting={true}
|
|
293
298
|
progress={{
|
|
294
|
-
|
|
299
|
+
stage: 'analyzing',
|
|
295
300
|
percentage: 50,
|
|
296
301
|
message: 'Analyzing...',
|
|
297
302
|
}}
|
|
@@ -309,7 +314,7 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
309
314
|
pendingAnnotation={null}
|
|
310
315
|
isAssisting={false}
|
|
311
316
|
progress={{
|
|
312
|
-
|
|
317
|
+
stage: 'complete',
|
|
313
318
|
percentage: 100,
|
|
314
319
|
message: 'Complete!',
|
|
315
320
|
}}
|
|
@@ -330,7 +335,8 @@ describe('HighlightPanel + AssistSection Integration', () => {
|
|
|
330
335
|
pendingAnnotation={null}
|
|
331
336
|
isAssisting={true}
|
|
332
337
|
progress={{
|
|
333
|
-
|
|
338
|
+
stage: 'analyzing',
|
|
339
|
+
percentage: 0,
|
|
334
340
|
message: 'Analyzing...',
|
|
335
341
|
}}
|
|
336
342
|
annotateMode={true}
|