[FEAT] Add Legal Rights Learning Hub for Citizen Awareness (#411)#1412
[FEAT] Add Legal Rights Learning Hub for Citizen Awareness (#411)#1412nandani-singh15 wants to merge 2 commits into
Conversation
|
@nandani-singh15 is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @nandani-singh15, thanks for contributing to Nyay Setu! 🎉 I have automatically:
Our workflows will now analyze your changes to classify:
Tip Ensure your PR description references the issue it resolves (e.g. Happy coding! 🚀 |
|
@viru0909-dev kindly review and merge this pr |
viru0909-dev
left a comment
There was a problem hiding this comment.
⚠️ Minor Tweaks Required
The Legal Rights Hub feature looks fantastic! Great layout and clean architecture. Just a couple of minor things before we can merge:
- i18n Support: In
Header.jsx, the navigation link is hardcoded as{ labelKey: 'Legal Rights', href: '/legal-rights', isRoute: true }. Please add a translation key to the i18n JSON files (e.g.,header.nav.legalRights) and use it here so the label translates properly. - Remove Placeholder Alert: In
CategoryDetails.jsx, the share button triggersalert('Share feature coming soon!'). Please remove the nativealert()and use the application's Toast notification system instead, or temporarily hide the share button if it's not ready.
Once these are updated, ping me and I'll approve!
viru0909-dev
left a comment
There was a problem hiding this comment.
PR has merge conflicts in App.jsx. Please resolve them.
GonuDvc
left a comment
There was a problem hiding this comment.
Tested locally and it works. Consider extracting the retry logic into a shared utility — we have similar code in the auth module.
Description
Closes #411
Summary
This PR adds a new Legal Rights Learning Hub feature to improve citizen awareness about basic legal rights and legal procedures through an accessible and beginner-friendly interface.
Changes Made
Added a dedicated Legal Rights Learning Hub page
Added legal awareness categories:
Created reusable components for displaying legal information
Implemented search/filter functionality for legal topics
Added detailed content views for each category
Integrated the feature into application routing
Added navigation menu support for easy access
Maintained consistency with the existing project styling system using CSS variables and existing design patterns
Files Added
src/data/legalRightsData.jssrc/components/legal-rights/LegalCard.jsxsrc/components/legal-rights/SearchBar.jsxsrc/components/legal-rights/CategoryDetails.jsxsrc/pages/LegalRightsHub.jsxFiles Modified
src/App.jsxsrc/components/landing/Header.jsxType of change
Checklist: