@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.
@@ -5,7 +5,6 @@ declare const Assigned: FC<{
5
5
  hit: Hit;
6
6
  layout: HitLayout;
7
7
  hideLabel?: boolean;
8
- showAssessor?: boolean;
9
8
  showAssigned?: boolean;
10
9
  }>;
11
10
  export default Assigned;
@@ -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, showAssessor = false, showAssigned = 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 assessorVisible = showAssessor || hit.howler.assessment != null;
25
- const assigneeVisible = !hit.howler.assessor && (showAssigned || hit.howler.assignment !== 'unassigned');
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,
@@ -19,6 +19,7 @@ const ACCEPTED_SORTS = [
19
19
  'event.provider',
20
20
  'organization.name',
21
21
  'howler.score',
22
+ 'howler.triaged',
22
23
  CUSTOM
23
24
  ];
24
25
  const HitSort = ({ size = 'small' }) => {
@@ -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
  }
package/package.json CHANGED
@@ -93,7 +93,7 @@
93
93
  "url": "https://github.com/CybercentreCanada/howler"
94
94
  },
95
95
  "type": "module",
96
- "version": "2.19.0-dev.1277",
96
+ "version": "2.19.0-dev.1282",
97
97
  "exports": {
98
98
  "./i18n": "./i18n.js",
99
99
  "./index.css": "./index.css",