Skip to content

Ab#569:Fix wait leg circle color and alignment#5832

Merged
vesameskanen merged 4 commits into
v3from
AB#569
May 22, 2026
Merged

Ab#569:Fix wait leg circle color and alignment#5832
vesameskanen merged 4 commits into
v3from
AB#569

Conversation

@Antiik91
Copy link
Copy Markdown
Member

Proposed Changes

  • Wait leg's top circle is now suppressed if last leg was transit leg.
  • Refactored ItineryCircleLineWithIcon from class component to function component
  • Added unit tests

Pull Request Check List

  • A reasonable set of unit tests is included
  • Console does not show new warnings/errors
  • Changes are documented or they are self explanatory
  • This pull request does not have any merge conflicts
  • All existing tests pass in CI build

Review

  • Read and verify the code changes
  • Test the functionality by running the UI locally with all popular browsers available in your platform
  • Check that the implementation matches the design, when such one is defined in an issue in Azure Boards
  • Merge the pull request

Comment on lines 25 to 27
const isFirstChild = () => {
return !isNotFirstLeg && index === 0 && !viaType;
};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please refactor this too - there is no reason to declare this kind of function. Maybe add a comment when the condition is needed later in code.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Comment on lines +172 to +173
ItineraryCircleLineWithIcon.defaultProps = {
viaType: null,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We do not want to use default props any more. Check for example LegInfo.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

@vesameskanen vesameskanen merged commit b0e3c33 into v3 May 22, 2026
7 checks passed
@vesameskanen vesameskanen deleted the AB#569 branch May 22, 2026 09:28
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