feat(guide): AI で注文する / AI が支払う ガイドの上部リンクを OpenPay Agent へ - #540
Merged
Merged
Conversation
user 提案 (9/21): 2 つのガイド上部の「トップにもどる」を /agent へのリンクにすると導線が良い。 - トップへはヘッダのロゴで常に戻れるので、本文上部のリンクは役割が重複していた。 その枠を文脈上の親である /agent に使う (/agent は 2 つのガイドを「2 つの使い方」として束ねるハブ・ 読み終えた人の次の行動 = セットアップも /agent にある)。 - ラベルは「Agent にもどる」ではなく「← OpenPay Agent」。このガイドへの流入は /agent だけでなく AI ストア・LP・店舗ガイド等からもあるので、「もどる」と書くとそこから来ていない人には事実と合わない。 親ページの名前を出すパンくず型なら、どこから来ても正しい。 - SOT のキーを backHome (文字列) から backLink (label と href) に変更。リンク先がページ側に直書きだった。 - /guide/sell (API を売るガイド) は売り手向けで親は AI ストアなので対象外。ほかのガイドも変更なし。 検証: typecheck・eslint・full vitest 11,432 pass・next build OK。本番 build の実機で ja/en の 4 ページとも リンクが /ja/agent・/en/agent を指すことを確認。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmCRFvTbAq9XiBKZNBakPp
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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.
なにを
「AI で注文するガイド」(/guide/agent) と「AI が支払うガイド」(/guide/ai-pay) の上部リンクを、トップから OpenPay Agent (/agent) へ変更します (user 提案)。
なぜ
/ja)/ja/agent)/en)/en/agent)ご提案は「← Agent にもどる」でしたが、ラベルは 「← OpenPay Agent」 にしています。この 2 ガイドへの流入は /agent だけでなく AI ストア・LP (AI エージェント節 / モバイルオーダー節)・/guide/mobile-order・/guide/shop・販売ガイド・運用の透明性ページ からもあり、「もどる」と書くとそこから来ていない人には事実と合わないためです。親ページの名前を出すパンくず型なら、どこから来ても正しく読めます (「戻る」はブラウザが担う)。「Agent にもどる」の方がよければ 1 行で差し替えます。
変更
lib/aiPayGuide.ts・lib/agentGuide.ts:backHome: string→backLink: { label, href }(リンク先がページ側に直書きだった)hrefと表示をbackLinkから取る (規定外 export なし)検証
next buildOKnext start -p 3150) の実機で、ja/en の 4 ページとも<a href="/{locale}/agent">← OpenPay Agent</a>を確認/agent・ラベル一致・「もどる / 戻る / Back」を含まないこと料率・チェーン対応・課金条件の変更なし。
🤖 Generated with Claude Code
https://claude.ai/code/session_01LmCRFvTbAq9XiBKZNBakPp