side panel 官網文案更新 + 前端配合 Privy 身分正名 - #74
Merged
Merged
Conversation
依「Aurayale官網說明文調整內容 - 官網更新_中英」CSV 更新 battle 頁側選單, 中英同步: - 活動:由「看廣告拿卡包」改寫為期間限定排行榜活動,參與流程改為 4 步驟 (進活動頁 → 選排行榜關卡 → 打傷害累積分數 → 前三名拿限定獎勵)。 保留現有 activity_1.png,另加「活動入口」區塊指向主畫面右下角的活動 Icon。 - 遊戲玩法:流程 4 步改 5 步(10 張寶石卡、每回合抽 6 張撲克牌補至 5 張、 Total ATK × Total MULT 結算)。核心機制 4 格改為單一「組合計分」說明。 - 寶石圖鑑:標題 24 種改 40 種。 - 卡片:41 張效果文案全數更新為新術語(符文連鎖 / 同色共鳴 / 符文共鳴 / 完美共鳴)。活動卡為 id 41,於圖鑑下方獨立一區並帶「活動限定」徽章。 稀有度資訊依指示整批下架:卡片稀有度徽章、Tier x/4、稀有度說明區塊, 以及側邊「稀有判別 / 4C」分類頁一併移除(RARITY_META / RarityBadge / RarityContent 與相關 i18n 鍵值),側選單剩 4 個分類。分級規則調整中, 待新規則定案再回歸。 活動卡尚無卡圖(Cloudinary URL map 與本機資產皆無 id 41),CardImage 的 錯誤分支改為區分兩種情況:真的載入失敗顯示「圖片載入失敗」,尚無圖片 來源則顯示「卡圖準備中」。美術給圖後於 CARD_IMAGE_URLS 補一筆即可。 活動卡名稱暫用 Aura Genesis,CSV 未提供名稱,待企劃定名。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
配合後端把 farcasterLoginWithPrivy 正名為 loginWithPrivy、回應改回傳 loginType / email / avatarUrl。 Privy 的 loginMethods 設定為 ['email', 'wallet', 'google'],從未啟用 Farcaster,因此 privyUser.farcaster 恆為 undefined。連帶造成: - useLogin 的 isFarcaster 恆為 false,loginType 永遠回報 "google", 即使玩家是用 email 或 wallet 登入。現改用後端判定的實際登入手段。 - WalletInfo 顯示 @username (FID: ...) 的頭像區塊從未渲染過。 改讀 Privy 的 Google profile。 - useChainSwitch 的 'farcaster' 分支中,簽名回退路徑從未執行; 該分支與 'google' 最終都呼叫 loginWithPrivy,合併為單一分支。 - loginWithFarcaster(錢包簽名登入)已無呼叫者,且送的是 walletAddress + signature,後端 /privy-login 只接受 privyAccessToken。 - src/lib/farcaster.ts 成為孤兒檔案,一併移除。 型別 FarcasterLoginRequest / FarcasterLoginResponse 更名為 PrivyLoginRequest / PrivyLoginResponse;loginType 由 'google' | 'password' | 'farcaster' 改為 LoginType ('google' | 'email' | 'wallet' | 'password'),保留區分度供 UI 顯示 對應圖示。 驗證:tsc / lint / next build 均通過(僅既有的 no-img-element warning)。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
原本的 activity_1.png 是 Planet 1「葫蘆挑戰」關卡畫面(含體力 10/10), 與旁邊「參加期間限定活動的排行榜、爭取高名次」的文案對不上。 換成實際的 Event 列表頁截圖:可看到排行榜分數、名次獎勵(1/2/3 + Verdant Necklace)、活動倒數與 Event 分頁,與文案及「活動入口」 的說明一致。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
依「Aurayale官網說明文調整內容 - 官網更新_中英」CSV 更新 battle 頁側選單,並配合後端身分重構移除已失效的 Farcaster 路徑。
13 檔案,+301 / −678(淨刪 377 行,多數是死路徑)。三個 commit 各自獨立,可分開檢視。
1️⃣
64f04c1側選單面板依官網文案表更新文案(中英同步)
Total ATK × Total MULT結算)。核心機制由 4 格改為單一「組合計分 / Pattern Scoring」。結構
RARITY_META/RarityBadge/RarityContent與相關 i18n 鍵值)。側選單由 5 個分類剩 4 個。分級規則調整中,待新規則定案再回歸。CardImage錯誤分支拆兩種 — 真的載入失敗顯示「圖片載入失敗」,尚無圖片來源(如活動卡)顯示「卡圖準備中」。2️⃣
3edc8b5前端配合後端身分正名前提:Privy 的
loginMethods設定為['email','wallet','google'],從未啟用 Farcaster,所以privyUser.farcaster恆為undefined。以下都是因此而死掉的程式碼:useLogin.tsisFarcaster恆為false→loginType永遠回報"google",即使玩家用 email 或 wallet 登入WalletInfo.tsx@username (FID: ...)的頭像區塊從未渲染過useChainSwitch.ts'farcaster'分支的簽名回退路徑從未執行;該分支與'google'最終都呼叫loginWithPrivy,合併為單一分支(−89 行)auraServer.tsloginWithFarcaster已無呼叫者,且送walletAddress + signature,但後端/privy-login只接受privyAccessTokenlib/farcaster.tsplatform.tsxrouter.push("/aurayale"))與未使用的farcasterUserstatechainUtils.tscase 'farcaster'與default行為相同型別更名
3️⃣
b2b045a限時活動改用 Event 頁截圖原本的
activity_1.png是 Planet 1「葫蘆挑戰」關卡畫面(含體力 10/10),與旁邊「參加期間限定活動的排行榜、爭取高名次」的文案對不上。換成實際的 Event 列表頁截圖 —— 可看到排行榜分數、名次獎勵(1/2/3 + Verdant Necklace)、活動倒數與 Event 分頁,與文案及「活動入口」的說明一致。
Commit 2(
3edc8b5)依賴後端 AuraServer#3 的新回應格式(loginType/email/avatarUrl)。後端沒 merge 就先上,response.loginType會是undefined。Commit 1 與 3 純前端文案/圖片,與後端無關,可獨立上線。
若需要先出文案而後端還沒好,可以只 cherry-pick
64f04c1+b2b045a。驗證
tsc --noEmit、next lint、next build均通過(僅既有的no-img-elementwarning)。🤖 Generated with Claude Code