@autobusal/providers 1.5.0 → 1.6.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,32 @@ 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.6.0] - 2026-07-30
8
+
9
+ ### Added
10
+
11
+ - **Sitewide `Organization` + `WebSite` JSON-LD** (`Setup/Preload.tsx`), via
12
+ the new `@autobusal/common` `JsonLd` component - the entity-grounding
13
+ signal AI assistants and Google's Knowledge Graph use to resolve "who is
14
+ this brand". `Organization.sameAs` is populated from
15
+ `preferences.social.*`. No `WebSite.potentialAction`/SearchAction -
16
+ that schema is for a single free-text query field (Google's sitelinks
17
+ searchbox); this app's search is two-field (from/to), so a SearchAction
18
+ here would be invalid structured data, not a working sitelinks box.
19
+
20
+ ## [1.5.1] - 2026-07-30
21
+
22
+ ### Fixed
23
+
24
+ - **`Errors/Message.tsx` (404 / system error page) never rendered a
25
+ `<title>` of its own** - relied entirely on `Preload`'s app-shell fallback
26
+ (the company name), and shipped `noIndex` neither. Now renders its own
27
+ `<Meta>` with the localized not-found/system-error message as the title
28
+ and `noIndex={true}` - error pages have no unique content worth indexing.
29
+ Pairs with `@autobusal/common` 1.5.1's title-ownership fix in the same
30
+ release, which also cleans up the resulting `<title>` duplication with
31
+ `Preload`'s fallback.
32
+
7
33
  ## [1.5.0] - 2026-07-30
8
34
 
9
35
  ### Fixed
@@ -1,5 +1,5 @@
1
1
  import { useNavigate } from 'react-router-dom';
2
- import { Button } from '@autobusal/common';
2
+ import { Button, Meta } from '@autobusal/common';
3
3
  import { useSystemTheme } from '@autobusal/hooks';
4
4
  import { getLanguage } from '../Setup/languages';
5
5
  import errors from '@lang/errors';
@@ -25,7 +25,7 @@ const Message = ({ type }: Props): JSX.Element => {
25
25
  const translations = errors[language as keyof typeof errors] ?? errors.en;
26
26
 
27
27
  return (
28
- <>
28
+ <Meta title={ type === 'not_found' ? translations.not_found : translations.system } noIndex={ true }>
29
29
  <Background />
30
30
 
31
31
  <Container className="box">
@@ -54,7 +54,7 @@ const Message = ({ type }: Props): JSX.Element => {
54
54
  onClick={ () => navigate('/') }
55
55
  />
56
56
  </Container>
57
- </>
57
+ </Meta>
58
58
  );
59
59
  };
60
60
 
package/Setup/Preload.tsx CHANGED
@@ -1,3 +1,4 @@
1
+ import { JsonLd } from '@autobusal/common';
1
2
  import { SettingsData } from '../types/settings';
2
3
  import { useSystemTheme } from '@autobusal/hooks';
3
4
 
@@ -22,6 +23,30 @@ const Preload = ({ data, children }: Props): JSX.Element => {
22
23
 
23
24
  const primaryColor = data.colors[theme].primary.normal;
24
25
 
26
+ // sitewide Organization + WebSite structured data - the entity-grounding
27
+ // signal AI assistants and Google's Knowledge Graph use to resolve "who is
28
+ // this brand". Rendered once here rather than per-page since it describes
29
+ // the SITE, not a specific page. No WebSite `potentialAction`/SearchAction:
30
+ // that schema is meant for a single free-text query field (Google's
31
+ // sitelinks searchbox), and this app's search is inherently two-field
32
+ // (from/to) - forcing it into that shape would just be invalid structured
33
+ // data, not a working sitelinks box.
34
+ const organizationLd = {
35
+ '@context': 'https://schema.org',
36
+ '@type': 'Organization',
37
+ name: data.preferences.company,
38
+ url: data.url,
39
+ logo: `${ data.url }/favicons/apple-touch-icon.png`,
40
+ sameAs: Object.values(data.preferences.social).filter(Boolean)
41
+ };
42
+
43
+ const websiteLd = {
44
+ '@context': 'https://schema.org',
45
+ '@type': 'WebSite',
46
+ name: data.preferences.company,
47
+ url: data.url
48
+ };
49
+
25
50
  return (
26
51
  <>
27
52
  <title>{ data.preferences.company }</title>
@@ -38,6 +63,9 @@ const Preload = ({ data, children }: Props): JSX.Element => {
38
63
 
39
64
  <link href={ `https://fonts.googleapis.com/css2?family=${ fontTitle }:wght@700&family=${ fontContent }:wght@300;400;700&display=swap` } rel="stylesheet" />
40
65
 
66
+ <JsonLd data={ organizationLd } />
67
+ <JsonLd data={ websiteLd } />
68
+
41
69
  { children }
42
70
  </>
43
71
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"