@autobusal/admin-agents 1.2.0 → 1.2.1
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 +4 -0
- package/Manage.tsx +14 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.1 - 2026-08-29
|
|
4
|
+
|
|
5
|
+
- The heading names the ACCOUNT as well as the company (audit A4-09). This screen is addressed by `agents`.`id` while /account/funds/manage is addressed by `users`.`id`, so the same number opens two different agencies - and company names are not unique either (three agencies are registered as "API Company"), so the name alone could not say which record was open.
|
|
6
|
+
|
|
3
7
|
## 1.2.0 (2026-08-29)
|
|
4
8
|
|
|
5
9
|
- Editors offer Save & Close alongside Save & Stay, so correcting a record no longer bounces you back to its list every time (opt-in per page, editing only).
|
package/Manage.tsx
CHANGED
|
@@ -29,7 +29,20 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
29
29
|
|
|
30
30
|
const { data, isFetching } = useGetAgent(id);
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
/*
|
|
33
|
+
* Claude - 2026-08-29 (audit A4-09, low)
|
|
34
|
+
*
|
|
35
|
+
* THE COMPANY AND THE ACCOUNT IT BELONGS TO. This screen is addressed by
|
|
36
|
+
* `agents`.`id` while /account/funds/manage is addressed by `users`.`id`,
|
|
37
|
+
* so the same number in the URL opens two different agencies on the two
|
|
38
|
+
* screens - demonstrated live in the audit, where a credit limit was set on
|
|
39
|
+
* an agency nobody meant to touch. Company names are not unique either
|
|
40
|
+
* (three separate agencies are registered as "API Company"), so the
|
|
41
|
+
* heading alone could not say which record was open. The email can.
|
|
42
|
+
*/
|
|
43
|
+
const company = [data?.company, data?.user?.email].filter(Boolean).join(' · ');
|
|
44
|
+
|
|
45
|
+
const title = id > 0 ? t('admin_agents.manage.title.update', { company, ns: 'common' }) : t('admin_agents.manage.title.new', { ns: 'common' });
|
|
33
46
|
|
|
34
47
|
useBreadcrumbs(title, [{ name: t('admin_agents.browse.title', { ns: 'common' }), url }]);
|
|
35
48
|
|