mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-26 06:15:52 +03:00
[PR #777] [MERGED] fix: display auth_code result directly without result_text #755
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#755
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/777
Author: @dreamhunter2333
Created: 12/6/2025
Status: ✅ Merged
Merged: 12/6/2025
Merged by: @dreamhunter2333
Base:
main← Head:feature/email📝 Commits (1)
62648befix: display auth_code result directly without result_text📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
frontend/src/components/AiExtractInfo.vue(+5 -0)📄 Description
User description
Summary
Fix AiExtractInfo component to display verification codes (auth_code) using the raw
resultvalue instead ofresult_text.Problem
The
displayTextcomputed property was usingresult_text || resultfor all types, which could potentially show unwanted text for verification codes instead of the actual code.Solution
Modified the
displayTextlogic to:auth_code): Always returnresult(the actual code like "123456")result_textas display label, fallback toresult(URL)Changes
displayTextcomputed property infrontend/src/components/AiExtractInfo.vueauth_codeCode
```typescript
const displayText = computed(() => {
if (!aiExtract.value) return '';
// For auth_code, always show the raw result (verification code)
if (aiExtract.value.type === 'auth_code') {
return aiExtract.value.result;
}
// For links, prefer result_text as display label
return aiExtract.value.result_text || aiExtract.value.result;
});
```
Testing
aiExtract.result)result_textwhen availableImpact
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com
PR Type
Bug fix, Enhancement
Description
Fixed
displayTextlogic to correctly displayauth_codevalues.Added explicit type checking for
auth_codeinAiExtractInfo.vue.Improved user experience for verification code display.
Maintained existing behavior for link types.
Changes walkthrough 📝
AiExtractInfo.vue
Adjusted `displayText` logic for `auth_code` and linksfrontend/src/components/AiExtractInfo.vue
displayTextlogic forauth_codetype.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.