Closed Harman-singh-waraich closed 6 months ago
Name | Link |
---|---|
Latest commit | 90181c786609ffa43c26e8853b317b23efb8632d |
Latest deploy log | https://app.netlify.com/sites/curate-v2/deploys/66598784f44a040008e535c2 |
Deploy Preview | https://deploy-preview-34--curate-v2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
[!IMPORTANT]
Review skipped
Auto reviews are limited to the following labels: dependencies. Please add one of these labels to enable auto reviews.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The changes introduce significant enhancements to the web application, including new authentication features, database integration, and improved user interface components. Key additions involve implementing authentication middleware, handling user settings, and integrating with Netlify for deployment. Several React components and hooks were updated to ensure authenticated access and better state management. Additionally, new scripts and configurations were added to streamline the build and deployment processes.
Files/Paths | Change Summaries |
---|---|
web/.gitignore |
Added generatedNetlifyInfo.json to ignored files. |
web/netlify.toml |
Added Netlify configuration for Yarn 3 cache, build environment variables, function directory, and development framework. |
web/netlify/functions/... |
Added and updated various functions (authUser.ts , fetch-settings.ts , getNonce.ts , update-settings.ts , uploadToIPFS.ts ) with new features like JWT authentication, database operations, and middleware usage. |
web/netlify/middleware/authMiddleware.ts |
Introduced authentication middleware for JWT token verification. |
web/package.json |
Updated build scripts and added dependencies: @middy/core , @middy/http-json-body-parser , jose , siwe . |
web/scripts/... |
Added generateBuildInfo.sh script for environment setup and modified runEnv.sh to include the new script. |
web/src/components/... |
Updated various components (ActionButton/Modal/ChallengeItemModal.tsx , ActionButton/Modal/RemoveModal.tsx , EnsureAuth.tsx ) to include authentication checks. |
web/src/hooks/... |
Added new hooks (useUserSettings.tsx , useSessionStorage.ts ) for state management and session storage. |
web/src/layout/... |
Updated layout components (Header/navbar/Menu/Settings/Notifications/... ) to handle user settings with authentication and better state management. |
web/src/pages/... |
Updated pages (SubmitItem/index.tsx , SubmitList/index.tsx ) to include authentication checks using EnsureAuth component. |
web/src/types/... |
Added type definitions for Supabase database tables and structures (supabase-datalake.ts , supabase-notification.ts ). |
web/src/utils/... |
Added utility functions for user authorization and IPFS upload with authentication (authoriseUser.ts , uploadFileToIPFS.ts , uploadSettingsToSupabase.ts ). |
sequenceDiagram
participant User
participant Browser
participant Netlify
participant Function
participant Database
User->>Browser: Request access
Browser->>Netlify: Send request with JWT
Netlify->>Function: Call authMiddleware
Function->>Database: Verify JWT token
Database-->>Function: Return user details
Function-->>Netlify: Return response
Netlify-->>Browser: Send response
Browser-->>User: Display content
In the land of code, where functions thrive, Authentication blooms, making apps alive. With tokens and nonces, secure and bright, User settings dance in the moonlight. Netlify builds, scripts in hand, Together they craft a digital land. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai full review
LGTM
PR-Codex overview
This PR enhances Netlify deployment setup, adds user authentication features, and improves Supabase integration.
Detailed summary
generatedNetlifyInfo.json
netlify.toml
Summary by CodeRabbit
New Features
Bug Fixes
Improvements
Chores
.gitignore
for better development workflow management.