查看需要審查的內容
在同一處查看你的代理工作樹及其未提交的變更。審查有風險的變更、調查任何需要修正的地方,並從「變更」頁面提交你的程式碼。
本指南使用 Panolayer 的 Twitter 範例 twitter-starter。如果你已依照使用 Panolayer 修正你的第一個錯誤操作,請使用下列步驟審查刪除修正。
螢幕截圖和短片顯示同一個 Twitter 應用程式中的多項變更,包括格式設定、搜尋、匯出和已儲存貼文的變更。你的檔案清單、風險分數和提交 ID 會取決於你正在審查的工作。點擊螢幕截圖即可查看完整大小。
在側邊欄開啟 變更。在右側,你可以看到不同的工作樹,以及你的代理所留下的未提交程式碼。選取一個工作樹,即可查看該代理變更了什麼,檔案會依風險由高到低評分。
在你的代理工作樹之間切換、審查其變更,並從此頁面提交程式碼。風險分數讓你快速看出哪些檔案需要你注意,且可能需要修正。
你也可以在 歷史記錄 中選取現有的提交,以審查已記錄的內容。如果你已經合併刪除修正,請在那裡找到它;其合併已在本機記錄該變更。
依風險由高到低審查變更
「變更」會將檔案從有風險到無風險評分,並說明變更了什麼。從風險最高的檔案開始,了解在提交前需要審查且可能需要修正的內容。
在 風險光譜、風險長條圖 和 重疊 之間切換,以三種視覺化檢視探索相同的變更。
風險光譜
查看變更的檔案沿水平光譜排列,左側為高風險,右側為低風險。
風險長條圖
以依風險排序的長條圖比較檔案。此檢視從風險很高到無風險,讓你輕鬆看出哪些變更需要關注。
重疊
查看 UI 變更、邏輯變更和風險變更重疊之處。分組的檔案顯示變更的這些部分彼此之間的關係。
檢視需要留意的變更
風險概覽會顯示應優先檢視的位置。當你想更深入了解特定變更時,請開啟檔案。
- 在圖形或已變更檔案清單中選取檔案。
- 閱讀其路徑、變更摘要與風險說明。
- 選擇 分割 進行並排比較,或選擇 內嵌 在單一檢視中閱讀變更。
- 沿著相關函式及其呼叫端追蹤此變更。也請檢查相關測試、設定與相依性檔案。
針對刪除問題的修正,請開啟 components/Post.tsx 並檢視 handleDelete()。檢查此變更如何處理回報的 canDelete 條件,以及使用者確認、刪除請求與成功回應處理是否仍能相互配合。
閱讀分析並針對疑慮提問
Panolayer Agent 的深度分析一律可在「變更」中取得。開啟 Panolayer Agent – 深度分析 面板,閱讀其評估、疑慮與來源參考。從疑慮追蹤至相關檔案,以了解需要留意的地方。
現有的分析片段顯示 Twitter 應用程式中的匯出變更,並將疑慮連結至受影響的檔案。
使用 聊天 與 Panolayer Agent 繼續檢閱。針對你正在檢查的行為提問,例如:
「此變更如何修正刪除問題,以及哪些測試涵蓋預期的行為?」
利用答案瀏覽變更,並調查任何不清楚的地方。
檢閱時一併閱讀驗證結果
變更可以顯示受影響函式的驗證結果。閱讀失敗的規則,以及任何仍在待處理或無法取得的檢查,然後依其說明深入程式碼。
風險總覽可協助你判斷該從哪裡著手。深入分析會提供值得調查的疑慮。驗證會依據對程式碼行為的預期回報檢查結果。請將這些內容與差異及相關測試一併閱讀。
以刪除範例而言,請確認所選的失敗已修復,並將任何新的失敗與既有問題分開檢視。關於摘要欄位與狀態,請參閱瞭解驗證結果。
當變更需要執行階段檢查時,請執行應用程式。就這項修正而言,請試著刪除貼文,並確認按下確認或取消時的行為符合預期。
Merge the agent’s work when you’re satisfied
When the agent requests a merge, review the verification summary and confirm the target branch. Choose Not now to keep reviewing, or Merge into main to bring the work into the sample’s main branch.
The Merged into main confirmation shows the commit ID. This workflow records the agent’s change in local Git history; you do not need to commit that same change again.
Commit any uncommitted edits
Use this step for your own edits or other uncommitted work in the current workspace. If the agent’s merge already saved the change and you have no further edits, continue to History.
- Check the full changed-file list.
- Review the suggested commit message. Use Edit message if it needs to describe the change more clearly.
- Choose Commit to save the changes to the local branch. Choose Commit & Push if you also want to send the commit to a configured remote.
A Panolayer commit includes every changed file in the workspace. Use Git directly if you need to stage only part of the change. Read any reported check failures before deciding to commit; a commit can still be created when checks fail.
Confirm the result in History
Open History and find the new commit using its message, author, and commit ID. Select it to inspect the recorded change, then return to Working tree to check for remaining uncommitted edits.
Watch: Confirm a Twitter saved-post change in merge confirmation and History
This existing clip follows a saved-post change in the Twitter app. Use the commit ID from your own merge confirmation to find your change.
For the deletion fix, you should be able to find its recorded change and inspect the files that landed. Check that no unexpected uncommitted edits remain.
Push when you’re ready to share the commit
A merge or commit saves work locally. To send an existing local commit to your Git remote, open Git and choose Push.
Pushing requires a configured remote and permission to write to it. If the sample has no remote, the local commit completes this walkthrough. If a push reports an error, read it and resolve the remote or sign-in problem before trying again.
Use your Git host for pull requests and team review.