Skip to content

Commit ebfb0c9

Browse files
committed
Added Tesla sights
1 parent 40f1a87 commit ebfb0c9

File tree

5 files changed

+46
-1
lines changed

5 files changed

+46
-1
lines changed

documentation/src/components/Sights/SightCard/SightCard.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const vehicleModelDisplayOverlays: Record<Exclude<VehicleModel, VehicleModel.ALL
1919
[VehicleModel.VWTROC]: sights['vwtroc-IzMR_OzQ'].overlay,
2020
[VehicleModel.MAN12]: sights['man12-u8GNhGqe'].overlay,
2121
[VehicleModel.TESLAM3]: sights['teslam3-Bt4VnLRj'].overlay,
22+
[VehicleModel.TESLAMY]: sights['teslamy-F9Nr3VtK'].overlay,
23+
[VehicleModel.TESLAMX]: sights['teslamx-aT9LpF7y'].overlay,
24+
[VehicleModel.TESLAMS]: sights['teslams-Km9XrLp5'].overlay,
2225
};
2326

2427
export interface SightCardProps {

packages/sights/research/data/vehicles.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,23 @@
7171
"make": "Tesla",
7272
"model": "Model 3",
7373
"type": "sedan"
74+
},
75+
"teslamy": {
76+
"id": "teslamy",
77+
"make": "Tesla",
78+
"model": "Model Y",
79+
"type": "cuv"
80+
},
81+
"teslams": {
82+
"id": "teslams",
83+
"make": "Tesla",
84+
"model": "Model S",
85+
"type": "sedan"
86+
},
87+
"teslamx": {
88+
"id": "teslamx",
89+
"make": "Tesla",
90+
"model": "Model X",
91+
"type": "cuv"
7492
}
7593
}

packages/sights/research/schemas/subschemas/vehicle.schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"tsienna20",
1515
"vwtroc",
1616
"man12",
17-
"teslam3"
17+
"teslam3",
18+
"teslamy",
19+
"teslams",
20+
"teslamx"
1821
]
1922
}

packages/sights/src/lib/data.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ import vwtrocSightsJSON from './data/sights/vwtroc.json';
3434
import man12SightsJSON from './data/sights/man12.json';
3535
// @ts-ignore
3636
import teslam3SightsJSON from './data/sights/teslam3.json';
37+
// @ts-ignore
38+
import teslamySightsJSON from './data/sights/teslamy.json';
39+
// @ts-ignore
40+
import teslamxSightsJSON from './data/sights/teslamx.json';
41+
// @ts-ignore
42+
import teslamsSightsJSON from './data/sights/teslams.json';
3743

3844
/**
3945
* Object map associating translation keys to sight labels translations.
@@ -61,6 +67,9 @@ const sights = {
6167
...vwtrocSightsJSON,
6268
...man12SightsJSON,
6369
...teslam3SightsJSON,
70+
...teslamySightsJSON,
71+
...teslamxSightsJSON,
72+
...teslamsSightsJSON,
6473
} as SightDictionary;
6574

6675
/**

packages/types/src/sights.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,18 @@ export enum VehicleModel {
124124
* Tesla Model 3 (sedan)
125125
*/
126126
TESLAM3 = 'teslam3',
127+
/**
128+
* Tesla Model Y (CUV)
129+
*/
130+
TESLAMY = 'teslamy',
131+
/**
132+
* Tesla Model S (sedan)
133+
*/
134+
TESLAMS = 'teslams',
135+
/**
136+
* Tesla Model X (CUV)
137+
*/
138+
TESLAMX = 'teslamx',
127139
}
128140

129141
/**

0 commit comments

Comments
 (0)