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

Enable https://github.com/opentripplanner/otp-react-redux/pull/1266 in call taker #1295

Merged
merged 7 commits into from
Nov 22, 2024

Conversation

miles-grant-ibigroup
Copy link
Collaborator

Description:
Enables syncSortWithDepartArrive to work in call taker. Mostly the same code

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix type


if (
syncSortWithDepartArrive &&
DepartArriveTypeMap[departArrive as DepartArriveValue] !== sort.type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cast departArrive wherever you get it from

Copy link
Collaborator Author

@miles-grant-ibigroup miles-grant-ibigroup Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a useState. TS doesn't like me typing it at definition time

lib/components/form/call-taker/date-time-picker.tsx Outdated Show resolved Hide resolved
@miles-grant-ibigroup
Copy link
Collaborator Author

@daniel-heppner-ibigroup Typescript is giving me some trouble

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it for you please look at my commit

@miles-grant-ibigroup
Copy link
Collaborator Author

Much cleaner thanks

Copy link
Contributor

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@miles-grant-ibigroup miles-grant-ibigroup merged commit a9ce15f into dev Nov 22, 2024
9 checks passed
@miles-grant-ibigroup miles-grant-ibigroup deleted the sync-departarrive-on-calltaker branch November 22, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants