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

DT-6175 part 3 - more refactoring #4934

Merged
merged 58 commits into from
Jan 26, 2024
Merged

DT-6175 part 3 - more refactoring #4934

merged 58 commits into from
Jan 26, 2024

Conversation

vesameskanen
Copy link
Member

No description provided.

Copy link
Member

@optionsome optionsome left a comment

Choose a reason for hiding this comment

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

There is a conflict.

Pure bicycle itineraries don't show up anymore.

with HSL config (cars enabled) the following itinerary search crashed: /reitti/Valittu sijainti%3A%3A60.350679325290315%2C24.472990036010742/Valittu sijainti%3A%3A60.16536744905669%2C24.84404146671295?time=1705615030 with stack trace:

Uncaught TypeError: leg is undefined getExtendedMode webpack:///./app/util/legUtils.js?:512 StreetModeSelectorButton webpack:///./app/component/StreetModeSelectorButton.js?:59 React 11 unstable_runWithPriority webpack:///./node_modules/scheduler/cjs/scheduler.development.js?:653 React 6 queryAdditionalItineraries webpack:///./app/component/ItineraryPage.js?:453 [5f6a84d5c3494fabb042.js line 59 > eval:512:41](http://localhost:8080/proxy/js/5f6a84d5c3494fabb042.js%20line%2059%20%3E%20eval) getExtendedMode webpack:///./app/util/legUtils.js?:512

@vesameskanen vesameskanen marked this pull request as draft January 24, 2024 14:03
Itinerary page has 50% less code than before, and basic functionality works.
Error messages and notifiers still need refactoring.
@vesameskanen vesameskanen marked this pull request as ready for review January 24, 2024 15:34
@@ -31,14 +32,14 @@ export const StreetModeSelectorButton = (
const duration = durationToString(itinerary.duration * 1000);
let distance = 0;
switch (name) {
case 'WALK':
case streetHash.walk:
Copy link
Member

Choose a reason for hiding this comment

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

Why was it 'WALK'? Does this work?

@optionsome optionsome merged commit 1eda819 into v3 Jan 26, 2024
6 checks passed
@optionsome optionsome deleted the DT-6175-3 branch January 26, 2024 10:54
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.

2 participants