dce-reactkit 3.12.3 → 4.0.0-beta-logreviewer.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/dist/cjs/index.js +8550 -8958
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/cjs/types/components/Pagination.d.ts +9 -0
- package/dist/cjs/types/components/Tooltip.d.ts +1 -1
- package/dist/cjs/types/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +6 -0
- package/dist/cjs/types/helpers/cloneDeep.d.ts +8 -0
- package/dist/cjs/types/index.d.ts +14 -11
- package/dist/cjs/types/types/LogReviewerFilterState/ActionErrorFilterState.d.ts +13 -0
- package/dist/cjs/types/types/LogReviewerFilterState/AdvancedFilterState.d.ts +17 -0
- package/dist/cjs/types/types/LogReviewerFilterState/ContextFilterState.d.ts +6 -0
- package/dist/cjs/types/types/LogReviewerFilterState/DateFilterState.d.ts +13 -0
- package/dist/cjs/types/types/LogReviewerFilterState/TagFilterState.d.ts +4 -0
- package/dist/cjs/types/types/LogReviewerFilterState/index.d.ts +17 -0
- package/dist/cjs/types/types/ParamType.d.ts +10 -10
- package/dist/cjs/types/types/ReactKitErrorCode.d.ts +1 -15
- package/dist/esm/index.js +8544 -8950
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/esm/types/components/Pagination.d.ts +9 -0
- package/dist/esm/types/components/Tooltip.d.ts +1 -1
- package/dist/esm/types/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +6 -0
- package/dist/esm/types/helpers/cloneDeep.d.ts +8 -0
- package/dist/esm/types/index.d.ts +14 -11
- package/dist/esm/types/types/LogReviewerFilterState/ActionErrorFilterState.d.ts +13 -0
- package/dist/esm/types/types/LogReviewerFilterState/AdvancedFilterState.d.ts +17 -0
- package/dist/esm/types/types/LogReviewerFilterState/ContextFilterState.d.ts +6 -0
- package/dist/esm/types/types/LogReviewerFilterState/DateFilterState.d.ts +13 -0
- package/dist/esm/types/types/LogReviewerFilterState/TagFilterState.d.ts +4 -0
- package/dist/esm/types/types/LogReviewerFilterState/index.d.ts +17 -0
- package/dist/esm/types/types/ParamType.d.ts +10 -10
- package/dist/esm/types/types/ReactKitErrorCode.d.ts +1 -15
- package/dist/index.d.ts +218 -336
- package/package.json +6 -8
- package/src/components/AppWrapper.tsx +3 -1
- package/src/components/CheckboxButton.tsx +1 -1
- package/src/components/Dropdown.tsx +1 -1
- package/src/components/LogReviewer.tsx +1133 -1307
- package/src/components/Modal/index.tsx +1 -1
- package/src/components/Pagination.tsx +162 -0
- package/src/components/RadioButton.tsx +3 -1
- package/src/components/Tooltip.tsx +1 -1
- package/src/constants/LOG_REVIEW_GET_LOGS_ROUTE.ts +9 -0
- package/src/helpers/cloneDeep.ts +11 -0
- package/src/{client → helpers}/initClient.tsx +5 -1
- package/src/helpers/logClientEvent.tsx +3 -1
- package/src/helpers/visitServerEndpoint.tsx +1 -1
- package/src/index.ts +24 -20
- package/src/types/LogReviewerFilterState/ActionErrorFilterState.ts +21 -0
- package/src/types/LogReviewerFilterState/AdvancedFilterState.ts +33 -0
- package/src/types/LogReviewerFilterState/ContextFilterState.ts +13 -0
- package/src/types/LogReviewerFilterState/DateFilterState.ts +23 -0
- package/src/types/LogReviewerFilterState/TagFilterState.ts +6 -0
- package/src/types/LogReviewerFilterState/index.ts +24 -0
- package/src/types/ParamType.ts +10 -10
- package/src/types/ReactKitErrorCode.tsx +1 -17
- package/dist/cjs/types/components/ItemPicker/index.test.d.ts +0 -1
- package/dist/cjs/types/helpers/addDBEditorEndpoints.d.ts +0 -41
- package/dist/cjs/types/helpers/genRouteHandler.d.ts +0 -76
- package/dist/cjs/types/helpers/handleError.d.ts +0 -18
- package/dist/cjs/types/helpers/handleSuccess.d.ts +0 -8
- package/dist/cjs/types/helpers/parseUserAgent.d.ts +0 -17
- package/dist/cjs/types/helpers/visitEndpointOnAnotherServer/index.d.ts +0 -24
- package/dist/cjs/types/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.d.ts +0 -33
- package/dist/cjs/types/server/initLogCollection.d.ts +0 -8
- package/dist/cjs/types/server/initServer.d.ts +0 -42
- package/dist/esm/types/components/ItemPicker/index.test.d.ts +0 -1
- package/dist/esm/types/helpers/addDBEditorEndpoints.d.ts +0 -41
- package/dist/esm/types/helpers/genRouteHandler.d.ts +0 -76
- package/dist/esm/types/helpers/handleError.d.ts +0 -18
- package/dist/esm/types/helpers/handleSuccess.d.ts +0 -8
- package/dist/esm/types/helpers/parseUserAgent.d.ts +0 -17
- package/dist/esm/types/helpers/visitEndpointOnAnotherServer/index.d.ts +0 -24
- package/dist/esm/types/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.d.ts +0 -33
- package/dist/esm/types/server/initLogCollection.d.ts +0 -8
- package/dist/esm/types/server/initServer.d.ts +0 -42
- package/src/components/ItemPicker/index.test.tsx +0 -783
- package/src/helpers/addDBEditorEndpoints.ts +0 -128
- package/src/helpers/genRouteHandler.ts +0 -948
- package/src/helpers/handleError.ts +0 -65
- package/src/helpers/handleSuccess.ts +0 -18
- package/src/helpers/parseUserAgent.ts +0 -108
- package/src/helpers/visitEndpointOnAnotherServer/index.ts +0 -93
- package/src/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.ts +0 -164
- package/src/server/initLogCollection.ts +0 -27
- package/src/server/initServer.ts +0 -287
- /package/dist/cjs/types/{client → helpers}/initClient.d.ts +0 -0
- /package/dist/esm/types/{client → helpers}/initClient.d.ts +0 -0
|
@@ -26,8 +26,12 @@ import ErrorWithCode from './errors/ErrorWithCode';
|
|
|
26
26
|
import MINUTE_IN_MS from './constants/MINUTE_IN_MS';
|
|
27
27
|
import HOUR_IN_MS from './constants/HOUR_IN_MS';
|
|
28
28
|
import DAY_IN_MS from './constants/DAY_IN_MS';
|
|
29
|
+
import LOG_REVIEW_ROUTE_PATH_PREFIX from './constants/LOG_REVIEW_ROUTE_PATH_PREFIX';
|
|
30
|
+
import LOG_ROUTE_PATH from './constants/LOG_ROUTE_PATH';
|
|
31
|
+
import LOG_REVIEW_STATUS_ROUTE from './constants/LOG_REVIEW_STATUS_ROUTE';
|
|
32
|
+
import LOG_REVIEW_GET_LOGS_ROUTE from './constants/LOG_REVIEW_GET_LOGS_ROUTE';
|
|
29
33
|
import DynamicWord from './dynamicConstants/DynamicWord';
|
|
30
|
-
import initClient from './
|
|
34
|
+
import initClient from './helpers/initClient';
|
|
31
35
|
import abbreviate from './helpers/abbreviate';
|
|
32
36
|
import avg from './helpers/avg';
|
|
33
37
|
import ceilToNumDecimals from './helpers/ceilToNumDecimals';
|
|
@@ -39,10 +43,6 @@ import roundToNumDecimals from './helpers/roundToNumDecimals';
|
|
|
39
43
|
import sum from './helpers/sum';
|
|
40
44
|
import waitMs from './helpers/waitMs';
|
|
41
45
|
import visitServerEndpoint from './helpers/visitServerEndpoint';
|
|
42
|
-
import genRouteHandler from './helpers/genRouteHandler';
|
|
43
|
-
import handleError from './helpers/handleError';
|
|
44
|
-
import handleSuccess from './helpers/handleSuccess';
|
|
45
|
-
import initServer from './server/initServer';
|
|
46
46
|
import getOrdinal from './helpers/getOrdinal';
|
|
47
47
|
import getTimeInfoInET from './helpers/getTimeInfoInET';
|
|
48
48
|
import stubServerEndpoint from './helpers/stubServerEndpoint';
|
|
@@ -53,7 +53,6 @@ import stringsToHumanReadableList from './helpers/stringsToHumanReadableList';
|
|
|
53
53
|
import onlyKeepLetters from './helpers/onlyKeepLetters';
|
|
54
54
|
import parallelLimit from './helpers/parallelLimit';
|
|
55
55
|
import logClientEvent, { setClientEventMetadataPopulator } from './helpers/logClientEvent';
|
|
56
|
-
import initLogCollection from './server/initLogCollection';
|
|
57
56
|
import getMonthName from './helpers/getMonthName';
|
|
58
57
|
import genCSV from './helpers/genCSV';
|
|
59
58
|
import canReviewLogs from './helpers/canReviewLogs';
|
|
@@ -61,7 +60,6 @@ import isMobileOrTablet from './helpers/isMobileOrTablet';
|
|
|
61
60
|
import extractProp from './helpers/extractProp';
|
|
62
61
|
import compareArraysByProp from './helpers/compareArraysByProp';
|
|
63
62
|
import getLocalTimeInfo from './helpers/getLocalTimeInfo';
|
|
64
|
-
import addDBEditorEndpoints from './helpers/addDBEditorEndpoints';
|
|
65
63
|
import genCommaList from './helpers/genCommaList';
|
|
66
64
|
import validateEmail from './helpers/validators/validateEmail';
|
|
67
65
|
import validatePhoneNumber from './helpers/validators/validatePhoneNumber';
|
|
@@ -78,14 +76,13 @@ import mapAsync from './helpers/asyncArrayFunctions/mapAsync';
|
|
|
78
76
|
import someAsync from './helpers/asyncArrayFunctions/someAsync';
|
|
79
77
|
import capitalize from './helpers/capitalize';
|
|
80
78
|
import shuffleArray from './helpers/shuffleArray';
|
|
81
|
-
import visitEndpointOnAnotherServer from './helpers/visitEndpointOnAnotherServer';
|
|
82
79
|
import getWordCount from './helpers/getWordCount';
|
|
80
|
+
import cloneDeep from './helpers/cloneDeep';
|
|
81
|
+
import ParamType from './types/ParamType';
|
|
83
82
|
import ModalButtonType from './types/ModalButtonType';
|
|
84
83
|
import ModalSize from './types/ModalSize';
|
|
85
84
|
import ModalType from './types/ModalType';
|
|
86
|
-
import ReactKitErrorCode from './types/ReactKitErrorCode';
|
|
87
85
|
import Variant from './types/Variant';
|
|
88
|
-
import ParamType from './types/ParamType';
|
|
89
86
|
import DayOfWeek from './types/DayOfWeek';
|
|
90
87
|
import Log from './types/Log';
|
|
91
88
|
import LogType from './types/LogType';
|
|
@@ -94,10 +91,16 @@ import LogAction from './types/LogAction';
|
|
|
94
91
|
import LogBuiltInMetadata from './types/LogBuiltInMetadata';
|
|
95
92
|
import LogMetadataType from './types/LogMetadataType';
|
|
96
93
|
import LogFunction from './types/LogFunction';
|
|
94
|
+
import LogTypeSpecificInfo from './types/Log/LogTypeSpecificInfo';
|
|
95
|
+
import LogMainInfo from './types/Log/LogMainInfo';
|
|
96
|
+
import LogSourceSpecificInfo from './types/Log/LogSourceSpecificInfo';
|
|
97
|
+
import LogLevel from './types/LogLevel';
|
|
97
98
|
import IntelliTableColumn from './types/IntelliTableColumn';
|
|
98
99
|
import DropdownItemType from './types/DropdownItemType';
|
|
100
|
+
import ReactKitErrorCode from './types/ReactKitErrorCode';
|
|
101
|
+
import LogReviewerFilterState from './types/LogReviewerFilterState';
|
|
99
102
|
import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
100
103
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
101
104
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
102
105
|
import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
|
|
103
|
-
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, getWordCount, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator,
|
|
106
|
+
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, LOG_REVIEW_GET_LOGS_ROUTE, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, getWordCount, cloneDeep, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ParamType, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, IntelliTableColumn, DropdownItemType, LogReviewerFilterState, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import LogType from '../LogType';
|
|
2
|
+
type ActionErrorFilterState = {
|
|
3
|
+
type: LogType | undefined;
|
|
4
|
+
errorMessage: string;
|
|
5
|
+
errorCode: string;
|
|
6
|
+
target: {
|
|
7
|
+
[k: string]: boolean;
|
|
8
|
+
};
|
|
9
|
+
action: {
|
|
10
|
+
[k: string]: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default ActionErrorFilterState;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import LogSource from '../LogSource';
|
|
2
|
+
type AdvancedFilterState = {
|
|
3
|
+
userFirstName: string;
|
|
4
|
+
userLastName: string;
|
|
5
|
+
userEmail: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
includeLearners: boolean;
|
|
8
|
+
includeTTMs: boolean;
|
|
9
|
+
includeAdmins: boolean;
|
|
10
|
+
courseId: string;
|
|
11
|
+
courseName: string;
|
|
12
|
+
isMobile: (true | false | undefined);
|
|
13
|
+
source: LogSource | undefined;
|
|
14
|
+
routePath: string;
|
|
15
|
+
routeTemplate: string;
|
|
16
|
+
};
|
|
17
|
+
export default AdvancedFilterState;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import DateFilterState from './DateFilterState';
|
|
2
|
+
import ContextFilterState from './ContextFilterState';
|
|
3
|
+
import TagFilterState from './TagFilterState';
|
|
4
|
+
import ActionErrorFilterState from './ActionErrorFilterState';
|
|
5
|
+
import AdvancedFilterState from './AdvancedFilterState';
|
|
6
|
+
/**
|
|
7
|
+
* A bundle of filter state objects for each type of filter
|
|
8
|
+
* @author Gabe Abrams
|
|
9
|
+
*/
|
|
10
|
+
type LogReviewerFilterState = {
|
|
11
|
+
dateFilterState: DateFilterState;
|
|
12
|
+
contextFilterState: ContextFilterState;
|
|
13
|
+
tagFilterState: TagFilterState;
|
|
14
|
+
actionErrorFilterState: ActionErrorFilterState;
|
|
15
|
+
advancedFilterState: AdvancedFilterState;
|
|
16
|
+
};
|
|
17
|
+
export default LogReviewerFilterState;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* @author Gabe Abrams
|
|
4
4
|
*/
|
|
5
5
|
declare enum ParamType {
|
|
6
|
-
Boolean = "
|
|
7
|
-
BooleanOptional = "
|
|
8
|
-
Float = "
|
|
9
|
-
FloatOptional = "
|
|
10
|
-
Int = "
|
|
11
|
-
IntOptional = "
|
|
12
|
-
JSON = "
|
|
13
|
-
JSONOptional = "
|
|
14
|
-
String = "
|
|
15
|
-
StringOptional = "
|
|
6
|
+
Boolean = "Boolean",
|
|
7
|
+
BooleanOptional = "BooleanOptional",
|
|
8
|
+
Float = "Float",
|
|
9
|
+
FloatOptional = "FloatOptional",
|
|
10
|
+
Int = "Int",
|
|
11
|
+
IntOptional = "IntOptional",
|
|
12
|
+
JSON = "JSON",
|
|
13
|
+
JSONOptional = "JSONOptional",
|
|
14
|
+
String = "String",
|
|
15
|
+
StringOptional = "StringOptional"
|
|
16
16
|
}
|
|
17
17
|
export default ParamType;
|
|
@@ -6,20 +6,6 @@ declare enum ReactKitErrorCode {
|
|
|
6
6
|
NoResponse = "DRK1",
|
|
7
7
|
NoCode = "DRK2",
|
|
8
8
|
SessionExpired = "DRK3",
|
|
9
|
-
|
|
10
|
-
InvalidParameter = "DRK5",
|
|
11
|
-
HostNotAllowed = "DRK17",
|
|
12
|
-
HostBanned = "DRK18",
|
|
13
|
-
WrongCourse = "DRK6",
|
|
14
|
-
NoCACCLSendRequestFunction = "DRK7",
|
|
15
|
-
NoCACCLGetLaunchInfoFunction = "DRK8",
|
|
16
|
-
NotTTM = "DRK9",
|
|
17
|
-
NotAdmin = "DRK10",
|
|
18
|
-
NotAllowedToReviewLogs = "DRK11",
|
|
19
|
-
ThemeCheckedBeforeReactKitReady = "DRK12",
|
|
20
|
-
SessionExpiredMessageGottenBeforeReactKitReady = "DRK13",
|
|
21
|
-
NotConnected = "DRK14",
|
|
22
|
-
SelfSigned = "DRK15",
|
|
23
|
-
ResponseParseError = "DRK16"
|
|
9
|
+
NoCACCLSendRequestFunction = "DRK7"
|
|
24
10
|
}
|
|
25
11
|
export default ReactKitErrorCode;
|