@autobusal/admin-agents 1.1.6 → 1.2.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 +8 -0
- package/Manage.tsx +8 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.0 (2026-08-29)
|
|
4
|
+
|
|
5
|
+
- 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).
|
|
6
|
+
|
|
7
|
+
## 1.1.7 (2026-08-28)
|
|
8
|
+
|
|
9
|
+
- Company minimum length 2, matching the server rule - two-letter brand names can be saved (sweep #56).
|
|
10
|
+
|
|
3
11
|
## 1.1.6
|
|
4
12
|
|
|
5
13
|
### Fixed
|
package/Manage.tsx
CHANGED
|
@@ -41,12 +41,14 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
41
41
|
return <Box />;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
const onSave = (data: AgentData): void => {
|
|
44
|
+
const onSave = (data: AgentData, stay?: boolean): void => {
|
|
45
45
|
Update(data, {
|
|
46
46
|
onSuccess: () => {
|
|
47
47
|
success(t('admin_agents.manage.messages.saved', { ns: 'common' }));
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
if (!stay) {
|
|
50
|
+
navigate(url);
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
53
|
});
|
|
52
54
|
};
|
|
@@ -72,7 +74,9 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
72
74
|
name: 'company',
|
|
73
75
|
type: 'text',
|
|
74
76
|
value: data?.company,
|
|
75
|
-
|
|
77
|
+
// Edited: Claude - Date: 2026-08-28 (sweep, low): 2, matching
|
|
78
|
+
// registration and the server model - 4 refused real short brands
|
|
79
|
+
rules: 'required|min_length:2|max_length:255'
|
|
76
80
|
}, {
|
|
77
81
|
label: t('admin_agents.manage.nipt', { ns: 'common' }),
|
|
78
82
|
name: 'nipt',
|
|
@@ -299,7 +303,7 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
299
303
|
pending={ isPendingSave || isPendingDelete }
|
|
300
304
|
t={ t }
|
|
301
305
|
actions={ [
|
|
302
|
-
'save', 'delete'
|
|
306
|
+
'save', 'save_stay', 'delete'
|
|
303
307
|
]}
|
|
304
308
|
onSave={ onSave }
|
|
305
309
|
onDelete={ onDelete }
|