Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit d93fbbf

Browse files
authored
fix: LEAP-443: Support small changes in LSF (#298)
* Remove `viewingAllPredictions`, that's so legacy * Remove `panels`, they are not used anymore for a while * Remove `hydrated`, we don't need it anymore See HumanSignal/label-studio-frontend#1166 * Trigger LS build --------- Co-authored-by: hlomzik <hlomzik@users.noreply.github.com>
1 parent 49e1df7 commit d93fbbf

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

src/components/Label/Toolbar/Toolbar.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ export const Toolbar = observer(({ view, history, lsf, isLabelStream, hasInstruc
2727

2828
const task = view.dataStore.selected;
2929

30-
const { viewingAllAnnotations, viewingAllPredictions } =
31-
lsf?.annotationStore ?? {};
32-
33-
const viewAll = viewingAllAnnotations || viewingAllPredictions;
30+
const { viewingAll: viewAll } = lsf?.annotationStore ?? {};
3431

3532
return lsf?.noTask === false && task ? (
3633
<Block name="label-toolbar" mod={{ labelStream: isLabelStream }}>

src/sdk/dm-sdk.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
* interfaces: Dict<boolean>,
3434
* instruments: Dict<any>,
3535
* toolbar?: string,
36-
* panels?: Record<string, any>[]
3736
* spinner?: import("react").ReactNode
3837
* apiTransform?: Record<string, Record<string, Function>
3938
* tabControls?: { add?: boolean, delete?: boolean, edit?: boolean, duplicate?: boolean },
@@ -159,7 +158,6 @@ export class DataManager {
159158
this.showPreviews = config.showPreviews ?? false;
160159
this.polling = config.polling;
161160
this.toolbar = config.toolbar ?? DEFAULT_TOOLBAR;
162-
this.panels = config.panels;
163161
this.spinner = config.spinner;
164162
this.spinnerSize = config.spinnerSize;
165163
this.instruments = prepareInstruments(config.instruments ?? {});

src/sdk/lsf-sdk.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import {
1616
FF_DEV_1752,
1717
FF_DEV_2186,
18-
FF_DEV_2715,
1918
FF_DEV_2887,
2019
FF_DEV_3034,
2120
FF_DEV_3734,
@@ -163,8 +162,6 @@ export class LSFWrapper {
163162
const queuePosition = queueDone ? queueDone + 1 : queueLeft ? queueTotal - queueLeft + 1 : 1;
164163

165164
const lsfProperties = {
166-
// ensure that we are able to distinguish at component level if the app has fully hydrated.
167-
hydrated: false,
168165
user: options.user,
169166
config: this.lsfConfig,
170167
task: taskToLSFormat(this.task),
@@ -195,7 +192,6 @@ export class LSFWrapper {
195192
onSelectAnnotation: this.onSelectAnnotation,
196193
onNextTask: this.onNextTask,
197194
onPrevTask: this.onPrevTask,
198-
panels: this.datamanager.panels,
199195
};
200196

201197
this.initLabelStudio(lsfProperties);
@@ -378,13 +374,6 @@ export class LSFWrapper {
378374
this.lsf.initializeStore(lsfTask);
379375
this.setAnnotation(annotationID, fromHistory || isRejectedQueue);
380376
this.setLoading(false);
381-
if (isFF(FF_DEV_2715)) {
382-
this.setHydrated(true);
383-
}
384-
}
385-
386-
setHydrated(value) {
387-
this.lsf.setHydrated?.(value);
388377
}
389378

390379
/** @private */

0 commit comments

Comments
 (0)