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

Bhavpreet- Create choosing village map frontend #3293

Open
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

fangedShadow
Copy link

@fangedShadow fangedShadow commented Mar 20, 2025

Description

This feature is an interactive master plan map that allows users to select villages by clicking on designated areas within the image, leading them to specific pages. It includes responsive design, visual feedback on interaction, and village list.
image_2025-03-20_182124818

Related PRS (if any):

This PR has my frontend branch and development branch on the backend to test.

Main changes explained:

-Interactive master plan image map
-Clickable village areas with navigation to village-specific pages
-Responsive design for all screen sizes
-on a click on the selected button it takes you to that villages's id page

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as any user
  5. go to /lbdashboard/masterplan
  6. verify feature as shown in the video

Screenshots or videos of changes:

Screen.Recording.2025-03-19.200022.mp4

Note:

Let me know if you are facing any issues. And It is only a frontend with data that needs to be connected with backend. Please either approve or request changes based on your review— no comments please.

Copy link

netlify bot commented Mar 20, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 9a050a0
🔍 Latest deploy log https://app.netlify.com/sites/highestgoodnetwork-dev/deploys/67e87ba15fb2100008084d29
😎 Deploy Preview https://deploy-preview-3293--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

angad363
angad363 previously approved these changes Mar 21, 2025
Copy link

@angad363 angad363 left a comment

Choose a reason for hiding this comment

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

I followed the testing steps as outlined in the PR description and navigated to /lbdashboard/masterplan. The interactive map is functioning as expected, allowing users to select villages and navigate to their respective pages. The responsiveness is well-implemented, ensuring proper display across different screen sizes. I also reviewed the code, and it looks well-structured and aligns with the quality standards. Refer to the attached video for further confirmation. Hence, approving the PR.

PR.3293.mp4

@fangedShadow fangedShadow requested a review from angad363 March 24, 2025 07:33
@fangedShadow fangedShadow added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Mar 26, 2025
Copy link

@smohansatyaram smohansatyaram left a comment

Choose a reason for hiding this comment

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

The interactive image map functionality works as expected, with one minor usability observation:

Issue:
When clicking on a village area in the map, the corresponding image at the bottom of the page is highlighted. However, since the highlighted image is not immediately visible (requiring scrolling to view), the visual feedback may go unnoticed.

Suggestion:
Ensure the highlighted image is automatically brought into the viewport (e.g., via smooth scrolling) when a village area is clicked. This will improve user experience by visible without manual scrolling.

Other Notes:
All other features (responsive design, hover effects, fallback options, etc.) function correctly.

18-41-29.mp4

Copy link

@vaibhavkoladiya vaibhavkoladiya left a comment

Choose a reason for hiding this comment

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

One improvement suggestion:
Currently, when a village number is clicked on the map, it correctly highlights the corresponding village-specific page. However, if the highlighted page is not in the current viewport, users need to manually scroll to find it, which may affect usability and the overall experience.

Recommendation:
It would be great to enhance this by adding automatic scrolling to the highlighted village-specific page when a village number is clicked on the map. This would ensure a smoother and more intuitive user experience

Screen.Recording.2025-03-27.224339.mp4

@pdp5 pdp5 self-requested a review March 28, 2025 18:15
Copy link

@pdp5 pdp5 left a comment

Choose a reason for hiding this comment

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

I have followed the testing instructions and reviewed your changes, and everything is functioning as expected. The interactive master plan image map, clickable village areas that navigate to village-specific pages, responsive design for all screen sizes, and the functionality where clicking on a selected button takes you to the corresponding village's page are all working correctly.

However, I have one recommendation. When clicking on a village on the map, it highlights the village, but if the village is outside the viewport, the page does not automatically scroll to bring it into view, requiring manual scrolling to locate the highlighted village.

PR-3293.mp4

@fangedShadow
Copy link
Author

The interactive image map functionality works as expected, with one minor usability observation:

Issue: When clicking on a village area in the map, the corresponding image at the bottom of the page is highlighted. However, since the highlighted image is not immediately visible (requiring scrolling to view), the visual feedback may go unnoticed.

Suggestion: Ensure the highlighted image is automatically brought into the viewport (e.g., via smooth scrolling) when a village area is clicked. This will improve user experience by visible without manual scrolling.

Other Notes: All other features (responsive design, hover effects, fallback options, etc.) function correctly.

18-41-29.mp4

The interactive image map functionality works as expected, with one minor usability observation:

Issue: When clicking on a village area in the map, the corresponding image at the bottom of the page is highlighted. However, since the highlighted image is not immediately visible (requiring scrolling to view), the visual feedback may go unnoticed.

Suggestion: Ensure the highlighted image is automatically brought into the viewport (e.g., via smooth scrolling) when a village area is clicked. This will improve user experience by visible without manual scrolling.

Other Notes: All other features (responsive design, hover effects, fallback options, etc.) function correctly.

18-41-29.mp4

The issue with adding automatic scrolling is that it would move the viewport even when a user does not intend to select a village, such as when exploring the map, mis-clicking, or reviewing options. Additionally, the interactive map is primarily a navigation tool, and clicking on a village is not meant to immediately shift focus but to indicate selection. The routes on the left will be updated later, providing more detailed guidance, which will help users understand the village layout. Since this map serves as an initial reference, forcing a scroll may not align with its intended function.

Copy link

@vamsikrishna1704 vamsikrishna1704 left a comment

Choose a reason for hiding this comment

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

Hi @fangedShadow,
I have reviewed the PR and ran the application on my system using the instructions. I have noticed that the village map is enabled with pinning which highlights the site pinned on the map. I have also verified the dynamic adjusting nature of the contents on screen resize. I found one problem which is when I click on the site, it is highlighted in the slide bar below but not scrolled towards it to check. Please have a look at it and if possible fix it. Thank you.
Masterplan

@fangedShadow fangedShadow dismissed stale reviews from vamsikrishna1704 and smohansatyaram March 29, 2025 22:15

The merge-base changed after approval.

Copy link

@karnati007 karnati007 left a comment

Choose a reason for hiding this comment

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

Reviewed and tested the interactive image map functionality. Everything is working as expected, including village selection, navigation, responsiveness, and fallback options. However, for visual feedback, highlighting works, but users need to manually scroll down to notice the change. Consider adjusting visibility or adding a smoother way to indicate the selection.
BhavHP

Copy link

@smohansatyaram smohansatyaram left a comment

Choose a reason for hiding this comment

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

Updated PR Review:

After reconsidering the automatic scrolling suggestion, I see your point about unintended viewport shifts and how the map serves as an initial reference rather than a primary navigation tool. Given this, I agree that forcing a scroll may not align with its intended function.

That said, I re-reviewed the other aspects of the implementation:

Functionality – The interactive image map behaves as expected, with correct area highlighting and no apparent technical issues.
Responsiveness – The map adjusts well across different screen sizes.
Hover Effects – Clear and consistent across the UI.
Fallback Options – The system handles cases where images or map data may not load properly.

No further changes are needed from my side. Thanks for the clarification on the intended user interaction!

Screenshot (10)
Screenshot (11)
Screenshot (14)
Screenshot (15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible Urgent Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants