dce-reactkit 3.2.2-beta.37 → 3.2.2-beta.39
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 +20 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/types/LogAction.d.ts +16 -16
- package/dist/esm/index.js +20 -21
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/types/LogAction.d.ts +16 -16
- package/dist/index.d.ts +16 -16
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +4 -3
- package/src/types/LogAction.ts +16 -16
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
* @author Gabe Abrams
|
|
4
4
|
*/
|
|
5
5
|
declare enum LogAction {
|
|
6
|
-
Open = "
|
|
7
|
-
Close = "
|
|
8
|
-
Cancel = "
|
|
9
|
-
Expand = "
|
|
10
|
-
Collapse = "
|
|
11
|
-
View = "
|
|
12
|
-
Interrupt = "
|
|
13
|
-
Create = "
|
|
14
|
-
Edit = "
|
|
15
|
-
Delete = "
|
|
16
|
-
Add = "
|
|
17
|
-
Remove = "
|
|
18
|
-
Activate = "
|
|
19
|
-
Deactivate = "
|
|
20
|
-
Peek = "
|
|
21
|
-
Unknown = "
|
|
6
|
+
Open = "Open",
|
|
7
|
+
Close = "Close",
|
|
8
|
+
Cancel = "Cancel",
|
|
9
|
+
Expand = "Expand",
|
|
10
|
+
Collapse = "Collapse",
|
|
11
|
+
View = "View",
|
|
12
|
+
Interrupt = "Interrupt",
|
|
13
|
+
Create = "Create",
|
|
14
|
+
Edit = "Edit",
|
|
15
|
+
Delete = "Delete",
|
|
16
|
+
Add = "Add",
|
|
17
|
+
Remove = "Remove",
|
|
18
|
+
Activate = "Activate",
|
|
19
|
+
Deactivate = "Deactivate",
|
|
20
|
+
Peek = "Peek",
|
|
21
|
+
Unknown = "Unknown"
|
|
22
22
|
}
|
|
23
23
|
export default LogAction;
|
package/dist/index.d.ts
CHANGED
|
@@ -669,22 +669,22 @@ declare type LogSourceSpecificInfo = ({
|
|
|
669
669
|
* @author Gabe Abrams
|
|
670
670
|
*/
|
|
671
671
|
declare enum LogAction {
|
|
672
|
-
Open = "
|
|
673
|
-
Close = "
|
|
674
|
-
Cancel = "
|
|
675
|
-
Expand = "
|
|
676
|
-
Collapse = "
|
|
677
|
-
View = "
|
|
678
|
-
Interrupt = "
|
|
679
|
-
Create = "
|
|
680
|
-
Edit = "
|
|
681
|
-
Delete = "
|
|
682
|
-
Add = "
|
|
683
|
-
Remove = "
|
|
684
|
-
Activate = "
|
|
685
|
-
Deactivate = "
|
|
686
|
-
Peek = "
|
|
687
|
-
Unknown = "
|
|
672
|
+
Open = "Open",
|
|
673
|
+
Close = "Close",
|
|
674
|
+
Cancel = "Cancel",
|
|
675
|
+
Expand = "Expand",
|
|
676
|
+
Collapse = "Collapse",
|
|
677
|
+
View = "View",
|
|
678
|
+
Interrupt = "Interrupt",
|
|
679
|
+
Create = "Create",
|
|
680
|
+
Edit = "Edit",
|
|
681
|
+
Delete = "Delete",
|
|
682
|
+
Add = "Add",
|
|
683
|
+
Remove = "Remove",
|
|
684
|
+
Activate = "Activate",
|
|
685
|
+
Deactivate = "Deactivate",
|
|
686
|
+
Peek = "Peek",
|
|
687
|
+
Unknown = "Unknown"
|
|
688
688
|
}
|
|
689
689
|
|
|
690
690
|
/**
|
package/package.json
CHANGED
|
@@ -631,7 +631,6 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
631
631
|
Object.values(LogBuiltInMetadata.Target).forEach((target) => {
|
|
632
632
|
initActionErrorFilterState.target[target] = true;
|
|
633
633
|
});
|
|
634
|
-
console.log(initActionErrorFilterState);
|
|
635
634
|
|
|
636
635
|
// Initial state
|
|
637
636
|
const initialState: State = {
|
|
@@ -1143,6 +1142,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1143
1142
|
const description = genHumanReadableName(action);
|
|
1144
1143
|
return (
|
|
1145
1144
|
<CheckboxButton
|
|
1145
|
+
key={action}
|
|
1146
1146
|
id={`LogReviewer-action-${action}-checkbox`}
|
|
1147
1147
|
text={description}
|
|
1148
1148
|
ariaLabel={`include logs with action type "${description}" in results`}
|
|
@@ -1150,7 +1150,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1150
1150
|
checked={actionErrorFilterState.action[action]}
|
|
1151
1151
|
onChanged={(checked) => {
|
|
1152
1152
|
actionErrorFilterState.action[action] = checked;
|
|
1153
|
-
console.log(actionErrorFilterState);
|
|
1153
|
+
console.log(actionErrorFilterState, action, checked);
|
|
1154
1154
|
dispatch({
|
|
1155
1155
|
type: ActionType.UpdateActionErrorFilterState,
|
|
1156
1156
|
actionErrorFilterState,
|
|
@@ -1176,12 +1176,14 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1176
1176
|
const description = genHumanReadableName(target);
|
|
1177
1177
|
return (
|
|
1178
1178
|
<CheckboxButton
|
|
1179
|
+
key={target}
|
|
1179
1180
|
id={`LogReviewer-target-${target}-checkbox`}
|
|
1180
1181
|
text={description}
|
|
1181
1182
|
ariaLabel={`include logs with target "${description}" in results`}
|
|
1182
1183
|
checked={actionErrorFilterState.target[target]}
|
|
1183
1184
|
onChanged={(checked) => {
|
|
1184
1185
|
actionErrorFilterState.target[target] = checked;
|
|
1186
|
+
console.log(actionErrorFilterState, target, checked);
|
|
1185
1187
|
dispatch({
|
|
1186
1188
|
type: ActionType.UpdateActionErrorFilterState,
|
|
1187
1189
|
actionErrorFilterState,
|
|
@@ -1653,7 +1655,6 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1653
1655
|
})
|
|
1654
1656
|
)
|
|
1655
1657
|
) {
|
|
1656
|
-
// TODO: figure out why context filter is still not working, why actions and targets filter UI sucks and doesn't wrap and doesn't select
|
|
1657
1658
|
console.log('RULED OUT: CONTEXT');
|
|
1658
1659
|
console.log(log.context, contextFilterState);
|
|
1659
1660
|
return;
|
package/src/types/LogAction.ts
CHANGED
|
@@ -4,37 +4,37 @@
|
|
|
4
4
|
*/
|
|
5
5
|
enum LogAction {
|
|
6
6
|
// Target was opened by the user (it was not on screen, but now it is)
|
|
7
|
-
Open = '
|
|
7
|
+
Open = 'Open',
|
|
8
8
|
// Target was closed by the user (it was on screen, but now it is not)
|
|
9
|
-
Close = '
|
|
9
|
+
Close = 'Close',
|
|
10
10
|
// Target was cancelled by the user (it was on closed without saving)
|
|
11
|
-
Cancel = '
|
|
11
|
+
Cancel = 'Cancel',
|
|
12
12
|
// Target was expanded by the user (it always remains on screen, but size was changed)
|
|
13
|
-
Expand = '
|
|
13
|
+
Expand = 'Expand',
|
|
14
14
|
// Target was collapsed by the user (it always remains on screen, but size was changed)
|
|
15
|
-
Collapse = '
|
|
15
|
+
Collapse = 'Collapse',
|
|
16
16
|
// Target was viewed by the user (only for items that are not opened or closed, those must use Open/Close actions)
|
|
17
|
-
View = '
|
|
17
|
+
View = 'View',
|
|
18
18
|
// Target interrupted the user (popup, dialog, validation message, etc. appeared without user prompting)
|
|
19
|
-
Interrupt = '
|
|
19
|
+
Interrupt = 'Interrupt',
|
|
20
20
|
// Target was created by the user (it did not exist before)
|
|
21
|
-
Create = '
|
|
21
|
+
Create = 'Create',
|
|
22
22
|
// Target was edited by the user (it existed and was changed)
|
|
23
|
-
Edit = '
|
|
23
|
+
Edit = 'Edit',
|
|
24
24
|
// Target was deleted by the user (it existed and now it doesn't)
|
|
25
|
-
Delete = '
|
|
25
|
+
Delete = 'Delete',
|
|
26
26
|
// Target was added by the user (it already existed and was added to another place)
|
|
27
|
-
Add = '
|
|
27
|
+
Add = 'Add',
|
|
28
28
|
// Target was removed by the user (it was removed from something but still exists)
|
|
29
|
-
Remove = '
|
|
29
|
+
Remove = 'Remove',
|
|
30
30
|
// Target was activated by the user (click, check, tap, keypress, etc.)
|
|
31
|
-
Activate = '
|
|
31
|
+
Activate = 'Activate',
|
|
32
32
|
// Target was deactivated by the user (click away, uncheck, tap outside of, tab away, etc.)
|
|
33
|
-
Deactivate = '
|
|
33
|
+
Deactivate = 'Deactivate',
|
|
34
34
|
// User showed interest in a target (hover, peek, etc.)
|
|
35
|
-
Peek = '
|
|
35
|
+
Peek = 'Peek',
|
|
36
36
|
// Unknown action
|
|
37
|
-
Unknown = '
|
|
37
|
+
Unknown = 'Unknown',
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export default LogAction;
|