@autobusal/admin-agents 1.1.2 → 1.1.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 +16 -0
- package/Manage.tsx +14 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.4] - 2026-08-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Country select no longer defaults to Afghanistan.** `value` was `?? 0`,
|
|
8
|
+
which matches no country, so opening an agent with none on file and
|
|
9
|
+
pressing save filed them in Afghanistan.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## 1.1.3
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **Address is a single-line input, not a textarea**, matching the other
|
|
17
|
+
address fields across the apps.
|
|
18
|
+
|
|
3
19
|
All notable changes to this package are documented here. This project follows [Keep a Changelog](https://keepachangelog.com/) and [Semantic Versioning](https://semver.org/).
|
|
4
20
|
|
|
5
21
|
## [1.1.2] - 2026-07-19
|
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
|
}, {
|
|
@@ -108,7 +111,16 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
108
111
|
name: 'country_id',
|
|
109
112
|
type: 'select',
|
|
110
113
|
values: CountryData,
|
|
111
|
-
|
|
114
|
+
/*
|
|
115
|
+
* Edited: Ferjolt Ozuni - Date: 2026-08-07
|
|
116
|
+
* `?? 0` matches no country, and a select whose value matches
|
|
117
|
+
* nothing displays the FIRST option and submits it as though it
|
|
118
|
+
* had been chosen - so opening an agent with no country on file
|
|
119
|
+
* and pressing save filed them in Afghanistan. `''` plus a
|
|
120
|
+
* placeholder gives "nothing chosen" somewhere to live.
|
|
121
|
+
*/
|
|
122
|
+
placeholder: t('routes_order.step5.billing.country_choose', { ns: 'common' }),
|
|
123
|
+
value: data?.country_id ?? '',
|
|
112
124
|
rules: 'required'
|
|
113
125
|
}, {}, {
|
|
114
126
|
label: t('admin_agents.manage.mobile', { ns: 'common' }),
|