@gen3/frontend 0.11.26 → 0.11.27
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/dist/cjs/index.js +36 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +6 -6
- package/dist/dts/components/SegmentedControl.stories.d.ts +374 -0
- package/dist/dts/components/SegmentedControl.stories.d.ts.map +1 -0
- package/dist/dts/components/SegmentedControl.stories.js +28 -0
- package/dist/dts/components/SegmentedControl.stories.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts +3 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js +46 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Repository/Repository.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/Repository/Repository.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/Repository/Repository.js +8 -0
- package/dist/dts/features/CohortBuilder/Repository/Repository.js.map +1 -0
- package/dist/dts/features/CohortBuilder/Repository/index.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/Repository/index.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/Repository/index.js +3 -0
- package/dist/dts/features/CohortBuilder/Repository/index.js.map +1 -0
- package/dist/dts/features/CohortBuilder/Repository/types.d.ts +12 -0
- package/dist/dts/features/CohortBuilder/Repository/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/Repository/types.js.map +1 -0
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +36 -1
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Repository/Repository.d.ts +4 -0
- package/dist/dts/pages/Repository/Repository.d.ts.map +1 -0
- package/dist/dts/pages/Repository/Repository.js +24 -0
- package/dist/dts/pages/Repository/Repository.js.map +1 -0
- package/dist/dts/pages/Repository/data.d.ts +4 -0
- package/dist/dts/pages/Repository/data.d.ts.map +1 -0
- package/dist/dts/{features/CohortBuilder/CohortManager/cohortActionHooks.js → pages/Repository/data.js} +55 -42
- package/dist/dts/pages/Repository/data.js.map +1 -0
- package/dist/dts/pages/Repository/index.d.ts +4 -0
- package/dist/dts/pages/Repository/index.d.ts.map +1 -0
- package/dist/dts/pages/Repository/index.js +4 -0
- package/dist/dts/pages/Repository/index.js.map +1 -0
- package/dist/dts/pages/Repository/types.d.ts +6 -0
- package/dist/dts/pages/Repository/types.d.ts.map +1 -0
- package/dist/dts/pages/Repository/types.js +2 -0
- package/dist/dts/pages/Repository/types.js.map +1 -0
- package/dist/dts/types/icons.d.ts +2 -2
- package/dist/dts/types/icons.d.ts.map +1 -1
- package/dist/dts/types/icons.js +2 -2
- package/dist/dts/types/icons.js.map +1 -1
- package/dist/esm/index.js +37 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +0 -64
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +0 -1
- package/dist/dts/components/DropdownMenu/DropdownMenu.js +0 -38
- package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +0 -1
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +0 -2
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +0 -1
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +0 -141
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +0 -1
- package/dist/dts/components/DropdownMenu/index.d.ts +0 -3
- package/dist/dts/components/DropdownMenu/index.d.ts.map +0 -1
- package/dist/dts/components/DropdownMenu/index.js +0 -3
- package/dist/dts/components/DropdownMenu/index.js.map +0 -1
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts +0 -7
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +0 -1
- package/dist/dts/components/MessageCards/ErrorMessage.js +0 -8
- package/dist/dts/components/MessageCards/ErrorMessage.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +0 -20
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +0 -37
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +0 -9
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +0 -122
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +0 -19
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +0 -52
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +0 -10
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +0 -37
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +0 -13
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +0 -33
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +0 -7
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +0 -5
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +0 -5
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +0 -5
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/index.js +0 -4
- package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +0 -13
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +0 -15
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +0 -8
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +0 -32
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +0 -190
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +0 -2
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +0 -145
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +0 -29
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +0 -79
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +0 -5
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/style.js +0 -21
- package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +0 -49
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager.d.ts +0 -6
- package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager.js +0 -8
- package/dist/dts/features/CohortBuilder/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +0 -64
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +0 -572
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +0 -41
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +0 -162
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +0 -1
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +0 -284
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +0 -1
- /package/dist/dts/features/CohortBuilder/{CohortManager → Repository}/types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,WAAW,EAAE,0BAA0B,CAAC;IACxC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACtD,OAAO,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/lib/session/session.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/lib/session/session.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAsBxD,eAAO,MAAM,aAAa,qBAUzB,CAAC;AAuBF,eAAO,MAAM,cAAc,oCAE1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,oBAStB,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,kBAAgB,EAChB,oBAAoB,MAAM,IAAI,YAqB/B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;CAM9B,CAAC;AA2CF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAAI,0HAO7B,oBAAoB,4CAkMtB,CAAC"}
|
|
@@ -57,6 +57,7 @@ import { GEN3_FENCE_API, GEN3_REDIRECT_URL, Modals, selectUserAuthStatus, showMo
|
|
|
57
57
|
import { Center, Loader } from '@mantine/core';
|
|
58
58
|
import { MinutesToMilliseconds } from '../../utils';
|
|
59
59
|
import { useWorkspaceResourceMonitor } from '../../components/Providers/ResourceMonitor';
|
|
60
|
+
var ACTIVITY_CHANNEL = 'gen3-user-activity';
|
|
60
61
|
export var logoutSession = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
61
62
|
var accessToken;
|
|
62
63
|
return __generator(this, function (_a) {
|
|
@@ -196,6 +197,27 @@ export var SessionProvider = function (_a) {
|
|
|
196
197
|
return selectUserAuthStatus(state);
|
|
197
198
|
});
|
|
198
199
|
var _h = useState(Date.now()), mostRecentActivityTimestamp = _h[0], setMostRecentActivityTimestamp = _h[1];
|
|
200
|
+
var broadcastChannelRef = useRef(null);
|
|
201
|
+
// Initialize BroadcastChannel for cross-tab communication
|
|
202
|
+
// any user event on one tab or window will update mostRecentActivityTimestamp
|
|
203
|
+
useEffect(function () {
|
|
204
|
+
if (typeof window !== 'undefined') {
|
|
205
|
+
broadcastChannelRef.current = new BroadcastChannel(ACTIVITY_CHANNEL);
|
|
206
|
+
// Listen for activity updates from other tabs
|
|
207
|
+
var handleActivityMessage_1 = function (event) {
|
|
208
|
+
if (event.data.type === 'activity-update') {
|
|
209
|
+
setMostRecentActivityTimestamp(event.data.timestamp);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
broadcastChannelRef.current.addEventListener('message', handleActivityMessage_1);
|
|
213
|
+
return function () {
|
|
214
|
+
if (broadcastChannelRef.current) {
|
|
215
|
+
broadcastChannelRef.current.removeEventListener('message', handleActivityMessage_1);
|
|
216
|
+
broadcastChannelRef.current.close();
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}, []);
|
|
199
221
|
var _j = useState(Date.now()), mostRecentSessionRefreshTimestamp = _j[0], setMostRecentSessionRefreshTimestamp = _j[1];
|
|
200
222
|
var inactiveTimeLimitMilliseconds = MinutesToMilliseconds(inactiveTimeLimit);
|
|
201
223
|
var workspaceInactivityTimeLimitMilliseconds = MinutesToMilliseconds(workspaceInactivityTimeLimit);
|
|
@@ -242,15 +264,28 @@ export var SessionProvider = function (_a) {
|
|
|
242
264
|
if (updateSessionIntervalMilliseconds <= 0)
|
|
243
265
|
return; // do not poll if updateSessionInterval is 0
|
|
244
266
|
var updateUserActivity = function () {
|
|
245
|
-
|
|
267
|
+
var timestamp = Date.now();
|
|
268
|
+
setMostRecentActivityTimestamp(timestamp);
|
|
269
|
+
if (broadcastChannelRef.current) {
|
|
270
|
+
broadcastChannelRef.current.postMessage({
|
|
271
|
+
type: 'activity-update',
|
|
272
|
+
timestamp: timestamp,
|
|
273
|
+
});
|
|
274
|
+
}
|
|
246
275
|
};
|
|
247
276
|
window.addEventListener('mousedown', updateUserActivity);
|
|
248
277
|
window.addEventListener('keypress', updateUserActivity);
|
|
249
278
|
window.addEventListener('updateUserActivity', updateUserActivity);
|
|
279
|
+
window.addEventListener('scroll', updateUserActivity);
|
|
280
|
+
window.addEventListener('click', updateUserActivity);
|
|
281
|
+
window.addEventListener('touchstart', updateUserActivity);
|
|
250
282
|
return function () {
|
|
251
283
|
window.removeEventListener('mousedown', updateUserActivity);
|
|
252
284
|
window.removeEventListener('keypress', updateUserActivity);
|
|
253
285
|
window.removeEventListener('updateUserActivity', updateUserActivity);
|
|
286
|
+
window.removeEventListener('scroll', updateUserActivity);
|
|
287
|
+
window.removeEventListener('click', updateUserActivity);
|
|
288
|
+
window.removeEventListener('touchstart', updateUserActivity);
|
|
254
289
|
};
|
|
255
290
|
}, []); // only call on mount/dismount
|
|
256
291
|
useInterval(function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../src/lib/session/session.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EACZ,WAAW,EACX,UAAU,EACV,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;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BAAkB,EAAE,CAAC,CAAC,CAAC;gBAC9D,UAAU,EAAE,CAAC;gBACb,OAAO;YACT,CAAC;QACH,CAAC;QACD,8CAA8C;QAC9C,cAAc,CACZ,cAAc,EACd,iCAAiC,EACjC,UAAC,EAAU,IAAK,OAAA,oCAAoC,CAAC,EAAE,CAAC,EAAxC,CAAwC,CACzD,CAAC;QACF,aAAa,EAAE,CAAC;IAClB,CAAC,EACD,iCAAiC,GAAG,CAAC;QACnC,CAAC,CAAC,iCAAiC;QACnC,CAAC,CAAC,IAAI,CACT,CAAC;IAEF,IAAM,KAAK,GAAY,kBAAkB,CAAC;QACxC,6BACK,WAAW,KACd,aAAa,eAAA,EACb,UAAU,YAAA,IACV;IACJ,CAAC,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7C,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,CACL,KAAC,MAAM,IAAC,CAAC,EAAC,OAAO,YACd,iEAAiE,GAC3D,CACV,CAAC;IACJ,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,CACL,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAClC,QAAQ,GACe,CAC3B,CAAC;;QAEF,OAAO,CACL,KAAC,MAAM,IAAC,CAAC,EAAC,OAAO,YACf,KAAC,MAAM,KAAG,GACH,CACV,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Repository.d.ts","sourceRoot":"","sources":["../../../../src/pages/Repository/Repository.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAI9C,QAAA,MAAM,cAAc,GAAI,8DAKrB,mBAAmB,KAAG,GAAG,CAAC,OAuB5B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { NavPageLayout } from '../../features/Navigation';
|
|
14
|
+
import { Center } from '@mantine/core';
|
|
15
|
+
import { Repository } from '../../features/CohortBuilder';
|
|
16
|
+
var RepositoryPage = function (_a) {
|
|
17
|
+
var headerProps = _a.headerProps, footerProps = _a.footerProps, configuration = _a.configuration, headerMetadata = _a.headerMetadata;
|
|
18
|
+
if (configuration === undefined) {
|
|
19
|
+
return (_jsx(Center, { maw: 400, h: 100, mx: "auto", children: _jsx("div", { children: "Repository config is not defined. Page disabled" }) }));
|
|
20
|
+
}
|
|
21
|
+
return (_jsx(NavPageLayout, { headerProps: headerProps, footerProps: footerProps, headerMetadata: __assign(__assign({ title: 'Gen3 Repository Page', content: 'Repository Page', key: 'gen3-repository-page' }, (headerMetadata ? headerMetadata : {})), ((configuration === null || configuration === void 0 ? void 0 : configuration.headerMetadata) ? configuration.headerMetadata : {})), children: _jsx(Repository, __assign({}, configuration)) }));
|
|
22
|
+
};
|
|
23
|
+
export default RepositoryPage;
|
|
24
|
+
//# sourceMappingURL=Repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Repository.js","sourceRoot":"","sources":["../../../../src/pages/Repository/Repository.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,IAAM,cAAc,GAAG,UAAC,EAKF;QAJpB,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,cAAc,oBAAA;IAEd,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,CACL,KAAC,MAAM,IAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAC,MAAM,YACjC,4EAA0D,GACnD,CACV,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,aAAa,IACN,WAAW,aAAA,EAAE,WAAW,aAAA,EAC9B,cAAc,sBACZ,KAAK,EAAE,sBAAsB,EAC7B,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,sBAAsB,IACxB,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,GACtC,CAAC,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,cAAc,EAAC,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,aAGxE,KAAC,UAAU,eAAK,aAAa,EAAI,GACnB,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/pages/Repository/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAU1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAc9C,eAAO,MAAM,gCAAgC,EAAE,kBAAkB,CAC/D,mBAAmB,CA8BpB,CAAC"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
13
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
14
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34,47 +45,49 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
46
|
}
|
|
36
47
|
};
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export var useAddUnsavedCohort = function () {
|
|
46
|
-
var coreDispatch = useCoreDispatch();
|
|
47
|
-
return function () {
|
|
48
|
-
coreDispatch(addNewDefaultUnsavedCohort());
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
export var useSetActiveCohort = function () {
|
|
52
|
-
var coreDispatch = useCoreDispatch();
|
|
53
|
-
var handleCohortChange = useDeepCompareCallback(function (id) {
|
|
54
|
-
coreDispatch(setActiveCohort(id));
|
|
55
|
-
}, [coreDispatch]);
|
|
56
|
-
return handleCohortChange;
|
|
48
|
+
import { getNavPageLayoutPropsFromConfig } from '../../lib/common/staticProps';
|
|
49
|
+
import ContentSource from '../../lib/content';
|
|
50
|
+
import { GEN3_COMMONS_NAME } from '@gen3/core';
|
|
51
|
+
import { GuppyDataAccessMode, } from '../../features/CohortBuilder/types';
|
|
52
|
+
var DefaultHeaderMetadata = {
|
|
53
|
+
title: 'Gen3 Repository Page',
|
|
54
|
+
content: 'Repository Page',
|
|
55
|
+
key: 'gen3-repository-page',
|
|
57
56
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
coreDispatch(removeCohort({}));
|
|
63
|
-
}, [coreDispatch]);
|
|
64
|
-
var handleDelete = useDeepCompareCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
|
-
return __generator(this, function (_a) {
|
|
66
|
-
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
67
|
-
// only delete cohort from BE if it's been saved before
|
|
68
|
-
deleteCohort();
|
|
69
|
-
resolve();
|
|
70
|
-
})];
|
|
71
|
-
});
|
|
72
|
-
}); }, [currentCohort, deleteCohort]);
|
|
73
|
-
return handleDelete;
|
|
57
|
+
var DefaultAccessControlConfiguration = {
|
|
58
|
+
dataMode: GuppyDataAccessMode.REGULAR,
|
|
59
|
+
tierLimit: -1,
|
|
60
|
+
showAccessLevelControl: false,
|
|
74
61
|
};
|
|
75
|
-
export var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
return
|
|
79
|
-
|
|
80
|
-
|
|
62
|
+
export var RepositoryPageGetServerSideProps = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
+
var repositoryConfiguration, _a, err_1, _b;
|
|
64
|
+
var _c, _d;
|
|
65
|
+
return __generator(this, function (_e) {
|
|
66
|
+
switch (_e.label) {
|
|
67
|
+
case 0:
|
|
68
|
+
_e.trys.push([0, 3, , 5]);
|
|
69
|
+
return [4 /*yield*/, ContentSource.getContentDatabase().get("".concat(GEN3_COMMONS_NAME, "/repository.json"))];
|
|
70
|
+
case 1:
|
|
71
|
+
repositoryConfiguration = _e.sent();
|
|
72
|
+
_c = {};
|
|
73
|
+
_a = [{}];
|
|
74
|
+
return [4 /*yield*/, getNavPageLayoutPropsFromConfig()];
|
|
75
|
+
case 2: return [2 /*return*/, (_c.props = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_e.sent())])), { configuration: repositoryConfiguration,
|
|
76
|
+
// headerMetadata: cohortBuilderConfiguration.headerMetadata,
|
|
77
|
+
accessControl: __assign({}, DefaultAccessControlConfiguration) }]),
|
|
78
|
+
_c)];
|
|
79
|
+
case 3:
|
|
80
|
+
err_1 = _e.sent();
|
|
81
|
+
if (err_1 instanceof Error) {
|
|
82
|
+
console.warn('Explorer config cannot be read', err_1);
|
|
83
|
+
}
|
|
84
|
+
_d = {};
|
|
85
|
+
_b = [{}];
|
|
86
|
+
return [4 /*yield*/, getNavPageLayoutPropsFromConfig()];
|
|
87
|
+
case 4: return [2 /*return*/, (_d.props = __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_e.sent())])), { configuration: undefined }]),
|
|
88
|
+
_d)];
|
|
89
|
+
case 5: return [2 /*return*/];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}); };
|
|
93
|
+
//# sourceMappingURL=data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../src/pages/Repository/data.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAEL,mBAAmB,GACpB,MAAM,oCAAoC,CAAC;AAG5C,IAAM,qBAAqB,GAAG;IAC5B,KAAK,EAAE,sBAAsB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,GAAG,EAAE,sBAAsB;CAC5B,CAAC;AAEF,IAAM,iCAAiC,GAA+B;IACpE,QAAQ,EAAE,mBAAmB,CAAC,OAAO;IACrC,SAAS,EAAE,CAAC,CAAC;IACb,sBAAsB,EAAE,KAAK;CAC9B,CAAC;AAEF,MAAM,CAAC,IAAM,gCAAgC,GAEzC;;;;;;;gBAGE,qBAAM,aAAa,CAAC,kBAAkB,EAAE,CAAC,GAAG,CAC1C,UAAG,iBAAiB,qBAAkB,CACvC,EAAA;;gBAHG,uBAAuB,GAC3B,SAEC;;;gBAIK,qBAAM,+BAA+B,EAAE,EAAA;oBAF/C,uBACE,QAAK,6DACA,CAAC,SAAuC,CAAC,OAE5C,aAAa,EAAE,uBAAuB;wBACtC,8DAA8D;wBAC9D,aAAa,eACR,iCAAiC,KAEvC;yBACD;;;gBAEF,IAAI,KAAG,YAAY,KAAK,EAAE,CAAC;oBACzB,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,KAAG,CAAC,CAAC;gBACtD,CAAC;;;gBAGO,qBAAM,+BAA+B,EAAE,EAAA;oBAF/C,uBACE,QAAK,6DACA,CAAC,SAAuC,CAAC,OAC5C,aAAa,EAAE,SAAS,IACzB;yBACD;;;;KAEL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/Repository/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/Repository/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NavPageLayoutProps } from '../../features/Navigation';
|
|
2
|
+
import { RepositoryConfiguration } from '../../features/CohortBuilder/Repository/types';
|
|
3
|
+
export interface RepositoryPageProps extends NavPageLayoutProps {
|
|
4
|
+
configuration?: RepositoryConfiguration;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/pages/Repository/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAExF,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/pages/Repository/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MdAdd as AddIcon, MdClose as CloseIcon, MdContentCopy as CopyIcon, MdDelete as DeleteIcon, MdDownload as DownloadIcon, MdFileUpload as UploadIcon, MdLibraryAdd as AddFacetIcon, MdLockOutline as LockOutlineIcon, MdWarning as WarningTriangleIcon } from 'react-icons/md';
|
|
1
|
+
import { MdAdd as AddIcon, MdBarChart as BarChartIcon, MdClose as CloseIcon, MdContentCopy as CopyIcon, MdDelete as DeleteIcon, MdDownload as DownloadIcon, MdFileUpload as UploadIcon, MdLibraryAdd as AddFacetIcon, MdLockOutline as LockOutlineIcon, MdTrendingDown as SurvivalChartIcon, MdWarning as WarningTriangleIcon } from 'react-icons/md';
|
|
2
2
|
import { RiErrorWarningFill as WarningMessageIcon } from 'react-icons/ri';
|
|
3
3
|
import { FaCircle as CircleIcon, FaPlus as PlusIcon } from 'react-icons/fa';
|
|
4
|
-
export { AddIcon, AddFacetIcon,
|
|
4
|
+
export { AddIcon, AddFacetIcon, BarChartIcon, CircleIcon, CloseIcon, CopyIcon, DownloadIcon, DeleteIcon, LockOutlineIcon, PlusIcon, SurvivalChartIcon, UploadIcon, WarningTriangleIcon, WarningMessageIcon, };
|
|
5
5
|
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/types/icons.ts"],"names":[],"mappings":"AACA,OAAO,EAC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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// Icons that are part of the Gen3 FEF and not are not configurable.
|
|
2
|
-
import { MdAdd as AddIcon, MdClose as CloseIcon, MdContentCopy as CopyIcon, MdDelete as DeleteIcon, MdDownload as DownloadIcon, MdFileUpload as UploadIcon, MdLibraryAdd as AddFacetIcon, MdLockOutline as LockOutlineIcon, MdWarning as WarningTriangleIcon, } from 'react-icons/md';
|
|
2
|
+
import { MdAdd as AddIcon, MdBarChart as BarChartIcon, MdClose as CloseIcon, MdContentCopy as CopyIcon, MdDelete as DeleteIcon, MdDownload as DownloadIcon, MdFileUpload as UploadIcon, MdLibraryAdd as AddFacetIcon, MdLockOutline as LockOutlineIcon, MdTrendingDown as SurvivalChartIcon, MdWarning as WarningTriangleIcon, } from 'react-icons/md';
|
|
3
3
|
import { RiErrorWarningFill as WarningMessageIcon } from 'react-icons/ri';
|
|
4
4
|
import { FaCircle as CircleIcon, FaPlus as PlusIcon } from 'react-icons/fa';
|
|
5
|
-
export { AddIcon, AddFacetIcon,
|
|
5
|
+
export { AddIcon, AddFacetIcon, BarChartIcon, CircleIcon, CloseIcon, CopyIcon, DownloadIcon, DeleteIcon, LockOutlineIcon, PlusIcon, SurvivalChartIcon, UploadIcon, WarningTriangleIcon, WarningMessageIcon, };
|
|
6
6
|
//# sourceMappingURL=icons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/types/icons.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,OAAO,IAAI,SAAS,EACpB,aAAa,IAAI,QAAQ,EACzB,QAAQ,IAAI,UAAU,EACtB,UAAU,IAAI,YAAY,EAC1B,YAAY,IAAI,UAAU,EAC1B,YAAY,IAAI,YAAY,EAC5B,aAAa,IAAI,eAAe,EAChC,SAAS,IAAI,mBAAmB,GACjC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE5E,OAAO,EACL,OAAO,EACP,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/types/icons.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,UAAU,IAAI,YAAY,EAC1B,OAAO,IAAI,SAAS,EACpB,aAAa,IAAI,QAAQ,EACzB,QAAQ,IAAI,UAAU,EACtB,UAAU,IAAI,YAAY,EAC1B,YAAY,IAAI,UAAU,EAC1B,YAAY,IAAI,YAAY,EAC5B,aAAa,IAAI,eAAe,EAChC,cAAc,IAAI,iBAAiB,EACnC,SAAS,IAAI,mBAAmB,GACjC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE5E,OAAO,EACL,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,eAAe,EACf,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,GACnB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { createContext, useState, useMemo, useEffect, useCallback, useContext,
|
|
3
|
+
import React__default, { createContext, useState, useMemo, useEffect, useRef, useCallback, useContext, createElement, forwardRef, useReducer } from 'react';
|
|
4
4
|
import { useUserAuth, useCoreSelector, selectUserDetails, useGetAuthzMappingsQuery, fetchFence, isFetchError, WorkspaceStatus, useGetWorkspaceStatusQuery, useGetWorkspacePayModelsQuery, useTerminateWorkspaceMutation, selectRequestedWorkspaceStatus, selectRequestedWorkspaceStatusTimestamp, useCoreDispatch, setActiveWorkspaceStatus, RequestedWorkspaceStatus, setRequestedWorkspaceStatus, isTimeGreaterThan, useGetCSRFQuery, useLazyFetchUserDetailsQuery, selectUserAuthStatus, GEN3_REDIRECT_URL, GEN3_FENCE_API, showModal, Modals, isAuthenticated, useGetLoginProvidersQuery, hideModal, selectCurrentModal, fieldNameToTitle, isOperationWithField, extractEnumFilterValue, selectIndexedFilterByName, selectShouldShareFilters, selectSharedFilters, updateCohortFilter as updateCohortFilter$1, isOperatorWithFieldAndArrayOfOperands, isUnion, removeCohortFilter as removeCohortFilter$1, trimFirstFieldNameToTitle, selectAllCohortFiltersCollapsed, Accessibility, toggleCohortBuilderAllFilters, setShouldShareFilters, useIsUserLoggedIn, GEN3_DOMAIN, useDataLibrary, DataLibraryStoreMode, buildListItemsGroupedByDataset, extractFileDatasetsInRecords, useGetMDSQuery, selectAuthzMappingData, useGetAggMDSQuery, useAskQuestionMutation, useGetIndexAggMDSQuery, useGetTagsQuery, useGetRawDataAndTotalCountsQuery, selectIndexFilters, isJSONValue, downloadFromGuppyToBlob, downloadJSONDataFromGuppy, toggleCohortBuilderCategoryFilter, selectCohortFilterExpanded, setCohortFilterCombineMode, selectCohortFilterCombineMode, selectCohortFilters, setCohortFilter as setCohortFilter$1, clearCohortFilters as clearCohortFilters$1, handleOperation, selectAvailableCohorts, selectCurrentCohortId as selectCurrentCohortId$1, selectCurrentCohortModified, selectCurrentCohortSaved, setCohortIndexFilters, setCurrentCohortId as setCurrentCohortId$1, selectCurrentCohortName as selectCurrentCohortName$1, useGetAggsQuery, useGetAggsNoFilterSelfQuery, isIntersection, useGetCountsQuery, selectAllCohorts as selectAllCohorts$1, selectCurrentCohort as selectCurrentCohort$1, isIndexedFilterSetEmpty, removeCohort as removeCohort$1, updateCohortName as updateCohortName$1, createNewCohort as createNewCohort$1, duplicateCohort, setSharedFilters, usePrevious, selectHeadersWithCSRFToken, GEN3_GUPPY_API, useLaunchWorkspaceMutation, selectActiveWorkspaceStatus, isFetchBaseQueryError, setActiveWorkspace, getCurrentTimestamp, selectWorkspaceStatusFromService, selectActiveWorkspaceId, useGetWorkspaceOptionsQuery, GEN3_WORKSPACE_API, useGetExternalLoginsQuery, useSetCurrentPayModelMutation, PodStatus, PodConditionType, isWorkspaceRunningOrStopping, GEN3_API, GEN3_COMMONS_NAME, CohortStorage, createAppStore, getRemoteSupportServiceRegistry, isHttpStatusError, MissingServiceConfigurationError, useLazyGetAggsNoFilterSelfQuery, useCreateRequestMutation, buildGetAggregationQuery, processHistogramResponse, roundHistogramResponse, selectCSRFToken, useUserRequestQuery, getGen3AppId, createGen3AppWithOwnStore, useGeneralGQLQuery, createAppApiForRTKQ, useGetDictionaryQuery, useGetMetadataByIdQuery, createGen3App, CoreProvider, fetchJSONDataFromURL, HttpMethod, groupSharedFields, useGetCredentialsQuery, useRemoveCredentialMutation, useAddNewCredentialMutation, useGetProjectsDetailsQuery, useGetSubmissionsQuery, isCohortItem, isFileItem, fetchFencePresignedURL, HTTPError, getFederatedLoginStatus, queryMultipleMDSRecords, GEN3_MANIFEST_API, extractIndexFromDataLibraryCohort, isFilterSet, getNumberOfItemsInDatalist, isAdditionalDataItem, useLazyGetCrosswalkDataQuery } from '@gen3/core';
|
|
5
5
|
import { LoadingOverlay, Card, Group, Avatar, Text, Checkbox, Stack, Center, Loader, Tooltip, UnstyledButton, ThemeIcon, Box, Select, Button, Divider, Textarea, FileButton, Anchor, Modal, Grid, Table, ColorSwatch, useMantineTheme, Accordion, Switch, SegmentedControl as SegmentedControl$1, ActionIcon, Badge, TextInput, NumberInput, RangeSlider, MultiSelect, Tabs, SimpleGrid, Highlight, MantineProvider, Flex, Menu, Alert, Drawer, CopyButton, factory, useProps, getStyleObject, Paper, useCombobox, Combobox, ScrollArea, Autocomplete, Title, Transition, rem, Stepper, Spoiler, Image as Image$1, NavLink, List, createTheme, Pagination, FileInput, CloseButton } from '@mantine/core';
|
|
6
6
|
import { useDeepCompareEffect, useDeepCompareMemo, useDeepCompareCallback } from 'use-deep-compare';
|
|
@@ -860,6 +860,7 @@ const workspaceShutdownAlertLimit = 30000; // 5 minutes: 5 * 60 * 1000 TODO Figu
|
|
|
860
860
|
}
|
|
861
861
|
};
|
|
862
862
|
|
|
863
|
+
const ACTIVITY_CHANNEL = 'gen3-user-activity';
|
|
863
864
|
const logoutSession = async ()=>{
|
|
864
865
|
// logged in using credentials then execute credentials logout first
|
|
865
866
|
const accessToken = getCookie('credentials_token');
|
|
@@ -943,6 +944,27 @@ const UPDATE_SESSION_LIMIT = MinutesToMilliseconds(5);
|
|
|
943
944
|
const [getUserDetails] = useLazyFetchUserDetailsQuery(); // Fetch user details
|
|
944
945
|
const userStatus = useCoreSelector((state)=>selectUserAuthStatus(state));
|
|
945
946
|
const [mostRecentActivityTimestamp, setMostRecentActivityTimestamp] = useState(Date.now());
|
|
947
|
+
const broadcastChannelRef = useRef(null);
|
|
948
|
+
// Initialize BroadcastChannel for cross-tab communication
|
|
949
|
+
// any user event on one tab or window will update mostRecentActivityTimestamp
|
|
950
|
+
useEffect(()=>{
|
|
951
|
+
if (typeof window !== 'undefined') {
|
|
952
|
+
broadcastChannelRef.current = new BroadcastChannel(ACTIVITY_CHANNEL);
|
|
953
|
+
// Listen for activity updates from other tabs
|
|
954
|
+
const handleActivityMessage = (event)=>{
|
|
955
|
+
if (event.data.type === 'activity-update') {
|
|
956
|
+
setMostRecentActivityTimestamp(event.data.timestamp);
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
broadcastChannelRef.current.addEventListener('message', handleActivityMessage);
|
|
960
|
+
return ()=>{
|
|
961
|
+
if (broadcastChannelRef.current) {
|
|
962
|
+
broadcastChannelRef.current.removeEventListener('message', handleActivityMessage);
|
|
963
|
+
broadcastChannelRef.current.close();
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
}, []);
|
|
946
968
|
const [mostRecentSessionRefreshTimestamp, setMostRecentSessionRefreshTimestamp] = useState(Date.now());
|
|
947
969
|
const inactiveTimeLimitMilliseconds = MinutesToMilliseconds(inactiveTimeLimit);
|
|
948
970
|
const workspaceInactivityTimeLimitMilliseconds = MinutesToMilliseconds(workspaceInactivityTimeLimit);
|
|
@@ -979,15 +1001,28 @@ const UPDATE_SESSION_LIMIT = MinutesToMilliseconds(5);
|
|
|
979
1001
|
updateSession();
|
|
980
1002
|
if (updateSessionIntervalMilliseconds <= 0) return; // do not poll if updateSessionInterval is 0
|
|
981
1003
|
const updateUserActivity = ()=>{
|
|
982
|
-
|
|
1004
|
+
const timestamp = Date.now();
|
|
1005
|
+
setMostRecentActivityTimestamp(timestamp);
|
|
1006
|
+
if (broadcastChannelRef.current) {
|
|
1007
|
+
broadcastChannelRef.current.postMessage({
|
|
1008
|
+
type: 'activity-update',
|
|
1009
|
+
timestamp
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
983
1012
|
};
|
|
984
1013
|
window.addEventListener('mousedown', updateUserActivity);
|
|
985
1014
|
window.addEventListener('keypress', updateUserActivity);
|
|
986
1015
|
window.addEventListener('updateUserActivity', updateUserActivity);
|
|
1016
|
+
window.addEventListener('scroll', updateUserActivity);
|
|
1017
|
+
window.addEventListener('click', updateUserActivity);
|
|
1018
|
+
window.addEventListener('touchstart', updateUserActivity);
|
|
987
1019
|
return ()=>{
|
|
988
1020
|
window.removeEventListener('mousedown', updateUserActivity);
|
|
989
1021
|
window.removeEventListener('keypress', updateUserActivity);
|
|
990
1022
|
window.removeEventListener('updateUserActivity', updateUserActivity);
|
|
1023
|
+
window.removeEventListener('scroll', updateUserActivity);
|
|
1024
|
+
window.removeEventListener('click', updateUserActivity);
|
|
1025
|
+
window.removeEventListener('touchstart', updateUserActivity);
|
|
991
1026
|
};
|
|
992
1027
|
}, []); // only call on mount/dismount
|
|
993
1028
|
useInterval(()=>{
|