Skip to content

Commit cd4d15a

Browse files
committed
refactor(MapPlaceCard): update documentation and naming for clarity
Renamed the title and descriptions in MapPlaceCard stories to reflect the updated component name and improve clarity. Changed references from "Location cards" to "Map place cards" to ensure consistency across the documentation.
1 parent b009771 commit cd4d15a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/ui/src/components/Map/CompactMap.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ const CompactMapDoc: FC = () => {
431431
{
432432
name: 'onLocationSelect',
433433
description:
434-
'Callback when a location card or marker is selected: (id: string) => void.',
434+
'Callback when a map place card or marker is selected: (id: string) => void.',
435435
},
436436
{
437437
name: 'onLocationActive',

packages/ui/src/components/Map/LocationCarousel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export interface LocationCarouselProps {
1313
locations: LocationData[];
1414

1515
/**
16-
* ID of the currently selected location.
16+
* ID of the currently selected map place card.
1717
*/
1818
selectedId?: string;
1919

2020
/**
21-
* Callback when a location card is clicked.
21+
* Callback when a map place card is clicked.
2222
*/
2323
onLocationSelect?: (id: string | undefined) => void;
2424

@@ -28,7 +28,7 @@ export interface LocationCarouselProps {
2828
className?: string;
2929

3030
/**
31-
* Loading state - renders skeleton location cards
31+
* Loading state - renders skeleton map place cards
3232
* @default false
3333
*/
3434
loading?: boolean;

packages/ui/src/components/Map/MapPlaceCard.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react';
33
import { MapPlaceCard } from './MapPlaceCard';
44

55
const meta: Meta<typeof MapPlaceCard> = {
6-
title: 'Composed Components/Cards/Location Cards',
6+
title: 'Composed Components/Cards/Map Place Cards',
77
component: MapPlaceCard,
88
parameters: {
99
layout: 'padded',
@@ -57,8 +57,8 @@ const MapPlaceCardShowcase: React.FC = () => {
5757
lineHeight: '1.6',
5858
}}
5959
>
60-
Location cards display places with thumbnail images, titles, and configurable features.
61-
Perfect for maps, location lists, and place pickers with full state management support.
60+
Map place cards display places with thumbnail images, titles, and configurable features.
61+
Perfect for maps, map place lists, and place pickers with full state management support.
6262
</p>
6363
</section>
6464

packages/ui/src/components/Map/Maps.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const MapSystemComponent: React.FC = () => {
171171
A comprehensive map-based location system with three complementary components:{' '}
172172
<strong>Map</strong> (orchestrator),
173173
<strong> CompactMap</strong> (inline experience), and <strong>FullscreenMap</strong>{' '}
174-
(full-featured view). Built on Leaflet with interactive markers, location cards, multiple
174+
(full-featured view). Built on Leaflet with interactive markers, map place cards, multiple
175175
layout options, and integrated support for ChatGPT Apps SDK.
176176
</p>
177177
<div style={{ display: 'flex', flexDirection: 'column', gap: '8px', fontSize: '14px' }}>
@@ -798,7 +798,7 @@ const handleMapToggle = (fullscreen: boolean) => {
798798
},
799799
{
800800
name: 'thumbnail',
801-
description: 'Image URL for location card (required)',
801+
description: 'Image URL for map place card (required)',
802802
},
803803
{
804804
name: 'subtitle',

0 commit comments

Comments
 (0)