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

feat: beatutify busTooltip & make lineProfilePage actually work #744

Merged
merged 13 commits into from
May 12, 2024

Conversation

itsoriki
Copy link
Collaborator

@itsoriki itsoriki commented May 9, 2024

Resolves #543

Description

  • make LineProfilePage fully functional
  • style BusTooltip according to language (also add a collapsible section)

screenshots

image
image
image
image
image
image
image

…e line pages

All the logic existed before - I just moved it into a hook to enable reuse!

This hook supports both SingleLineMap Page & LineProfile Page as they need practically the same information
@itsoriki itsoriki changed the title feat: beatutify both busTooltip & lineProfilePage feat: beatutify busTooltip & make lineProfilePage actually work May 11, 2024
@itsoriki itsoriki marked this pull request as ready for review May 11, 2024 15:56
@itsoriki itsoriki requested a review from NoamGaash as a code owner May 11, 2024 15:56
@itsoriki
Copy link
Collaborator Author

@NoamGaash I can't figure out why that one job is failing consistently - No real error is printed to the console...
image

@NoamGaash
Copy link
Member

@itsoriki yup that's bad
let's start with #747

@NoamGaash
Copy link
Member

run npm run lint on your branch

@NoamGaash NoamGaash mentioned this pull request May 11, 2024
@itsoriki
Copy link
Collaborator Author

itsoriki commented May 12, 2024

@NoamGaash Sorry for the "mess" - can you review this PR now that everything has passed?

Btw the @all-contributors friend of ours doesn't seem to care at all about adding me to the contributors list :(

Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

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

That's a great improvement!
few suggestions:

  1. I'm not sure that we need the expanding button - what is it good for?
  2. We can consider translating the direction (290 מעלות) to geographic terms (צפון מערב, אזימוט 290)
  3. when the tooltip is too tall. we can add an inner scrollbar or something similar

wdyt?

src/pages/components/map-related/MapLayers/BusToolTip.tsx Outdated Show resolved Hide resolved
Comment on lines +40 to +42
useEffect(() => {
window.scrollTo(0, 0)
}, [])
Copy link
Member

Choose a reason for hiding this comment

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

why is it needed?

Copy link
Collaborator Author

@itsoriki itsoriki May 12, 2024

Choose a reason for hiding this comment

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

I don't know why, but when you first arrive on this page, you are not at the top of it (i.e. you don't see the title for example) (see picture for the view when you first arrive the page)

image

Is there a better way to do it?

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure, we can investigate that later

src/pages/lineProfile/LineProfile.tsx Outdated Show resolved Hide resolved
@itsoriki
Copy link
Collaborator Author

That's a great improvement! few suggestions:

  1. I'm not sure that we need the expanding button - what is it good for?
  2. We can consider translating the direction (290 מעלות) to geographic terms (צפון מערב, אזימוט 290)
  3. when the tooltip is too tall. we can add an inner scrollbar or something similar

wdyt?

  1. Removed the expanding button
  2. I'll open a new (good-first) issue for that
  3. Added an inner scrollbar to the BusTooltip

@itsoriki itsoriki enabled auto-merge (squash) May 12, 2024 10:00
@itsoriki itsoriki merged commit cf0e663 into main May 12, 2024
16 checks passed
@itsoriki itsoriki deleted the feat/visualize-data-of-bus-lines-in-time-based-map branch May 12, 2024 10:05
@NoamGaash
Copy link
Member

Thank you! 👏

@all-contributor please add @itsoriki for code :)

@NoamGaash
Copy link
Member

maybe
@all-contributors please add @itsoriki for code
?

Copy link
Contributor

@NoamGaash

I've put up a pull request to add @itsoriki! 🎉

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.

Visualize data about a bus-line
2 participants