@01-edu/shared 1.2.4 → 1.2.6
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/attrs-defs.js +10 -7
- package/package.json +1 -1
package/attrs-defs.js
CHANGED
|
@@ -2434,6 +2434,7 @@ types.levelDefinition = TypeObject({
|
|
|
2434
2434
|
type: {
|
|
2435
2435
|
skills: {
|
|
2436
2436
|
...skillsList,
|
|
2437
|
+
label: 'Skills required',
|
|
2437
2438
|
instruction: 'Expertises required',
|
|
2438
2439
|
},
|
|
2439
2440
|
objects: {
|
|
@@ -2452,8 +2453,9 @@ types.levelDefinition = TypeObject({
|
|
|
2452
2453
|
},
|
|
2453
2454
|
})
|
|
2454
2455
|
const sharedLevelsDefinitions = {
|
|
2455
|
-
label: '
|
|
2456
|
-
instruction:
|
|
2456
|
+
label: 'Level requirements',
|
|
2457
|
+
instruction:
|
|
2458
|
+
'Set the requirements and conditions for the user to access specific levels',
|
|
2457
2459
|
value: (...args) => [
|
|
2458
2460
|
mapValues(types.levelDefinition.type, subDef =>
|
|
2459
2461
|
getDefaultValue(subDef, ...args),
|
|
@@ -4033,22 +4035,22 @@ types.matchInfluence = TypeObject({
|
|
|
4033
4035
|
instruction:
|
|
4034
4036
|
'Adjust the weights in the match algorithm to influence how audits are attributed',
|
|
4035
4037
|
type: {
|
|
4036
|
-
auditsRatio: Literal(
|
|
4038
|
+
auditsRatio: Literal(1, {
|
|
4037
4039
|
label: 'Current Audit Ratio',
|
|
4038
4040
|
editable: true,
|
|
4039
4041
|
required: true,
|
|
4040
4042
|
}),
|
|
4041
|
-
auditsAssigned: Literal(
|
|
4043
|
+
auditsAssigned: Literal(1, {
|
|
4042
4044
|
editable: true,
|
|
4043
4045
|
required: true,
|
|
4044
4046
|
label: 'Fewest Pending Audits',
|
|
4045
4047
|
}),
|
|
4046
|
-
levelProximity: Literal(
|
|
4048
|
+
levelProximity: Literal(1, {
|
|
4047
4049
|
editable: true,
|
|
4048
4050
|
required: true,
|
|
4049
4051
|
label: 'Level Proximity',
|
|
4050
4052
|
}),
|
|
4051
|
-
lastAuditAttributed: Literal(
|
|
4053
|
+
lastAuditAttributed: Literal(1, {
|
|
4052
4054
|
editable: true,
|
|
4053
4055
|
required: true,
|
|
4054
4056
|
label: 'Last Audit Attributed',
|
|
@@ -4264,7 +4266,8 @@ const sharedBranchOptions = {
|
|
|
4264
4266
|
hidden: true,
|
|
4265
4267
|
}
|
|
4266
4268
|
|
|
4267
|
-
const getBranchOptions =
|
|
4269
|
+
const getBranchOptions = object => {
|
|
4270
|
+
const limit = 9
|
|
4268
4271
|
const branchCounts = {}
|
|
4269
4272
|
for (const child of Object.values(object.parent.children || {})) {
|
|
4270
4273
|
const branch = child.attrs.branch
|