Skip to content

Commit 66d1232

Browse files
authored
feat(website/matchers): add @Format location to Location interface (#1630)
Tag the Location interface with @Format location so the Studio can render a purpose-built widget for city/regionCode/country instead of three free text inputs (which are easy to typo silently). No runtime change — matcher logic and expected data shapes are untouched. Existing configured values keep working; falls back to default rendering until a Studio-side widget for `location` lands. Mirrors the equivalent change on decocms/apps-start #84.
1 parent 120b444 commit 66d1232

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

website/matchers/location.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export interface Map {
1313
*/
1414
coordinates?: MapWidget;
1515
}
16+
/**
17+
* @format location
18+
*/
1619
export interface Location {
1720
/**
1821
* @title City

0 commit comments

Comments
 (0)