feat(frontend): アプリ内から Discord 連携への導線を追加#552
Merged
Merged
Conversation
- ワークスペース設定に「外部サービス連携」セクションを追加し Discord bot ページ (/<treeId>/discord-bot) へ遷移できるようにする - メンバー詳細(自分)に「Discord を連携」ボタンを追加し /connect/discord?treeId=… へ導線を張る - /connect/discord に token が URL に無い場合の貼り付けフォールバックを追加 (DM リンク or 素の verifier_token JWT を抽出) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
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.
概要
アプリ内から Discord 連携へたどり着けるように導線を追加します。これまで
/connect/discordは Discord の/toban-setupが DM で送る URL 経由でしか開けず、アプリ内からの入口がありませんでした。変更内容
ワークスペース設定に「外部サービス連携」セクション
/<treeId>/discord-bot)への行を追加。treeIdは既にスコープ内にあるため、token を要求せず直接開けます。メンバー詳細(自分)に「Discord を連携」ボタン
/connect/discord?treeId=…へ遷移。個人の wallet↔account 紐付けはユーザーごとのverifier_tokenが必要なため、管理者面ではなく本人のプロフィールに配置しています。/connect/discordの token 貼り付けフォールバックverifier_tokenを載せられないアプリ内導線から来た場合に備え、DM のリンク(#token=…/?token=…)または素の JWT を貼り付けて続行できる入力欄を追加。extractVerifierTokenでリンク/トークンを抽出します。その他
useThanksToken.ts/treat-emoji-slider.tsxは Biome フォーマットのみ(挙動変更なし)。補足
🤖 Generated with Claude Code