@autobusal/common 1.20.0 → 1.21.0

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/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ All notable changes to `@autobusal/common` are documented here. This project fol
6
6
  > Note: 1.10.0 through 1.15.1 were published without changelog entries. The
7
7
  > gap is left as-is rather than reconstructed after the fact.
8
8
 
9
+ ## 1.21.0
10
+
11
+ `reply` joins the table actions with its own icon and label. The operator
12
+ review page was borrowing `approve`, so the button on a review about them read
13
+ "Approve" — which is the one thing they cannot do to it.
14
+
9
15
  ## 1.20.0
10
16
 
11
17
  `Rating` — stars, average and count, or nothing at all. Rendering nothing is
@@ -4,7 +4,7 @@ import { BiEditAlt, BiTransfer, BiTrash } from 'react-icons/bi';
4
4
  import { FaTrash } from 'react-icons/fa';
5
5
  import { GiMoneyStack } from 'react-icons/gi';
6
6
  import { IoDocumentLockOutline } from 'react-icons/io5';
7
- import { RiBusLine, RiEyeLine, RiLoginCircleLine } from 'react-icons/ri';
7
+ import { RiBusLine, RiEyeLine, RiLoginCircleLine, RiReplyLine } from 'react-icons/ri';
8
8
 
9
9
  interface Props {
10
10
  type: string
@@ -26,6 +26,14 @@ const Icon = ({ type, t }: Props): (JSX.Element | null) => {
26
26
  case 'approve':
27
27
  return <AiOutlineCheck title={ t('table.actions.custom.approve', { ns: 'common' }) } />;
28
28
 
29
+ // Edited: Ferjolt Ozuni - Date: 2026-08-03
30
+ // Its own action rather than borrowing 'approve'. On the operator's
31
+ // review page a tick labelled "Approve" reads as though they are
32
+ // approving the review about them, which is the one thing they cannot
33
+ // do - the verb has to be the one they are actually performing.
34
+ case 'reply':
35
+ return <RiReplyLine title={ t('table.actions.custom.reply', { ns: 'common' }) } />;
36
+
29
37
  case 'deny':
30
38
  return <FaTrash title={ t('table.actions.custom.deny', { ns: 'common' }) } />;
31
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/common",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"