@cccsaurora/howler-ui 2.19.0-dev.1277 → 2.19.0-dev.1282
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/components/elements/hit/elements/Assigned.d.ts +0 -1
- package/components/elements/hit/elements/Assigned.js +3 -4
- package/components/routes/hits/search/shared/HitSort.js +1 -0
- package/locales/en/translation.json +0 -3
- package/locales/fr/translation.json +0 -3
- package/models/entities/generated/Howler.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,14 +16,13 @@ const AvatarChip = ({ userId, noUser, placeholder, layout, hideLabel }) => {
|
|
|
16
16
|
}
|
|
17
17
|
}, icon: userAvatar, label: userId && userId !== noUser ? userId : placeholder, size: layout !== HitLayout.COMFY ? 'small' : 'medium' }));
|
|
18
18
|
};
|
|
19
|
-
const Assigned = ({ hit, layout, hideLabel = false,
|
|
19
|
+
const Assigned = ({ hit, layout, hideLabel = false, showAssigned = false }) => {
|
|
20
20
|
const { t } = useTranslation();
|
|
21
21
|
const { user } = useAppUser();
|
|
22
22
|
const { viewers } = useContext(SocketContext);
|
|
23
23
|
const hitViewers = uniq(viewers[hit?.howler?.id] ?? []).filter(viewer => viewer !== user.username);
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
return (_jsxs(Stack, { direction: "row", spacing: 0.5, children: [_jsxs(Stack, { display: "grid", gridTemplateColumns: "repeat(2, 1fr)", alignItems: "center", columnGap: 0.5, rowGap: 0.25, children: [assigneeVisible && (_jsxs(_Fragment, { children: [!hideLabel && _jsxs(Typography, { variant: "caption", children: [t('app.drawer.hit.assignment.assignee'), ":"] }), _jsx(AvatarChip, { userId: hit?.howler.assignment, noUser: "unassigned", placeholder: t('app.drawer.hit.assignment.unassigned.name'), layout: layout, hideLabel: hideLabel })] })), assessorVisible && (_jsxs(_Fragment, { children: [!hideLabel && _jsxs(Typography, { variant: "caption", children: [t('app.drawer.hit.assessment.assessor'), ":"] }), _jsx(AvatarChip, { userId: hit.howler.assessor, noUser: "unknown", placeholder: t('app.drawer.hit.assessment.unknown.name'), layout: layout, hideLabel: hideLabel })] }))] }), hitViewers.length > 0 && hideLabel && _jsx(Divider, { orientation: "vertical", flexItem: true, variant: "middle" }), _jsx(AvatarGroup, { max: 3, sx: { [`.${avatarClasses.root}`]: { border: 0, marginLeft: 0.5 } }, componentsProps: {
|
|
24
|
+
const assigneeVisible = showAssigned || hit.howler.assignment !== 'unassigned';
|
|
25
|
+
return (_jsxs(Stack, { direction: "row", spacing: 0.5, children: [assigneeVisible && (_jsxs(_Fragment, { children: [!hideLabel && _jsxs(Typography, { variant: "caption", children: [t('app.drawer.hit.assignment.assignee'), ":"] }), _jsx(AvatarChip, { userId: hit?.howler.assignment, noUser: "unassigned", placeholder: t('app.drawer.hit.assignment.unassigned.name'), layout: layout, hideLabel: hideLabel })] })), hitViewers.length > 0 && hideLabel && _jsx(Divider, { orientation: "vertical", flexItem: true, variant: "middle" }), _jsx(AvatarGroup, { max: 3, sx: { [`.${avatarClasses.root}`]: { border: 0, marginLeft: 0.5 } }, componentsProps: {
|
|
27
26
|
additionalAvatar: {
|
|
28
27
|
sx: {
|
|
29
28
|
height: layout !== HitLayout.COMFY ? 24 : 32,
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
"apikey.impersonate": "Impersonate",
|
|
28
28
|
"apikey.read": "Read",
|
|
29
29
|
"apikey.write": "Write",
|
|
30
|
-
"app.drawer.hit.assessment.assessor": "Assessor",
|
|
31
|
-
"app.drawer.hit.assessment.unknown.name": "Unknown",
|
|
32
|
-
"app.drawer.hit.assignment.assignee": "Assignee",
|
|
33
30
|
"app.drawer.hit.assignment.autocomplete.label": "Choose Assignee",
|
|
34
31
|
"app.drawer.hit.assignment.description": "Choose a user to assign this hit to.",
|
|
35
32
|
"app.drawer.hit.assignment.success": "User assigned to hit sucessfully.",
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
"apikey.impersonate": "Imiter",
|
|
28
28
|
"apikey.read": "Lire",
|
|
29
29
|
"apikey.write": "Écrire",
|
|
30
|
-
"app.drawer.hit.assessment.assessor": "Évaluateur",
|
|
31
|
-
"app.drawer.hit.assessment.unknown.name": "Inconnu",
|
|
32
|
-
"app.drawer.hit.assignment.assignee": "Cessionnaire",
|
|
33
30
|
"app.drawer.hit.assignment.autocomplete.label": "Choisissez le destinataire",
|
|
34
31
|
"app.drawer.hit.assignment.description": "Choisissez un utilisateur à qui assigner ce hit.",
|
|
35
32
|
"app.drawer.hit.assignment.success": "L'utilisateur a été assigné au hit avec succès.",
|
|
@@ -13,7 +13,6 @@ import type { Votes } from './Votes';
|
|
|
13
13
|
export interface Howler {
|
|
14
14
|
analytic: string;
|
|
15
15
|
assessment?: string;
|
|
16
|
-
assessor?: string;
|
|
17
16
|
assignment: string;
|
|
18
17
|
comment?: HowlerComment[];
|
|
19
18
|
confidence?: number;
|
|
@@ -39,6 +38,7 @@ export interface Howler {
|
|
|
39
38
|
scrutiny?: string;
|
|
40
39
|
severity?: number;
|
|
41
40
|
status?: string;
|
|
41
|
+
triaged?: string;
|
|
42
42
|
volume?: number;
|
|
43
43
|
votes?: Votes;
|
|
44
44
|
}
|