Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding CPTemplate showTripPreviews method #203

Open
tristanheilman opened this issue Jul 24, 2024 · 0 comments
Open

Question regarding CPTemplate showTripPreviews method #203

tristanheilman opened this issue Jul 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tristanheilman
Copy link

Describe the bug
Not entirely sure if this is a bug, intended, or still in progress. I am working with the MapTemplate and the Trip object to show a "trip preview". The provided Trip object has an origin, destination, and routeChoices array. When I call the showTripPreviews method the shown content only shows the destination.name and routeChoices[index].selectionSummaryVariants values along with the startButtonTitle value passed on the text configuration object. Why does the origin data not get represented in anyway? Is it possible to modify this template to show content differently or with additional information?

To Reproduce
Steps to reproduce the behavior:

  1. Create a MapTemplate
  2. Call the showTripPreviews method with a single trip object and text configuration
  3. See the confusion with how the Trip object is utilized

Expected behavior
I expect to see all content values that I pass be utilized in some way; unsure what's happening with the origin object and why it's not being displayed. Curious if the template can be modified to contain extra elements.

Screenshots/Videos

Associated Trip Object

new Trip({
  origin: {
    name: '6304 Desmond St',
    latitude: 39.16241,
    longitude: -84.38708,
    
  },
  destination: {
    name: "Bee's BBQ",
    latitude: 39.16356,
    longitude: -84.39269,
    
  },
  routeChoices: [
    {
      additionalInformationVariants: [
        'Via DK45'
      ],
      summaryVariants: [
        'Fastest route now'
      ],
      selectionSummaryVariants: [
        'This is Summary for DK45'
      ],
      
    },
    
  ],
  userInfo: {
    tripId: '12345',
    someName: 'Test Name',
    
  },
  
})

Screenshot 2024-07-24 at 2 21 39 PM

CarPlay (please complete the following information):

  • Device: iPhone 13 Pro Max Simulator
  • OS version: iOS 17.2
  • RNCarPlay version: 2.4.1-beta.0

Android Auto (please complete the following information):

  • Device: n/a
  • Android Version: n/a
  • RNCarPlay version n/a

Additional context
No additional context at this time.

@tristanheilman tristanheilman added the bug Something isn't working label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant