Commit Graph

184 Commits

Author SHA1 Message Date
notkshitij 9c3feca6a7 feat(login): improve error handling and show rate limit message
- Display meaningful error messages on login failure, including rate limiting (429)
- Added fallback for unexpected JSON responses from the server
- Integrated `Message` component for error display
- Cleaned up form value clearing and error state management
2025-07-18 02:12:46 +05:30
notkshitij aaf88fda56 feat(signup): add password strength and breach check using HIBP API
- Implemented frontend password validation for minimum strength:
  - Requires 8+ characters with uppercase, lowercase, digit, and special character.
- Integrated haveibeenpwned (HIBP) k-anonymity API to detect breached passwords.
- Display appropriate error messages for weak or pwned passwords.
- Updated Message component to support "error" and "default" types with styling.
- Cleaned up SignupPage form UI and removed unused refs (e.g., roleElement).
- Created passwordUtils.js to isolate SHA-1 hashing and API call logic.
2025-07-18 02:06:43 +05:30
notkshitij 23a271fbce Removed package-lock.json and updated .gitignore. 2025-07-18 01:26:13 +05:30
notkshitij f3e52cda73 Added new packages and updated some existing ones. 2025-07-18 01:25:27 +05:30
notkshitij 04e69202b6 Added password policy and checking if password appeared in a breach w/ haveibeenpwed api. 2025-07-18 01:22:01 +05:30
notkshitij 001727ab85 Added helmet secure headers and HTTPS redirection. 2025-07-18 01:21:07 +05:30
notkshitij 351f57229c Apply rate limiter logic. 2025-07-18 01:18:10 +05:30
notkshitij 25cfa659c7 Added rate limiting logic in middleware. 2025-07-18 01:17:53 +05:30
notkshitij d5d1e16d1f Moved the query parameter into the correct position and added logging for the final URI for database connect. 2025-07-18 01:06:42 +05:30
notkshitij e40eae866a Merged Salvi's commit he made to master branch (0ffcd1274d659b3e5c44a4813c57eb46e6ea4bed) for fixing UI changes. 2025-06-24 13:50:01 +05:30
notkshitij 3458d21567 Added multilingual (English, Hindi, Marathi & French) in features section. 2025-06-23 20:31:13 +05:30
notkshitij 63c73bc6d9 Added guide for translation! 2025-06-23 20:22:06 +05:30
notkshitij 90d09350e2 Perfomed complete Marathi translation. Not exactly complete but up to where mr & fr was done. 2025-06-21 00:53:25 +05:30
notkshitij 06b11cb2eb Perfomed complete Hindi translation. Not exactly complete but up to where fr was done. 2025-06-21 00:51:41 +05:30
notkshitij 14295f1931 Merge branch 'main' into frontend-multilingual up to commit 0aa8a3842c 2025-06-21 00:28:12 +05:30
notkshitij 0aa8a3842c Merged models/ directory from bhakti's branch up to commit 3d79d69640 since that is the branch we used for demo during hackathon. 2025-06-21 00:22:49 +05:30
notkshitij 1395496fce Merged all changes from frontend branch w/ main branch up to commit 0d757995bb 2025-06-21 00:21:57 +05:30
notkshitij 91aaa092f3 Added package-lock.json and node_modules in global .gitignore 2025-06-21 00:20:32 +05:30
notkshitij a7ae00beac Removed package-lock.json, package.json and node_modules from root dir. Not needed. 2025-06-21 00:20:27 +05:30
KaranSalvi 7ad0db73b0 Resolved conflict by deleting multer.js and updated packages 2025-06-21 00:19:50 +05:30
notkshitij 36693ba21b Made ForgetPassword and ResetPassword multilingual. Also added en and fr translations for the same. 2025-06-20 23:28:44 +05:30
notkshitij 9e170a91ef Added translation for SignupPage.jsx along with en and fr translations. 2025-06-20 23:24:53 +05:30
notkshitij 911b08ba71 Removed unused jsx files from Home directory in src/pages. 2025-06-20 23:19:34 +05:30
notkshitij 36781b3af4 Made Testimonial.jsx multilingual. Also updated en and fr translations for the same. 2025-06-20 23:17:54 +05:30
notkshitij a70afd8615 Fixed Cards.jsx, now the homepage is not blank. Also added key:values for text in Cards.jsx 2025-06-20 23:13:22 +05:30
notkshitij 9fe5d04fca Made pages in Home/ directory multilingual:
- Cards.jsx
- Customization.jsx
- Footer.jsx
- Hero.jsx
- Hero2.jsx
- HomePage.jsx

