DIS-158-Dashboard-Email-and-Phone-Verification-Frontend#219
Closed
Whiskey-Taste wants to merge 10 commits intomainfrom
Closed
DIS-158-Dashboard-Email-and-Phone-Verification-Frontend#219Whiskey-Taste wants to merge 10 commits intomainfrom
Whiskey-Taste wants to merge 10 commits intomainfrom
Conversation
- Enhanced VerificationReminder component with prominent error alerts - Added verification status indicators in Settings page - Implemented verification checks to block operations when unverified: - Plan switching in billing section - Service booking creation - Service management operations - Created VerificationGuard component for reusable verification checks - Updated useVerificationCheck hook with detailed error messages - Moved verification section to top of Settings page for visibility - Added comprehensive verification status alerts with impact messaging All follow-up operations are now blocked if phone and email are not verified. Plan switching is prevented until verification is complete.
24b281d to
b7f0ef8
Compare
- Merged DIS158 verification features with main branch subscription features - Combined useAppSelector for user data with useSubscription for plan data - Maintained verification reminder functionality - Added plan-based booking feature visibility control - Both verification and subscription features now work together
- Merged latest main branch changes with DIS158 verification features - Combined useAppSelector for user data with useSubscription for plan data - Maintained verification reminder functionality - Added plan-based booking feature visibility control - Both verification and subscription features now work together - Resolved conflicts in overview page and billing components
- Fixed TypeScript errors in BookingModal.tsx and EditServiceModal.tsx - Added missing useAppSelector import from @/redux/hooks - Resolves CI type-check failures - Both files now properly import useAppSelector for user state access
…rificationReminder
- 更新所有验证相关的API调用路径 - 从 /api/settings/user/:userId/verification/* 更改为 /api/verification/user/:userId/* - 保持前端用户界面和功能不变 - 适配后端验证模块重构
- Fix prettier formatting issues in verification components - Remove unused imports and variables - Fix import sorting issues - Ensure code follows project linting standards
- Fixed API path duplication issue where /api/verification/user/... was being prefixed with base URL containing /api - Changed all verification endpoints from /api/verification/... to /verification/... - This resolves 404 errors caused by double /api prefix in URLs
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.
🔐 Frontend PR Summary: Email & Phone Verification System
📋 Overview
This PR implements the frontend components and logic for the comprehensive email and phone verification system, providing user-friendly interfaces for verification management, route protection, and user guidance throughout the verification process.
🚀 Key Features
✅ Verification Management
�� Route Protection & User Experience
🔄 State Management & API Integration
📁 Files Changed (12 files, +352/-28 lines)
🆕 New Files
src/components/VerificationGuard.tsx- Route protection componentsrc/features/settings/hooks/useVerificationCheck.ts- Verification status hooksrc/app/admin/overview/components/VerificationReminder.tsx- Dashboard reminder🔧 Modified Files
VerificationSection.tsx,PhoneInput.tsx,VerificationCodeModal.tsxai-setup/page.tsx,service-management/page.tsxBillingSection.tsx- Added verification checksoverview/page.tsx- Added verification remindersettingsApi.ts- New verification mutationsAuthCallbackContent.tsx- Removed console.log🛠 Technical Implementation
Verification Guard System
API Integration
User Experience Enhancements
🎨 UI/UX Improvements
Verification Reminder
Enhanced Phone Input
Route Protection
�� Code Quality
�� User Flow
New User Journey
Existing User Journey
✅ Testing & Quality
🔄 Integration Points
Branch:
DIS-158-Dashboard-Email-and-Phone-Verification-FrontendType: Feature
Breaking Changes: None (backward compatible)
Dependencies: No new dependencies added