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.
@@ -3,21 +3,21 @@
3
3
  * @author Gabe Abrams
4
4
  */
5
5
  declare enum LogAction {
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"
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 = "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"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.2.2-beta.37",
3
+ "version": "3.2.2-beta.39",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -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;
@@ -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 = 'open',
7
+ Open = 'Open',
8
8
  // Target was closed by the user (it was on screen, but now it is not)
9
- Close = 'close',
9
+ Close = 'Close',
10
10
  // Target was cancelled by the user (it was on closed without saving)
11
- Cancel = 'cancel',
11
+ Cancel = 'Cancel',
12
12
  // Target was expanded by the user (it always remains on screen, but size was changed)
13
- Expand = 'expand',
13
+ Expand = 'Expand',
14
14
  // Target was collapsed by the user (it always remains on screen, but size was changed)
15
- Collapse = '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 = 'view',
17
+ View = 'View',
18
18
  // Target interrupted the user (popup, dialog, validation message, etc. appeared without user prompting)
19
- Interrupt = 'interrupt',
19
+ Interrupt = 'Interrupt',
20
20
  // Target was created by the user (it did not exist before)
21
- Create = 'create',
21
+ Create = 'Create',
22
22
  // Target was edited by the user (it existed and was changed)
23
- Edit = 'edit',
23
+ Edit = 'Edit',
24
24
  // Target was deleted by the user (it existed and now it doesn't)
25
- Delete = 'delete',
25
+ Delete = 'Delete',
26
26
  // Target was added by the user (it already existed and was added to another place)
27
- Add = 'add',
27
+ Add = 'Add',
28
28
  // Target was removed by the user (it was removed from something but still exists)
29
- Remove = 'remove',
29
+ Remove = 'Remove',
30
30
  // Target was activated by the user (click, check, tap, keypress, etc.)
31
- Activate = 'activate',
31
+ Activate = 'Activate',
32
32
  // Target was deactivated by the user (click away, uncheck, tap outside of, tab away, etc.)
33
- Deactivate = 'deactivate',
33
+ Deactivate = 'Deactivate',
34
34
  // User showed interest in a target (hover, peek, etc.)
35
- Peek = 'peek',
35
+ Peek = 'Peek',
36
36
  // Unknown action
37
- Unknown = 'unknown',
37
+ Unknown = 'Unknown',
38
38
  };
39
39
 
40
40
  export default LogAction;