Closed Meriem-BM closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
giveth-dapps-v2 | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 15, 2024 8:13am |
The updates enhance the Gitcoin Passport experience by refining text labels across multiple languages, introducing new donor eligibility checks, and improving user interaction with streamlined messages and new UI components. Notable changes include validating donation matching eligibility, updating loading/error messages, and adding new labels and components to manage passport-related states. A new React component, QFEligibilityRoute
, aligns with these modifications, and GraphQL queries now include additional fields for detailed eligibility data.
File/Path | Change Summary |
---|---|
lang/ca.json , lang/en.json , lang/es.json |
Updated text labels, messages, and added new labels for processing and eligibility information. |
next.config.js |
Added a new redirection rule mapping /passport to /qf-eligibility . |
package.json |
Updated @giveth/ui-design-system dependency version. |
pages/qf-eligibility.tsx |
Introduced QFEligibilityRoute React component for QF eligibility page. |
src/apollo/gql/gqlPassport.ts |
Added activeQFMBDScore field to GraphQL query SCORE_ACTIVE_QF_DONOR_ADDRESS . |
src/apollo/gql/gqlQF.ts |
Added minimumUserAnalysisScore field to QF_ROUNDS_QUERY . |
src/apollo/gql/gqlUser.ts |
Added activeQFMBDScore field to GET_USER_BY_ADDRESS query. |
src/apollo/types/types.ts |
Added fields to IPassportInfo and IQFRound interfaces. |
.../PassportBanner.tsx |
Added new states, updated content and conditional rendering for eligibility state. |
.../PassportButton.tsx |
Allowed null value for state property in IButtonProps interface. |
.../modals/PassportModal.tsx |
Introduced PassportModal component for managing and displaying passport eligibility information. |
.../views/donate/QFToast.tsx |
Expanded functionality to include EQFElegibilityState alongside EPassportState . |
.../views/donate/SuccessView.tsx |
Added qfEligibilityState to component state and eligibility checks logic. |
.../views/passport/passport.view.tsx |
Integrated EQFElegibilityState into component's logic and updated references. |
.../views/qfEligibility/QFEligibility.view.tsx |
Introduced QFEligibilityView component for eligibility status display and interactions. |
.../views/userProfile/QFDonorEligibilityCard.tsx |
Introduced QFDonorEligibilityCard component for managing donor eligibility logic and display. |
src/hooks/usePassport.ts |
Updated hook logic, added new states, functions, and eligibility scenarios handling. |
src/services/passport.ts |
Added scoreUserAddress function and SCORE_ACTIVE_QF_DONOR_ADDRESS import. |
sequenceDiagram
participant User
participant UI as User Interface
participant API
participant PassportService as Passport Service
participant QFService as QF Eligibility Service
User->>UI: Access eligibility page
UI->>API: Fetch eligibility data
API->>PassportService: Get Passport data
PassportService->>API: Return Passport data
API->>QFService: Check QF eligibility
QFService->>API: Return QF eligibility status
API->>UI: Send eligibility data
UI->>User: Display eligibility status
User->>UI: Update information
UI->>API: Submit updated data
API->>PassportService: Update Passport data
PassportService->>API: Confirm update
API->>UI: Confirm update
UI->>User: Display updated status
In the realm of digital grace, Gitcoin Passport found its place, With messages fresh, and labels new, Your donations, matched and true. Eligibility clear as day, For you, the path, a smoother way. Celebrate, let's hop and cheer, For Gitcoin's updates far and near!
Hey @RamRamez, @kkatusic if any of you guys can review this PR pls
Related to #4247
Summary by CodeRabbit
New Features
Bug Fixes
Chores
@giveth/ui-design-system
dependency to latest version./passport
to/qf-eligibility
.Refactor