@autobusal/admin-agents 1.1.1 → 1.1.3
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 +19 -0
- package/Manage.tsx +6 -2
- package/package.json +2 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## 1.1.3
|
|
5
|
+
|
|
6
|
+
### Changed
|
|
7
|
+
|
|
8
|
+
- **Address is a single-line input, not a textarea**, matching the other
|
|
9
|
+
address fields across the apps.
|
|
10
|
+
|
|
11
|
+
All notable changes to this package are documented here. This project follows [Keep a Changelog](https://keepachangelog.com/) and [Semantic Versioning](https://semver.org/).
|
|
12
|
+
|
|
13
|
+
## [1.1.2] - 2026-07-19
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- `Manage.tsx`: the agent edit form's email field is now hydrated with the existing value (`value: data?.user.email`). Previously the email `<input>` rendered empty when editing an agent, so the field appeared blank and a save could overwrite the stored email with an empty value.
|
|
18
|
+
|
|
19
|
+
Authored by Ferjolt Ozuni. Consolidated from the magus and alvavel whitelabel patch sets into canonical @autobusal source (eliminates per-repo patch-package divergence).
|
package/Manage.tsx
CHANGED
|
@@ -94,7 +94,10 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
94
94
|
}, {}, {
|
|
95
95
|
label: t('admin_agents.manage.address', { ns: 'common' }),
|
|
96
96
|
name: 'address',
|
|
97
|
-
|
|
97
|
+
// Edited: Ferjolt Ozuni - Date: 2026-08-06
|
|
98
|
+
// A single line, not a textarea: a street address is one line, and
|
|
99
|
+
// a resizable box invites newlines no address format wants.
|
|
100
|
+
type: 'text',
|
|
98
101
|
value: data?.address,
|
|
99
102
|
rules: 'required|min_length:5'
|
|
100
103
|
}, {
|
|
@@ -134,7 +137,8 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
134
137
|
}, {}, {
|
|
135
138
|
label: t('admin_agents.manage.email', { ns: 'common' }),
|
|
136
139
|
name: 'email',
|
|
137
|
-
type: 'email'
|
|
140
|
+
type: 'email',
|
|
141
|
+
value: data?.user.email
|
|
138
142
|
}, {
|
|
139
143
|
label: t('admin_agents.manage.password', { ns: 'common' }),
|
|
140
144
|
name: 'password',
|