Skip to content

Conversation

tilakjain619
Copy link
Contributor

@tilakjain619 tilakjain619 commented Jul 23, 2025

  • Added get_user_country() to detect user location using IP address
  • Integrated country-wise crisis helplines (IN, US, GB, AU) in sidebar
  • Implemented fallback link to IASP global helpline directory
  • Displayed helplines dynamically based on detected country
  • Added requests package to requirements.txt
  • Linked to Issue Crisis Support #6 - Closes Crisis Support #6

@eccentriccoder01
Copy link
Owner

Thanks for the contribution, @tilakjain619 ! The mentioned additions look really useful. But before merging, could you please:

  • Pull the latest changes from main and resolve the merge conflicts.
  • Share the deployment link and attach relevant screenshots/GIFs

Once this is done, we’ll proceed with the review and testing. Excellent progress!

@tilakjain619
Copy link
Contributor Author

Merge Conflicts Resolved

Updated the sidebar and solved the merge conflicts.

@eccentriccoder01
Copy link
Owner

@tilakjain619 Great, could you share the working deployment link of yours❔

@tilakjain619
Copy link
Contributor Author

@eccentriccoder01
Copy link
Owner

eccentriccoder01 commented Jul 24, 2025

Hi @tilakjain619
The current deployment from main shows this in the Crisis Support section:
image

Your PR's deployment shows just this:
image

Could you elaborate a bit on how your pushed changes work? It's a bit unclear to me. Thanks!

@tilakjain619
Copy link
Contributor Author

The current IP detection is picking up the server location (Streamlit’s US-based host, that's why it's showing US contacts), not the user’s actual IP. I’ll update this with browser-side geolocation or a country override. Thanks for pointing it out!

@eccentriccoder01
Copy link
Owner

Alright @tilakjain619, also please stay updated with the latest changes in the upstream, as the main is constantly being updated by multiple people. Thanks!

@tilakjain619
Copy link
Contributor Author

I've resolved the merge conflicts. I updated get_user_country() to use user’s actual browser location via streamlit-js-eval. Here is deployment link: https://crisis-support-lgu5kyqwwvhwna64yugbkn.streamlit.app/

Updated Emergency Contact section:
image

@eccentriccoder01
Copy link
Owner

Great work @tilakjain619 ! I'm merging this now, thank you for all your hard work on this and efforts in improving TalkHeal... Feel free to work on more issues 💙

@eccentriccoder01 eccentriccoder01 merged commit 4541fbd into eccentriccoder01:main Jul 31, 2025
@github-actions github-actions bot added enhancement New feature or request gssoc25 level 2 labels Aug 1, 2025
@tilakjain619
Copy link
Contributor Author

Thanks a lot! I appreciate your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc25 level 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crisis Support
2 participants