Conversation
* feat: navbar * fix: improve error handling and accessibility in navbar
* implement buildfordev component * implement built for dev component * resolve lint * run formatter * resolve coderabbit comments * fix formatting * implement carousel * implement carouselcontrolbar * additional carousel styling * fix css * minor fixes * implement unit test for swiper * implement darkmode css * implement darkmode css for carousel * add tests for light and darkmode * remove unnecessary isDarkMode prop from StatDisplay
* feat: hero section and verify section * fix: update * fix: update * fix: improve responsive layout and spacing * fix: update
* feat: added ci/cd script * Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: the permission issue * fix: cache invalidation * fix: max life age configuration --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* feat: added ci/cd script * Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: the permission issue * fix: cache invalidation * fix: max life age configuration * fix: deployment script * fix: renamed the branch to develop * feat: fxied repo issue * feat: added env --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* feat: implement document verification functionality * fix add RPC URL env to CI test workflow * feat: document viewer top portion * fix: improve accessibility * fix: improve accessibility * fix: lint
* feat: add endorsement chain implementation * fix: format files * fix: mock test function * fix: code rabit comments * fix: remarks and overlay fix * fix: update overlay background scroll * fix: endorsement chain loading popup * fix: test updates * fix: code rabbit suggestions * fix: prettier * fix: add helper function * fix: format check * fix: helper functions
* feat: add document renderer with template tabs and attachments * fix: improve accessibility and code quality * fix: update aria-labelledby for attachment tab in document renderer
* feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: multiple file upload feature * chore: lint and formatting Co-authored-by: Cursor <cursoragent@cursor.com> * feat: ui fixes on button and select field * feat: updated the error handling * feat: updated the position * feat: show error message in the respective feild * fix: generic message for failed fetch lib * Tt 1239/handling multiple attachments (#8) * feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: multiple file upload feature * chore: lint and formatting Co-authored-by: Cursor <cursoragent@cursor.com> * feat: ui fixes on button and select field * feat: updated the error handling * feat: updated the position * feat: show error message in the respective feild * fix: generic message for failed fetch lib --------- Co-authored-by: Cursor <cursoragent@cursor.com> * fix: setPreview type error fix * feat: add reCAPTCHA component and integrate into contact form * feat: contact form reCAPTCHA v2, deferred uploads, and submit validation - Add reCAPTCHA v2 "I'm not a robot" widget; verify only on submit - Defer file uploads until submit: get presigned URLs on submit, upload then create service request with attachment keys; disable submit while uploading - Enable submit only when required fields (email, type of enquiry, description) are filled and reCAPTCHA is completed when VITE_RECAPTCHA_SITE_KEY is set - Show recaptcha error below widget; clear on completion via onChange - Use import.meta.env for Vite env; add ApiErrorBody type in fetchClient - Fix Recaptcha useEffect deps using onChangeRef; add isFormValid and recaptchaRequired to contact form hook - Remove unused VITE_ENTRY_POINT env; fallback domain to trustvc.io when window is not available Made-with: Cursor * refactor: extract recaptcha hook Made-with: Cursor * refactor: move recaptcha hook to shared hooks folder Made-with: Cursor * chore: apply sonar fixes for file item and recaptcha hook Made-with: Cursor * fix: align FormAlert styles and tests * chore: use globalThis for URL and domain resolution Made-with: Cursor * chore: require reCAPTCHA always; no dev-skip when site key unset Made-with: Cursor * fix: avoid duplicate preview URLs and remove unused contact hook Made-with: Cursor * refactor: move contact form hook to shared hooks folder Made-with: Cursor * fix(contact): guard revokeObjectURL with function check to satisfy TS/ESLint Made-with: Cursor * refactor(contact): remove dead code and fix hook dependencies Made-with: Cursor * fix: the error message not showing for success request * fix(contact): scroll to top on successful form submission * Update .env.example Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: integrate husky for git hooks management and remove custom setup script * Update src/App.test.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update src/components/common/FormAlert/FormAlert.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * feat: enhance file upload functionality in AttachmentDropzone and VerifySection - Added a file input reference in AttachmentDropzone for improved file selection handling. - Replaced label with a button for triggering file selection, enhancing accessibility. - Updated VerifySection to include file validation logic, ensuring only allowed file types and sizes are accepted. - Introduced error handling for file selection, displaying appropriate messages for invalid files. - Adjusted carousel image paths in JSON data for consistency. * chore: update package-lock.json to include husky 9.1.7 and modify vite.config.js to define process.browser and process.version * refactor: update vite.config.js to conditionally define process.version based on mode * Update src/index.css Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * refactor: remove height from contact form divider and enhance FieldError component with optional icon class * style: update dropbox area styling and structure in VerifySection components - Adjusted padding in the overlay-border-shadow class for better spacing. - Introduced a new dropbox-area--home class to ensure the dropbox spans the full container width. - Updated VerifyError and VerifySection components to utilize the new dropbox-area--home class for consistent styling. * style: enhance overlay-border-shadow class with new background and box-shadow - Updated padding in the overlay-border-shadow class for improved layout. - Added a linear gradient background and box-shadow for better visual appeal. * chore: remove trustvc-website@0.0.0 file * fix: improve accessibility and functionality in various components * chore: add error handling to pre-commit script for improved reliability * style: add dark mode autofill overrides for input and textarea elements * style: adjust border color in dark mode for improved visual consistency * style: streamline error handling and dark mode styling in TextField component --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
RishabhS7
approved these changes
Apr 7, 2026
rongquan1
added a commit
that referenced
this pull request
Apr 17, 2026
* feat: integrate Sanity CMS for news management - Added Sanity configuration files and schema types for authors, categories, and posts. - Implemented news listing and detail pages with routing. - Created components for displaying news articles and integrated image handling. - Updated environment variables for Sanity API access. - Added necessary assets and styles for the news section. * feat: add new SVG assets and enhance news section functionality - Introduced new SVG assets for backgrounds, icons, and network indicators. - Updated the news section with improved loading states using shimmer effects. - Enhanced news detail view with author images and updated date formatting. - Refined validation rules for category and post schema in Sanity. - Implemented dynamic background classes based on routing for better user experience. * refactor: update README and enhance news page styles - Revised README to clarify the purpose of the Sanity Studio and added detailed deployment commands. - Improved the styling of news category chips for better visibility in both light and dark modes. - Updated the News page component to streamline category chip rendering. * feat: initialize Sanity CMS project structure - Added essential configuration files for Sanity CMS, including `.gitignore`, `package.json`, and `tsconfig.json`. - Created schema types for authors, categories, and posts to manage content effectively. - Implemented CLI configuration and environment variable interfaces for project setup. - Included a README with instructions for running, building, and deploying the Sanity Studio. * refactor: improve code formatting and readability across multiple components - Enhanced CSS formatting for better readability in `index.css`. - Refactored JSX structure in `ShimmerPostCards`, `News`, and `NewsDetail` components for improved clarity. - Updated function calls and conditional rendering to follow consistent formatting practices. - Ensured consistent use of line breaks and indentation for better maintainability. * refactor: streamline News and NewsDetail components for improved performance and readability - Removed unused imports and consolidated state management in `News` and `NewsDetail` components. - Enhanced styling with utility classes for better maintainability and consistency in dark and light modes. - Deleted obsolete SVG icon file to clean up assets. - Simplified loading states and improved overall component structure. * refactor: enhance type safety and readability in news hooks and components - Updated `useNewsDetail` and `useNewsList` hooks to return specific types for improved type safety. - Refactored component usage in `News` and `NewsDetail` to leverage the new hook return types. - Improved memoization and null handling for image URLs and read time calculations. - Enhanced overall code readability and maintainability by clarifying type annotations. * refactor: enhance news components and environment configuration - Updated `useNewsList` hook to filter articles based on the presence of a slug for improved data integrity. - Refactored `News` and `NewsDetail` components to conditionally render links based on slug availability. - Improved cleanup in the `useNewsList` hook by clearing timeouts on component unmount. - Updated `.env.example` to remove the `VITE_SANITY_READ_TOKEN` variable and added relevant instructions in the README for handling sensitive tokens. - Enhanced `.gitignore` to include environment files for better security practices. * style: enhance dark mode styling and improve component responsiveness - Updated CSS for the news components to include a radial gradient background in dark mode. - Refined category chip styles in both `News` and `NewsDetail` components for better visibility and responsiveness. - Adjusted icon sizes for improved consistency across different screen sizes. - Enhanced text colors and backgrounds to ensure better readability in dark mode. * style: enhance NewsDetail component for dark mode support - Updated background and border styles in the NewsDetail component to improve visibility in dark mode. - Refined category chip styles for better contrast and readability based on the current theme. - Adjusted text colors for titles and subtitles to ensure clarity in both light and dark modes. * style: simplify JSX structure in News and NewsDetail components - Removed unnecessary line breaks in the JSX for improved readability. - Streamlined the rendering of paragraph elements in both components for consistency. * style: update text colors and improve category chip styling in NewsDetail component - Changed text color for the "Article not found" message in dark mode for better visibility. - Refactored category chip styling to use utility classes for improved consistency and readability based on the current theme. * chore: update package dependencies to latest versions * test: update App tests and add Sanity client and news tests * style: enhance shimmer loading states in News and NewsDetail components - Updated the ShimmerPostCards component to use utility classes for background and line colors based on dark mode. - Improved the shimmer loading structure in the News component, adding a featured card shimmer and refining the grid layout. - Enhanced the NewsDetail component's loading state with consistent styling for various elements, ensuring better visibility and user experience in both light and dark modes. * style: update ESLint configuration and improve test readability * fix: standardize font-family quotes and improve CSS structure * Update src/lib/sanity/client.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: improve NewsDetail component's code styling and image source handling * Update src/pages/NewsDetail/index.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update src/index.css Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * feat: add safe date formatting and nextPublishedDateLabel to NewsDetail * Update src/lib/sanity/client.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Enhance Sanity client configuration by adding support for read token and update NewsDetail component key handling for category mapping. * Standardize font-family quotes in CSS and improve code formatting in useNewsDetail and NewsDetail components * Update package dependencies to include @sanity/client and @sanity/image-url, enhancing integration with Sanity services. * Enhance Navbar component to dynamically adjust link colors based on active route, specifically for the News & Updates section. * Refactor Navbar test to simplify render function syntax for improved readability. * refactor: improve layout and styling in NewsDetail component * feat: add GitHub Actions workflow for deploying Sanity Studio * style: standardize font-family quotes and adjust font-weight in CSS; enhance error handling in useNewsDetail hook * fix: update loadMoreAnchorRef type to allow null and adjust subtitle validation in post schema * refactor: update import paths and modularize News and NewsDetail components for improved structure * chore: update TypeScript configuration to improve module resolution and remove deprecated options * refactor: implement lazy loading for News and NewsDetail components, enhancing performance and user experience * chore: update Sanity Studio deployment configuration and remove unused app ID from environment variables * Devlop sync (#16) * feat: navbar (#2) * feat: navbar * fix: improve error handling and accessibility in navbar * feat: Built For Devs and Carousel component (#1) * implement buildfordev component * implement built for dev component * resolve lint * run formatter * resolve coderabbit comments * fix formatting * implement carousel * implement carouselcontrolbar * additional carousel styling * fix css * minor fixes * implement unit test for swiper * implement darkmode css * implement darkmode css for carousel * add tests for light and darkmode * remove unnecessary isDarkMode prop from StatDisplay * feat: hero section and verify section (#3) * feat: hero section and verify section * fix: update * fix: update * fix: improve responsive layout and spacing * fix: update * feat: added ci/cd script (#6) * feat: added ci/cd script * Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: the permission issue * fix: cache invalidation * fix: max life age configuration --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Feature/ci cd dev fix (#7) * feat: added ci/cd script * Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: the permission issue * fix: cache invalidation * fix: max life age configuration * fix: deployment script * fix: renamed the branch to develop * feat: fxied repo issue * feat: added env --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * feat: implement document verification functionality (#5) * feat: implement document verification functionality * fix add RPC URL env to CI test workflow * feat: document viewer top portion * fix: improve accessibility * fix: improve accessibility * fix: lint * feat: add endorsement chain implementation (#9) * feat: add endorsement chain implementation * fix: format files * fix: mock test function * fix: code rabit comments * fix: remarks and overlay fix * fix: update overlay background scroll * fix: endorsement chain loading popup * fix: test updates * fix: code rabbit suggestions * fix: prettier * fix: add helper function * fix: format check * fix: helper functions * feat: add document renderer with template tabs and attachments (#11) * feat: add document renderer with template tabs and attachments * fix: improve accessibility and code quality * fix: update aria-labelledby for attachment tab in document renderer * feat: raising support ticket (#12) * feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: multiple file upload feature * chore: lint and formatting Co-authored-by: Cursor <cursoragent@cursor.com> * feat: ui fixes on button and select field * feat: updated the error handling * feat: updated the position * feat: show error message in the respective feild * fix: generic message for failed fetch lib * Tt 1239/handling multiple attachments (#8) * feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: multiple file upload feature * chore: lint and formatting Co-authored-by: Cursor <cursoragent@cursor.com> * feat: ui fixes on button and select field * feat: updated the error handling * feat: updated the position * feat: show error message in the respective feild * fix: generic message for failed fetch lib --------- Co-authored-by: Cursor <cursoragent@cursor.com> * fix: setPreview type error fix * feat: add reCAPTCHA component and integrate into contact form * feat: contact form reCAPTCHA v2, deferred uploads, and submit validation - Add reCAPTCHA v2 "I'm not a robot" widget; verify only on submit - Defer file uploads until submit: get presigned URLs on submit, upload then create service request with attachment keys; disable submit while uploading - Enable submit only when required fields (email, type of enquiry, description) are filled and reCAPTCHA is completed when VITE_RECAPTCHA_SITE_KEY is set - Show recaptcha error below widget; clear on completion via onChange - Use import.meta.env for Vite env; add ApiErrorBody type in fetchClient - Fix Recaptcha useEffect deps using onChangeRef; add isFormValid and recaptchaRequired to contact form hook - Remove unused VITE_ENTRY_POINT env; fallback domain to trustvc.io when window is not available Made-with: Cursor * refactor: extract recaptcha hook Made-with: Cursor * refactor: move recaptcha hook to shared hooks folder Made-with: Cursor * chore: apply sonar fixes for file item and recaptcha hook Made-with: Cursor * fix: align FormAlert styles and tests * chore: use globalThis for URL and domain resolution Made-with: Cursor * chore: require reCAPTCHA always; no dev-skip when site key unset Made-with: Cursor * fix: avoid duplicate preview URLs and remove unused contact hook Made-with: Cursor * refactor: move contact form hook to shared hooks folder Made-with: Cursor * fix(contact): guard revokeObjectURL with function check to satisfy TS/ESLint Made-with: Cursor * refactor(contact): remove dead code and fix hook dependencies Made-with: Cursor * fix: the error message not showing for success request * fix(contact): scroll to top on successful form submission * Update .env.example Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: integrate husky for git hooks management and remove custom setup script * Update src/App.test.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update src/components/common/FormAlert/FormAlert.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * feat: enhance file upload functionality in AttachmentDropzone and VerifySection - Added a file input reference in AttachmentDropzone for improved file selection handling. - Replaced label with a button for triggering file selection, enhancing accessibility. - Updated VerifySection to include file validation logic, ensuring only allowed file types and sizes are accepted. - Introduced error handling for file selection, displaying appropriate messages for invalid files. - Adjusted carousel image paths in JSON data for consistency. * chore: update package-lock.json to include husky 9.1.7 and modify vite.config.js to define process.browser and process.version * refactor: update vite.config.js to conditionally define process.version based on mode * Update src/index.css Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * refactor: remove height from contact form divider and enhance FieldError component with optional icon class * style: update dropbox area styling and structure in VerifySection components - Adjusted padding in the overlay-border-shadow class for better spacing. - Introduced a new dropbox-area--home class to ensure the dropbox spans the full container width. - Updated VerifyError and VerifySection components to utilize the new dropbox-area--home class for consistent styling. * style: enhance overlay-border-shadow class with new background and box-shadow - Updated padding in the overlay-border-shadow class for improved layout. - Added a linear gradient background and box-shadow for better visual appeal. * chore: remove trustvc-website@0.0.0 file * fix: improve accessibility and functionality in various components * chore: add error handling to pre-commit script for improved reliability * style: add dark mode autofill overrides for input and textarea elements * style: adjust border color in dark mode for improved visual consistency * style: streamline error handling and dark mode styling in TextField component --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: rongquan1 <85145303+rongquan1@users.noreply.github.com> Co-authored-by: pennhan-dex <pennhan.lee@dextech.ai> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Tt 1175/sanity integration schema (#15) * feat: navbar (#2) * feat: navbar * fix: improve error handling and accessibility in navbar * feat: Built For Devs and Carousel component (#1) * implement buildfordev component * implement built for dev component * resolve lint * run formatter * resolve coderabbit comments * fix formatting * implement carousel * implement carouselcontrolbar * additional carousel styling * fix css * minor fixes * implement unit test for swiper * implement darkmode css * implement darkmode css for carousel * add tests for light and darkmode * remove unnecessary isDarkMode prop from StatDisplay * feat: hero section and verify section (#3) * feat: hero section and verify section * fix: update * fix: update * fix: improve responsive layout and spacing * fix: update * feat: added ci/cd script (#6) * feat: added ci/cd script * Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: the permission issue * fix: cache invalidation * fix: max life age configuration --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Feature/ci cd dev fix (#7) * feat: added ci/cd script * Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: the permission issue * fix: cache invalidation * fix: max life age configuration * fix: deployment script * fix: renamed the branch to develop * feat: fxied repo issue * feat: added env --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * feat: implement document verification functionality (#5) * feat: implement document verification functionality * fix add RPC URL env to CI test workflow * feat: document viewer top portion * fix: improve accessibility * fix: improve accessibility * fix: lint * feat: add endorsement chain implementation (#9) * feat: add endorsement chain implementation * fix: format files * fix: mock test function * fix: code rabit comments * fix: remarks and overlay fix * fix: update overlay background scroll * fix: endorsement chain loading popup * fix: test updates * fix: code rabbit suggestions * fix: prettier * fix: add helper function * fix: format check * fix: helper functions * feat: add document renderer with template tabs and attachments (#11) * feat: add document renderer with template tabs and attachments * fix: improve accessibility and code quality * fix: update aria-labelledby for attachment tab in document renderer * feat: integrate Sanity CMS for news management - Added Sanity configuration files and schema types for authors, categories, and posts. - Implemented news listing and detail pages with routing. - Created components for displaying news articles and integrated image handling. - Updated environment variables for Sanity API access. - Added necessary assets and styles for the news section. * feat: add new SVG assets and enhance news section functionality - Introduced new SVG assets for backgrounds, icons, and network indicators. - Updated the news section with improved loading states using shimmer effects. - Enhanced news detail view with author images and updated date formatting. - Refined validation rules for category and post schema in Sanity. - Implemented dynamic background classes based on routing for better user experience. * refactor: update README and enhance news page styles - Revised README to clarify the purpose of the Sanity Studio and added detailed deployment commands. - Improved the styling of news category chips for better visibility in both light and dark modes. - Updated the News page component to streamline category chip rendering. * feat: initialize Sanity CMS project structure - Added essential configuration files for Sanity CMS, including `.gitignore`, `package.json`, and `tsconfig.json`. - Created schema types for authors, categories, and posts to manage content effectively. - Implemented CLI configuration and environment variable interfaces for project setup. - Included a README with instructions for running, building, and deploying the Sanity Studio. * refactor: improve code formatting and readability across multiple components - Enhanced CSS formatting for better readability in `index.css`. - Refactored JSX structure in `ShimmerPostCards`, `News`, and `NewsDetail` components for improved clarity. - Updated function calls and conditional rendering to follow consistent formatting practices. - Ensured consistent use of line breaks and indentation for better maintainability. * refactor: streamline News and NewsDetail components for improved performance and readability - Removed unused imports and consolidated state management in `News` and `NewsDetail` components. - Enhanced styling with utility classes for better maintainability and consistency in dark and light modes. - Deleted obsolete SVG icon file to clean up assets. - Simplified loading states and improved overall component structure. * refactor: enhance type safety and readability in news hooks and components - Updated `useNewsDetail` and `useNewsList` hooks to return specific types for improved type safety. - Refactored component usage in `News` and `NewsDetail` to leverage the new hook return types. - Improved memoization and null handling for image URLs and read time calculations. - Enhanced overall code readability and maintainability by clarifying type annotations. * refactor: enhance news components and environment configuration - Updated `useNewsList` hook to filter articles based on the presence of a slug for improved data integrity. - Refactored `News` and `NewsDetail` components to conditionally render links based on slug availability. - Improved cleanup in the `useNewsList` hook by clearing timeouts on component unmount. - Updated `.env.example` to remove the `VITE_SANITY_READ_TOKEN` variable and added relevant instructions in the README for handling sensitive tokens. - Enhanced `.gitignore` to include environment files for better security practices. * style: enhance dark mode styling and improve component responsiveness - Updated CSS for the news components to include a radial gradient background in dark mode. - Refined category chip styles in both `News` and `NewsDetail` components for better visibility and responsiveness. - Adjusted icon sizes for improved consistency across different screen sizes. - Enhanced text colors and backgrounds to ensure better readability in dark mode. * style: enhance NewsDetail component for dark mode support - Updated background and border styles in the NewsDetail component to improve visibility in dark mode. - Refined category chip styles for better contrast and readability based on the current theme. - Adjusted text colors for titles and subtitles to ensure clarity in both light and dark modes. * style: simplify JSX structure in News and NewsDetail components - Removed unnecessary line breaks in the JSX for improved readability. - Streamlined the rendering of paragraph elements in both components for consistency. * style: update text colors and improve category chip styling in NewsDetail component - Changed text color for the "Article not found" message in dark mode for better visibility. - Refactored category chip styling to use utility classes for improved consistency and readability based on the current theme. * chore: update package dependencies to latest versions * test: update App tests and add Sanity client and news tests * style: enhance shimmer loading states in News and NewsDetail components - Updated the ShimmerPostCards component to use utility classes for background and line colors based on dark mode. - Improved the shimmer loading structure in the News component, adding a featured card shimmer and refining the grid layout. - Enhanced the NewsDetail component's loading state with consistent styling for various elements, ensuring better visibility and user experience in both light and dark modes. * style: update ESLint configuration and improve test readability * fix: standardize font-family quotes and improve CSS structure * Update src/lib/sanity/client.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: improve NewsDetail component's code styling and image source handling * Update src/pages/NewsDetail/index.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update src/index.css Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * feat: add safe date formatting and nextPublishedDateLabel to NewsDetail * Update src/lib/sanity/client.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Enhance Sanity client configuration by adding support for read token and update NewsDetail component key handling for category mapping. * Standardize font-family quotes in CSS and improve code formatting in useNewsDetail and NewsDetail components * Update package dependencies to include @sanity/client and @sanity/image-url, enhancing integration with Sanity services. * Enhance Navbar component to dynamically adjust link colors based on active route, specifically for the News & Updates section. * Refactor Navbar test to simplify render function syntax for improved readability. * feat: raising support ticket (#12) * feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: multiple file upload feature * chore: lint and formatting Co-authored-by: Cursor <cursoragent@cursor.com> * feat: ui fixes on button and select field * feat: updated the error handling * feat: updated the position * feat: show error message in the respective feild * fix: generic message for failed fetch lib * Tt 1239/handling multiple attachments (#8) * feat: added contact form , navigation and new api integration * feat: added testcases for formalert, submit button, text field are and textfield * feat: remove duplicate configurations and added alias for @ root src folder * fix: prettier fix * feat: added domain value from frontend * fix: perttifier validations * feat: added lint checking precommit hooks * fixed the theme * fix: submit button test case * feat: multiple file upload feature * chore: lint and formatting Co-authored-by: Cursor <cursoragent@cursor.com> * feat: ui fixes on button and select field * feat: updated the error handling * feat: updated the position * feat: show error message in the respective feild * fix: generic message for failed fetch lib --------- Co-authored-by: Cursor <cursoragent@cursor.com> * fix: setPreview type error fix * feat: add reCAPTCHA component and integrate into contact form * feat: contact form reCAPTCHA v2, deferred uploads, and submit validation - Add reCAPTCHA v2 "I'm not a robot" widget; verify only on submit - Defer file uploads until submit: get presigned URLs on submit, upload then create service request with attachment keys; disable submit while uploading - Enable submit only when required fields (email, type of enquiry, description) are filled and reCAPTCHA is completed when VITE_RECAPTCHA_SITE_KEY is set - Show recaptcha error below widget; clear on completion via onChange - Use import.meta.env for Vite env; add ApiErrorBody type in fetchClient - Fix Recaptcha useEffect deps using onChangeRef; add isFormValid and recaptchaRequired to contact form hook - Remove unused VITE_ENTRY_POINT env; fallback domain to trustvc.io when window is not available Made-with: Cursor * refactor: extract recaptcha hook Made-with: Cursor * refactor: move recaptcha hook to shared hooks folder Made-with: Cursor * chore: apply sonar fixes for file item and recaptcha hook Made-with: Cursor * fix: align FormAlert styles and tests * chore: use globalThis for URL and domain resolution Made-with: Cursor * chore: require reCAPTCHA always; no dev-skip when site key unset Made-with: Cursor * fix: avoid duplicate preview URLs and remove unused contact hook Made-with: Cursor * refactor: move contact form hook to shared hooks folder Made-with: Cursor * fix(contact): guard revokeObjectURL with function check to satisfy TS/ESLint Made-with: Cursor * refactor(contact): remove dead code and fix hook dependencies Made-with: Cursor * fix: the error message not showing for success request * fix(contact): scroll to top on successful form submission * Update .env.example Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: integrate husky for git hooks management and remove custom setup script * Update src/App.test.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update src/components/common/FormAlert/FormAlert.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * feat: enhance file upload functionality in AttachmentDropzone and VerifySection - Added a file input reference in AttachmentDropzone for improved file selection handling. - Replaced label with a button for triggering file selection, enhancing accessibility. - Updated VerifySection to include file validation logic, ensuring only allowed file types and sizes are accepted. - Introduced error handling for file selection, displaying appropriate messages for invalid files. - Adjusted carousel image paths in JSON data for consistency. * chore: update package-lock.json to include husky 9.1.7 and modify vite.config.js to define process.browser and process.version * refactor: update vite.config.js to conditionally define process.version based on mode * Update src/index.css Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * refactor: remove height from contact form divider and enhance FieldError component with optional icon class * style: update dropbox area styling and structure in VerifySection components - Adjusted padding in the overlay-border-shadow class for better spacing. - Introduced a new dropbox-area--home class to ensure the dropbox spans the full container width. - Updated VerifyError and VerifySection components to utilize the new dropbox-area--home class for consistent styling. * style: enhance overlay-border-shadow class with new background and box-shadow - Updated padding in the overlay-border-shadow class for improved layout. - Added a linear gradient background and box-shadow for better visual appeal. * chore: remove trustvc-website@0.0.0 file * fix: improve accessibility and functionality in various components * chore: add error handling to pre-commit script for improved reliability * style: add dark mode autofill overrides for input and textarea elements * style: adjust border color in dark mode for improved visual consistency * style: streamline error handling and dark mode styling in TextField component --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * refactor: improve layout and styling in NewsDetail component * feat: add GitHub Actions workflow for deploying Sanity Studio * style: standardize font-family quotes and adjust font-weight in CSS; enhance error handling in useNewsDetail hook * fix: update loadMoreAnchorRef type to allow null and adjust subtitle validation in post schema * refactor: update import paths and modularize News and NewsDetail components for improved structure * chore: update TypeScript configuration to improve module resolution and remove deprecated options * refactor: implement lazy loading for News and NewsDetail components, enhancing performance and user experience * chore: update Sanity Studio deployment configuration and remove unused app ID from environment variables --------- Co-authored-by: rongquan1 <85145303+rongquan1@users.noreply.github.com> Co-authored-by: pennhan-dex <pennhan.lee@dextech.ai> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com> * feat: add randombytes and randomfill browser shims to Vite and ESLint configurations * feat: add scroll to top functionality on NewsDetail page when article slug changes * chore: update @sanity packages and lodash-es to latest versions in package.json and package-lock.json * feat: enhance useNewsList hook with pagination and featured article fetching * feat: enhance news detail and list hooks with featured article fetching and pagination improvements * fix: update Navbar link to point to the news updates page for better navigation * chore: add VITE_SANITY_READ_TOKEN to .env.example for improved configuration * Update trustvc-cms/package.json Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: update .gitignore and remove unused README test files * refactor: remove timeout parameters from integration tests for cleaner code --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: rongquan1 <85145303+rongquan1@users.noreply.github.com> Co-authored-by: pennhan-dex <pennhan.lee@dextech.ai> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.