@autobusal/utilities 1.5.3 → 1.5.4

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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.4 (2026-08-28)
4
+
5
+ - DisplayStatus renders status 4 (awaiting approval) as a badge instead of a blank cell in the admin agent/visitor/API-consumer lists (sweep #61).
6
+
3
7
  ## 1.5.3
4
8
 
5
9
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/utilities",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/users.tsx CHANGED
@@ -82,10 +82,24 @@ const Status = styled.span<{ $type: string }>`
82
82
  ${ props => props.$type === 'unavailable' && css`
83
83
  background: #FFB4B4;
84
84
  ` }
85
+ ${ props => props.$type === 'awaiting' && css`
86
+ background: #D9B8FF;
87
+ ` }
85
88
  `;
86
89
 
87
90
  export const DisplayStatus = (status: number, t: TFunction<'common'>): (JSX.Element | null) => {
88
91
  switch (status) {
92
+ // Edited: Claude - Date: 2026-08-28 (sweep, low): status 4 is "waiting
93
+ // for approval" (a self-registered agency that completed its profile) -
94
+ // GetStatus above always listed it, but this switch had no case, so
95
+ // precisely the rows needing the admin's decision showed a blank cell
96
+ case 4:
97
+ return (
98
+ <Status $type="awaiting">
99
+ { t('data.statuses.awaiting', { ns: 'common' }) }
100
+ </Status>
101
+ );
102
+
89
103
  case 3:
90
104
  return (
91
105
  <Status $type="pending">