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

nearby view new alwaysShowLongName setting #1237

Merged
merged 4 commits into from
Jul 1, 2024

Conversation

miles-grant-ibigroup
Copy link
Collaborator

Description:
If this is enabled we will show a route long name always, regardless of if there is a duplicate. Only to be enabled in special use cases.

Screenshot 2024-06-13 at 11 46 18 AM

Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup left a comment

Choose a reason for hiding this comment

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

Thoughts on adding pattern.route.longName to the conditional?

lib/components/viewers/pattern-row.tsx Outdated Show resolved Hide resolved
example-config.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup left a comment

Choose a reason for hiding this comment

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

Looking good to me!!

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.

Looks good!

@@ -101,6 +103,11 @@ const PatternRow = ({
/>
</span>
<span style={{ wordBreak: 'break-word' }} title={pattern.headsign}>
{alwaysShowLongName && !!pattern.route.longName && (
Copy link
Contributor

Choose a reason for hiding this comment

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

I like the idea of avoiding the crash and having layout issues. Maybe insert a comment here, warning about the potential layout issues to compliment the comment in the config?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea

@miles-grant-ibigroup miles-grant-ibigroup merged commit a4efecf into dev Jul 1, 2024
9 checks passed
@miles-grant-ibigroup miles-grant-ibigroup deleted the nearby-view-optional-long-name-rendering branch July 1, 2024 14:31
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