dce-reactkit 3.2.2-beta.51 → 3.2.2-beta.53
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 +14 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +14 -12
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +33 -29
- package/src/components/SimpleDateChooser.tsx +2 -2
package/package.json
CHANGED
|
@@ -1195,7 +1195,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1195
1195
|
} else if (expandedFilterDrawer === FilterDrawer.Context) {
|
|
1196
1196
|
// Create item picker items
|
|
1197
1197
|
const builtInPickableItem: PickableItem = {
|
|
1198
|
-
id: '
|
|
1198
|
+
id: 'built-in-contexts',
|
|
1199
1199
|
name: 'Auto-logged',
|
|
1200
1200
|
isGroup: true,
|
|
1201
1201
|
children: [],
|
|
@@ -1222,6 +1222,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1222
1222
|
// Add to pickable items list
|
|
1223
1223
|
pickableItems.push(item);
|
|
1224
1224
|
}
|
|
1225
|
+
return;
|
|
1225
1226
|
}
|
|
1226
1227
|
|
|
1227
1228
|
// Has subcategories
|
|
@@ -1264,7 +1265,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1264
1265
|
// Has subcontexts
|
|
1265
1266
|
|
|
1266
1267
|
|
|
1267
|
-
if (pickableItem.id === '
|
|
1268
|
+
if (pickableItem.id === 'built-in-contexts') {
|
|
1268
1269
|
// Built-in
|
|
1269
1270
|
|
|
1270
1271
|
// Treat as if these were top-level contexts
|
|
@@ -1305,32 +1306,35 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1305
1306
|
filterDrawer = (
|
|
1306
1307
|
<TabBox title="Tags">
|
|
1307
1308
|
<div>
|
|
1308
|
-
If any are selected, logs must contain at least one
|
|
1309
|
-
but not necessarily all of the
|
|
1309
|
+
If any tags are selected, logs must contain at least one
|
|
1310
|
+
(but not necessarily all) of the
|
|
1310
1311
|
selected tags.
|
|
1311
1312
|
</div>
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
.
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1313
|
+
<div className="d-flex gap-1 flex-wrap">
|
|
1314
|
+
{
|
|
1315
|
+
Object.keys(LogMetadata.Tag ?? {})
|
|
1316
|
+
.map((tag) => {
|
|
1317
|
+
const description = genHumanReadableName(tag);
|
|
1318
|
+
return (
|
|
1319
|
+
<CheckboxButton
|
|
1320
|
+
key={tag}
|
|
1321
|
+
id={`LogReviewer-tag-${tag}-checkbox`}
|
|
1322
|
+
text={description}
|
|
1323
|
+
ariaLabel={`require that logs be tagged with "${description}" or any other selected tag`}
|
|
1324
|
+
checked={tagFilterState[tag]}
|
|
1325
|
+
onChanged={(checked) => {
|
|
1326
|
+
tagFilterState[tag] = checked;
|
|
1327
|
+
console.log(tagFilterState);
|
|
1328
|
+
dispatch({
|
|
1329
|
+
type: ActionType.UpdateTagFilterState,
|
|
1330
|
+
tagFilterState,
|
|
1331
|
+
});
|
|
1332
|
+
}}
|
|
1333
|
+
/>
|
|
1334
|
+
);
|
|
1335
|
+
})
|
|
1336
|
+
}
|
|
1337
|
+
</div>
|
|
1334
1338
|
</TabBox>
|
|
1335
1339
|
);
|
|
1336
1340
|
} else if (expandedFilterDrawer === FilterDrawer.Action) {
|
|
@@ -1513,7 +1517,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1513
1517
|
filterDrawer = (
|
|
1514
1518
|
<>
|
|
1515
1519
|
{/* User Info */}
|
|
1516
|
-
<TabBox title="User
|
|
1520
|
+
<TabBox title="User">
|
|
1517
1521
|
{/* First Name */}
|
|
1518
1522
|
<div className="input-group mb-2">
|
|
1519
1523
|
<span className="input-group-text">
|
|
@@ -1646,7 +1650,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1646
1650
|
</TabBox>
|
|
1647
1651
|
|
|
1648
1652
|
{/* Course Info */}
|
|
1649
|
-
<TabBox title="Course
|
|
1653
|
+
<TabBox title="Course">
|
|
1650
1654
|
{/* Name */}
|
|
1651
1655
|
<div className="input-group mb-2">
|
|
1652
1656
|
<span className="input-group-text">
|
|
@@ -1697,7 +1701,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1697
1701
|
</TabBox>
|
|
1698
1702
|
|
|
1699
1703
|
{/* Device Info */}
|
|
1700
|
-
<TabBox title="Device
|
|
1704
|
+
<TabBox title="Device">
|
|
1701
1705
|
<ButtonInputGroup label="Device Type">
|
|
1702
1706
|
<RadioButton
|
|
1703
1707
|
text="All Devices"
|
|
@@ -141,7 +141,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
141
141
|
monthOptions.push(
|
|
142
142
|
<option
|
|
143
143
|
key={choice.month}
|
|
144
|
-
value={choice.month}
|
|
144
|
+
value={`${choice.month}-${choice.year}`}
|
|
145
145
|
aria-label={`choose ${choice.choiceName}`}
|
|
146
146
|
onSelect={() => {
|
|
147
147
|
onChange(choice.month, choice.days[0], choice.year);
|
|
@@ -181,7 +181,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
181
181
|
className="custom-select d-inline-block mr-1"
|
|
182
182
|
style={{ width: 'auto' }}
|
|
183
183
|
id={`SimpleDateChooser-${name}-month`}
|
|
184
|
-
value={month}
|
|
184
|
+
value={`${month}-${year}`}
|
|
185
185
|
onChange={(e) => {
|
|
186
186
|
const choice = choices[e.target.selectedIndex];
|
|
187
187
|
|