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

Resolved Screen Resizing Map Modal Content Cutoff Issue #373

Merged
merged 16 commits into from
Oct 14, 2024

Conversation

CasperL1218
Copy link
Contributor

@CasperL1218 CasperL1218 commented Oct 7, 2024

Summary

This is a continuation of the closed PR #357.

This pull request is result of resolving the resizing issue of the map modal, where the information content in the map modal will be cutoff/overflow when screen size is reduced.

  • implemented screen size detection hooks
  • fixed map modal and its sub-component's size parameters; changed to be responsive to different screen sizes. The text info will vanish after zooming/screen size reduce to a certain level. (based on the theme sizes defined by the useTheme react hook).
  • implemented zoom in/out buttons for mobile screen mode

Test Plan

Screenshot 2024-10-06 at 20 32 44
  • Map modal in 100% screen size
Screenshot 2024-10-06 at 20 33 22
  • Map modal in 110% screen size
Screenshot 2024-10-06 at 20 33 46
  • Map modal in 125% screen size (image above)
Screenshot 2024-10-06 at 20 34 02
  • Map modal in 150% screen size (image above)
Screenshot 2024-10-06 at 20 34 48
  • Map modal in 175% screen size (image above)
Screenshot 2024-10-06 at 20 35 26
  • Map modal in 300% screen size (image above)

The same idea applies for non-full-screen screen sizes.

Screenshot 2024-10-06 at 20 31 23
  • Zoom in/out buttons for mobile screen mode

Notes

Screenshot 2024-10-06 at 20 29 19
  • text wrapping issue for the basic map will require confirmation from designers to address desired design style (e.g. "Engineering Quad")

CasperL1218 and others added 13 commits March 3, 2024 14:08
- Update apartment icon pin image
- Remove development console log message
- Added component documentation for MapInfo component
- Implemented map modal component
- Removed driving time info from default map
- Added landmark distance info to location information
- Added documentation for map modal component

Future tasks
- Implement location info for modal map (landmarks, driving/waling time)
- Implement recenter button functionality
- Decrease marker size for apartment/landmarks to fit design
- Implemented recenter button
- Updated icon for campus landmarks
- Updated distance information layout for map modal
- Implemented zoom in/out buttons for small map and map modal
- Resolved firebase import issues by adding new export and import statements
- Implemented screen size detection hook
- Changed modal and subcomponent sizing parameters to be responsive to screen size changes
@dti-github-bot
Copy link
Member

dti-github-bot commented Oct 7, 2024

[diff-counting] Significant lines: 722.

Copy link
Contributor

@ggsawatyanon ggsawatyanon left a comment

Choose a reason for hiding this comment

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

Good job on completing this important map feature, Casper! You've worked super hard on this since last semester and improved your understanding of frontend a lot throughout implementing this feature. The adaptivity and mobile view for this is also seamless and looks great. Good job again :)

@ggsawatyanon ggsawatyanon merged commit dfe54dd into main Oct 14, 2024
4 checks passed
@ggsawatyanon ggsawatyanon deleted the grace-fix-integrated-map branch October 14, 2024 19: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.

3 participants