@autobusal/providers 1.6.9 → 1.7.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 CHANGED
@@ -4,6 +4,24 @@ All notable changes to `@autobusal/providers` are documented here. This project
4
4
  adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.7.0] - 2026-07-31
8
+
9
+ ### Added
10
+
11
+ - **`LabelSettings.seo` / `SettingsData.seo`** (`types/settings.ts`): optional
12
+ homepage title/description/keywords override, admin-managed via the new
13
+ `@autobusal/admin-label` 1.9.0 SEO tab and persisted through obtapi's
14
+ `Labels\AdminController::seo()`. `SettingsData.seo` is the public-safe
15
+ subset exposed by `Settings\ViewController::get()` for `StaticHome.tsx`
16
+ to prefer over its i18n translation-template values when set.
17
+ - **`CountryData.seo_title`/`seo_description`/`seo_keywords` and the same
18
+ three fields on `CityData`** (`types/locations.ts`): optional per-entity
19
+ override for a country/city landing page's meta tags, admin-managed
20
+ through the existing Countries/Cities admin forms and persisted via
21
+ obtapi's `Countries\AdminController`/`Cities\AdminController`.
22
+ `LocationCountry.tsx`/`LocationCity.tsx` prefer these over their i18n
23
+ translation-template + live-stats content when set.
24
+
7
25
  ## [1.6.9] - 2026-07-31
8
26
 
9
27
  ### Added (re-added)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.6.9",
3
+ "version": "1.7.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
@@ -25,6 +25,14 @@ export interface CountryData {
25
25
  iso_code: string
26
26
  available?: number
27
27
  stats?: CountryStats
28
+
29
+ // Edited: Ferjolt Ozuni - Date: 2026-07-31
30
+ // Optional hand-written override for the public country page's title/
31
+ // description/keywords - see LocationCountry.tsx for the fallback-to-
32
+ // template logic when these are unset.
33
+ seo_title?: string
34
+ seo_description?: string
35
+ seo_keywords?: string
28
36
  }
29
37
 
30
38
  export interface CityStats {
@@ -62,6 +70,14 @@ export interface CityData {
62
70
  image?: string[]
63
71
  stats?: CityStats
64
72
  destinations?: CityDestination[]
73
+
74
+ // Edited: Ferjolt Ozuni - Date: 2026-07-31
75
+ // Optional hand-written override for the public city page's title/
76
+ // description/keywords - see LocationCity.tsx for the fallback-to-
77
+ // template logic when these are unset.
78
+ seo_title?: string
79
+ seo_description?: string
80
+ seo_keywords?: string
65
81
  }
66
82
 
67
83
  export interface StopData {
package/types/settings.ts CHANGED
@@ -18,6 +18,16 @@ export interface SettingsData {
18
18
  telegram: { available: boolean, price: number }
19
19
  }
20
20
 
21
+ // Edited: Ferjolt Ozuni - Date: 2026-07-31
22
+ // Optional admin-managed override for the homepage's title/description/
23
+ // keywords (Labels\AdminController::seo()) - StaticHome.tsx prefers these
24
+ // over its i18n translation-template values when set.
25
+ seo?: {
26
+ title?: string
27
+ description?: string
28
+ keywords?: string
29
+ }
30
+
21
31
  preferences: {
22
32
  company: string
23
33
 
@@ -194,6 +204,15 @@ export interface LabelSettings {
194
204
  linkedin?: string
195
205
  trustpilot?: string
196
206
  }
207
+
208
+ // Edited: Ferjolt Ozuni - Date: 2026-07-31
209
+ // Admin-managed homepage SEO override (public seo? above is populated
210
+ // from this) - see Labels\AdminController::seo().
211
+ seo?: {
212
+ title?: string
213
+ description?: string
214
+ keywords?: string
215
+ }
197
216
  }
198
217
 
199
218
  // Edited: Ferjolt Ozuni - Date: 2026-07-18