Closed aldinokemal closed 2 months ago
This update brings notable enhancements to the WhatsApp API MultiDevice application, primarily focusing on user authentication improvements. A new login method utilizing a pairing code has been added, enhancing usability. The API version has been updated, and various components and files have been modified to support the new functionality, including documentation, validation, and user interface elements. These changes aim to provide a more seamless user experience while ensuring dependencies are up-to-date.
Files | Change Summary |
---|---|
docker/golang.Dockerfile | Upgraded Go and Alpine base images for improved security and performance. |
docs/openapi.yaml | Incremented API version to 4.2.0 and added /app/login-with-code endpoint for login with a pairing code. |
readme.md | Replaced "Feature" table with a detailed "User Interface" table and updated login descriptions. |
src/config/settings.go | Updated AppVersion from "v4.15.0" to "v4.16.0" . |
src/domains/app/app.go | Added LoginWithCode method to IAppService interface for new login functionality. |
src/go.mod | Updated various module dependencies for maintenance and improvements. |
src/internal/rest/app.go | Introduced LoginWithCode method and route for user authentication via a pairing code. |
src/services/app.go | Implemented LoginWithCode method for handling login logic with phone number validation. |
src/validations/app_validation.go | New file containing ValidateLoginWithCode function for phone number validation. |
src/validations/app_validation_test.go | Added unit tests for ValidateLoginWithCode function to ensure proper validation behavior. |
src/views/components/AppLogin.js | Added connected prop to manage user login state and prevent unnecessary modal interactions. |
src/views/components/AppLoginWithCode.js | New component for user login via pairing code with interactive modal interface. |
src/views/components/AppReconnect.js | Simplified instruction text for reconnecting to the WhatsApp service. |
src/views/index.html | Integrated new <app-login-with-code> component and updated existing components for improved connection state handling. |
sequenceDiagram
participant User
participant AppLoginWithCode
participant Service
participant API
User->>AppLoginWithCode: Enter phone number
AppLoginWithCode->>Service: Validate phone number
Service->>API: Request login with code
API-->>Service: Return pair code
Service-->>AppLoginWithCode: Provide pair code
AppLoginWithCode-->>User: Display pair code
π° In the meadow, hop and play,
New codes for logging in today!
With pairing joy, users can find,
A smoother path, oh so kind!
Letβs celebrate this change with cheer,
A rabbitβs dance brings us near! πΌβ¨
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?
Context
Test Results