设备代码流在完成授权后隐藏二维码#6087
Conversation
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request enhances the Microsoft device login flow by introducing a new 'DeviceLoginCompleted' state and event. This ensures that users are notified once the authorization step is finished while the launcher completes the remaining login tasks. The changes involve updates to the OAuth callback interface, the addition of a specific event class, and UI logic to display a completion hint. Review feedback correctly identified a grammatical error in the English localization and character inconsistencies in the Traditional Chinese translation, both of which included specific code suggestions for correction.
Co-authored-by: 3gf8jv4dv <3gf8jv4dv@gmail.com>
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds a completion event to the OAuth device login flow, enabling the UI to display a message once authorization is finished. It includes updates to the OAuth callback interface, event management, and localized strings. Reviewer feedback highlights the need for explicit error handling in the polling loop to avoid null tokens and suggests a grammatical fix for the English translation.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request implements a completion event for Microsoft device code login, updating the UI to show a progress indicator and localized message once authorization is finished. Feedback was provided regarding the need for robust error handling in the OAuth polling loop to prevent incorrect success signals on failure, as well as a suggestion to correct the English grammar in the new localization string.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a LoginCompletedDeviceCodeEvent and a corresponding callback to handle the completion of Microsoft device login, updating the UI state to show a completion hint and loading spinner. It also updates localization files to support this new state. The review feedback correctly identifies grammatical errors in the English localization file (I18N.properties), specifically pointing out that 'work' is uncountable and suggesting the correction from 'There are some extra work' to 'There is some extra work'.
| account.methods.microsoft.close_page=Microsoft account authorization is now completed.\n\ | ||
| \n\ | ||
| There are some extra works for us, but you can safely close this tab for now. | ||
| There are some extra work for us, but you can safely close this tab for now. |
| account.methods.microsoft.hint=Click the "Log in" button to start adding your Microsoft account. | ||
| account.methods.microsoft.methods.device=Log In with QR Code | ||
| account.methods.microsoft.methods.device.hint=Scan QR code or visit <a href="%s">%s</a> to complete login, enter <b>%s</b> in the opened page. | ||
| account.methods.microsoft.methods.device.hint.completed=Microsoft account authorization is now completed. There are some extra work for us, just wait for a while. |
No description provided.