Also added language key:values for en and fr in locales.
2025-06-20 23:12:38 +05:30
notkshitij 23e12d3c7e Support for language context in MainLoginPage.jsx
- Updated MainLoginPage component to accept a `language` prop with a default value of "en".
- Modified Navbar2 to receive the `language` prop for localization.
- Passed the `language` context to the Outlet for nested routes, enabling language-specific rendering in child components.
2025-06-19 16:29:29 +05:30
notkshitij 4b6faef5eb Replaced static text in LoginPage.jsx with translation function t(key, language). 2025-06-19 16:28:26 +05:30
notkshitij cacf3f9c0d Added language switcher function in App.jsx 2025-06-19 16:26:04 +05:30
notkshitij 697a873148 Added English (default) and French locales. This directory will store key-value pairs for translation where key will be the English word/phrase and value will be the translation of that word/phrase. 2025-06-19 16:23:35 +05:30
notkshitij c123c4985c Added service/translation.js -> Implements a translation service that dynamically loads phrases based on user language preference. 2025-06-19 16:23:35 +05:30
notkshitij 64a34fdf0d Added language switching component. This component will render a dropdown or buttons for language selection and update the language globally when changed. 2025-06-19 16:23:22 +05:30
notkshitij 5484b122a1 Added a better description in README. 2025-06-07 15:48:46 +05:30
notkshitij b2fe22195f Merged all the changes from bhakti's branch into main. 2025-04-05 18:24:23 +05:30
KaranSalvi ce864c7c55 feat: Add logs 2025-03-26 22:51:07 +05:30
KaranSalvi 407d6df417 feat:Added monitoring charts 2025-03-26 22:50:05 +05:30
KaranSalvi b961ef8fd3 feat:Fixed all the UI Pages 2025-03-26 21:31:14 +05:30
KaranSalvi aba9651c43 feat:Add individual crop page 2025-03-26 00:25:09 +05:30
KaranSalvi 0dbb68d518 feat:Add env variables file 2025-03-25 21:33:21 +05:30
KaranSalvi 262446fff7 feat: Add some new connection 2025-03-25 19:40:56 +05:30
KaranSalvi 914501036d feat: Set up RTK query for the statemanagement 2025-03-25 17:48:15 +05:30
KaranSalvi 7e204690d3 Fix: FUCK OMBAASE MESSED UP. 2025-02-23 11:38:02 +05:30
KaranSalvi ae1b2566a3 added models. 2025-02-23 11:22:34 +05:30
KaranSalvi dc0afc8d5a Changed default user profile. 2025-02-23 11:21:29 +05:30
KaranSalvi d53a4d6061 Removed navbar from dashboard. 2025-02-23 11:12:03 +05:30
KaranSalvi c839011847 Merged Ombase's changes. 2025-02-23 11:09:09 +05:30
atharvaombase 6df9befdd1 Fix:removed navbar and added space between components in dashboard 2025-02-23 11:05:12 +05:30
KaranSalvi aa97607ec4 Changed footer and testimonial. 2025-02-23 11:04:15 +05:30
atharvaombase 0048e9f462 Feat:Added Plant disease prediction 2025-02-23 10:52:31 +05:30
KaranSalvi 08fc0e790e Fixed cookie issue 2025-02-23 10:48:41 +05:30