@autobusal/admin-agents 1.1.5 → 1.1.7

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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.7 (2026-08-28)
4
+
5
+ - Company minimum length 2, matching the server rule - two-letter brand names can be saved (sweep #56).
6
+
7
+ ## 1.1.6
8
+
9
+ ### Fixed
10
+
11
+ - **License No. is optional on the manage form.** The agent sign-up stopped collecting it on 2026-08-07 and the column is nullable server-side, but the form's required rule made approving a self-registered agency impossible without inventing a number. (Audit AUTH-02b.)
12
+
3
13
  ## 1.1.5
4
14
 
5
15
  ### Added
package/Manage.tsx CHANGED
@@ -72,7 +72,9 @@ const Manage = ({ url, t }: Props): JSX.Element => {
72
72
  name: 'company',
73
73
  type: 'text',
74
74
  value: data?.company,
75
- rules: 'required|min_length:4|max_length:255'
75
+ // Edited: Claude - Date: 2026-08-28 (sweep, low): 2, matching
76
+ // registration and the server model - 4 refused real short brands
77
+ rules: 'required|min_length:2|max_length:255'
76
78
  }, {
77
79
  label: t('admin_agents.manage.nipt', { ns: 'common' }),
78
80
  name: 'nipt',
@@ -172,7 +174,12 @@ const Manage = ({ url, t }: Props): JSX.Element => {
172
174
  name: 'license',
173
175
  type: 'text',
174
176
  value: data?.license,
175
- rules: 'required|min_length:3|max_length:50'
177
+ // Claude - 2026-08-22 (audit finding AUTH-02b): the agent
178
+ // sign-up stopped collecting a license on 2026-08-07 and the
179
+ // column is nullable server-side - but this required rule made
180
+ // approving any self-registered agency impossible without the
181
+ // admin INVENTING a license number just to press Save.
182
+ rules: 'max_length:50'
176
183
  }, {
177
184
  label: t('admin_agents.manage.subscription', { ns: 'common' }),
178
185
  name: 'subscription_id',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/admin-agents",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"