@autobusal/operator-routes 1.1.0 → 1.1.2

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 ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ 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
+
5
+ ## [1.1.2] - 2026-07-19
6
+
7
+ ### Fixed
8
+
9
+ - `Transiting/Manage.tsx`: relaxed the transiting-country select's validation rule from `required|min:1` to `required`. The `min:1` rule was rejecting the field's default value of `0`, making a valid country selection unsubmittable; `required` alone correctly enforces that a country is chosen without misfiring on the `0` sentinel.
10
+
11
+ 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
@@ -140,14 +140,14 @@ const Manage = ({ url, t }: Props): JSX.Element => {
140
140
  name: 'language',
141
141
  type: 'select',
142
142
  values: getLanguagesExtended(),
143
- value: data?.language,
143
+ value: data?.language ?? 'en',
144
144
  rules: 'required'
145
145
  }, {
146
146
  label: t('operator_routes.manage.template', { ns: 'common' }),
147
147
  name: 'template',
148
148
  type: 'select',
149
149
  values: getTemplates(t),
150
- value: data?.template,
150
+ value: data?.template ?? 'standard',
151
151
  rules: 'required'
152
152
  }, {}, {
153
153
  label: t('operator_routes.manage.locations.title', { ns: 'common' }),
@@ -86,7 +86,7 @@ const Manage = ({ url, t }: Props): JSX.Element => {
86
86
  type: 'select',
87
87
  values: filterCountries(data?.transiting ?? [], CountriesData),
88
88
  value: 0,
89
- rules: 'required|min:1'
89
+ rules: 'required'
90
90
  }] }
91
91
  fetching={ isFetching }
92
92
  pending={ isPendingSave || isPendingDelete }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@autobusal/operator-routes",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
+ "author": "Ferjolt Ozuni",
4
5
  "type": "module",
5
6
  "main": "index.ts"
6
7
  }