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/esm/index.js
CHANGED
|
@@ -2136,37 +2136,37 @@ var LogType$1 = LogType;
|
|
|
2136
2136
|
var LogAction;
|
|
2137
2137
|
(function (LogAction) {
|
|
2138
2138
|
// Target was opened by the user (it was not on screen, but now it is)
|
|
2139
|
-
LogAction["Open"] = "
|
|
2139
|
+
LogAction["Open"] = "Open";
|
|
2140
2140
|
// Target was closed by the user (it was on screen, but now it is not)
|
|
2141
|
-
LogAction["Close"] = "
|
|
2141
|
+
LogAction["Close"] = "Close";
|
|
2142
2142
|
// Target was cancelled by the user (it was on closed without saving)
|
|
2143
|
-
LogAction["Cancel"] = "
|
|
2143
|
+
LogAction["Cancel"] = "Cancel";
|
|
2144
2144
|
// Target was expanded by the user (it always remains on screen, but size was changed)
|
|
2145
|
-
LogAction["Expand"] = "
|
|
2145
|
+
LogAction["Expand"] = "Expand";
|
|
2146
2146
|
// Target was collapsed by the user (it always remains on screen, but size was changed)
|
|
2147
|
-
LogAction["Collapse"] = "
|
|
2147
|
+
LogAction["Collapse"] = "Collapse";
|
|
2148
2148
|
// Target was viewed by the user (only for items that are not opened or closed, those must use Open/Close actions)
|
|
2149
|
-
LogAction["View"] = "
|
|
2149
|
+
LogAction["View"] = "View";
|
|
2150
2150
|
// Target interrupted the user (popup, dialog, validation message, etc. appeared without user prompting)
|
|
2151
|
-
LogAction["Interrupt"] = "
|
|
2151
|
+
LogAction["Interrupt"] = "Interrupt";
|
|
2152
2152
|
// Target was created by the user (it did not exist before)
|
|
2153
|
-
LogAction["Create"] = "
|
|
2153
|
+
LogAction["Create"] = "Create";
|
|
2154
2154
|
// Target was edited by the user (it existed and was changed)
|
|
2155
|
-
LogAction["Edit"] = "
|
|
2155
|
+
LogAction["Edit"] = "Edit";
|
|
2156
2156
|
// Target was deleted by the user (it existed and now it doesn't)
|
|
2157
|
-
LogAction["Delete"] = "
|
|
2157
|
+
LogAction["Delete"] = "Delete";
|
|
2158
2158
|
// Target was added by the user (it already existed and was added to another place)
|
|
2159
|
-
LogAction["Add"] = "
|
|
2159
|
+
LogAction["Add"] = "Add";
|
|
2160
2160
|
// Target was removed by the user (it was removed from something but still exists)
|
|
2161
|
-
LogAction["Remove"] = "
|
|
2161
|
+
LogAction["Remove"] = "Remove";
|
|
2162
2162
|
// Target was activated by the user (click, check, tap, keypress, etc.)
|
|
2163
|
-
LogAction["Activate"] = "
|
|
2163
|
+
LogAction["Activate"] = "Activate";
|
|
2164
2164
|
// Target was deactivated by the user (click away, uncheck, tap outside of, tab away, etc.)
|
|
2165
|
-
LogAction["Deactivate"] = "
|
|
2165
|
+
LogAction["Deactivate"] = "Deactivate";
|
|
2166
2166
|
// User showed interest in a target (hover, peek, etc.)
|
|
2167
|
-
LogAction["Peek"] = "
|
|
2167
|
+
LogAction["Peek"] = "Peek";
|
|
2168
2168
|
// Unknown action
|
|
2169
|
-
LogAction["Unknown"] = "
|
|
2169
|
+
LogAction["Unknown"] = "Unknown";
|
|
2170
2170
|
})(LogAction || (LogAction = {}));
|
|
2171
2171
|
var LogAction$1 = LogAction;
|
|
2172
2172
|
|
|
@@ -2952,7 +2952,6 @@ const LogReviewer = (props) => {
|
|
|
2952
2952
|
Object.values(LogBuiltInMetadata.Target).forEach((target) => {
|
|
2953
2953
|
initActionErrorFilterState.target[target] = true;
|
|
2954
2954
|
});
|
|
2955
|
-
console.log(initActionErrorFilterState);
|
|
2956
2955
|
// Initial state
|
|
2957
2956
|
const initialState = {
|
|
2958
2957
|
loading: true,
|
|
@@ -3257,9 +3256,9 @@ const LogReviewer = (props) => {
|
|
|
3257
3256
|
React.createElement(ButtonInputGroup, { label: "Action", className: "mb-2" }, Object.keys(LogAction$1)
|
|
3258
3257
|
.map((action, i) => {
|
|
3259
3258
|
const description = genHumanReadableName(action);
|
|
3260
|
-
return (React.createElement(CheckboxButton, { id: `LogReviewer-action-${action}-checkbox`, text: description, ariaLabel: `include logs with action type "${description}" in results`, noMarginOnRight: i === Object.keys(LogAction$1).length - 1, checked: actionErrorFilterState.action[action], onChanged: (checked) => {
|
|
3259
|
+
return (React.createElement(CheckboxButton, { key: action, id: `LogReviewer-action-${action}-checkbox`, text: description, ariaLabel: `include logs with action type "${description}" in results`, noMarginOnRight: i === Object.keys(LogAction$1).length - 1, checked: actionErrorFilterState.action[action], onChanged: (checked) => {
|
|
3261
3260
|
actionErrorFilterState.action[action] = checked;
|
|
3262
|
-
console.log(actionErrorFilterState);
|
|
3261
|
+
console.log(actionErrorFilterState, action, checked);
|
|
3263
3262
|
dispatch({
|
|
3264
3263
|
type: ActionType.UpdateActionErrorFilterState,
|
|
3265
3264
|
actionErrorFilterState,
|
|
@@ -3272,8 +3271,9 @@ const LogReviewer = (props) => {
|
|
|
3272
3271
|
.map((target, i) => {
|
|
3273
3272
|
var _a;
|
|
3274
3273
|
const description = genHumanReadableName(target);
|
|
3275
|
-
return (React.createElement(CheckboxButton, { id: `LogReviewer-target-${target}-checkbox`, text: description, ariaLabel: `include logs with target "${description}" in results`, checked: actionErrorFilterState.target[target], onChanged: (checked) => {
|
|
3274
|
+
return (React.createElement(CheckboxButton, { key: target, id: `LogReviewer-target-${target}-checkbox`, text: description, ariaLabel: `include logs with target "${description}" in results`, checked: actionErrorFilterState.target[target], onChanged: (checked) => {
|
|
3276
3275
|
actionErrorFilterState.target[target] = checked;
|
|
3276
|
+
console.log(actionErrorFilterState, target, checked);
|
|
3277
3277
|
dispatch({
|
|
3278
3278
|
type: ActionType.UpdateActionErrorFilterState,
|
|
3279
3279
|
actionErrorFilterState,
|
|
@@ -3519,7 +3519,6 @@ const LogReviewer = (props) => {
|
|
|
3519
3519
|
.every((isSelected) => {
|
|
3520
3520
|
return !isSelected;
|
|
3521
3521
|
}))) {
|
|
3522
|
-
// 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
|
|
3523
3522
|
console.log('RULED OUT: CONTEXT');
|
|
3524
3523
|
console.log(log.context, contextFilterState);
|
|
3525
3524
|
return;
|